- 5paisa
- AdSense
- Android
- Asphalt 8 : Airborne Mod Apk 4.9.1b Unlimited Money
- Battlegrounds Mobile India
- Blogger
- Blogging
- Bug Hunting
- cloud storage
- Cmd
- Damn vulnerable Web Application
- Demat Account
- Difference between
- dj alok
- dj alok in free firefree
- Doodle Army 2 : Mini Militia 5.2.0 Apk + Mod for android
- DVMA
- E-books
- earn Bitcoins
- Ethical hacking tutorials
- Express vpn
- EXPRESSVPN PRO APK 7.12.1
- EXPRESVPN CRACKED APK
- fire dj alok
- Freefire
- Gaming
- Google drive
- Google llc
- gplink
- Groww App
- Health
- helo
- helo mela
- helo app
- Helo app earn paytm
- Helo app full guide
- Helo app invite and earn
- Helo app redeem proof
- Helo app refer and earn
- Helo app unlimited trick
- Helo app withdraw proof
- Helo Mela Offer: Get Rs.2 Free Paytm Cash + Win Upto Rs.10000 Paytm Cash
- helo refer and earn
- How to
- How to combine two Wifi Connections to get a faster Internet
- how to get dj alok for free
- how to get free dj alok
- how to get free dj alok in free fire
- How to install DVWA on Kali Linux 2020.2
- How To Use Light Speed WebCache on Your website
- ICICI Direct
- IOS
- kali linux
- Live streaming
- makeup
- meesho
- Money Earning
- My poems
- Netflix
- Netflix mod
- Netflix premium
- News
- online courses
- Pentesting
- programming
- PUBG
- Puffin Browser Pro 8.3.0.41446 (Full) Apk + Mod for Android
- Puzzles
- Recharge offers
- Refer and Earn
- Reviews
- SEO
- shell Scripting
- Shortlink
- Spotify Music 8.5.57.1164 APK Mega Mod Cracked Latest Android
- stylish name
- Technology
- Tips&Tricks
- Township Mod Apk 7.5.0 Unlimited Money
- Udemy
- Udemy courses
- Udemy free
- Udemy premium
- VClip app download link
- VClip app full details
- VClip app invitation link
- VClip app referral code
- VClip app referral link
- VClip app review
- Web designing
- What is
- WINDOWS
- Wishes
- Wordpress
- World Cricket Championship 2 2.8.9 Apk + Mod (Coins/Unlocked)
- Youtube tricks
- zoom app
- zoom bombing
- zoom call
- Zoom safety tips
Nmap basic scanning techniques
Nmap basic scanning techniques
What is Nmap
Nmap stands for Network Mapper.NMAP is a free open source network mapping tool.It is written in c,cpp,python and lua.
Nmap is one of most common tools used by security professionals.It offers many features.
Features of NMAP:
- Nmap discovers hosts and services offered by the hosts on a network.Services like ftp,ssh,smtp,mysql and http etc.
- Host Discovery,port Scanning, Operating System detection.
- Nmap can bypass firewalls and find vulnerabilities on a network.
- NMAP provides useful information of your targets, like reverse DNS names, operating system guesses, device types, and MAC addresses.
For more information about NMAP go to the officialwebsite
Now let's explore it's feature practically so fire up your terminal.
Scan a single host
root@seven:~# nmap linuxxcomputing.com Starting Nmap 6.49BETA4 ( https://nmap.org ) at 2015-12-19 06:24 EST Nmap scan report for linuxxcomputing.com (107.180.0.245) Host is up (0.032s latency). rDNS record for 107.180.0.245: ip-107-180-0-245.ip.secureserver.net Not shown: 986 filtered ports PORT STATE SERVICE 21/tcp open ftp 22/tcp open ssh 25/tcp open smtp 80/tcp open http
When scan is complete you see three columns PORT displays the port number.STATE displays it's state it will be either open ,closed or filtered.The above command scans for basic services running on the server.
OPEN POTS
Open ports means it is active and open.It is ready to accept connection.It is most common vulnerability. From the above scan result you can see that i have ftp port open.Hackers exploit this vulnerability by bruteforcing usernames and passwords.
Close PORT
If port state is close then it means that most likely it does not have any services running.
Filtered PORTS
It means that port is protected by the firewall.
Scan Host with an ip address
root@seven:~# nmap 107.180.0.245
Scan multiple hosts
Nmap scans multiple hosts just supply multiple host names for best results scan one host at a time.
root@seven:~# nmap linuxxcomputing.com google.com
Detailed Scan
A detailed scan gives you detailed information about your target.It tries to guess operating system and version. It returns ports and servcies.It also returns traceroute. Traceroute shows all the routers you used to reach there.Check each line of scan carefully you will find plenty of info.
root@seven:~# nmap -A linuxxcomputing.com Nmap scan report for linuxxcomputing.com (107.180.0.245) Host is up (0.0054s latency). rDNS record for 107.180.0.245: ip-107-180-0-245.ip.secureserver.net Not shown: 999 filtered ports PORT STATE SERVICE VERSION 3306/tcp open tcpwrapped | mysql-info: | Protocol: 53 | Version: .5.45-cll-lve | Thread ID: 2344927 | Capabilities flags: 63487 | Some Capabilities: LongPassword, DontAllowDatabaseTableColumn, IgnoreSpaceBeforeParenthesis, SupportsTransactions, ConnectWithDatabase, IgnoreSigpipes, Support41Auth, Speaks41ProtocolOld, FoundRows, Speaks41ProtocolNew, SupportsLoadDataLocal, InteractiveClient, SupportsCompression, LongColumnFlag, ODBCClient | Status: Autocommit Warning: OSScan results may be unreliable because we could not find at least 1 open and 1 closed port RACEROUTE (using port 80/tcp) HOP RTT ADDRESS 1 0.06 ms 192.168.150.2 2 0.11 ms ip-107-180-0-245.ip.secureserver.net (107.180.0.245) OS and Service detection performed. Please report any incorrect results at https://nmap.org/submit/ . Nmap done: 1 IP address (1 host up) scanned in 92.33 seconds
Detect Operating System
You must supply -O option to detect OS of your target.
root@seven:~# nmap -O linuxxcomputing.com
PORT Scanning with nmap
Before scanning ports there is one thing you must know about ports that there are 65535 ports available on your server. When you scan ports by default it only scans 1000 most popular ports.Reason for this is if it scans all the 65535 ports then it will take a lot of time.Only 40 or may be more ports are used.
root@seven:~# nmap -F linuxxcomputing.com Starting Nmap 6.49BETA4 ( https://nmap.org ) at 2015-12-19 08:04 EST Nmap scan report for linuxxcomputing.com (107.180.0.245) Host is up (0.17s latency). rDNS record for 107.180.0.245: ip-107-180-0-245.ip.secureserver.net Not shown: 93 filtered ports PORT STATE SERVICE 22/tcp open ssh 25/tcp open smtp 80/tcp open http 110/tcp open pop3 143/tcp open imap 443/tcp open https 3306/tcp open mysql
The above command uses -F flag for fast scan and returns ports and services offered by the server.
Scan for specific port
If you want to scan a specific port then you must give port number along with -p option.
root@seven:~# nmap -p 21 linuxxcomputing.com Starting Nmap 6.49BETA4 ( https://nmap.org ) at 2015-12-19 08:13 EST Nmap scan report for linuxxcomputing.com (107.180.0.245) Host is up (0.00036s latency). rDNS record for 107.180.0.245: ip-107-180-0-245.ip.secureserver.net PORT STATE SERVICE 21/tcp filtered ftp
Scan ports with specific range
You can specify a certain range to scan ports.Below scan will scan ports between 20-44.
root@seven:~# root@seven:~# nmap -p 20-443 linuxxcomputing.com Starting Nmap 6.49BETA4 ( https://nmap.org ) at 2015-12-19 08:19 EST Nmap scan report for linuxxcomputing.com (107.180.0.245) Host is up (0.036s latency). rDNS record for 107.180.0.245: ip-107-180-0-245.ip.secureserver.net Not shown: 419 filtered ports PORT STATE SERVICE 21/tcp open ftp 22/tcp open ssh 80/tcp open http 110/tcp open pop3 143/tcp open imap
Scan only open ports
With --open option we can scan the open ports.
nmap --open 107.180.0.245
Save scan result to a file
If you are doing a detailed scan then it's always good idea to save it's results into a file.
root@seven:~# nmap -A -oN /root/Desktop/result.txt linuxxcomputing.com
-o is for output file and N for a new text file.You can use X for saving to XML file.
Scan for live hosts
The below command will scan all the 256(Usable 254) hosts and finds the live hosts on your network.
root@seven:~# root@seven:~# nmap 192.168.0.1/24
These are some basic scanning technique that you must know.I hope it helped you share it among your friends thanks.
Also Read
KUMAR JEERU
. I am a Programmer and Pentester. I find and Fix loophole in websites and networks. Connect with me for queries , web developemnt , Scanning and Fixing website Security issues. My company gives special discount for independent entrepreneur , small and Medium size companies. Contact me directly on my face page
Post a Comment
Post a Comment