Difference between revisions of "Nmap"
From Steak Wiki
Jump to navigationJump to searchLine 1: | Line 1: | ||
<small> | <small> | ||
===Ping Lan Address Range and Report who is Active=== | ===Ping Lan Address Range and Report who is Active=== | ||
− | $ nmap -sP 192.168.1. | + | $ nmap -sP 192.168.1.0/24 |
===Get DHCP Servers in LAN=== | ===Get DHCP Servers in LAN=== | ||
$ sudo nmap --script broadcast-dhcp-discover -e eth0 | $ sudo nmap --script broadcast-dhcp-discover -e eth0 | ||
+ | |||
+ | ===Basic searches=== | ||
+ | The second thing to remember with nmap and searches. -T is tcp. -U is udp. -P is a ping (check | ||
+ | that host is alive) test. | ||
+ | So remembering these three simple switches, gives you the following commands | ||
+ | $ nmap -sP 192.168.1.0/24 | ||
+ | $ nmap -sT -p1-1000 192.168.1.0/24 | ||
+ | $ nmap -sU -p1-1000 192.168.1.0/24 | ||
</small> | </small> |
Revision as of 05:46, 16 April 2023
Ping Lan Address Range and Report who is Active
$ nmap -sP 192.168.1.0/24
Get DHCP Servers in LAN
$ sudo nmap --script broadcast-dhcp-discover -e eth0
Basic searches
The second thing to remember with nmap and searches. -T is tcp. -U is udp. -P is a ping (check that host is alive) test. So remembering these three simple switches, gives you the following commands
$ nmap -sP 192.168.1.0/24 $ nmap -sT -p1-1000 192.168.1.0/24 $ nmap -sU -p1-1000 192.168.1.0/24