Nuclear'Atk(核攻击)网络安全实验室

Recent content on Nuclear'Atk(核攻击)网络安全实验室

马上订阅 Nuclear'Atk(核攻击)网络安全实验室 RSS 更新: https://lcx.cc/index.xml

讨论:如何只使用一条命令找出系统web路径,渗透时秒找网站根目录?

2015年10月26日 16:29

一条命令找出系统web路径

xsser (十根阳具有长短!!) | 2015-10-23 17:48

经常在一个系统里需要快速定位到web路径,如果在标准化系统里如何一条命令快速实现这一点呢?

:)

[原文地址]

各种吐槽:

1#

YY-2012 (#)<alert("dandan")>(#) | 2015-10-23 17:59

find

2#

园长 (喵~) | 2015-10-23 18:02

find / -name "*.php"

3#

数据流 (| 1970-00-00 00:00) | 2015-10-23 18:15

在网站上找个比较唯一的文件名,例如"member_index.php" 然后find之

4#

乌云厂商 | 2015-10-23 18:24

.bash_history

5#

if、so | 2015-10-23 18:36

找脚本文件会有备份文件和多个web目录的干扰,在目录杂乱的时候,可以find自己上传的文件

6#

猪猪侠 (每次有人骂我是猪我都说自己是猪猪侠) | 2015-10-23 18:48

httpd,nginx,tomcat,jboss的error_log

7#

❤ (❤) | 2015-10-23 18:55

find . -name "*.类型" | xargs grep "关键字"

8#

李旭敏 (˿̖̗̀́̂̃̄̅̆̇̈̉̊̋̌̍̎̏̐̑̒̓̔̕) | 2015-10-23 18:58

find robots.txt

9#

jeary ((:‮?办么怎,了多越来越法方象抽的我)) | 2015-10-23 19:02

打开web查看源码,复制一个特征字符串,然后替换进下面命令的htmlString搜索之。

win: findstr /s /i /n /d:C:\ "htmlString" *.*

linux: find / -name "*.*" | xargs grep "htmlString"

10#

❤ (❤) | 2015-10-23 19:09

@jeary 鼠大侄,Win的搜索第一次用,测试了下蛮好使.

11#

Sunshie (博客http://phpinfo.me 论坛 www.itgou.club) | 2015-10-23 19:11

cat /etc/nginx/conf/vhost/web.conf | grep root...

剩余内容已隐藏

查看完整文章以阅读更多