A Python-based Network Reconnaissance Tool that performs host discovery, port scanning, and service/banner detection --- inspired by real-world penetration testing workflows.
This project demonstrates how cybersecurity professionals enumerate network targets during the reconnaissance phase.
⚠️ Built for educational and ethical security testing only.
✅ Host Discovery (Check if target is alive)
✅ TCP Port Scanning (1--1024 ports)
✅ Service / Banner Detection
✅ Automated Recon Output
✅ Beginner-Friendly Security Automation
This project helps understand:
- Network Reconnaissance Techniques
- Port Scanning Fundamentals
- Service Enumeration
- Penetration Testing Workflow
- Python Automation for Security
network_scanner/
│
├── scanner.py # Main execution file
├── host_discovery.py # Host availability check
├── port_scanner.py # Port scanning logic
├── banner_grabber.py # Service detection
└── requirements.txt
git clone https://github.com/HacktiveMindset/Mini-Network-Scanner-Mini-Nmap-.git
cd Mini-Network-Scanner-Mini-Nmap-pip install -r requirements.txtRun the scanner:
python scanner.pyEnter target:
scanme.nmap.org
=== Mini Network Scanner ===
[+] Checking if host is alive...
[ALIVE] Host reachable
[+] Scanning ports...
[OPEN] Port 22
[OPEN] Port 80
===== SERVICE DETECTION =====
Port 22: OpenSSH
Port 80: Apache HTTP Server
===== SCAN COMPLETE =====
Checks DNS resolution to confirm the host is reachable.
Uses Python sockets to test TCP connections across common ports.
Attempts to retrieve service banners to identify running services.
- Network Enumeration
- Attack Surface Discovery
- Service Fingerprinting
- Reconnaissance Phase (Red Team)
Use this tool only for:
✅ Personal lab environments
✅ Authorized penetration testing
✅ Learning cybersecurity
❌ Do NOT scan networks or systems without permission.
The author is not responsible for misuse.
- Python 3
- Socket Programming
- Basic Networking Concepts
- Multithreaded scanning
- Faster async scanning
- CIDR network scanning
- Output report export (TXT/HTML)
- OS fingerprinting logic
Piyush Mujmule
Cybersecurity Enthusiast | Aspiring DevSecOps Engineer
Focused on Ethical Hacking, Automation & Security Research.
If you found this project useful:
⭐ Star the repository
🍴 Fork and improve it
🛡️ Practice ethical hacking responsibly
Part of a hands-on cybersecurity learning journey focused on real-world penetration testing methodologies.