信息搜集


信息搜集

扫描敏感目录/文件

扫描敏感目录需要强大的字典,需要平时积累,拥有强大的字典能够更高效地找出网站的管理后台。

敏感文件常见的如.git文件泄露,.svn文件泄露,phpinfo泄露等,这一步一般交给各类扫描器就可以了,将目标站点输入到域名中,选择对应字典类型,就可以开始扫描了,十分方便。

御剑

image-20210722103118289

7kbscan

image-20210722103240335

dirsearch

在dirsearch目录下运行命令

python3 dirsearch.py -u http://m.scabjd.com/ -e * 

image-20210722115922427

gobuster

sudo apt-get install gobuster 
gobuster dir -u https://www.servyou.com.cn/ -w /usr/share/wordlists/dirbuster/directory-list-2.3-medium.txt -x php -t 50

dir -u 网址 w字典 -x 指定后缀 -t 线程数量
dir -u https://www.servyou.com.cn/ -w /usr/share/wordlists/dirbuster/directory-list-2.3-medium.txt -x "php,html,rar,zip" -d --wildcard -o servyou.log | grep ^"3402"

image-20210722120131108

网站文件

常见Web源码泄露总结 - SecPulse.COM | 安全脉搏

以下是我们的目标:

  • robots.txt
  • crossdomin.xml
  • sitemap.xml
  • 后台目录
  • 网站安装包
  • 网站上传目录
  • mysql管理页面
  • phpinfo
  • 网站文本编辑器
  • 测试文件
  • 网站备份文件(.rar、zip、.7z、.tar.gz、.bak)
  • DS_Store 文件
  • vim编辑器备份文件(.swp)
  • WEB—INF/web.xml文件
  • .git
  • .svn

扫描网页备份

如:

  • config.php
  • config.php~
  • config.php.bak
  • config.php.swp
  • config.php.rar
  • conig.php.tar.gz

网站头信息搜集

中间件:web服务【Web Servers】 apache iis7 iis7.5 iis8 nginx WebLogic tomcat

网站组件:js组件jquery、vue 页面的布局bootstrap

在线网站

http://whatweb.bugscaner.com/look/

image-20210722121022888

火狐插件Wappalyzer

image-20210722121802631

敏感文件搜索

GitHub搜索

in:name test #仓库标题搜索含有关键字test

in:descripton test #仓库描述搜索含有关键字

in:readme test #Readme文件搜素含有关键字

搜索某些系统的密码

https://github.com/search?q=smtp+58.com+password+3306&type=Code

github 关键词监控

https://www.codercto.com/a/46640.html

谷歌搜索

site:Github.com sa password

site:Github.com root password

site:Github.com User ID=’sa’;Password

site:Github.com inurl:sql

SVN 信息收集

site:Github.com svn

site:Github.com svn username

site:Github.com svn password

site:Github.com svn username password

综合信息收集

site:Github.com password

site:Github.com ftp ftppassword

site:Github.com 密码

site:Github.com 内部

几篇关于GitHub搜索的文章

https://blog.csdn.net/qq_36119192/article/details/99690742

http://www.361way.com/github-hack/6284.html

https://docs.github.com/cn/github/searching-for-information-on-github/searching-code

https://github.com/search?q=smtp+bilibili.com&type=code

Googlehacking

见day16

wooyun漏洞库

https://wooyun.website/

image-20210722122633303

网盘搜索

凌云搜索

https://www.lingfengyun.com/

image-20210722122735429

盘多多:

https://www.panduoduo.org/

image-20210722123114947

盘搜搜:

http://www.pansoso.com/

image-20210722122907126

盘搜:

http://www.pansou.com/

image-20210722122912939

社工库

名字/常用id/邮箱/密码/电话 登录 网盘 网站 邮箱 找敏感信息

网站注册信息

查询网站注册信息

http://www.reg007.com

image-20210722123414499

js敏感信息

网站的url连接写到js里面

js的api接口 里面包含用户信息 比如 账号和密码

jsfinder

python3 JSFinder.py -u http://www.mi.com

python3 JSFinder.py -u http://www.mi.com -d

python3 JSFinder.py -u http://www.mi.com -d -ou mi_url.txt -os mi_subdomain.txt

当你想获取更多信息的时候,可以使用-d进行深度爬取来获得更多内容,并使用命令 -ou, -os来指定URL和子域名所保存的文件名

批量指定URL和JS链接来获取里面的URL:

指定URL:

python JSFinder.py -f text.txt

指定JS:

python JSFinder.py -f text.txt -j

image-20210722125020070

cms识别

收集好网站信息之后,应该对网站进行指纹识别,通过识别指纹,确定目标的cms及版本,方便制定下一步的测试计划,可以用公开的poc或自己累积的对应手法等进行正式的渗透测试。

云悉

http://www.yunsee.cn/info.html

image-20210722125608346

潮汐识别

http://finger.tidesec.net/

image-20210722125638771

CMS指纹识别

http://whatweb.bugscaner.com/look/

image-20210722125757867

https://github.com/search?q=cms识别

image-20210722125847365

whatweb cms

image-20210722130440561

御剑cms

image-20210722130509348

非常规操作

1、如果找到了目标的一处资产,但是对目标其他资产的收集无处下手时,可以查看一下该站点的body里是否有目标的特征,然后利用网络空间搜索引擎(如fofa等)对该特征进行搜索,如:body=”XX公司”或body=”baidu”等。

该方式一般适用于特征明显,资产数量较多的目标,并且很多时候效果拔群。

2、当通过上述方式的找到test.com的特征后,再进行body的搜索,然后再搜索到test.com的时候,此时fofa上显示的ip大概率为test.com的真实IP。

3、如果需要对政府网站作为目标,那么在批量获取网站首页的时候,可以用上

http://114.55.181.28/databaseInfo/index之后可以结合上一步的方法进行进一步的信息收集。

SSL/TLS证书查询

SSL/TLS证书通常包含域名、子域名和邮件地址等信息,结合证书中的信息,可以更快速地定位到目标资产,获取到更多目标资产的相关信息。

在线网站

https://myssl.com/

image-20210722130930339

https://crt.sh 挂梯子

image-20210722131140578

https://censys.io

image-20210722131015908

https://developers.facebook.com/tools/ct/

image-20210722131105035

https://google.com/transparencyreport/https/ct/

image-20210722131122353

SSL证书搜索引擎:

https://certdb.com/domain/github.com

image-20210722131212212

https://crt.sh/?Identity=%.moonsec.com

image-20210722131228095

查找厂商ip段

image-20210722131325462

移动资产搜集

微信小程序/支付宝小程序

现在很多企业都有小程序,可以关注企业的微信公众号或者支付宝小程序,或关注运营相关人员,查看朋友圈,获取小程序。

https://weixin.sogou.com/weixin?type=1&ie=utf8&query=拼多多

image-20210722131412634

app软件搜索

https://www.qimai.cn/

image-20210722131522047

社交信息搜索

QQ群 QQ手机号

微信群

领英

https://www.linkedin.com/

脉脉招聘

boss招聘

防护软件搜集

安全防护 云waf、硬件waf、主机防护软件、软waf


文章作者: 晓莎K
版权声明: 本博客所有文章除特別声明外,均采用 CC BY 4.0 许可协议。转载请注明来源 晓莎K !
评论
  目录