😈 Trojan Cockroach
An Undetectable Trojan Spyware
This program is a Trojan Virus that steals data (ID, password; every key stroke) from PC (Windows XP or later) and emails it back to the author. It spreads among PCs through USB drives. It is undetectable by any antivirus software.
This project is created only for learning purpose.
Setup
- Preparation
- Change getRandomName() and sendData() method of TrojanCockroach.cpp according to your wish.
- Compile TrojanCockroach.cpp & Infect.cpp (do not rename them).
- Place TrojanCockroach.exe, Infect.exe, ---, --- & --- in the same folder.
- Now run TrojanCockroach.exe.
- Then insert a pendrive in your PC (see the magic!).
Here, I have changed all the file names (you do not wish to keep these- 'TrojanCockroach', 'Infect'; right? the code will need to be changed a little too) and this is how they look-
-
Attack
-
Now, insert the USB-Drive in the subject's PC (Yes, you have to start the spreading process from somewhere!)
-
Run the shortcut and the spyware will be injected. Now (after a restart) everytime any USB-Drive is inserted in the affected PC, the virus will copy itself in that, and the circle will start again!
-
Data Collection
-
You need to wait several days (depending on the number of power on/off of the PC), before getting any data.
-
After getting the email copy the full message to a text file. As the the message has come through email certain characters are converted. To resolve that --- --- ---.
-
Now, run DecodeMessage.exe for decoding the message as plain text. In this phase, you can look for specific patterns in the text, and thus get rid of most of the useless parts (like- mouse click, or same key-group press as happens during gaming).
You can get a more clear understanding of the project from its pre-project- StupidKeyLogger.
Note: I do not want newbies to abuse my project, so I am not revealing all the secrets. There are also some intentionally created holes in this 'README'. I have also made some nonsense changes in the code, so that no one can run it effectively without getting his hands dirty.
I will not also take any responsibility of someone else's ill act with my program. But I do believe that a real learner will learn a lot from this.
License

Trojan Cockroach is licensed under MIT License.