1. 程式人生 > 其它 >資訊蒐集(一)

資訊蒐集(一)

1.子域名資訊

(1)主域防護嚴密,迂迴拿下子域,進而靠近主域
www.aaa.com不存在漏洞
edu.aaa.com存在漏洞,拿下子域
(2)工具:Maltego ,wydomain,subDomainsBrute,DNSMAPER,Layer子域名挖掘機
(3)搜尋引擎進行挖掘,谷歌語法
(4)第三方網站:http://tool.chinaz.com/subdomain,http://dnsdumpster.com
(5) 證書透明度公開日誌列舉:https://crt.sh/ http://censys.io/
(6)其他途徑:https://phpinfo.me/domain http://dns.aizhan.com

2.CMS指紋識別

(1)CMS,又稱整站系統或文章系統,用於網站內容管理,各種CMS都具有獨特的結構命名規則和特定的檔案內容,可以獲取CMS站點的具體軟體和版本,如:dedecms Discuz phpcms wordpress
(2)線上識別: http://whatweb.bugscaner.com/look/ http://www.yunsee.cn/finger.html
(3)本地工具: whatweb 御劍web指紋識別程式 大禹CMS識別程式 wpscan
(4)CMS漏洞查詢:https://bugs.shuimugan.com

3.敏感目錄

(1)御劍後臺掃描工具
(2)wwwscan
(3)dirb
(4)dirbuster

4.埠資訊

(1) netstat -anbo netstat -panto
(2)namp
(3)masscan
(4)線上網站:http://tool.chinaz.com/poprt/
(5)埠攻擊:
| 22 | SSH遠端連線 | 爆破,SSH隧道及內網代理轉發,檔案傳輸
| 23 | Telnet遠端連線 | 爆破,嗅探,弱口令
| 3389| rdp遠端桌面 | shift後門,爆破
| 5900 | VNC遠端連線 | 弱口令,RC
|5632 | PcAnywhere | 嗅探,程式碼執行

(6)搜尋埠攻擊

5.敏感資訊

(1)搜尋引擎搜尋目標暴露在網際網路上的關聯資訊(資料庫檔案,SQL注入,伺服器配置資訊,通過git找到洩露的原始碼,redis,robots.txt
(2)谷歌黑客:
site 搜尋域名 site:baidu.com
inurl 指定URL的關鍵字 inurl:php?id=
intext 網頁的關鍵字 intext:網站管理
filetype 檔案型別 filetype:txt
intitle 網頁標題的關鍵字 intitle:後臺管理
link 網頁連線 link:baidu.com
info 搜尋網頁資訊 info:baidu.com

(3)Google hacking資料庫
(4)HTTP頭
(5)Github

6.CDN(內容分發網路)與IP

(1)ping 命令
(2)線上ping 站長之家,多地ping
(3)有CDN查IP:
收集內部郵箱IP地址
phpinfo
查詢子域名,子站可能未使用CDN
國外訪問網站,https://asm.ca.com/en/ping.php
檢視域名解析記錄

7.shaodan

(1)webcam 搜尋攝像頭
(2) port:埠號
(3)host:xxx.xxx.xxx.xxx 搜尋IP
(4)city:beijing 搜尋城市


(5)shodan命令列:
初始化: shodan init API KEY
shodan count Apache 查詢Apache服務數量
shodan search microsoft iis 6.0 命令列搜尋

獲取指定IP資訊:shodan host xxx.xxx.xxx.xxx
獲取賬號資訊: shodan info 檢視自身賬戶資訊
獲取自身外部IP: shodan myip
檢測蜜罐: shodan honeyscore xxx.xxx.xxx.xxx
配合python , https://developer.shodan.io/api

import shodan
SHODAN_API_KEY="   值     "
api=shodan.Shodan(SHODAN_API_KEY)
result=api.search('apache')
result2=api.host('1111.111.111.111')
print(result['total'][)

8.伺服器,容器,指令碼型別,資料庫

(1)ping 主機判斷Windows Linux ,Windows的TTL值都是一般是128,Linux則是64。所以大於100的肯定是Windows,而幾十的肯定是Linux
(2)nmap -O -sV -T4
(3)HTTP頭
(4)瀏覽器外掛

9.旁站 C段

線上查詢 http://www.webscan.cc/ https://phpinfo.me/bing.php

10.漏洞掃描

AWVS Nessus Appscan OWASP-ZAP

11.管理員資訊

賬號資訊

12whois資訊

13社工