tarcisio-marinho / GonnaCry

A Linux Ransomware
https://medium.com/@tarcisioma/ransomware-encryption-techniques-696531d07bb9
GNU General Public License v2.0
691 stars 402 forks source link

Cannot execute the ransomeware #12

Open AqibMukhtar opened 3 years ago

AqibMukhtar commented 3 years ago

I am having difficulty in executing this ransomware. I have installed all the dependencies and have built binaries. After that, I am unable to understand what to do. I ran main.py and got this error Traceback (most recent call last):

   File "main.py", line 148, in <module>
    menu()
   File "main.py", line 110, in menu 
    aes_keys_and_base64_path= start_encryption(files)
   File "main.py", line 69, in start_encryption
    base64_new_file_name = base64.b64encode(new_file_name)
   File "/usr/lib/python3.6/base64.py" , line 58, in b64encode
    encoded = binascii.b2a_base64(s, newline=False )
TypeError: a bytes-like object is required, not 'str'

Can someone provide step by step procedure to execute this ransomware correctly? Thanks in advance