Skip to content

InfoTool is a Python-based command-line utility that gathers detailed information about websites, including IP address, geolocation (via ipinfo.io), SSL certificate details, website status, WHOIS data, DNS records, and server information. Output is provided in JSON format for easy parsing and analysis

License

Notifications You must be signed in to change notification settings

project-CY033/Infotool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Install Dependencies:

pip install -r requirements.txt

run tool

python  infotool.py  <target domain>
  • Eg

python  infotool.py  ecajmer.ac.in

Output

     ___            __           _                     _ 
    |_ _|  _ __    / _|   ___   | |_    ___     ___   | |
     | |  | '_ \  | |_   / _ \  | __|  / _ \   / _ \  | |
     | |  | | | | |  _| | (_) | | |_  | (_) | | (_) | | |
    |___| |_| |_| |_|    \___/   \__|  \___/   \___/  |_|
  
                                                     
                 Developed by Musraf  Khan

{
  "timestamp": "2025-02-28T10:00:00.123456",
  "domain": "ecajmer.ac.in",
  "ip_address": "202.66.173.156",
  "location": {
    "city": "Ajmer",
    "region": "Rajasthan",
    "country": "IN",
    "latitude": 26.4521,
    "longitude": 74.6390,
    "isp": "ZNet Technologies Pvt Ltd",
    "organization": "ZNet Technologies Pvt Ltd",
    "postal": "305001",
    "timezone": "Asia/Kolkata"
  },
  "ssl_info": {
    "issuer": {
      "C": "BE",
      "O": "GlobalSign nv-sa",
      "CN": "GlobalSign GCC R6 AlphaSSL CA 2023"
    },
    "subject": {
      "CN": "www.ecajmer.ac.in"
    },
    "serial_number": "38306674367434672270046956658",
    "version": 2,
    "not_before": "20241015103701Z",
    "not_after": "20251116094717Z",
    "has_expired": false
  },
  "website_status": {
    "status_code": 200,
    "is_up": true,
    "response_time_ms": 300.12,
    "buffer_size_bytes": 131072,
    "redirect_chain": [
      "http://ecajmer.ac.in/"
    ],
    "final_url": "https://ecajmer.ac.in/"
  },
  "whois": {
    "registrar": "ERNET India",
    "creation_date": "2008-03-31 10:14:46",
    "expiration_date": "2025-03-31 10:14:46",
    "name_servers": [
      "ns49.securehostdns.com",
      "ns50.securehostdns.com"
    ]
  },
  "dns_records": {
    "A": [
      "202.66.173.156"
    ],
    "MX": [
      "5 alt2.aspmx.l.google.com.",
      "1 aspmx.l.google.com.",
      "10 alt4.aspmx.l.google.com.",
      "10 alt3.aspmx.l.google.com.",
      "5 alt1.aspmx.l.google.com."
    ],
    "NS": [
      "ns49.securehostdns.com.",
      "ns50.securehostdns.com."
    ],
    "TXT": [
      "\"_globalsign-domain-verification=jJtnzSpj39XBqgyYwtjeqfs-hk5kGrjXwzjLoV4NtS\""
    ]
  },
  "server_info": {
    "server": "Microsoft-IIS/8.0",
    "content_type": "text/html; charset=UTF-8",
    "content_length": "145",
    "last_modified": "N/A"
  }
}


Output for google.com1

     ___            __           _                     _ 
    |_ _|  _ __    / _|   ___   | |_    ___     ___   | |
     | |  | '_ \  | |_   / _ \  | __|  / _ \   / _ \  | |
     | |  | | | | |  _| | (_) | | |_  | (_) | | (_) | | |
    |___| |_| |_| |_|    \___/   \__|  \___/   \___/  |_|
  
                                                     
                 Developed by Musraf  Khan

{
  "timestamp": "2025-02-28T10:05:00.123456",
  "domain": "google.com",
  "ip_address": "142.250.193.14",
  "location": {
    "city": "Mountain View",
    "region": "California",
    "country": "US",
    "latitude": 37.4192,
    "longitude": -122.0574,
    "isp": "Google LLC",
    "organization": "Google LLC",
    "postal": "94043",
    "timezone": "America/Los_Angeles"
  },
  "ssl_info": {
    "issuer": {
      "C": "US",
      "O": "Google Trust Services",
      "CN": "WR2"
    },
    "subject": {
      "CN": "*.google.com"
    },
    "serial_number": "214748892262973982484848244067856343037",
    "version": 2,
    "not_before": "20250203083605Z",
    "not_after": "20250428083604Z",
    "has_expired": false
  },
  "website_status": {
    "status_code": 200,
    "is_up": true,
    "response_time_ms": 50.25,
    "buffer_size_bytes": 131072,
    "redirect_chain": [
      "http://google.com/"
    ],
    "final_url": "https://www.google.com/"
  },
  "whois": {
    "registrar": "MarkMonitor Inc.",
    "creation_date": "1997-09-15 04:00:00",
    "expiration_date": "2028-09-14 04:00:00",
    "name_servers": [
      "ns1.google.com",
      "ns2.google.com",
      "ns3.google.com",
      "ns4.google.com"
    ]
  },
  "dns_records": {
    "A": [
      "142.250.193.14"
    ],
    "MX": [
      "10 smtp.google.com."
    ],
    "NS": [
      "ns1.google.com.",
      "ns2.google.com.",
      "ns3.google.com.",
      "ns4.google.com."
    ],
    "TXT": [
      "\"v=spf1 include:_spf.google.com ~all\""
    ]
  },
  "server_info": {
    "server": "gws",
    "content_type": "text/html; charset=ISO-8859-1",
    "content_length": "N/A",
    "last_modified": "N/A"
  }
}

About

InfoTool is a Python-based command-line utility that gathers detailed information about websites, including IP address, geolocation (via ipinfo.io), SSL certificate details, website status, WHOIS data, DNS records, and server information. Output is provided in JSON format for easy parsing and analysis

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages