epsylon / ufonet

UFONet - Denial of Service Toolkit
https://ufonet.03c8.net
2.16k stars 603 forks source link

Switched from python3-crypto to python3-pycryptodome #456

Closed fvcr closed 10 months ago

fvcr commented 10 months ago

see: https://bugs.debian.org/979318

epsylon commented 10 months ago

@fvcr First, thanks for the contribution.

Pulling this as proposed generates execution errors, since the Cryptodome lib does not use AES in the same way as Crypto.

 File "/usr/lib/python3/dist-packages/Cryptodome/Cipher/_mode_cfb.py", line 174, in encrypt
    c_uint8_ptr(plaintext),
  File "/usr/lib/python3/dist-packages/Cryptodome/Util/_raw_api.py", line 144, in c_uint8_ptr
    raise TypeError("Object type %s cannot be passed to C code" % type(data))
TypeError: Object type <class 'str'> cannot be passed to C code

It is necessary to make more changes to be able to approve your request on a stable way...

epsylon commented 10 months ago

You can reproduce that error by executing: python3 ufonet --crypter

fvcr commented 10 months ago

Hello!

I had only run python3 ufonet --gui.

I ran python3 ufonet --crypter and got the same error, you're right, thanks!