SensorsTechForum - How to Technology and PC Security Forum

PC Security and Protection => Malware Removal Questions and Guides => Topic started by: mcinn on November 19, 2015, 10:19:58 am

Title: How to fix decrypt.py 'SyntaxError: Missing parentheses in call to ‘print’?
Post by: mcinn on November 19, 2015, 10:19:58 am
Have you witnessed this error when running Python3/3.4?


python3.4 ./decrypt.py test.bitcrypt
File “./decrypt.py”, line 99
print “usage: %s ” % sys.argv[0]
^
SyntaxError: Missing parentheses in call to ‘print’

The 'SyntaxError: Missing parentheses in call to ‘print’' error message you're witnessing could mean that you are trying to use Python 3 to run a program that uses the Python 2 print statement. In Python 3, printing values was changed from being a distinct statement to being an ordinary function call. That's why the statement File “./decrypt.py”, line 99 could need parentheses.

A possible solution could be to run the 'sudo apt-get update python' command or 'sudo apt-get install python2.7.8' to get your Python to work.

More information here: http://stackoverflow.com/questions/25445439/what-does-syntaxerror-missing-parentheses-in-call-to-print-mean-in-python

P.S: In case you're dealing with ransomware, please let us know which one it is.

Title: Re: How to fix decrypt.py 'SyntaxError: Missing parentheses in call to ‘print’?
Post by: mcinn on November 20, 2015, 09:33:33 am
Try instaling the following plugins by typing these sudo commands in the terminal:

sudo apt-get install g++

sudo apt-get install libgmp3-dev
sudo apt-get install python3

After that, execute this command by copying it and simply type your file name in the inverted commas:

python ./decrypt.py "Photo.jpg.bitcrypt"

Make sure that the encrypted file is in your home folder in Linux.
After you type the command, you should see something that will look like this and give you a unique numbers key:

[] Pub key: ebAwUvFWdTGKtS41jbSYZ2p1bHrF5bb9AmpFte8BX6E=cJ0A5Xsa+1HceGemjaIEPlb=19B [-] Unknown key []

21747219404660446924080335224525305530589105595749058247524150897965268189202467609448565497136117531719336683457294883526500163  (this is just an example it is similar to what your key should look like)

Use the key that you recieve in cado-nfs to start decrypting it.

PS: Make sure you have the cado-nfs folder, the decrypt.py file and everything else in the ./ folder (i.e. the HOME folder).

Please let us know if this has worked.