Skip to content

pedromarquetti/sec-trails

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to my URL-Info-getter script

Why?

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.

How it works?

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).

What this program currently do?

Prints the current_dns 'A record' ip and ip_organization field (at index 0) that the API sent:

"current_dns": {
    "a": {
        "values": [
        {
            "ip": "<IP Addres of requested URL",
            "ip_organization": "ip_organization name"
        }
    ]
}

Gets 5 firsts subdomains of specified URL

{
    "subdomain_count":<number>,
    "subdomains":[...]
}

How to run

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

About

Rust script to get some data from requested URL

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages