readme
# nmap_scans
A bug-bounty-focused Nmap automation tool for IP-scope reconnaissance and vulnerability discovery.
---
## Features
* Interactive (single IPs, multiple IPs, or CIDRs)
* Expands CIDRs safely (scans hosts **one by one**)
* Skips dead hosts automatically
* Creates clean, per-IP workspace folders
* Runs **targeted Service-aware NSE execution**
* Optional intrusive NSE escalation
---
Install Nmap if needed:
```bash
sudo apt install nmap
```
---
## Usage
Clone the repository:
```bash
git clone https://github.com/ekomsSavior/nmap_scans.git
cd nmap_scans
```
Run the script:
```bash
sudo python3 nmap_scans.py
```
### Example Input
```
Program / Workspace name: draken-aero
Enter IPs or CIDRs: 194.73.181.160/29
```
Or:
```
Program / Workspace name: immunefi-crypto
Enter IPs or CIDRs: 20.49.171.93,51.11.122.92
```
---
## Scan Phases
1. **Host Discovery**
* `nmap -sn -Pn`
* Skips offline hosts
2. **Fast Port Scan**
* Top 1000 TCP ports
3. **Full TCP Scan**
* All 65,535 TCP ports (rate-limited)
4. **Service & Version Detection**
* Default scripts + versioning
5. **Targeted NSE Scripts**
* HTTP / HTTPS
* SSH
* TLS / SSL
**service-specific** scripts are used.
---
## NSE Scripts Used
### HTTP
* `http-title`
* `http-headers`
* `http-methods`
* `http-enum`
* `http-security-headers`
* `http-trace`
### SSH
* `ssh2-enum-algos`
* `ssh-hostkey`
### TLS / HTTPS
* `ssl-cert`
* `ssl-enum-ciphers`
### Intrusive NSE Scripts
This tool supports optional intrusive NSE scripts **only when explicitly enabled**.
These scans should be used **only**:
- Under a valid Safe Harbor agreement
- Within program scope
- With explicit authorization
The user must manually confirm before these scripts run.
---
## Reporting Workflow
Each IP includes a pre-created `notes.md` file:
```md
# IP: 194.73.181.161
## Open Ports
- 22/tcp SSH
- 443/tcp HTTPS
## Findings
- Weak SSH key exchange algorithms
- Missing HSTS header
## Impact
Potential MITM and downgrade attacks
## Evidence
(attach nmap output / screenshots)
```
---
DISCLAIMER: ONLY USE ON NETWORKS AND SYSTEMS YOU HAVE PERMISSION TO TEST ON!
license
MIT License
Copyright (c) 2026 ek0mssavi0r
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
USE AT YOUR OWN RISK. NO WARRANTY PROVIDED.