ncorbuk / Python-Ransomware

Python Ransomware Tutorial - YouTube tutorial explaining code + showcasing the ransomware with victim/target roles
MIT License
493 stars 142 forks source link

Make it Persistence #6

Closed pickledrick closed 3 years ago

pickledrick commented 3 years ago

If the victim reboots the PC after the encryption, the program doesn't run on start-up hence it doesn't look for the put_me_on_desktop.txt anymore so files can not be decrypted.

dv8081 commented 3 years ago

If the victim reboots the PC after the encryption, the program doesn't run on start-up hence it doesn't look for the put_me_on_desktop.txt anymore so files can not be decrypted. Turn ransom.py in exe. And try again

pickledrick commented 3 years ago

Tried that already, it just encrypts the encrypted files again and creates another fernet key. But I have figured out a way to tackle that, I'll just separate the decryption script from ransomware, then ask her to place the put the key on desktop then run it again. I have ano

If the victim reboots the PC after the encryption, the program doesn't run on start-up hence it doesn't look for the put_me_on_desktop.txt anymore so files can not be decrypted. Turn ransom.py in exe. And try again

Tried that already, it just encrypts the encrypted files again and creates another fernet key. But I have figured out a way to tackle that, I'll just separate the decryption script from ransomware, then ask the victim to place the put the key on desktop then to run the script. I have another question though, if start encryption from sysroot, will encrypt all the drives too?

ncorbuk commented 3 years ago

Yea this is just a basic outline of how you can go about making a simple ransomware in Python. It is for you to change about, edit, and make better and so on. If you want to add persistence it will depend on with OS you want it to be for. If Linux look into crontab, and if windows look into registry and add appropriate code etc. :)