Nmap is one of the couple of instruments that each programmer ought to be acquainted in. In spite of the fact that it is not immaculate, it is phenomenal for dynamic observation. In spite of the fact that I dishearten the utilization of Windows for hacking, Nmap has a variant for Windows with a decent GUI called Zenmap. You can download it here.
Nmap Scripting Engine (NSE)
I have done several excercises on utilizing Nmap, however one thing I have not secured is the scripting motor incorporated with it.
The Nmap scripting motor is one of Nmap's most capable and, in the meantime, most adaptable highlights. It permits clients to compose their own particular scripts and offer these scripts with different clients for the reasons of systems administration, observation, and so forth. These scripts can be utilized for:
System disclosure
More refined and precise OS rendition recognition
Defenselessness identification
Secondary passage identification
Defenselessness misuse
In this excercise, we will take a gander at the scripts that have been imparted and are incorporated with Kali (we will compose scripts in a future excercise), and will analyze how to utilize them to do careful recon on our focus, to build the likelihood of achievement, and decrease the potential outcomes of disappointment... then again more regrettable.
Step 1: Fire Up Kali & Open a Terminal
Not surprisingly, we should begin by starting up Kali and opening a terminal. On the off chance that you aren't utilizing Kali, yet rather one of the numerous hacking/security disseminations such Buqtraq's Black Window, Security Onion, BackTrack, or another, no issue Nmap is incorporated with ALL of them. You can't generally have a security/hacking stage without Nmap.
Step 2: Find the Nmap Scripts
From the terminal, we should search for the Nmap scripts. The greater part of the scripts ought to end in .nse (nmap scripting motor), so we can discover the scripts by utilizing the Linux find summon with the special case *.nse. That ought to discover all records finishing in .nse.
kali locate *.nse
our terminal presents several Nmap scripts.
Step 3: Finding Vulnerability Scanning Scripts
Among the most helpful to us are the weakness filtering scripts. These scripts are generally intended to locate a particular defenselessness or sort of powerlessness that we can then return later and abuse. To find those scripts that we can use for defenselessness filtering, we can sort:
kali locate *vuln*.nse
As should be obvious, it gave back a couple weakness filtering scripts. To be specific smb-registration. This script will check the framework to see whether it has any of the surely understood SMB vulnerabilities, for example, MS08-067.
Step 4: Running the Script
The essential punctuation for running these scripts is this:
nmap --script
We should take a stab at running the SMB weakness checking script against an inner LAN host.
kali nmap -script smb-registration nse 192.168.1.121
When we do as such, we can see that it gives back a few lapses and proposes that we include -script-args=unsafe=1 to our charge. I did as such underneath and, for this situation, included -p445 so that the script centers upon simply the SMB port 445.
kali nmap -script-args=unsafe=1 -script smb-registration -p445 192.168.1.121
Presently, when I run the summon, I get a great deal more helpful results.
As should be obvious, it lets me know that MS08-067 is defenseless, so now I know I can utilize that module in Metasploit to endeavor that framework!
Step 5: Getting Help with a Script
With these many scripts, we may require some assistance in figuring out what they do and how they function. For example, in the event that we look down to the "http" segment of the scripts, we will see a script named:
http-vuln-cve2013-0156.nse
To figure out what this script does, we can recover its help record by writing:
nmap -script-help http-vuln-cve2013-0156.nse
When we do as such, we will recover its help document like that beneath.
Note that this script is intended to discover the CVE2013-0156 defenselessness, which is a weakness in Ruby on Rails. Ruby on Rails is extremely famous open-source web outline system that is behind a large number of database driven web applications, so this defenselessness is liable to still be out there in a great many sites. Glad chasing!
The Nmap scripting motor is an effective thing in our stockpile of hacking devices that can be customized to a large number of errands.
Using the Nmap Scripting Engine (NSE) for Reconnaissance - By Paid Hackers
Reviewed by amit
on
00:13
Rating:
Reviewed by amit
on
00:13
Rating:

No comments: