Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mmpx12/nse-country-scan

nmap nse script for scan a whole country
https://github.com/mmpx12/nse-country-scan

mass-scan nmap nmap-scan-script nmap-scripts nse-script nsescript

Last synced: 21 days ago
JSON representation

nmap nse script for scan a whole country

Awesome Lists containing this project

README

        

# NSE country scan

Scan a whole country with nmap

## Installation

```bash
git clone https://github.com/mmpx12/nse-country-scan.git
cd nse-country-scan
sudo make
```

## usage

If no argument is pass the script while choose a random country and scan all the ips
Argument are:

- country: "Code of the country in uppercase">
- max_ip: "Number of ip range to scan"
- newtargets "Without nmap can't add target to queue"

```bash
nmap --script country_scan --script-args 'country=LU, max_ip=2'
# This whill scan 2 range of ip and not 2 ip only
# You can see which one with `HEAD -2 /usr/share/nmap/nselib/country/list/LU`
```

Other ip, script or nmap argument can be pass like:

```bash
nmap -sn --script country_scan --script-args 'country=LU, max_ip=2, newtargets' 1.1.1.1
```

## Delete

For deleting this script run:

```bash
cd nse-country-scan
sudo make clean
```