Kali linux搭建wifi绵羊墙

复现了获取SSID,但手机连不上来获取主机名,可能是因为手机保存的热点是有密码的。

设置网卡

网卡支持的情况下,kali下直接运行

复制代码
ifconfig wlan0 up
airmon-ng check kill
airmon-ng start wlan0
airbase-ng -P -C 30 -v wlan0mon | tee nohup.out

网页显示,python2

show.py,注意修改nohup.out的路径

复制代码
import SimpleHTTPServer
import SocketServer
import threading
import os
import json
from time import sleep
class back(threading.Thread):
    def __init__(self):
        threading.Thread.__init__(self)
    def cmd(self,c):
        c=os.popen(c).read()
        return c
    def run(self):
        while True:
            cmd_=self.cmd("cat ./nohup.out |grep -|awk -F 'from ' '{print$2}'|sort |uniq ").replace('"','').split('\n')
            nohup=''
            x=0
            for i in cmd_:
                j='  "%d":"%s",' %(x,i) 

                nohup+= j
                x+=1

            nohup='{%s}'%nohup[:len(nohup)-1]
            cmd_h=self.cmd("cat /var/lib/dhcp/dhcpd.leases|grep host|awk '{print$2}' ").replace('"','').split('\n')
            x=0
            dhcp=''
            for i in cmd_h:
                j='  "%d":"%s",' %(x,i)             
                dhcp+= j
                x+=1
            dhcp='{%s}'%dhcp[:len(dhcp)-1]
            open('Host.json','w').write(dhcp)
            open('Mac.json','w').write(nohup)
            print dhcp,nohup
            print "reading .."
            sleep(30)
back().start()

PORT = 8009
Handler = SimpleHTTPServer.SimpleHTTPRequestHandler
httpd = SocketServer.TCPServer(("", PORT), Handler)

print "serving at port", PORT
httpd.serve_forever()

最终效果

类似于:


参考:

https://www.freesion.com/article/68271084308/

相关推荐
Ronin-Lotus11 天前
嵌入式硬件篇---WIFI模块
嵌入式硬件·wifi·c
Oflycomm17 天前
突破连接边界!O9201PM Wi-Fi 6 + 蓝牙 5.4 模块重新定义笔记本无线体验
wifi·电脑·wifi模块·bluetooth·wifi6·bt
tangweiguo0305198722 天前
Android打造易用的 WiFi 工具类:WifiUtils 封装实践
android·java·wifi
daisy.skye1 个月前
WIFI的SSID超长,隐藏,重复 (2.4G和5G差异)
5g·wifi·2.4g·频率·热点
__Witheart__1 个月前
RK Android11 WiFi模组 AIC8800 驱动移植流程
android·wifi·3568·rockchip·aic8800
xiaohai@Linux1 个月前
ESP32 在IDF_V5.3.1版本下实现AP无线热点模式!(带WIFI事件处理)
c语言·嵌入式硬件·tcp/ip·wifi·esp32
zeruns8022 个月前
爱快 IK-W35 面板式AP 简单开箱评测和拆解,双频WiFi6 AX3000,2.5G网口
5g·wifi·路由器·无线路由器·爱快·ik-w35
月光技术杂谈2 个月前
OSI&5G&WIFI&自组网协议层次对比
tcp/ip·5g·wifi·osi·自组网·七层模式·协议架构
深圳启明云端科技2 个月前
ESP RainMaker轻量级云平台方案,产品私有云部署,物联网无线应用
网络·物联网·wifi·智能家居