rangertaha / urlinsane

A typosquatting tool used to perform or detect brandjacking, URL hijacking, fraud, phishing attacks, corporate espionage, and threat intelligence.

Home Page:https://rangertaha.github.io/urlinsane/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Return data values as either a string or a nested object of more information.

talhachi opened this issue · comments

Return data values as either a string or a nested object of more information.

Currently, this is what the results look like. The purpose is that it's originally designed for a terminal output of rows and columns. The nested object values is designed for applications consuming the results.

{
    "original": {
        "domain": "google",
        "suffix": "com"
    },
    "variant": {
        "domain": "google",
        "suffix": "associates"
    },
    "typo": {
        "code": "WTLD",
        "name": "Wrong TLD",
        "description": "Wrong Top Level Domain"
    },
    "live": true,
    "data": {
        "CNAME": "",
        "GEO": "",
        "IDNA": "google.associates",
        "IPv4": "92.242.140.21",
        "IPv6": "",
        "Live": "",
        "MX": "",
        "NS": "",
        "Redirect": "google.associates",
        "SIM": "",
        "Suffix": "",
        "TXT": "",
        "Type": "",
        "Typo": ""
    }
}```

Nested: 

```{
...
    "data": {
        "CNAME": "",
        "GEO": {"country": "United States", "City": "Boston", "lat":11,11111, "lon":11,11111},
    }
}```

The data returned has a meta field with nested objects, however, I need to fix the json by adding struct with json tags