Skip to content
This repository was archived by the owner on May 3, 2026. It is now read-only.

Commit 0e04b79

Browse files
committed
EncryptPayload usage
1 parent 36a125b commit 0e04b79

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

EncryptPayload/Source.cpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@ void decrypt(unsigned char* data, size_t length, const char* key) {
1717

1818
int main(int argc, char* argv[])
1919
{
20+
if (argc != 3)
21+
{
22+
printf("[+] Usage: EncryptPayload.exe PATH KEY\n");
23+
printf("[+] Example: EncryptPayload.exe C:\\Users\\Admin\\payload.exe 0123456789\n");
24+
return -1;
25+
}
26+
2027
const char* payloadPath = argv[1];
2128
const char* encryptionKey = argv[2];
2229

@@ -26,7 +33,7 @@ int main(int argc, char* argv[])
2633

2734
encrypt(payloadBuffer.data(), payloadBuffer.size(), encryptionKey);
2835

29-
std::ofstream outputFile("encrypted.bin", std::ios::binary);
36+
std::ofstream outputFile("payload.bin", std::ios::binary);
3037
if (!outputFile.is_open()) {
3138
printf("[-] Failed!\n");
3239
return FALSE;

0 commit comments

Comments
 (0)