Coder Social home page Coder Social logo

fofa-script's Introduction

Fofa-python-脚本

起因

使用关键字在fofa上查询后,手动测试fofa上面每一个链接,并且进行漏洞测试着实麻烦,但fofaAPI又是要收费的,所以很容易会想到使用爬虫进行链接爬取

简介

基于python3fofa爬取

爬取的链接会存储在hello_world.txt

默认每隔5秒爬取一页数据

下载

git clone https://github.com/Cl0udG0d/Fofa-script

使用

配置config.py中的cookie

运行fofa.py

python3 fofa.py

原理

https://www.cnblogs.com/Cl0ud/p/14324445.html

logo

         /$$$$$$$$ /$$$$$$  /$$$$$$$$ /$$$$$$                                   
        | $$_____//$$__  $$| $$_____//$$__  $$                                  
        | $$     | $$  \ $$| $$     | $$  \ $$                                  
        | $$$$$  | $$  | $$| $$$$$  | $$$$$$$$                                  
        | $$__/  | $$  | $$| $$__/  | $$__  $$                                  
        | $$     | $$  | $$| $$     | $$  | $$                                  
        | $$     |  $$$$$$/| $$     | $$  | $$                                  
        |__/      \______/ |__/     |__/  |__/         
                                    /$$$$$$            /$$       /$$                    
                           /$$__  $$          |__/      | $$                    
                          | $$  \__/  /$$$$$$  /$$  /$$$$$$$  /$$$$$$   /$$$$$$ 
                          |  $$$$$$  /$$__  $$| $$ /$$__  $$ /$$__  $$ /$$__  $$
                           \____  $$| $$  \ $$| $$| $$  | $$| $$$$$$$$| $$  \__/
                           /$$  \ $$| $$  | $$| $$| $$  | $$| $$_____/| $$      
                          |  $$$$$$/| $$$$$$$/| $$|  $$$$$$$|  $$$$$$$| $$      
                           \______/ | $$____/ |__/ \_______/ \_______/|__/      
                                    | $$                                        
                                    | $$                                        
                                    |__/                                        
                            
                                                                            version:1.0

更新日志

  • 2021-4-4 对最新版fofa更新做出对应更新,注意:config.py文件中不再是以cookie来进行保证登录,而是使用AuthorizationAuthorization的值可以登录后F12https://api.fofa.so/v1/search网址请求头中看到

  • 2021-8-28 对 issue5 提出的问题进行修改

    感谢 yq1ng 指出问题与解决方案

  • 2022-2-26 由于众所周知的原因,原fofa.so网址已无法查询,更改爬取网站为fofa.info,配置config文件中的cookie进行使用即可(cookie的位置打开F12查看请求头即可看到)

cookie的位置如下

END

建了一个微信的安全交流群,欢迎添加我微信备注进群,一起来聊天吹水哇,以及一个会发布安全相关内容的公众号,欢迎关注 :)

GIF GIF

fofa-script's People

Contributors

cl0udg0d avatar yang-st avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.