Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ASCIIHexDecode: convert binary input string to ascii string. #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sklaw
Copy link

@sklaw sklaw commented Apr 27, 2021

Otherwise, 'not in' and 'rstrip' would fail.

Otherwise, 'not in' and 'rstrip' would fail.
@sklaw
Copy link
Author

sklaw commented Apr 27, 2021

This patch fixes the following error:

python3.7 pdf-parser.py /home/test/.msf4/local/msf.pdf --object 6 --filter --overridingfilters="/FlateDecode /ASCIIHexDecode" --raw
This program has not been tested with this version of Python (3.7.10)
Should you encounter problems, please use Python version 3.7.5
obj 6 0
 Type: 
 Referencing: 
 Contains stream

  <<
    /Length 4930
    /Filter [/#46lat#65#44ecod#65/AS#43#49#49#48#65#78Dec#6f#64#65]
  >>

 ASCIIHexDecode decompress failed

where msf.pdf is generated by metasploit exploit/windows/fileformat/adobe_utilprintf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant