Code Monkey home page Code Monkey logo

python-ransomware's Introduction

Python-Ransomware

YouTube Tutorial: https://www.youtube.com/watch?v=ScL07VJJOX4

To test the Ransomware out on your machine,

  • edit lines 49 and 140 in the ransomware.py file with your own absolute paths etc for testing purposes and so you can use the localRoot folder

  • [ATTACKER] Run the RSA script to generate two keys, a private and public key

  • [TARGET] Run the ransomware script - localRoot .txt files will be encrypted now

  • [ATTACKER] Run the fernet key decryption file to decrypt the EMAIL_ME.txt(be on your desktop) file, this will give you a PUT_ME_ON_DESKtOP.txt file, once you put this on the desktop the ransomware will decrypt the localRoot files in that directory

... watch the tutoiral to understand the scripts better. I quickly go over the scripts lightly in first 5 mins, I then run through the scripts and showcase the ransomware working etc and act the roles of the attacker/target out and show you it working etc, I then go over the scripts in more detail afterwards.

Subscribe to channel for more videos.

If you would like to leave a tip you can do so below, thanks

Created with

Disclaimer

This tool is only for testing and academic purposes and can only be used where strict consent has been given. Do not use it for illegal purposes! It is the end user’s responsibility to obey all applicable local, state and federal laws. Developers assume no liability and are not responsible for any misuse or damage caused by this tool and software in general.

#Python#Ransomware#Malware

python-ransomware's People

Contributors

anthonyzutter avatar ncorbuk avatar nuggfrog avatar retr00exe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

python-ransomware's Issues

EMAIL_ME.txt

Hello, I did test the ransomware code from the root.It encrypted the files but gave an error, ransom note and background did not appear.Could you help me please to debug the error?

Traceback (most recent call last):
File ".\RansomWare.py", line 256, in
main()
File ".\RansomWare.py", line 238, in main
rw.encrypt_fernet_key()
File ".\RansomWare.py", line 85, in encrypt_fernet_key
with open(f'{self.sysRoot}Desktop/EMAIL_ME.txt', 'wb') as fa:
FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\victimDesktop/EMAIL_ME.txt

Help

hey, im looking to encrypt a whole drive however the program is just shutting or giving me a unicode error.

This is the current code im using

    # Use sysroot to create absolute path for files, etc. And for encrypting whole system
    self.sysRoot = os.path.expanduser('C')
    # Use localroot to test encryption softawre and for absolute path for files and encryption of "test system"
    self.localRoot = r'' # Debugging/Testing

As you can see im looking to encrypt the C drive and only the C drive, i do not undestand what i am doing wrong, any help would be great!

Need Help

Hi, Thanks for sharing the code.
Please let me know does it only encrypt .txt extension?

Make it Persistence

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.

RansomWare

hello
how are you
im use your project but i have problem the project not decrypt all file
they decrypt just the first two file
and after that still
Checking for PUT_ME_ON_DESKTOP.txt
trying
so where is the problem
and how can i solve it
thnx

File or directory not found can you please help me The one who would solve my query i will give 50$ via paypal so with your solution leave ur paypal details

Traceback (most recent call last):
File "Ransomware.py", line 250, in
Screenshot (24)

main()

File "Ransomware.py", line 232, in main
rw.encrypt_fernet_key()
File "Ransomware.py", line 84, in encrypt_fernet_key
with open(f'{self.sysRoot}Desktop/EMAIL_ME.txt', 'wb') as fa:
FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\AdminDesktop/EMAIL_ME.txt'

decryptingfile

Hello, i tried the ranspmware on my own pc with a specific path but if i try to rn the decrypting file it giv eout this issure:

C:\Users\Administrator\Desktop\Python-Ransomware-master>C:\Users\Administrator\Desktop\Python-Ransomware-master\Decrypt_fernet_key.py
Traceback (most recent call last):
  File "C:\Users\Administrator\Desktop\Python-Ransomware-master\Decrypt_fernet_key.py", line 6, in <module>
    with open('EMAIL_ME.txt', 'rb') as f:
FileNotFoundError: [Errno 2] No such file or directory: 'EMAIL_ME.txt'

C:\Users\Administrator\Desktop\Python-Ransomware-master>

The EMAIL_ME file is created on the desktop so im not sure what to do.

File or directory not found can you please help me The one who would solve my query i will give 50$ via paypal so with your solution leave ur paypal details

Screenshot (24)
Traceback (most recent call last):
File "Ransomware.py", line 250, in
main()
File "Ransomware.py", line 232, in main
rw.encrypt_fernet_key()
File "Ransomware.py", line 84, in encrypt_fernet_key
with open(f'{self.sysRoot}Desktop/EMAIL_ME.txt', 'wb') as fa:
FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\AdminDesktop/EMAIL_ME.txt'

Files EMAIL_ME and PUT_ME_ON_DESKTOP are not being created

Hi,
Whenever I open up the RansomWare.py file on the victim machine, the files EMAIL_ME and PUT_ME_ON_DESKTOP are not being created. The files in the localroot folder are getting encrypted, but the files are not there, the background stays the same and the webpage bitcoin.org doesn't show up. I have of course changed the path to what is required, but the other features don't work. Could you help? Thanks in advance!
dfjbdfifssbivvs

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.