Tuesday, August 25, 2015

How to scan IP address on Lubuntu


You can easily scan ip address on windows with gui program like netscan or other program, but what about on linux? in this article i will show you how to scan ip address on lubuntu linux.

There is one powerful program on linux for scanning network/ip address, and it's available on lubuntu for free. All you need to do is run apt-get command, like this:

sudo apt-get install nmap

Yes, nmap is the name of the program, nmap also available as gui, but even the gui will only work if you have the command line installed.

kernelpanic@kernelpanic:~$ sudo apt-get install nmap
[sudo] password for kernelpanic: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  libblas-common libblas3 liblinear1 ndiff python-bs4 python-html5lib
  python-lxml
Suggested packages:
  liblinear-tools liblinear-dev python-genshi python-lxml-dbg python-lxml-doc
The following NEW packages will be installed:
  libblas-common libblas3 liblinear1 ndiff nmap python-bs4 python-html5lib
  python-lxml
0 upgraded, 8 newly installed, 0 to remove and 143 not upgraded.
Need to get 4.815 kB of archives.
After this operation, 22,6 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
How to use nmap
Here's list of nmap commands, there so many combination of commands that we can use with nmap, for more detail about these commands make sure you read the manual.

basic scan with nmap:

nmap -v [ip address or hostname]
nmap -v 127.0.0.1
nmap -v google.com

scan network and detecting the operating system:

nmap -O -v [ip address or hostname]
nmap -O -v 127.0.0.1
nmap -O -v google.com
The -O parameter means Operating system, that's a capital letter of o, so it's not a zero.

scan multiple ip address/host:

nmap -v 192.168.0.103 192.168.0.105 192.168.0.106
nmap -v lubuntuhowto.com google.com yahoo.com

scan a whole subnet:

nmap -v 192.168.0.*
nmap -v 10.120.201.*

scan multiple ip address using the last octet of ip address:

nmap -v 192.168.0.103,104,105,106
nmap -v 10.120.201.1,2,23,14,35,56

scan range of ip address:

nmap -v 192.168.0.100-125
nmap -v 10.120.201.1-35

No comments:

Post a Comment