This commit is contained in:
kali
2025-05-20 09:22:07 -04:00
parent 6e411223a7
commit 087f03d2ed
3 changed files with 55 additions and 28 deletions
+41 -25
View File
@@ -71,6 +71,8 @@ WmiInstruction = "wmiExec"
SpawnAsInstruction = "spawnAs"
EvasionInstruction = "evasion"
KeyLoggerInstruction = "keyLogger"
MiniDumpInstruction = "miniDump"
DotnetExecInstruction = "dotnetExec"
StartInstruction = "start"
StopInstruction = "stop"
@@ -193,7 +195,15 @@ completerData = [
('whoami.x64.o', [('go',[])]),
('windowlist.x64.o', [('go',[])]),
('wmi_query.x64.o', [('go ZZZ system namespace query',[])]),
]),
]),
(MiniDumpInstruction, [
('dump dump.xor', []),
('decrypt /tmp/dump.xor', []),
]),
(DotnetExecInstruction, [
('load rub Rubeus.exe', []),
('runExe rub help', []),
]),
(UnloadModuleInstruction,[
(AssemblyExecInstruction, []),
(CdInstruction, []),
@@ -217,6 +227,8 @@ completerData = [
(SpawnAsInstruction, []),
(WmiInstruction, []),
(KeyLoggerInstruction, []),
(MiniDumpInstruction, []),
(DotnetExecInstruction, []),
]),
(KerberosUseTicketInstruction,[]),
(PowershellInstruction,[
@@ -257,30 +269,34 @@ completerData = [
('dump', []),
]),
(LoadModuleInstruction,[
('AssemblyExec', []),
('ChangeDirectory', []),
('Coff', []),
('Download', []),
('Inject', []),
('ListDirectory', []),
('ListProcesses', []),
('MakeToken', []),
('PrintWorkingDirectory', []),
('Rev2self', []),
('Run', []),
('Script', []),
('StealToken', []),
('Upload', []),
('Powershell', []),
('PsExec', []),
('KerberosUseTicket', []),
('Chisel', []),
('SpawnAs', []),
('Cat', []),
('Tree', []),
('Evasion', []),
('WmiExec', []),
('KeyLogger', []),
('changeDirectory', []),
('listDirectory', []),
('listProcesses', []),
('printWorkingDirectory', []),
(CdInstruction, []),
(LsInstruction, []),
(PsInstruction, []),
(PwdInstruction, []),
(AssemblyExecInstruction, []),
(CoffLoaderInstruction, []),
(DownloadInstruction, []),
(InjectInstruction, []),
(MakeTokenInstruction, []),
(Rev2selfInstruction, []),
(RunInstruction, []),
(ScriptInstruction, []),
(StealTokenInstruction, []),
(UploadInstruction, []),
(PowershellInstruction, []),
(PsExecInstruction, []),
(KerberosUseTicketInstruction, []),
(ChiselInstruction, []),
(EvasionInstruction, []),
(SpawnAsInstruction, []),
(WmiInstruction, []),
(KeyLoggerInstruction, []),
(MiniDumpInstruction, []),
(DotnetExecInstruction, []),
]),
]
+1 -1
Submodule core updated: db8d5a0bcf...3a537ba1b4
+13 -2
View File
@@ -1683,6 +1683,16 @@ grpc::Status TeamServer::SendTermCmd(grpc::ServerContext* context, const teamser
}
std::string toLower(const std::string& str)
{
std::string result = str;
std::transform(result.begin(), result.end(), result.begin(),
[](unsigned char c) { return std::tolower(c); });
return result;
}
int TeamServer::prepMsg(const std::string& input, C2Message& c2Message, bool isWindows)
{
m_logger->trace("prepMsg");
@@ -1728,7 +1738,7 @@ int TeamServer::prepMsg(const std::string& input, C2Message& c2Message, bool isW
moduleName = moduleName.substr(3); // remove lib
moduleName = moduleName.substr(0, moduleName.length() - 3); // remove .so
if(param == moduleName)
if (toLower(param) == toLower(moduleName))
{
if(isWindows)
{
@@ -1759,8 +1769,9 @@ int TeamServer::prepMsg(const std::string& input, C2Message& c2Message, bool isW
for (auto it = m_moduleCmd.begin(); it != m_moduleCmd.end(); ++it)
{
if (instruction == (*it)->getName())
if (toLower(instruction) == toLower((*it)->getName()))
{
splitedCmd[0] = (*it)->getName();
res = (*it)->init(splitedCmd, c2Message);
isModuleFound=true;
}