initial commit

This commit is contained in:
2025-12-17 21:27:44 +01:00
parent 1e0022f672
commit 7d87da0aad
23 changed files with 2 additions and 1626668 deletions
+2 -1
View File
@@ -1 +1,2 @@
**/target/**
crypt/target/*
stub/target/*
Binary file not shown.
Binary file not shown.
-9
View File
@@ -1,9 +0,0 @@
// DLL decryption metadata
unsigned char decryption_metadata_bin[] = {
0x4d, 0x99, 0x06, 0x07, 0xca, 0x4a, 0x94, 0xf5, 0xec, 0x05, 0xa4, 0x0a,
0xea, 0xdf, 0x7a, 0x39, 0xb9, 0x7e, 0x8c, 0x28, 0x4d, 0x2d, 0xe4, 0x75,
0x42, 0xdb, 0x54, 0x06, 0x7d, 0xe3, 0x99, 0x74, 0x66, 0x5e, 0xba, 0x8b,
0xee, 0x59, 0x70, 0x09, 0x88, 0xe8, 0xc7, 0x65, 0xac, 0xdc, 0x81, 0x8c,
0x10, 0xba, 0x7e, 0x00
};
unsigned int decryption_metadata_bin_len = 52;
File diff suppressed because it is too large Load Diff
Binary file not shown.
Binary file not shown.
-9
View File
@@ -1,9 +0,0 @@
// Decryption metadata
unsigned char decryption_metadata_bin[] = {
0xde, 0x7f, 0x54, 0x15, 0xfd, 0x5b, 0xde, 0x4f, 0x01, 0x48, 0x2f, 0x8c,
0xa7, 0xbf, 0x3c, 0xc3, 0xce, 0x9a, 0xe4, 0x08, 0x8e, 0x0c, 0x1d, 0x2c,
0x0c, 0xe9, 0x9e, 0x99, 0xab, 0xb2, 0x9b, 0xbc, 0xa0, 0x44, 0x1a, 0x8b,
0x2d, 0xe3, 0x7c, 0xd0, 0xce, 0xd1, 0x0a, 0xfe, 0x8d, 0x32, 0x21, 0x87,
0x10, 0x30, 0x16, 0x00
};
unsigned int decryption_metadata_bin_len = 52;
-121179
View File
File diff suppressed because it is too large Load Diff
Binary file not shown.
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
-9
View File
@@ -1,9 +0,0 @@
// DLL decryption metadata
unsigned char decryption_metadata_bin[] = {
0x4d, 0x99, 0x06, 0x07, 0xca, 0x4a, 0x94, 0xf5, 0xec, 0x05, 0xa4, 0x0a,
0xea, 0xdf, 0x7a, 0x39, 0xb9, 0x7e, 0x8c, 0x28, 0x4d, 0x2d, 0xe4, 0x75,
0x42, 0xdb, 0x54, 0x06, 0x7d, 0xe3, 0x99, 0x74, 0x66, 0x5e, 0xba, 0x8b,
0xee, 0x59, 0x70, 0x09, 0x88, 0xe8, 0xc7, 0x65, 0xac, 0xdc, 0x81, 0x8c,
0x10, 0xba, 0x7e, 0x00
};
unsigned int decryption_metadata_bin_len = 52;
-692102
View File
File diff suppressed because it is too large Load Diff
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
-9
View File
@@ -1,9 +0,0 @@
// Decryption metadata
unsigned char decryption_metadata_bin[] = {
0xde, 0x7f, 0x54, 0x15, 0xfd, 0x5b, 0xde, 0x4f, 0x01, 0x48, 0x2f, 0x8c,
0xa7, 0xbf, 0x3c, 0xc3, 0xce, 0x9a, 0xe4, 0x08, 0x8e, 0x0c, 0x1d, 0x2c,
0x0c, 0xe9, 0x9e, 0x99, 0xab, 0xb2, 0x9b, 0xbc, 0xa0, 0x44, 0x1a, 0x8b,
0x2d, 0xe3, 0x7c, 0xd0, 0xce, 0xd1, 0x0a, 0xfe, 0x8d, 0x32, 0x21, 0x87,
0x10, 0x30, 0x16, 0x00
};
unsigned int decryption_metadata_bin_len = 52;
-121179
View File
File diff suppressed because it is too large Load Diff
-69
View File
@@ -1,69 +0,0 @@
#!/bin/bash
# Simple batch script that follows the exact README steps for each file
# Usage: ./simple_batch.sh /path/to/folder/with/exe/files
INPUT_FOLDER="$1"
OUTPUT_DIR="batch_output"
if [[ -z "$INPUT_FOLDER" ]]; then
echo "Usage: $0 /path/to/folder/with/exe/files"
exit 1
fi
if [[ ! -d "$INPUT_FOLDER" ]]; then
echo "Error: Folder '$INPUT_FOLDER' does not exist"
exit 1
fi
# Create output directory
mkdir -p "$OUTPUT_DIR"
echo "Processing files from: $INPUT_FOLDER"
echo "Output directory: $OUTPUT_DIR"
# Process each file
for file in "$INPUT_FOLDER"/*; do
if [[ ! -f "$file" ]]; then
continue
fi
# Skip files with extensions other than .exe or no extension
if [[ "$file" == *.* && "$file" != *.exe ]]; then
continue
fi
filename=$(basename "$file")
basename="${filename%.*}"
echo "Processing: $filename"
# Step 1: Copy file to /crypt/
cp "$file" crypt/
# Step 2: Run cargo run in /crypt/
echo " Encrypting..."
cd crypt
cargo run "$filename"
cd ..
# Step 3: Move encrypted files to /stub/src/
mv crypt/encrypted_Input.bin stub/src/
mv crypt/key.txt stub/src/
# Step 4: Build the stub
echo " Building stub..."
cd stub
cargo build --target x86_64-pc-windows-gnu --release
cd ..
# Step 5: Copy the compiled exe to output directory
cp stub/target/x86_64-pc-windows-gnu/release/stub.exe "$OUTPUT_DIR/${basename}_encrypted.exe"
# Clean up
rm -f crypt/"$filename"
echo " ✓ Created: $OUTPUT_DIR/${basename}_encrypted.exe"
done
echo "Batch processing complete! Check $OUTPUT_DIR for results."
Binary file not shown.