Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/mmpx12/nse-country-scan
- Owner: mmpx12
- Created: 2020-04-03T16:34:02.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-06-28T11:46:37.000Z (over 2 years ago)
- Last Synced: 2024-08-05T17:39:28.714Z (4 months ago)
- Topics: mass-scan, nmap, nmap-scan-script, nmap-scripts, nse-script, nsescript
- Language: Lua
- Homepage:
- Size: 1.23 MB
- Stars: 13
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-hacking-lists - mmpx12/nse-country-scan - nmap nse script for scan a whole country (Lua)
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
```