M Motorcity New Member Joined Feb 3, 2020 Messages 9 Reaction score 0 Credits 0 Feb 9, 2020 #1 I'm in a linux class and need some assistance with nmap. I need a nmap command that will scan the entire network, saves the output to the desktop, provides all ip addresses and completes a ping sweep only.
I'm in a linux class and need some assistance with nmap. I need a nmap command that will scan the entire network, saves the output to the desktop, provides all ip addresses and completes a ping sweep only.
Rob Administrator Staff member Joined Oct 27, 2011 Messages 1,222 Reaction score 2,270 Credits 3,574 Feb 9, 2020 #2 Generally, since it's for class, we won't just hand over an answer. What have you come up with so far? We can work with you to get it.
Generally, since it's for class, we won't just hand over an answer. What have you come up with so far? We can work with you to get it.
OP M Motorcity New Member Joined Feb 3, 2020 Messages 9 Reaction score 0 Credits 0 Feb 9, 2020 #3 I'm leaning toward nmap -sn -Pn -On Desktop\filename.txt
OP M Motorcity New Member Joined Feb 3, 2020 Messages 9 Reaction score 0 Credits 0 Feb 9, 2020 #4 nmap -sn -Pn -On Desktop\filename.txt then ipaddress/CIDR subnet
Rob Administrator Staff member Joined Oct 27, 2011 Messages 1,222 Reaction score 2,270 Credits 3,574 Feb 9, 2020 #5 You're close .. i'm not sure if that order would work. Try: nmap -sn 192.168.2.0/24 -oN scan.txt (obviously replace the ip/cidr w/ your own) For output, the -oN outputs in normal text format. You can also do xml or other formats as well: https://nmap.org/book/man-output.html
You're close .. i'm not sure if that order would work. Try: nmap -sn 192.168.2.0/24 -oN scan.txt (obviously replace the ip/cidr w/ your own) For output, the -oN outputs in normal text format. You can also do xml or other formats as well: https://nmap.org/book/man-output.html
OP M Motorcity New Member Joined Feb 3, 2020 Messages 9 Reaction score 0 Credits 0 Feb 9, 2020 #6 will the -sn give me the port sweep only option?
Rob Administrator Staff member Joined Oct 27, 2011 Messages 1,222 Reaction score 2,270 Credits 3,574 Feb 9, 2020 #7 The -sn specifies no port scan, just a ping sweep. More info: https://linuxhint.com/nmap_ping_sweep/
OP M Motorcity New Member Joined Feb 3, 2020 Messages 9 Reaction score 0 Credits 0 Feb 9, 2020 #8 What does the -sL do?
Rob Administrator Staff member Joined Oct 27, 2011 Messages 1,222 Reaction score 2,270 Credits 3,574 Feb 9, 2020 #9 You should look at the nmap man page - it'll give you all of its options man nmap from your terminal.. Also, tons of info here: https://nmap.org/book/man.html
You should look at the nmap man page - it'll give you all of its options man nmap from your terminal.. Also, tons of info here: https://nmap.org/book/man.html
OP M Motorcity New Member Joined Feb 3, 2020 Messages 9 Reaction score 0 Credits 0 Feb 10, 2020 #10 have a have another I am looking for this one to get provide all Mac Addresses, and all open ports. I've tried nmap -sP 192.168.0.1/24 -p but it won't let me use -p because I -sn disables port scanning. Last edited: Feb 10, 2020
have a have another I am looking for this one to get provide all Mac Addresses, and all open ports. I've tried nmap -sP 192.168.0.1/24 -p but it won't let me use -p because I -sn disables port scanning.