Skip to content

monish4030/ip_analyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ” URL IP Analyzer

Python Platform License Ethics

A powerful Python-based cybersecurity recon tool for Kali Linux

Made with ❀️ by Monish Paramasivam


πŸ“Œ What It Does

URL IP Analyzer takes any URL and performs a full recon pipeline:

  1. 🌐 Parses the URL β€” extracts scheme, root domain, and subdomain
  2. πŸ”Ž Resolves the domain to its IP address via DNS
  3. πŸ—ΊοΈ Fetches IP intelligence from ipinfo.io β€” location, ISP, ASN
  4. πŸ›‘οΈ Optionally runs an nmap scan β€” detects open ports and services
  5. πŸ“Š Scores risk level β€” Low / Medium / High based on exposed ports
  6. πŸ“ Explains findings in plain English β€” what each port means and security insights
  7. πŸ’Ύ Saves results to .json and .txt report files

πŸ–₯️ Preview

β‘  TARGET INFO
  Original URL  : https://sub.example.com
  Full Domain   : sub.example.com
  Root Domain   : example.com
  Subdomain     : sub

β‘‘ IP DETAILS
  IP Address    : 93.184.216.34
  Country       : US
  City          : Norwell
  ISP / Org     : Edgecast Inc.
  ASN           : AS15133

β‘’ SCAN RESULTS
  Risk Level    : MEDIUM
  β”Œβ”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
  β”‚ Port β”‚ Protocol β”‚ State β”‚ Service β”‚ Version          β”‚
  β”œβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
  β”‚   80 β”‚ tcp      β”‚ open  β”‚ http    β”‚ Apache 2.4.41    β”‚
  β”‚  443 β”‚ tcp      β”‚ open  β”‚ https   β”‚ OpenSSL 1.1.1    β”‚
  β”‚   22 β”‚ tcp      β”‚ open  β”‚ ssh     β”‚ OpenSSH 8.2p1    β”‚
  β””β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

β‘£ EXPLANATION
  Plain-English breakdown of findings + security insights

βš™οΈ Installation

1. Clone the repository

git clone https://github.com/YOUR_USERNAME/url-ip-analyzer.git
cd url-ip-analyzer

2. Install Python dependencies

pip install requests rich

3. Install nmap (optional β€” for port scanning)

sudo apt install nmap

Python 3.8 or higher is required.


πŸš€ Usage

Interactive mode (recommended for beginners)

python3 url_ip_analyzer.py

Pass a URL directly

python3 url_ip_analyzer.py --url https://example.com

With nmap scan

python3 url_ip_analyzer.py --url https://example.com --nmap

Full nmap scan (top 1000 ports) + save results

python3 url_ip_analyzer.py --url https://example.com --nmap --full --save

🏳️ CLI Flags

Flag Short Description
--url -u Target URL to analyze
--nmap -n Run an nmap scan on the resolved IP
--full -f Full scan (top 1000 ports) instead of fast mode
--save -s Save results to .json and .txt files

πŸ—‚οΈ Output Files

When --save is used (or you choose yes when prompted), two files are created:

File Format Contents
url_ip_report_<domain>_<timestamp>.txt Plain text Human-readable full report
url_ip_report_<domain>_<timestamp>.json JSON Machine-readable structured data

πŸ” Risk Levels Explained

Level Meaning
🟒 LOW No critical ports exposed
🟑 MEDIUM Some notable ports open (SSH, HTTP, etc.)
πŸ”΄ HIGH Critical ports exposed β€” RDP, Telnet, MySQL, Redis, MongoDB, FTP, SMB

πŸ“¦ Dependencies

Package Purpose
requests Fetch IP intelligence from ipinfo.io
rich Colored CLI output, tables, panels
socket DNS resolution (built-in)
subprocess Run nmap (built-in)
nmap (system) Port scanning β€” install separately

🧠 How It Works

URL Input
   β”‚
   β–Ό
Parse URL ──► Extract domain + subdomain
   β”‚
   β–Ό
DNS Resolution ──► socket.gethostbyname()
   β”‚
   β–Ό
IP Intelligence ──► ipinfo.io API (free)
   β”‚
   β–Ό
nmap Scan ──► subprocess β†’ parse output
   β”‚
   β–Ό
Risk Scoring ──► Based on open port analysis
   β”‚
   β–Ό
Explanation ──► Plain-English security insights
   β”‚
   β–Ό
Display + Save Report

⚠️ Disclaimer

This tool is intended for ethical cybersecurity testing and educational purposes only.

  • βœ… Only scan systems you own or have explicit written permission to test.
  • ❌ Scanning systems without authorisation may be illegal in your country.
  • The author takes no responsibility for misuse of this tool.

πŸ‘€ Author

Monish Paramasivam


πŸ“„ License

License

⭐ If you found this useful, please star the repo! ⭐

About

Open-source OSINT & recon tool built in Python for Kali Linux. Performs URL parsing, DNS resolution, IP geolocation, ASN lookup, nmap port scanning, and automated security analysis. Made by Monish Paramasivam.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages