AODI is a small tool developed based on the Python language. It can be used to regularly update the dynamically changing public network IP and push it to the mailbox to provide certain services for various remote services. Application scenarios such as remote control to connect to the PC at home, because you only need to know the public network IP of the current remote device, so reducing the use of DDNS deployment will appear flexible and light.
# Linux
git clone https://github.com/linwhitehat/AODI.git /root/rootcrons/
crontab /root/rootcrons/rootcron
/etc/init.d/cron restart
This project is developed using python3, the following libraries are required to support normal operation:
- smtplib
- requests
- time
- json
- re
The basic configuration of the tool includese-mail config
、Router config
andheaders
ofpublic IP config
,these are commented at the corresponding position of the code block.
Notice
The configuration information involves personal sensitive content. Please DO NOT leave any personal private content in the open network environment.
Run directly under the command line (IDE) or customize timing use:
# Run directly
python3 AODI.py
# Run regularly
vim /root/rootcrons/rootcron
0 * */1 * * /usr/bin/python /root/rootcrons/reportip.py
crontab /root/rootcrons/rootcron
/etc/init.d/cron restart
Feel free to dive in! Open new issue or submit PRs.
MIT © linwhitehat