Please let me know if you find any problems with this. It's just a simple menu for common scan types in nmap. Obviously it is required that nmap be installed for the script to work properly. Here's the script!

Code:

#!/bin/bash#A Quick and Dirty Terminal Front End for nmap#Written by DeX 3/20/08#This script is completely free and you are welcome to edit and redistribute it as much as you like.

#The Welcoming clear; echo "Hello "$(whoami)", what would you like me to do? "

#!/bin/bash#A Quick and Dirty Terminal Front End for nmap#Written by DeX 3/20/08 (slightly morphed by jbsnake 3/26/08)#This script is completely free and you are welcome to edit and redistribute it as much as you like.

So I've been playing around with it and the menu loop works, but now the nmap scan results don't print. It jumps back to the menu before they appear. I'm trying to figure out a way to fix it with a sleep command...i'll post it when I fix it. Thanks for the cleaner code though jbsnake!

yeah...i found the problem. the menu module starts with the clear command. So naturally when its called up again after the scan the first thing it does is clear. Just for fun I will try to figure out a way to tell the script not to use the clear command if the menu has already been displayed. The obviously more efficient solution would be a deadArg. Thanks for all your help with this one. I'm really trying to learn and this site has been unbelievably helpful and you and crouse in particular have been both patient and helpful.

okay...so the working script is as follows. Thanks jbsnake for all your help.

Code:

#!/bin/bash#A Quick and Dirty Terminal Front End for nmap#Written by DeX 3/20/08 (slightly morphed by jbsnake 3/26/08) (and slightly re-morphed by DeX and jbsnake 3/27/08)#This script is completely free and you are welcome to edit and redistribute it as much as you like.

made some improvements...really I just added error handling for those who don't have nmap installed.

Code:

#!/bin/bash#A Quick and Dirty Terminal Front End for nmap#Written by DeX 3/20/08 (slightly morphed by jbsnake 3/26/08) (and slightly re-morphed by DeX and jbsnake 3/27/08)#This script is completely free and you are welcome to edit and redistribute it as much as you like.

Who is online

Users browsing this forum: No registered users and 1 guest

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum