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

TypeError: '_hashlib.HASH' object has no attribute '__getitem__' #26

Open
GoogleCodeExporter opened this issue Apr 1, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1.Download POC http://www36.zippyshare.com/v/25032778/file.html
2.python jsunpackn.py POC.pdf -V
3.

What is the expected output? What do you see instead?


What version of the product are you using? On what operating system?
Linux Mint, everything else works great, only errors on this PDF

Original issue reported on code.google.com by emergenc...@hotmail.co.uk on 19 May 2013 at 2:25

@GoogleCodeExporter
Copy link
Author

Apologies I forgot the error message

Traceback (most recent call last):
  File "jsunpackn.py", line 1406, in <module>
    main()
  File "jsunpackn.py", line 1347, in main
    js = jsunpack(file, ['', mydata, file], options)
  File "jsunpackn.py", line 174, in __init__
    self.main_decoder(mydata, myfile)
  File "jsunpackn.py", line 1018, in main_decoder
    mypdf.parse()
  File "/home/***/Documents/malwarecb/javascript/jsunpack-n/pdf.py", line 518, in parse
    self.encryptKey = self.computeEncryptKey(self.encryptObject, passwd, fileId)
  File "/home/***/Documents/malwarecb/javascript/jsunpack-n/pdf.py", line 812, in computeEncryptKey
    key = md5(key[0:encryptObject['KeyLength']])
TypeError: '_hashlib.HASH' object has no attribute '__getitem__'

Original comment by emergenc...@hotmail.co.uk on 19 May 2013 at 2:27

  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

I'll have this to, anyone have a solution?

Original comment by axelsa...@gmail.com on 1 Feb 2015 at 5:51

  • Added labels: ****
  • Removed labels: ****

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

No branches or pull requests

1 participant