shu auto net
1.0.0
本腳本採用Python3編寫,依賴於
Requests
IPy
pywifi
在python文件的main()函數中下,將00000000改成學號,"xxxxxx"改為密碼
connect_wire(00000000, "xxxxxx")
參考鏈接:https://blog.csdn.net/u012849872/article/details/82719372
bash裡輸入crontab -e
然後編輯界面加上具體的命令語句,每五分鐘執行一次
*/5 * * * * /usr/bin/python3.6 youpath/auto-shunet.py
在/etc/rc.local中添加指令
/usr/bin/python3.6 youpath/auto-shunet.py