• Stars
    star
    801
  • Rank 56,886 (Top 2 %)
  • Language
    C++
  • License
    MIT License
  • Created almost 9 years ago
  • Updated about 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A Stealthy Trojan Spyware

Trojan Cockroach

Donate

A Stealthy Trojan Spyware

You 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.

Created only for learning purpose.

Intro

  • TrojanCockroach.cpp- logs user's data, sends data through Transmit.exe, infects portable drive.
  • Infect.cpp- installs the virus into computer from portable drive.
  • Transmit.exe- emails data back.
  • TrojanCockroach.lnk- resides in the startup folder of PC and activates TrojanCockroach.exe.
  • Infect.lnk- takes different attractive names in the infected portable drive, activates Infect.exe when clicked.
  • DecodeMessage.cpp- used to decode received email.

Setup

  1. Preparation
    1. Download the full package from here.

    2. Change the method sendData() of TrojanCockroach.cpp- place your email and password in the command.
      change email address

    3. Compile TrojanCockroach.cpp & Infect.cpp. Transmit.exe is actually the executable distribution of curl for Windows.

    4. Place TrojanCockroach.exe, Infect.exe, Transmit.exe, Infect.lnk & TrojanCockroach.lnk in the same folder. This is how they look-
      Trojan Cockroach full package

    5. Now run TrojanCockroach.exe 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, & the link file is actually renamed form of Infect.lnk.
      Trojan Cockroach infected pendrive

  2. Attack
    1. 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.

    2. 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.

  3. Data Collection
    1. You need to wait several days (depending on the number of power on/off of the PC), before getting any data.

    2. After getting the email copy the full message to a text file.
      Trojan Cockroach infected pendrive
      As the message has come through email certain characters are converted. To resolve that --- --- ---.

    3. Now, run DecodeMessage.exe for decoding the message as plain text.
      Trojan Cockroach infected pendrive
      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).

Further

You may read TrojanCockroachStory to get an overview of how the program works. You will get a clearer understanding of the project from its pre-project- StupidKeyLogger.

The 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 :)

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.

License

MIT License
Trojan Cockroach is licensed under MIT License.

More Repositories

1

CreepyCodeCollection

A Nonsense Collection of Disgusting Codes
C
2,316
star
2

DownGit

Create GitHub Resource Download Link
JavaScript
1,530
star
3

StupidKeylogger

A Terrific Keystroke Recorder
C++
437
star
4

CuteVirusCollection

A Collection of Cute But Deadly Viruses
HTML
404
star
5

BengaliDictionary

A Large Collection of Bengali Words & Translations (বাংলা-শব্দ-bengali-shobdo-bengal-word-list-bangla-translation-spell-check-checker-dictionary-translator-dataset-data-set-english-to-bd-bn-en-e2b-sobdo)
Java
163
star
6

AlgorithmImplementations

Implementation of Elementary Algorithms (infix-prefix-postfix-evaluation-to-longest-common-increasing-sub-sequence-activity-selection-balance-kd-binary-heap-binomial-tree-breath-depth-first-search-max-flow-shortest-path-topological-sort-calculus-derivative-integration-forward-interpolation-simpson-rule-intersecting-area-non-linear-equation-jacobis-gauss-seidal-bisection-false-position-newton-raphson-fixed-point-secant-cigarette-smokers-genetic-huffman-a-a*-star-binary-knuth-morris-pratt-kmp-quick-thread-priority-based-premitive-shortest-job-non-primitive-arithmetic-expression-data-structures-list-node-implementation-one-two-way-linked-stack-string-graph-numerical-methods-equation-solving-solve-process-problem-search-sort-prime-ugly-friend-perfect-fibonacci-factorial-factor-number)
C++
70
star
7

GenderRecognizer

Plain Face Detector & Gender Recognizer
Java
59
star
8

SkinDetector

Detects Human Skin From Image (color-region-segmentation-photo-detection-extraction-detect)
Java
26
star
9

DarkLight

Webpage in Night Mode
JavaScript
23
star
10

AlphabetRecognizer

Simple Optical Character Recognizer (english-ocr-image-to-text-recognition-sample-trainig-alphabet-photo-data-database-dataset)
Java
17
star
11

ProgrammerTransformation

The Insipid Journey of Homo Programmer (naive-novice-beginner-super-god-transformation-evolution-improvement-programmer-coder-software-engineer)
C++
10
star
12

BrailleToTextTranslator

Translate Braille Writing to Plain Text
DataWeave
9
star
13

UltimateCalculator

Basic Scientific Calculator (math-calculation-equation-unit-converter-unitconverter-advanced-mathematics-math-number)
Java
9
star
14

ResultAnalysisTool

A Complete Package for Processing OMR Answer Sheet
Java
9
star
15

GRExercise

Free GRE Practice Environment (awa-analytical-essay-writing-ets-issue-argument-pool-calculator-gre-exercise)
JavaScript
9
star
16

Egami

A Light Weight Image Processing Library (java-pattern-recognition-package-tool)
Java
7
star
17

FileSqueezer

Simple File Compressor & Extractor (huffman-algorithm-compression-zip)
C++
7
star
18

Intellectron

An Infant Library of Artificial Neural Network (multilayer-deep-convolutional-machine-learning)
Java
7
star
19

HighlightedTextDetector

Extracts highlighted text from the image of a page
Python
6
star
20

MinhasKamal.github.io

Minhas Kamal: Academic Portfolio (about-blog-work-contact-cv-resume-details)
HTML
5
star
21

TicTacToe

Naive AI Enabled Tic-Tac-Toe Game (noughts-and-crosses-Xs-Os-paper-pencil)
Java
4
star
22

CoolConsoleGames

A Collection of Wonderful Console Games (the-game-of-life-three-3-stones-tic-tac-toe-tictactoe-criss-cross-snake-rush-peeble-dropping-connect-four-4)
C
4
star
23

PicPuzzle

Naive AI Aided Sliding Puzzle Game (picture-image-block-tile-maze-riddle)
Java
3
star