CVE-2017-7921-EXP icon indicating copy to clipboard operation
CVE-2017-7921-EXP copied to clipboard

IV is not meaningful for the ECB mode

Open Haoke98 opened this issue 1 year ago • 0 comments

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

Haoke98 avatar Jul 27 '22 09:07 Haoke98