簡單版fofa工具


最近在學習fofa,感覺功能挺強大的,就開了一個會員,來玩玩,不過結果是挺多的,在網上也有很多工具爬取下,不過我找到一個簡化版的fofa,分享一下

 

搜索HTTP響應頭中含有"thinkphp"關鍵詞的網站和IP

 

 

結果有170361條,肯定看不完的,用腳本爬取,

1 import pyfofa
2 
3 email = ''  #郵箱
4 key = ''    
5 search = pyfofa.FofaAPI(email,key)
6 for host,ip in search.get_data('title="header="thinkphp"',1,"host,ip")['results']:
7     print(host,ip)

 

 

 

看了一下,我只想爬取中國的,那我組合一下語法

1 #lanxing
2 #子域名查詢
3 import pyfofa
4 
5 email = ''  #郵箱
6 key = ''   
7 search = pyfofa.FofaAPI(email,key)
8 for host,ip in search.get_data('header="thinkphp" && country="CN"',1,"host,ip")['results']:
9     print(host,ip)

 

如果我想查詢C段,也可以,不用爆破,防止測試網站掛了

哈哈哈

#lanxing
#子域名查詢
import pyfofa

email = ''  #郵箱
key = ''    
search = pyfofa.FofaAPI(email,key)
for host,ip in search.get_data('domain="baidu.com"',1,"host,ip")['results']:
    print(host,ip)

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM