• Joined on 2025-07-04
pkhazov pushed to main at pkhazov/Sigma-C2 2025-08-18 14:03:45 +00:00
0df36d871e Read changelog
e985a9f628 Added configuration option in yaml config file to specify the path to server content for every domain
55f43f1f93 Added a check if port is already in use during listener creation.
7bc6f9e622 Agent parameters during generation are now based on yaml config file. Only things left are modules, working on it now.
460903bd18 Move some settings out of domain structure to overall optimize configuration
Compare 7 commits »
pkhazov pushed to main at pkhazov/Sigma-C2 2025-08-15 19:17:22 +00:00
e968936f04 Downlaod message string is now also encrypted. Unfortunetely, I understand that I will need to refactor all of these, because 4 different functions for sending/receiving messages and data is bad architectural design by default, add overhead and makes it hard to maintain.
5db505b90d Implemented encryption for file upload command. Fixed few bugs with cookies not being correctly decoded because of wrong buffer creation ( wchar_t cookieValue[valueLength + 1]; ) and fixed few error codes.
759e1a107f I ditched SSL transport as managing two protocols at the same time is tiring. I decided to stich with HTTPS as it is enough for 99% cases and is more stealthy. Messages are now encrypted and sent in base64, on server side - decoded and decrypted.
Compare 3 commits »
pkhazov pushed to main at pkhazov/Sigma-C2 2025-08-15 07:42:25 +00:00
65b787cb8a Cleaned up https upload logic
f6f130f6e7 Implemented file uploads in HTTPS communication channel
2d83259d58 Implemented strings encryption, message length header, remove beacon code, remove some useless flags and code
b0b2f226e8 Implmeneted task result reporting based on error codes
f0538cd3a8 I decided to stick with strings communication for now, as implementing TLV is a bit hard for me now and I do not want to do JSON either (mainly because of a need to use external linrary). But I implemented encryption for strings communication.
Compare 14 commits »
pkhazov pushed to main at pkhazov/Sigma-C2 2025-08-05 18:50:01 +00:00
d160b44190 HTTPS communication channel was implemented for agent. Uploading files to server is not yet supported, but will be in nearest future.
1a7c30cfbd Changed operator's command parsing logic to not panic in certain cases. Changed how "show task" command works and replaced with "tasks", which works both in general and agent contexts
af8d80b1cd Restructured operator's terminal code and added channel to gracefully close terminal on "exit|quit" command and Ctrl+C
91ecbc8b4a Enchanced operator prompt to better display output and history
e8de1b8e9b Fixed file path handling in download/upload commands. Removed debugLog() and infoLog(), will see if it will be comfortable for me to work like this. Made server log a bit clearer by removing unnecessary log statements. Removed WolfSSL as it's not needed anymore. Changed logging style in agent. And overall cleaned unused pieces of code in both agent and server.
Compare 5 commits »
pkhazov pushed to main at pkhazov/Sigma-C2 2025-08-02 13:08:22 +00:00
b4ce0d21bc Fixed files downloading bug in stream protocols communication
8b810e78d7 File downloading works for http agent now
5827982fa0 Added http communication channel to agent. Fixed minor bug with system info reporting. Thinking to get rid of beacon at all, or repurpose it.
3373aaed04 Minor things
92e1ba5723 Implemented optional logging. It only works in debug mode. In production builds - strings are striped from binary
Compare 5 commits »
pkhazov pushed to main at pkhazov/Sigma-C2 2025-07-17 17:13:59 +00:00
93cfc91e88 Payload now runs windows-less. Added possibility to enable windows mode when using make. Added instructions to makefile.
c5c2f580a5 Restructured server files to better display contents
Compare 2 commits »
pkhazov pushed to main at pkhazov/Sigma-C2 2025-07-13 18:35:50 +00:00
dae3f7e79e Version 0.5.0
pkhazov pushed to main at pkhazov/Sigma-C2 2025-07-13 17:42:31 +00:00
cb79f61c25 Fixed agent's receive module func signature. Fixed task result message not sent to operator. And added PID to agent's info.
pkhazov pushed to main at pkhazov/Sigma-C2 2025-07-13 14:37:20 +00:00
4dbbb47694 Beacon is now fully integrated into http transport. Enchanced structure of htpp listener on server. Fixed problems with pid and ppid in injection logic.
pkhazov pushed to main at pkhazov/Sigma-C2 2025-07-12 20:39:08 +00:00
88e433a3d3 File structure change. TaskID fix in task result sending logic. PID is now formated and sent correctly.
a674b5135a Cosmetics
2792f7d826 Cosmetic adjustments
1853b38920 Fixed server not correcltly parsing task result id and beacon not sending task id
Compare 4 commits »
pkhazov pushed to main at pkhazov/Sigma-C2 2025-07-12 17:18:39 +00:00
6f133450d2 Just playing with git, changed my username and email in git
pkhazov pushed to main at pkhazov/Sigma-C2 2025-07-12 17:15:02 +00:00
507c1d1cce Extended transport interface for a new http function, which take two buffers now. One static for messages embedded into cookie, second - dynamically allocated buffer for actual http reponse.
7454624762 Added https listener to beacon. Currently only basic commands work, downloading/uploading files and downloading shellcode do not work.
d114d376b8 Restrucuted folders
Compare 3 commits »
pkhazov pushed to main at pkhazov/Sigma-C2 2025-07-04 16:25:59 +00:00
6d8c412675 TaskID logic fully implemented.
7e88e21e8b - Added size optimization flags to payload generator
925bb8fd92 Added task id logic: now agent reports task result with task id after "TASKRESULT" message part, which helps identify task and operator who issued it.
6b1f158a12 Big messages are now sent with POSt request. Message size limit and headers-indicators are configurable.
181fc5fcbc Minor
Compare 10 commits »
pkhazov created branch main in pkhazov/Sigma-C2 2025-07-04 16:25:59 +00:00
pkhazov created repository pkhazov/Sigma-C2 2025-07-04 16:25:54 +00:00