Coder Social home page Coder Social logo

fofa's Introduction

fofa

一款 Go 语言编写的小巧、简洁、快速采集 fofa 数据导出到 Excel 表单的小工具。

  • Goroutine + retryablehttp

image-20211204193949354

image-20211204194044392

Build

git clone https://github.com/inspiringz/fofa
cd fofa
go build -ldflags "-s -w" -trimpath 

Usage


      ░░░░▐▐░░░  dMMMMMP .aMMMb  dMMMMMP .aMMMb
 ▐  ░░░░░▄██▄▄  dMP     dMP"dMP dMP     dMP"dMP
  ▀▀██████▀░░  dMMMP   dMP dMP dMMMP   dMMMMMP
  ░░▐▐░░▐▐░░  dMP     dMP.aMP dMP     dMP dMP
 ▒▒▒▐▐▒▒▐▐▒  dMP      VMMMP" dMP     dMP dMP
 https://github.com/inspiringz/fofa

Usage:
  ./main -m fofa_email -k fofa_key -q 'header="elastic"' -s 10000 -o data.xlsx
  ./main -m fofa_email -k fofa_key -f query_rules_file.txt -s 10000 -o data.xlsx

Options:
  -h, --help
  -m, --mail MAIL            fofa email account (default: )
  -k, --key KEY              fofa api key (default: )
  -q, --query QUERY          query string (default: '')
  -f, --file FILE            batch query rules file (default: '')
  -s, --size SIZE            export data volume (default: 10000)
  -o, --output OUTPUT        output filename / absolute path (default: data.xlsx)
  -g, --grammar              fofa search grammar help table
  -t, --tip TIP              fofa search keyword tip droplist
  -ih, --iconhash ICONHASH   calculate url specified favicon icon_hash

fofa_email / fofa_key 优先从命令行参数-m/-k指定的值中获取,若无则尝试从环境变量FOFA_EMAIL/FOFA_KEY中获取,最后尝试从 option/parsecli.go 中定义的DefaultEmail/DefaultAPIKey中获取。

  • fofa search tip

image-20210730140630127

  • favicon icon hash

image-20210730140842568

  • fofa search grammar

image-20210730140930181

fofa's People

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.