https://github.com/pedromarquetti/sec-trails
Rust script to get some data from requested URL
https://github.com/pedromarquetti/sec-trails
api-consumer rust
Last synced: about 1 month ago
JSON representation
Rust script to get some data from requested URL
- Host: GitHub
- URL: https://github.com/pedromarquetti/sec-trails
- Owner: pedromarquetti
- Created: 2022-04-01T13:19:31.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2024-05-14T01:11:26.000Z (almost 2 years ago)
- Last Synced: 2024-05-14T02:29:20.693Z (almost 2 years ago)
- Topics: api-consumer, rust
- Language: Rust
- Homepage:
- Size: 166 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](https://securitytrails.com/)'s [API](https://docs.securitytrails.com/docs) 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": ",
"subdomains":[...]
}
```
## How to run
If you have [rustup](https://rustup.rs/) installed, you can simply run
`cargo run -- -k -u `
This will build the program in debug mode, creating a /target dir