GPS定位
kali系统国内下载链接:https://mirrors.tuna.tsinghua.edu.cn/kali-images/kali-2024.2/kali-linux-2024.2-vmware-amd64.7z
ngrok下载地址:https://ngrok.com/download
seeker下载地址:https://github.com/thewhiteh4t/seeker
地址压缩:https://sina.lt/
经纬度定位坐标:http://jingweidu.757dy.com/
经度:Longitude
维度:Latitude
一:seeker得github下载源码包安装
git clone https://github.com/thewhiteh4t/seeker.git
cd seeker/
chmod +x install.sh
./install.sh(如有安装失败报错往下看)
###./install.sh ###报错1 如下
/usr/bin/env: ‘bash\r’: No such file or directory
#解决如下
vim install.sh
将文件格式由dos修改为unix
:set ff
fileformat=dos
:set ff=unix
fileformat=unix
##设置完成重新运行install.sh
##帮助##
python3 seeker.py -h
usage: seeker.py [-h] [-k KML] [-p PORT] [-u] [-v]
options:
-h, --help show this help message and exit
-k KML, --kml KML KML filename
-p PORT, --port PORT Web server port [ Default : 8080 ]
-u, --update Check for updates
-v, --version Prints version
报错2
如果requests安装失败,显示如下错误
error: externally-managed-environment× This environment is externally managed ?─> To install Python
packages system-wide, try apt install
python3-xyz, where xyz is the package you are trying to
install.If you wish to install a non-Debian-packaged Python package, create a virtual environment using python3 -m venv path/to/venv. Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make sure you have python3-full installed.
apt安装pipx
apt install -y pipx
并修改install.sh如下
pipx install requests --include-deps
packaging报错目前无关紧要
运行seeker定位
# python3 seeker.py
ngrok(内网穿透):安装方法
根据对应版本选择安装方式
kali系统安装ngrok命令
# curl -s https://ngrok-agent.s3.amazonaws.com/ngrok.asc | sudo tee /etc/apt/trusted.gpg.d/ngrok.asc >/dev/null && echo "deb https://ngrok-agent.s3.amazonaws.com buster main" | sudo tee /etc/apt/sources.list.d/ngrok.list && sudo apt update && sudo apt install ngrok
注册认证:
必须注册登录!后复制进行认证
运行并监听
启动一个HTTP隧道转发到您的本地端口80,运行下面的命令:
# ngrok http 8080
或者以下命令ssh会生成一个二维码(目前测试uc不要位置权限)
ssh -R 80:localhost:8080 nokey@localhost.run
ssh生成的二维码:(比直接运行ngrok方便准确,也会生成地址)
ngrok直接运行后地址伪装
启动ngrok之后复制网址,可https://sina.lt/进行伪装(地址伪装后先自己访问下,看是否能正常访问,不行就换个后缀重新生成下)其实现在伪装之后不管你手机电脑访问他都是要位置权限的,并且都会回归伪装前地址。有点多余
生成成功并可以正常访问的。
获取经纬度成功。
最后就可以利用以下网址进行经纬度地址查询了。
https://wocha.cn/ditu/?id=20676
http://jingweidu.757dy.com/