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

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

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

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

工具目录

分类

查看所有分类
Loading categories
CVE-2026-11117-WPA2-4-Way-Handshake-Reinstallation-KRACK-Sim- — CVE-2026-11117 的 Python 模拟,演示 WPA2 四次握手中 PTK 重新安装和 nonce 重用,以说明 KRACK 攻击。 | Kitploit
工具/GitHubGitHub/george0papasotiriou/cve-2026-11117-wpa2-4-way-handshake-reinstallation-krack-sim-
漏洞分析漏洞利用无线安全学习与教育
GitHubgeorge0papasotiriou/cve-2026-11117-wpa2-4-way-handshake-reinstallation-krack-sim-

CVE-2026-11117-WPA2-4-Way-Handshake-Reinstallation-KRACK-Sim-

CVE-2026-11117 的 Python 模拟,演示 WPA2 四次握手中 PTK 重新安装和 nonce 重用,以说明 KRACK 攻击。

查看仓库

最受欢迎

查看全部 →

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

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享
17天前尚未审核

CVE-2026-11117 – WPA2 四次握手密钥重装(KRACK 模拟)

程序代码(Python)

root@kitploit:~
# krack_sim.py - Simulates reinstallation of an already-used PTK
import hashlib, os

class AccessPoint:
    def __init__(self):
        self.anonce = os.urandom(32)
        self.ptk = None

    def send_msg3(self, snonce):
        # Normally would install PTK, but here we resend msg3 to trigger reinstall
        self.ptk = hashlib.sha256(b"PMK" + self.anonce + snonce).digest()
        print("Installed PTK")
        return self.ptk

class Client:
    def __init__(self):
        self.snonce = os.urandom(32)
        self.ptk = None

    def receive_msg3(self, ap):
        self.ptk = ap.send_msg3(self.snonce)
        # Vulnerability: if AP resends msg3, nonce reuse may reset counters
        print("Client installed PTK")

ap = AccessPoint()
client = Client()
client.receive_msg3(ap)   # first install
client.receive_msg3(ap)   # reinstallation! Nonce reused, replay possible

CVE-2026-11117 – WPA2 四次握手密钥重装(KRACK)

Severity: Critical

概述

Wi‑Fi 客户端未能正确跟踪四次握手中的消息 3。攻击者可重放消息 3,导致客户端重装已在使用中的成对瞬态密钥(PTK),并重置 nonce 与重放计数器。这使攻击者能够解密和伪造数据帧。

漏洞详情

  • 类型: 协议重装攻击
  • 影响: 窃听、数据包注入、网络沦陷。
  • 根本原因: 四次握手的设计缺陷允许在未进行充分状态检查的情况下重传消息 3,从而导致密钥重装。

漏洞利用演示

运行模拟:

root@kitploit:~
python krack_sim.py

该脚本表明 PTK 被重装,凸显了 nonce 重用问题。

下载工具