lichao0211 / jsunpack-n

Automatically exported from code.google.com/p/jsunpack-n
GNU General Public License v2.0
0 stars 0 forks source link

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

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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 commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
I'll have this to, anyone have a solution?

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