Goal of this script is to automatize the namp commands I always use.
Here are the nmap commands I do:
nmap IPnmap -p PORT1,PORT2,... -A -oN nmap.txt IP
nmaper IP [OPTIONS]
ALL can be added after the IP to add -p- to the first nmap command
- Copy nmaper.py in /opt and make it executable
sudo cp nmaper.py /opt
sudo chmod +x /opt/nmaper.py- Create a nmaper file in /usr/local/bin with the following content:
#!/bin/bash
/opt/nmaper.py "$@"- Make nmaper file executable
sudo chmod +x /usr/local/bin/nmaper