Nimbo-C2-еще одна (простая и легкая) каркас C2.
Агент Nimbo-C2 поддерживает X64 Windows & Linux. Он написан в NIM, с некоторым использованием .NET в Windows (динамически загружая CLR в процесс). NIM является мощным, но взаимодействовать с Windows намного проще и надежно, используя PowerShell, поэтому эта комбинация сделана. Агент Linux более тонкий и способен только базовыми командами, включая загрузку ELF, используя метод memfd
.
Все компоненты сервера записаны на Python:
Моя работа была бы невозможна без предыдущей великой работы, проделанной другими, перечисленными в соответствии с кредитами.
UPX0
, UPX1
), чтобы усложнять обнаружение и распаковку.config.jsonc
).memfd
в 2 режимах.Предупреждение: Nimbo-C2 предназначен для запуска только в рамках предоставленного контейнера Docker
Обратите внимание, что установка таким образом может вызвать проблемы или несовместимость в будущем, так как изображение Docker теперь не обеспечивает соблюдение языков и версий библиотек, поэтому рассмотрите возможность пропустить следующий метод.
cd
в git clone https://github.com/itaymigdal/Nimbo-C2
cd Nimbo-C2
docker build -t nimbo-dependencies .
cd
еще раз в исходные файлы и запустите изображение Docker интерактивно, разоблачить порт 80 и установить каталог Nimbo-C2 в контейнер (чтобы вы могли легко получить доступ ко всем файлам проекта, изменять config.jsonc
, загружать и загружать файлы с агентов и т. Д.) Полем Для Linux заменить ${pwd}
на $(pwd)
. cd Nimbo-C2
docker run -it --rm -p 80:80 -v ${pwd}:/Nimbo-C2 -w /Nimbo-C2 nimbo-dependencies
Здесь мы используем уже построенное, протестированное и хранимое изображение Docker - рекомендуется .
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
Во -первых, редактировать config.jsonc
для ваших потребностей.
Затем бегите с: python3 Nimbo-C2.py
Используйте команду help
для каждого экрана и завершение вкладки.
Также проверьте каталог примеров.
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
(кроме метода Evil LSASS Twin) и sam
команды временно сохраняют артефакты на диск перед эксфильтратом и удалили их.persist
команд должна быть выполнена вручную.Это программное обеспечение может быть глюком или нестабильным в некоторых случаях использования, поскольку оно не полностью и постоянно протестировано. Не стесняйтесь открывать проблемы, PR и свяжитесь со мной по любой причине в (Gmail | LinkedIn | Twitter).