File encryptor and decryptor in Linux with Python. Using the same file extensions than Wannacry
python enc.py $directory
python dec.py $directory
cat enc.py crypto.py >> temp_enc.py && pyinstaller -F temp_enc.py && rm temp_enc.py
cat dec.py crypto.py >> temp_dec.py && pyinstaller -F temp_dec.py && rm temp_dec.py
Python 2.x:
sudo pip install pyinstaller
Python 3.x:
sudo pip3 install pyinstaller
Tested both in Python2.x (2.7.15rc1) and Python 3.x (3.6.7)