WanderingProgramV2 is a Python script designed to explore the concept of a self replicating and self mutating program with enhanced stealth and persistence features. This script continuously moves around different directories in Linux, replicates itself, mutates its own code, and introduces decoys to avoid detection. It demonstrates a persistent and evolving process within a file system.
- Encryption/Decryption: Uses XOR encryption to secure its files.
- File Replication: Copies itself to various directories and encrypts the copies.
- Code Mutation: Randomly alters its own code to introduce variations.
- Directory Selection: Dynamically chooses directories based on the current context and avoids directories with similar programs.
- Decoy Creation: Generates decoy files to mislead potential detection systems.
- Self Preservation: Creates backups of its original file and encrypts it to protect against tampering.
- Self Repair: Restores the original file from backups if tampering is detected.
- Background Execution: Uses a secondary script to run the main program in the background and delete the secondary script itself.
- Encryption/Decryption: Encrypts or decrypts files using XOR with a generated key.
- File Replication: Copies itself to a new location, encrypts the copy, and appends content to
.txtfiles in the target directory. - Code Mutation: Applies random mutations to its code to alter its behavior and avoid detection.
- Decoy Creation: Creates decoy files to distract from the main program's activity.
- Self Preservation: Backs up and encrypts the original file to protect against tampering.
- Self Repair: Restores the original file from a backup if tampering is detected.
- Background Execution: Uses
trigger.pyto execute the main program in the background and then deletes itself.
- Python 3.x
- A virtual machine (VM) environment for testing
-
Create a VM:
- Use VirtualBox or VMware.
- Install a Linux based OS (Ubuntu) for easier directory management.
-
Run the Main Program:
- Ensure
wander2.pyandtrigger.pyare in the same directory. - Execute
trigger.pyto start the main program in the background and handle self-deletion.
- Ensure
This program is for experimental purposes only.