Ok, this is probably not a good idea, but I wrote a bash shell script to help people who aren't 100% up-to-scratch on nmap utilise its (almost) full power. I am aware that nmap has a gui frontend in nmapfe, and its command line interface is pretty good too (I use it from the command line all the time), but for those who don't easily remember all the -sS -P0 -O -T.... stuff, this might be useful:
I also attached it in a gzipped file.Code:#!/bin/bash # # nmap-menu # # Andrew J. Bennieston # http://www.firestormuk.host.sk clear echo "NMAP Menu:" echo "[1] Basic Scan (Non-Root)" echo "[2] SYN Scan (Root)" echo "[3] Advanced Scan Options" echo "[4] Ping Scan" read usertype case $usertype in '1' ) echo "Target IP:" read ip nmap -sT -P0 $ip ;; '2' ) echo "Target IP:" read ip nmap -sS -P0 $ip ;; '3' ) echo "Scan Type:" echo " sT - TCP Connect" echo " sS - TCP SYN" echo " sU - UDP" echo " sF - Stealth FIN" echo " sX - Xmas Tree Scan" echo " sN - Null Scan" read scantype echo "OS Fingerprinting: [Y/N]" read fp case $fp in 'Y' | 'y' ) o=-O ;; 'N' | 'n' ) o= ;; esac echo "Ping: [Y/N]" read png case $png in 'Y' | 'y' ) p= ;; 'N' | 'n' ) p=-P0 ;; esac echo "Port Range:" echo " A - All [1-65535]" echo " D - Default" echo " R - Reserved Only [1-1024]" read pr case $pr in 'A' | 'a' ) range="-p 1-65535" ;; 'D' | 'd' ) range= ;; 'R' | 'r' ) range="-p 1-1024" ;; esac echo "Use Decoys: [Y/N]" read dcy case $dcy in 'Y' | 'y' ) echo "List Decoys separated by commas:" read $decoy dy=-D$decoy ;; 'N' | 'n' ) dy= ;; esac echo "Timing:" echo " 0 - Paranoid" echo " 1 - Sneaky" echo " 2 - Polite" echo " 3 - Normal" echo " 4 - Aggressive" echo " 5 - Insane" read timing echo "Target IP:" read ip echo "Verbose: [Y/N]" read verb case $verb in 'Y' | 'y' ) v="-v" ;; 'N' | 'n' ) v= ;; esac nmap -$scantype $p $o $dy -T $timing $range $v $ip ;; '4' ) echo "Target Range:" read ip echo "Verbose: [Y/N]" read verb case $verb in 'Y' | 'y' ) v="-v" ;; 'N' | 'n' ) v= ;; esac nmap -sP $v $ip ;; * ) echo "Error: Choose an option between 1 and 4." ;; esac exit




Reply With Quote