This script will create a network-map.log named file in tmp/ directory and store all the network map results there. the default options are set to -sP within the script but it's very easy to change them to your desrived options but editing the nmap_script.sh file in declaring_variables function on line # 30. This is a Nmap Script that contains a combination of different Linux based utilities in bash terminal and how can we use them to format our output to make things look clean. I used the following utilities:
- grep
- awk
- cut
- nmap
chmod +x nmap_script.sh
./nmap_script.sh
Make sure you change the NETWORK_INTERFACES="wlan0" in declaring_variables function on line # 26 in nmap_script.sh file to your own network interface that you are using such as eth0 or etc.
- Ubuntu 12.04 and above.
- Debian 5.0 and above.
- Kali Linux 2.0 and above.
- Backtrack R5
- Parrot OS 3.10.1 -- December 15th 2017