Skip to content

Automatic get miwifi router public ip for Intranet penetration.自动获取小米路由器的外网IP,以供内网穿透使用。

Notifications You must be signed in to change notification settings

lollipopkit/miwifi_auto_get_real_public_ip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Intro

For Internet penetration. Only Mi WiFi Router.

小米路由器自动获取真实公网IP,以供内网穿透。

Attention

Plz specific password, start_day/time, router_ip in main.py before run.

使用前请先修改main.pypassword, start_day/time, router_ip值。

Usage

run python3 main.py listen in terminal for servers(such as your Raspberry Pi which you want to get real ip).

使用以上命令可以使本脚本持续运行于服务器(比如树莓派)中。

or run python3 main.py get to get the ip only once.

使用以上命令仅获取一次IP。

TODO

  • Web hook for notification when IP change
  • Thread mode for server run
  • Optional parameter for shell command

Dependency

Python 3 and requests library

pip3 install requests for installing requests

Thanks

Py Mi WiFi

utils.py partly from this repo.

License

LollipopKit 2020
Apache License 2.0

About

Automatic get miwifi router public ip for Intranet penetration.自动获取小米路由器的外网IP,以供内网穿透使用。

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages