Skip to content
KitploitKITPLOIT
工具漏洞利用博客
Log in
提交
工具漏洞利用博客
提交

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

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

订阅源联系隐私© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
striptls — STARTTLS剥离攻击的代理PoC实现 | Kitploit
工具/GitHubGitHub/tintinweb/striptls
漏洞分析漏洞利用网络安全
GitHubtintinweb/striptls

striptls

STARTTLS剥离攻击的代理PoC实现

查看仓库
16830204年前Kitploit 审核通过

最受欢迎

查看全部 →

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

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

image

striptls - 审计代理

STARTTLS 剥离攻击的概念验证实现

一个通用的 TCP 代理实现和审计工具,用于执行 协议无关 的 ssl/tls 拦截以及针对 SMTP、POP3、IMAP、FTP、NNTP、XMPP、ACAP 和 IRC 的 STARTTLS 剥离攻击。

Python2!

🏆 战利品
  • CVE-2016-0772 - python: smtplib
  • CVE-2016-10027 - Smack XMPP 库

//使用本项目发现了漏洞?欢迎与我联系!

要求:
  • Python >= 2.7.9(SSLContext)< Python 3
  • (可选,用于 TLS 拦截)PEM 格式的证书和私钥(单个文件)--key=server.pem

攻击向量

  • 通用
  • Intercept - 协议无关的 ssl/tls 拦截。窥探 TLS 握手,将套接字转换为 tls(tls-to-tls 代理)
  • InboundIntercept - 仅针对入站信道的协议无关 ssl/tls 拦截(tls-to-plain 代理)
  • SMTP
  • SMTP.StripFromCapabilities - 服务器响应能力补丁
  • SMTP.StripWithInvalidResponseCode - 客户端 STARTTLS 剥离,无效响应码
  • SMTP.UntrustedIntercept - STARTTLS 拦截(客户端和服务器均使用 ssl)(需在当前目录中有 server.pem)
  • SMTP.StripWithTemporaryError
  • SMTP.StripWithError
  • SMTP.ProtocolDowngradeStripExtendedMode
  • SMTP.InjectCommand
  • SMTP.InboundStarttlsProxy -(starttls-to-plain 代理)
  • POP3
  • POP3.StripFromCapabilities
  • POP3.StripWithError
  • POP3.UntrustedIntercept
  • IMAP
  • IMAP.StripFromCapabilities
  • IMAP.StripWithError
  • IMAP.UntrustedIntercept
  • IMAP.ProtocolDowngradeToV2
  • FTP
  • FTP.StripFromCapabilities
  • FTP.StripWithError
  • FTP.UntrustedIntercept
  • NNTP
  • NNTP.StripFromCapabilities
  • NNTP.StripWithError
  • NNTP.UntrustedIntercept
  • XMPP
  • XMPP.StripFromCapabilities
  • XMPP.StripInboundTLS
  • XMPP.UntrustedIntercept
  • ACAP(未测试)
  • ACAP.StripFromCapabilities
  • ACAP.StripWithError
  • ACAP.UntrustedIntercept
  • IRC
  • IRC.StripFromCapabilities
  • IRC.StripWithError
  • IRC.UntrustedIntercept
  • IRC.StripWithNotRegistered
  • IRC.StripCAPWithNotregistered
  • IRC.StripWithSilentDrop

结果:```python

  • [*] client: 127.0.0.1
  • [Vulnerable!] <class striptls.StripWithInvalidResponseCode at 0xffd3138c>
    
  • [Vulnerable!] <class striptls.StripWithTemporaryError at 0xffd4611c>
    
  • [           ] <class striptls.StripFromCapabilities at 0xffd316bc>
    
  • [Vulnerable!] <class striptls.StripWithError at 0xffd4614c>
    
  • [*] client: 192.168.139.1
  • [Vulnerable!] <class striptls.StripInboundTLS at 0x7f08319a6808>
    
  • [Vulnerable!] <class striptls.StripFromCapabilities at 0x7f08319a67a0>
    
  • [Vulnerable!] <class striptls.UntrustedIntercept at 0x7f08319a6870>
    
## 用法```
#> python2 -m pip install striptls
#> python2 -m striptls --help

Raccoon

Raccoon 是一个用于侦察和漏洞扫描的进攻性安全工具。

功能特点

  • DNS 侦察
  • WHOIS 信息收集
  • TLS 密码套件枚举
  • 端口扫描与服务检测
  • Web 漏洞扫描与利用
  • Google dorking.

安装

要安装 Raccoon,你只需要确保机器上安装了 go。

运行:

$ go get github.com/evilsocket/raccoon

然后通过以下方式运行 Raccoon:

$ raccoon -h

或者:

$ go run raccoon.go -h

使用方法

例如:

$ raccoon 10.0.0.1

#> python -m striptls --help # from pip/setup.py #> python striptls --help # from source / root folder Usage: striptls.py [options]

   example: striptls.py --listen 0.0.0.0:25 --remote mail.server.tld:25

Options: -h, --help show this help message and exit -q, --quiet be quiet [default: True] -l LISTEN, --listen=LISTEN listen ip:port [default: 0.0.0.0:<remote_port>] -r REMOTE, --remote=REMOTE remote target ip:port to forward sessions to -k KEY, --key=KEY SSL Certificate and Private key file to use, PEM format assumed [default: server.pem] -s, --generic-ssl-intercept dynamically intercept SSL/TLS -b BUFFER_SIZE, --bufsiz=BUFFER_SIZE -x VECTORS, --vectors=VECTORS Comma separated list of vectors. Use 'ALL' (default) to select all vectors, 'NONE' for tcp/ssl proxy mode. Available vectors: ACAP.StripFromCapabilities, ACAP.StripWithError, ACAP.UntrustedIntercept, FTP.StripFromCapabilities, FTP.StripWithError, FTP.UntrustedIntercept, GENERIC.Intercept, IMAP.ProtocolDowngradeToV2, IMAP.StripFromCapabilities, IMAP.StripWithError, IMAP.UntrustedIntercept, IRC.StripCAPWithNotRegistered, IRC.StripFromCapabilities, IRC.StripWithError, IRC.StripWithNotRegistered, IRC.StripWithSilentDrop, IRC.UntrustedIntercept, NNTP.StripFromCapabilities, NNTP.StripWithError, NNTP.UntrustedIntercept, POP3.StripFromCapabilities, POP3.StripWithError, POP3.UntrustedIntercept, SMTP.InboundStarttlsProxy, SMTP.InjectCommand, SMTP.ProtocolDowngradeStripExtendedMode, SMTP.StripFromCapabilities, SMTP.StripWithError, SMTP.StripWithInvalidResponseCode, SMTP.StripWithTemporaryError, SMTP.UntrustedIntercept, XMPP.StripFromCapabilities, XMPP.StripInboundTLS, XMPP.UntrustedIntercept [default: ALL]

## 安装(可选)

通过 pip

    #> pip install striptls

通过源码

    #> setup.py install

## 示例

	                  入站                    出站
	[inbound_peer]<------------->[listen:proxy]<------------->[outbound_peer/target]
	  smtp-client                   striptls                    remote/target
	  
本地 `smtp-client` -> `localhost:8825` (代理) -> `mail.gmx.net:25`

### 通用 SSL/TLS 拦截
	
`--generic-ssl-intercept` 是一个全局开关,用于启用通用 SSL/TLS 握手检测和会话转换。可与任何 mangle/vector 组合使用。

`GENERIC.Intercept` 是一个 mangle/vector 实现,用于 SSL/TLS 握手检测和转换功能。
下载工具