Giter VIP home page Giter VIP logo

msoffice_decrypt's People

Contributors

securitykitten avatar unixfreak0037 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

msoffice_decrypt's Issues

UnsupportedAlgorithm: unsupported hash algorithm SHA1

When running against the following document malware.zip an error is produced. The password is .php

Traceback (most recent call last):
  File "msoffice_decrypt/msoffice_decrypt.py", line 620, in <module>
    _main()
  File "msoffice_decrypt/msoffice_decrypt.py", line 591, in _main
    if decryptor.decrypt('VelvetSweatshop'):
  File "msoffice_decrypt/msoffice_decrypt.py", line 275, in decrypt
    key = self.get_encryption_key(password)
  File "msoffice_decrypt/msoffice_decrypt.py", line 298, in get_encryption_key
    return self.get_agile_aes_cbc_encryption_key(password)
  File "msoffice_decrypt/msoffice_decrypt.py", line 311, in get_agile_aes_cbc_encryption_key
    self.encryption_info.password_hash_algorithm)
  File "msoffice_decrypt/msoffice_decrypt.py", line 92, in hashCalc
    raise UnsupportedAlgorithm("unsupported hash algorithm {}".format(algorithm))
__main__.UnsupportedAlgorithm: unsupported hash algorithm SHA1

TypeError: 'int' and 'str'

Traceback (most recent call last):
  File "../gitlab/software/msoffice_decrypt/msoffice_decrypt.py", line 589, in <module>
    if decryptor.decrypt('VelvetSweatshop'):
  File "../gitlab/software/msoffice_decrypt/msoffice_decrypt.py", line 275, in decrypt
    key = self.get_encryption_key(password)
  File "../gitlab/software/msoffice_decrypt/msoffice_decrypt.py", line 290, in get_encryption_key
    return self.get_aes_128_encryption_key(password)
  File "../gitlab/software/msoffice_decrypt/msoffice_decrypt.py", line 394, in get_aes_128_encryption_key
    X1[index] = X1[index] ^ hash_final[index]
TypeError: unsupported operand type(s) for ^: 'int' and 'str'

Will send file that generates this bug.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.