Home » Penetration Testing » Hacking with Nmap and Metasploit
Hacking with Nmap and Metasploit
Today I am writing a tutorial on hacking with Nmap with Metasploit.
First d/l Metasploit 3.3 from the official website,Link:
http://www.metasploit.com/
Let all that install, and towards the end of the installation it will ask if you would like Nmap installed also, choose yes. Once you have that installed the Metasploit screen will open up as shown below...
![[Image: 1-2.jpg]](http://i205.photobucket.com/albums/bb181/1-VIP-/1-2.jpg)
Now type db_create
Once you have typed that type nmap
This loads nmap, as shown below....
![[Image: 11.gif]](http://i205.photobucket.com/albums/bb181/1-VIP-/11.gif)
You need to configure your scan now, I usually do a simple -sT -sV scan which will tell us the open ports and services running on the victims computer, Now type nmap -sT -sV xxx.xxx.xxx.x (X's being victims Ip number), Demonstrated below.
![[Image: 11-1.gif]](http://i205.photobucket.com/albums/bb181/1-VIP-/11-1.gif)
Now give it 5 minutes to complete the scan,Once that is complete if your lucky you should get a response like this...
![[Image: 12.gif]](http://i205.photobucket.com/albums/bb181/1-VIP-/12.gif)
This is basically a list of the open ports and services running on the target machine, Now the handy feature of the metasploit 3.3 framework is the autopwn feature, this basically searches and runs all matching exploits in the Metasploit database against the target machine and if successful will create a shell or similar privilege for the attacker.
Now once you have the nmap results delivered back to you showing the open ports and services type db_autopwn -p -t -e , From this point you will either have access to the victims computer through a successfully launched exploit or you will get a response saying the machine wasn't vulnerable to any of the exploits in the Metasploit database. Unfortunately on this particular machine I found it wasn't vulnerable as the image below proves.Good luck.
Tags: Hacking Tools, Hacking Tutorials, Metasploit, Penetration Testing

This post was written by:
Adnan Anjum - who has written 1000+ posts on hackguide4u.
Adnan Anjum is a professional Geek. Follow him on Twitter or email him
Share your views...
6 Respones to "Hacking with Nmap and Metasploit"
wow nice yar only 4 these things i was join hacing foram
thankx keep it up
June 18, 2011 at 2:03 AM
it wont work
June 19, 2011 at 6:57 AM
it doesn't work on my computer
June 20, 2011 at 3:16 AM
When i open the site..!! To download metasploit..! There are Three different types..!! Which I have to download..???
June 28, 2011 at 7:15 AM
Please do not see the screenshots... enlarge stupid.
June 29, 2011 at 4:12 AM
If u cant even follow certain instructions. give up now because u have no hope. The instructions are clear and works perfectly.
July 4, 2011 at 10:27 PM
Post a Comment