A command-line interface tool for searching FOFA
- Easy-to-use interactive CLI
- Automatic results saving to
output.txt
- Base64 query encoding
- Configurable API key
- Create a
.config
directory in the project root - Create a file named
fofa_apikey
inside.config
directory - Add your FOFA API key to the
.config/fofa_apikey
file
Run the program and enter your FOFA search queries at the prompt:
cargo run
And you will see the terminal showing prompt for your query
🤔 Query> domain="example.com"
- Enter your FOFA search query
- Type
help
to show the help message - Press Enter with empty query or type
exit
to quit
domain="example.com"
header="nginx"
protocol=="http" && country=="US"
You can see the another search query in the fofa sites
All search results are automatically saved to output.txt
in the project directory.
- tokio
- base64
- Other dependencies as specified in
Cargo.toml