Giter Site home page Giter Site logo

fofa_search's Introduction

fofa 搜索工具

利用fofa api搜索host、ip、domain、port、title。

用法

usage: fofa_search.py [-h] --email EMAIL --key KEY --keyword KEYWORD
                      [--file FILE] [--output [OUTPUT]]
fofa_search.py: error: the following arguments are required: --email, --key, --keyword

必要参数: --email:fofa 邮箱 --key:fofa key --keyword:fofa 搜索的关键词

可选参数: --file:批量查询的域名或者ip或者其他关键词所在的文件路径 --output:结果保存的csv路径

举例

单个域名或者ip查询:

python fofa_search.py --email [email protected] --key 1234567890qwertyuiopasdfghjjhgf --keyword domain=example.com

image-20210420190452184

单个域名或者ip查询并保存结果:

python fofa_search.py --email [email protected] --key 1234567890qwertyuiopasdfghjjhgf --keyword domain=example.com --output results.csv

image-20210420190638054

多个域名或者IP查询并保存结果:

--file domains.txt保存所有域名或者IP的文件

--keyword $FOFAKEYWORD$(注意转义)为固定值,目的为替换成文件中的值

python fofa_search.py --email [email protected] --key 1234567890qwertyuiopasdfghjjhgf --keyword domain=\$FOFAKEYWORD\$ --output results.csv  --file domains.txt

当然,上面所有举例都是查询域名或者IP,keyword也可以更改为你想要搜索的任何符合fofa的语句,如搜索body等等:

python fofa_search.py --email [email protected] --key 1234567890qwertyuiopasdfghjjhgf --keyword body=\"白客联盟\"

image-20210420192944849

也可以配合--file$FOFAKEYWORD$搜索你想要搜索的任何东西,如:

python fofa_search.py --email [email protected] --key 1234567890qwertyuiopasdfghjjhgf --keyword body=\"\$FOFAKEYWORD\$\" --file 111.txt --output test.csv

111.txt内容为你想要搜索的内容,会自动把固定值$FOFAKEYWORD$进行替换并组合成fofa搜索语法:

image-20210420193526057

fofa_search's People

Contributors

jumbo-wjb 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.