Skip to content

IV is not meaningful for the ECB mode #6

@Haoke98

Description

@Haoke98

There are 1 targets
Traceback (most recent call last):
File "/Users/shadikesadamu/Projects/CVE/CVE-2017-7921/CVE-2017-7921-EXP/CVE-2017-7921-EXP.py", line 150, in
fire.Fire(CVE_2017_7921_EXP)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/fire/core.py", line 138, in Fire
component_trace = _Fire(component, args, parsed_flag_args, context, name)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/fire/core.py", line 466, in _Fire
component, remaining_args = _CallAndUpdateTrace(
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/fire/core.py", line 675, in _CallAndUpdateTrace
component = fn(*varargs, **kwargs)
File "/Users/shadikesadamu/Projects/CVE/CVE-2017-7921/CVE-2017-7921-EXP/CVE-2017-7921-EXP.py", line 145, in run
exploit(self.targetList)
File "/Users/shadikesadamu/Projects/CVE/CVE-2017-7921/CVE-2017-7921-EXP/CVE-2017-7921-EXP.py", line 79, in exploit
with BytesIO(decrypt(r.content)) as f:
File "/Users/shadikesadamu/Projects/CVE/CVE-2017-7921/CVE-2017-7921-EXP/CVE-2017-7921-EXP.py", line 27, in decrypt
cipher = AES.new(key, AES.MODE_ECB, iv)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/Crypto/Cipher/AES.py", line 232, in new
return _create_cipher(sys.modules[name], key, mode, *args, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/Crypto/Cipher/init.py", line 77, in _create_cipher
raise TypeError("IV is not meaningful for the ECB mode")
TypeError: IV is not meaningful for the ECB mode

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions