Nimbo-C2 es otro marco C2 (simple y liviano).
El agente NIMBO-C2 admite X64 Windows y Linux. Está escrito en NIM, con algún uso de .NET en Windows (cargando dinámicamente el CLR al proceso). Nim es poderoso, pero interactuar con Windows es mucho más fácil y robusto usando PowerShell, por lo tanto, esta combinación se hace. El agente de Linux es más delgado y capaz solo de comandos básicos, incluida la carga de ELF utilizando la técnica memfd
.
Todos los componentes del servidor están escritos en Python:
Mi trabajo no sería posible sin el gran trabajo anterior realizado por otros, enumerados bajo créditos.
UPX0
, UPX1
) para hacer que la detección y el desempaquetado sea más difícil.config.jsonc
).memfd
en 2 modos.ADVERTENCIA: NIMBO-C2 debe ejecutarse solo dentro del contenedor Docker proporcionado
Tenga en cuenta que la instalación de esta manera puede causar problemas o incompatibilidad en el futuro, ya que la imagen de Docker ahora no hace cumplir las versiones de idiomas y bibliotecas, así que considere omitir al siguiente método.
cd
en git clone https://github.com/itaymigdal/Nimbo-C2
cd Nimbo-C2
docker build -t nimbo-dependencies .
cd
nuevamente en los archivos de origen y ejecute la imagen de Docker de manera interactiva, exponga el directorio del puerto 80 y Mount Nimbo-C2 al contenedor (para que pueda acceder fácilmente a todos los archivos de proyecto, modificar config.jsonc
, descargar y cargar archivos de agentes, etc.) . Para Linux reemplazar ${pwd}
con $(pwd)
. cd Nimbo-C2
docker run -it --rm -p 80:80 -v ${pwd}:/Nimbo-C2 -w /Nimbo-C2 nimbo-dependencies
Aquí estamos usando la imagen Docker ya construida, probada y almacenada, recomendada .
git clone https://github.com/itaymigdal/Nimbo-C2
cd Nimbo-C2/Nimbo-C2
docker run -it --rm -p 80:80 -v ${pwd}:/Nimbo-C2 -w /Nimbo-C2 itaymigdal/nimbo-dependencies
Primero, edite config.jsonc
para sus necesidades.
Luego corre con: python3 Nimbo-C2.py
Use el comando help
para cada pantalla y la finalización de la pestaña.
Además, verifique el directorio de ejemplos.
Nimbo-C2 > help
--== Agent ==--
agent list -> List active agents
agent interact <agent-id> -> Interact with the agent
agent remove <agent-id> -> Remove agent data
--== Builder ==--
build exe -> Build EXE agent (-h for help)
build dll -> Build DLL agent (-h for help)
build elf -> Build ELF agent (-h for help)
--== Listener ==--
listener start -> Start the listener
listener stop -> Stop the listener
listener status -> Print the listener status
--== General ==--
cls -> Clear the screen
help -> Print this help message
exit -> Exit Nimbo-C2
Nimbo-C2 [d337c406] > help
--== Send Commands ==--
cmd <shell-command> -> Execute a shell command
iex <powershell-scriptblock> -> Execute in-memory powershell command
spawn <process-cmdline> -> Spawn new process using WMI win32_process class
--== File Stuff ==--
download <remote-file> -> Download a file from the agent (wrap path with quotes)
upload <local-file> <remote-path> -> Upload a file to the agent (wrap paths with quotes)
--== Discovery Stuff ==--
pstree -> Show process tree
checksec -> Enum security products
software -> Enum installed software
windows -> Enum visible windows
modules -> Enum process loaded modules (exclude Microsoft Dlls)
modules_full -> Enum process loaded modules (include Microsoft Dlls)
--== Collection Stuff ==--
clipboard -> Retrieve clipboard
screenshot -> Retrieve screenshot
audio <record-time> -> Record audio (waits for completion)
keylog start -> Start a keylogger in a new thread
keylog dump -> Retrieve captured keystrokes
keylog stop -> Retrieve captured keystrokes and stop the keylogger
--== Post Exploitation Stuff ==--
lsass examine -> Examine Lsass protections
lsass direct -> Dump Lsass directly (elevation required)
lsass comsvcs -> Dump Lsass using Rundll32 and Comsvcs.dll (elevation required)
lsass eviltwin -> Dump Lsass using the Evil Lsass Twin method (elevation required)
sam -> Dump sam,security,system hives using reg.exe (elevation required)
shellc <raw-shellcode-file> <pid> -> Inject shellcode to a remote process using indirect syscalls
assembly <local-assembly> <args> -> Execute inline .NET assembly (pass all args as a single quoted string)
--== Evasion Stuff ==--
patch amsi -> Patch AMSI using indirect syscalls
patch etw -> Patch ETW using indirect syscalls
--== Persistence Stuff ==--
persist run <command> <key-name> -> Set run key (will try first HKLM, then HKCU)
persist spe <command> <process-name> -> Persist using Silent Process Exit technique (elevation required)
--== Privesc Stuff ==--
uac fodhelper <command> -> Elevate session using the Fodhelper UAC bypass technique
uac sdclt <command> -> Elevate session using the Sdclt UAC bypass technique
--== Interaction stuff ==--
msgbox <title> <text> -> Pop a message box in a new thread
speak <text> -> Speak a string using the microphone
--== Misc stuff ==--
critical <true/false> -> Set agent process as critical (BSOD on termination) (elevation required)
--== Communication Stuff ==--
sleep <sleep-time> <jitter-%> -> Change sleep time interval and jitter
clear -> Clear pending commands
collect -> Recollect agent data
die -> Kill the agent
--== General ==--
show -> Show agent details
back -> Back to main screen
cls -> Clear the screen
help -> Print this help message
exit -> Exit Nimbo-C2
Nimbo-2 [51a33cb9] > help
--== Send Commands ==--
cmd <shell-command> -> Execute a terminal command
--== File Stuff ==--
download <remote-file> -> Download a file from the agent (wrap path with quotes)
upload <local-file> <remote-path> -> Upload a file to the agent (wrap paths with quotes)
--== Post Exploitation Stuff ==--
memfd <mode> <elf-file> <commandline> -> Load ELF in-memory using the memfd_create syscall
implant mode: load the ELF as a child process and return
task mode: load the ELF as a child process, wait on it, and get its output when it's done
(pass the whole command line as a single quoted string)
--== Communication Stuff ==--
sleep <sleep-time> <jitter-%> -> Change sleep time interval and jitter
clear -> Clear pending commands
collect -> Recollect agent data
die -> Kill the agent
--== General ==--
show -> Show agent details
back -> Back to main screen
cls -> Clear the screen
help -> Print this help message
exit -> Exit Nimbo-C2
audio
, lsass
(excepto el método gemelo de LSASS Evil) y los comandos sam
guardan temporalmente artefactos en el disco antes de exfiltrarse y eliminarlos.persist
debe hacerse manualmente.Este software puede ser erróneo o inestable en algunos casos de uso, ya que no se está probando total y constantemente. No dude en abrir problemas, relaciones públicas y contácteme por cualquier motivo en (Gmail | LinkedIn | Twitter).