ncorbuk/Python-Ransomware — reverse-engineered prompt
Reverse engineered prompt
Build me a safe Python ransomware learning demo for my own computer, based on the idea in this repo, but locked down so it can only touch files inside a localRoot test folder with dummy text files.
I want it to show the attacker and target flow in a simple way. First generate a public and private key pair. Then run a demo script that encrypts only the test text files and creates a file that represents what the target would send back. Then run a separate decrypt helper that uses the private key to recover the unlock key. Finally put that unlock key where the demo script expects it and have the test files restored.
Please make the setup easy, with clear terminal instructions, friendly messages, and a big warning that this is only for education. Add safety checks so it refuses to run outside the test folder or on real personal folders. Look up current Python docs if you need to.
Want more depth? Deep Reverse