Find hosts for tcpdump to use!

in #technology6 years ago

In the last little tutorial you might‘ve asked yourself where we got the IP-Addresses from when we typed the arpspoof command:

arpsp.png

First you find out what your IP-Address is by typing:

ifconfig

or

ip a

which will give you the following output

ifcnfg.png

Nmap:

Nmap is a so called portscanner which means you can use this tool to see which ports are open on a given server or on a computer in your network. Nmap is in the reposetories of most Linux distributions and can be installed via your packet manager.
It can also be used to evaluate the machines on a local area network which we are going to do now.

We‘ll now run the following command.

nmapsl.png

where nmap is the name of the program we‘re using

-sL: is the list-scan which evaluates all given hosts on a network

192.168.178.46/24: is our IP-Address and the bits(the /24) for the given subnet. If you don‘t know what a subnet is, you can read about it here.

The problem with this scan is that we now know about all the hosts in the network but not which hosts are actually up.

Therefore we‘ll use another option to scan the network.

nmapsp.png

You can see that the command is almost the same as before instead of the -sP we are using, which is the Ping-Scan. This type of scan pings all given hosts to see which one is up and responding.

So that‘s it for today. If you want to know more about Nmap and its options you can always type

nmap -h

which will give you all the available options for scanning. Maybe we‘ll have a deeper look at it in the future because there are a lot more scenarios of how to utilize nmap.

Stay safe as you sail the ocean of information out there!!

Sort:  

@toalsty you were flagged by a worthless gang of trolls, so, I gave you an upvote to counteract it! Enjoy!!

Coin Marketplace

STEEM 0.30
TRX 0.12
JST 0.034
BTC 64136.70
ETH 3128.20
USDT 1.00
SBD 3.94