I wanted to learn Rust, so I decided to work on this simple script... I could easily do this in Python or JS, but challenging yourself is more fun hehe.
This script fetches data from Security Trails's API to get some info about the specified URL (you MUST specify your API Key - it's free yayy).
"current_dns": {
"a": {
"values": [
{
"ip": "<IP Addres of requested URL",
"ip_organization": "ip_organization name"
}
]
}
{
"subdomain_count":<number>,
"subdomains":[...]
}
If you have rustup installed, you can simply run
cargo run -- -k <YOUR KEY> -u <URL>
This will build the program in debug mode, creating a /target dir