相关阅读
准备工作
需要先给自己的Linux系统安装git
命令
CentOS
如果你是CentOS环境,您可以输入下面的命令
sudo yum install git
Debian/Ubuntu
sudo apt install git
下载git仓库
git clone https://github.com/GONZOsint/geowifi.git
![图片[1]-如何通过WIFI的BSSID/SSID溯源定位-FancyPig's blog](https://www.cvv-goods.com/wp-content/uploads/2023/03/20220705034739270.webp)
安装依赖
我们输入下面的命令进入geowifi目录
cd geowifi
![图片[2]-如何通过WIFI的BSSID/SSID溯源定位-FancyPig's blog](https://www.cvv-goods.com/wp-content/uploads/2023/03/20220705034847281.webp)
安装依赖
python3 -m pip install -r requirements.txt
![图片[3]-如何通过WIFI的BSSID/SSID溯源定位-FancyPig's blog](https://www.cvv-goods.com/wp-content/uploads/2023/03/20220705034930311-1024x622-1.webp)
工具的使用
通常我们可以在流量里查看到BSSID、SSID相关数据
我们这里可以对自己的Wifi进行验证,打开CMD,输入下面的命令
netsh wlan show networks mode=bssid
![图片[4]-如何通过WIFI的BSSID/SSID溯源定位-FancyPig's blog](https://www.cvv-goods.com/wp-content/uploads/2023/03/20220705054234151.webp)
然后我们复制BSSID,然后使用刚才我们的工具
python3 geowifi.py -b xx:xx:xx:xx:xx:xx -m
![图片[5]-如何通过WIFI的BSSID/SSID溯源定位-FancyPig's blog](https://www.cvv-goods.com/wp-content/uploads/2023/03/20220705065556439.webp)
-m
的意思是会生成一个html的页面,自动调用Google地球进行渲染
然后我们打开html的页面就可以查看定位了!有的时候会有多个位置,大概样子就是下面的。
放大是可以看到定位名称的!
![图片[6]-如何通过WIFI的BSSID/SSID溯源定位-FancyPig's blog](https://www.cvv-goods.com/wp-content/uploads/2023/03/20220705065626227.webp)
当然,你可以直接将GEO的坐标记录下来,然后用其他的在线工具进行读取,都可以的
值得补充的是,部分BSSID还可以获取到一些设备的信息,比方说路由器是TP-Link的
![图片[7]-如何通过WIFI的BSSID/SSID溯源定位-FancyPig's blog](https://www.cvv-goods.com/wp-content/uploads/2023/03/20220705065915680.webp)
报错处理
如果出现了
Traceback (most recent call last):
File "/home/fancypig/桌面/geowifi/geowifi.py", line 8, in <module>
from utils import searcher, mapper, vendorcheck
File "/home/fancypig/桌面/geowifi/utils/searcher.py", line 8, in <module>
from helpers import BSSIDApple_pb2
File "/home/fancypig/桌面/geowifi/helpers/BSSIDApple_pb2.py", line 31, in <module>
_descriptor.FieldDescriptor(
File "/home/fancypig/.local/lib/python3.10/site-packages/google/protobuf/descriptor.py", line 560, in __new__
_message.Message._CheckCalledFromGeneratedFile()
TypeError: Descriptors cannot not be created directly.
If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.
If you cannot immediately regenerate your protos, some other possible workarounds are:
1. Downgrade the protobuf package to 3.20.x or lower.
2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).
如下图所示
![图片[8]-如何通过WIFI的BSSID/SSID溯源定位-FancyPig's blog](https://www.cvv-goods.com/wp-content/uploads/2023/03/20220705054519578.webp)
我们可以通过手动降低 protobuf 为 3.x
下面的命令来解决此问题
pip install protobuf==3.20.1
© 版权声明
THE END
暂无评论内容