LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Writing a bash script in BackTrack3 for IP Addresses (https://www.linuxquestions.org/questions/linux-newbie-8/writing-a-bash-script-in-backtrack3-for-ip-addresses-774094/)

RexRogan 12-07-2009 07:59 PM

Writing a bash script in BackTrack3 for IP Addresses
 
I was assigned to write a bash script in backtrack which will reveal the active IP Addresses on a /30 network.

Normally I would not have a problem with this, but I just dont understand because would you not need the entire prefix (ex: 192.168.1) in order to ping sweep for a certain IP range?

basically what I'm asking is...

How do I nmap a list of IP's for a "/30 network" as that's all that we're given.

ghostdog74 12-07-2009 08:55 PM

Quote:

Originally Posted by RexRogan (Post 3783381)
How do I nmap a list of IP's for a "/30 network" as that's all that we're given.

look at the man page. the answer is there.

RexRogan 12-07-2009 09:01 PM

Sorry, you'll have to forgive me. I'm brand new to both LQ and Linux in general.

Did you mean main page? I went there and couldn't find any information in the FAQ. And I did a search for "30 network" and couldnt find any relevant information.

Do you have anything else that could assist?

ghostdog74 12-07-2009 09:26 PM

no, the man page. type man nmap on the command line.


All times are GMT -5. The time now is 08:25 AM.