搜索网站文件路径小技巧
搜索网站文件路径小技巧
环境是当能执行单条命令的时候未找到网站路径怎么去找,比如有命令执行,或者xp_cmdshell执行的时候。
Linux下:
find / -name logo_11.png
linux搜索文件内容
grep -r "pass" ./
windows:
IIS:
type C:\WINDOWS\system32\inetsrv\MetaBase.xml | findstr "Path"
其他:
搜索文件位置/搜索conf内带password内容的文本
for /r E:\ %i in (*.jsp) do @echo %i
where /R E:\ *.jsp
find / -name "*.conf" 2>&1 | xargs grep -s -i 'password' > xxoo.txt