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
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
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
nmap -v google.com

scan network and detecting the operating system:

nmap -O -v [ip address or hostname]
nmap -O -v
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
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,104,105,106
nmap -v,2,23,14,35,56

scan range of ip address:

nmap -v
nmap -v

No comments:

Post a Comment