18.01.2020 Views

Working with Linux

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

As you can see, there is again the dns port open, the http and https servers, which are used as a web

page for configuring the router, and port 49152, which, at this time, is not specific to any common

protocol-and that's why it is marked as unknown. Nmap does not know for sure that those specific

programs are actually running on the host; all it does is verify what ports are open and write the

default application that usually runs on that port.

If we are not sure what server we need to, connect to or if we want to know how many servers are in

our current network, we can run nmap on the local network address, specifying the network mask as

the destination network. We get this information from ifconfig; if our IP address is 192.168.0.159,

and our network mask is 255.255.255.0, that means the command will look like this:

nmap -sP 192.168.0.0/24

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!