Skip to content

Commit

Permalink
v2 stable update
Browse files Browse the repository at this point in the history
  • Loading branch information
Sinus44 authored Jan 14, 2023
1 parent ac6ceb7 commit f7790c2
Show file tree
Hide file tree
Showing 4 changed files with 93 additions and 6 deletions.
Binary file modified bin/release/Wifi-Reloader.exe
Binary file not shown.
Binary file added bin/release/v1 (renamed)/Wifi-Reloader.exe
Binary file not shown.
85 changes: 85 additions & 0 deletions src/AutoPyToExe_Settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
{
"version": "auto-py-to-exe-configuration_v1",
"pyinstallerOptions": [
{
"optionDest": "noconfirm",
"value": true
},
{
"optionDest": "filenames",
"value": "C:/Users/PC/Desktop/Code/PY/DK/32#Wifi-Reloader/src/reload.py"
},
{
"optionDest": "onefile",
"value": true
},
{
"optionDest": "console",
"value": true
},
{
"optionDest": "icon_file",
"value": "C:/Users/PC/Desktop/Code/PY/DK/32#Wifi-Reloader/assets/logo.ico"
},
{
"optionDest": "name",
"value": "Wifi-Reloader"
},
{
"optionDest": "ascii",
"value": false
},
{
"optionDest": "clean_build",
"value": false
},
{
"optionDest": "loglevel",
"value": "CRITICAL"
},
{
"optionDest": "strip",
"value": false
},
{
"optionDest": "noupx",
"value": false
},
{
"optionDest": "disable_windowed_traceback",
"value": false
},
{
"optionDest": "embed_manifest",
"value": true
},
{
"optionDest": "uac_admin",
"value": false
},
{
"optionDest": "uac_uiaccess",
"value": false
},
{
"optionDest": "win_private_assemblies",
"value": false
},
{
"optionDest": "win_no_prefer_redirects",
"value": false
},
{
"optionDest": "bootloader_ignore_signals",
"value": false
},
{
"optionDest": "argv_emulation",
"value": false
}
],
"nonPyinstallerOptions": {
"increaseRecursionLimit": true,
"manualArguments": ""
}
}
14 changes: 8 additions & 6 deletions src/reload.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
import base64

try:
password = base64.b64encode(bytes(input("For restart input password: "), "utf-8")).decode("utf-8")
x = requests.post('http://192.168.0.1/login/Auth', data={"password":password}, allow_redirects=False)
requests.post("http://192.168.0.1/goform/sysReboot", data={"module1":"sysOperate","action":"reboot"}, headers={"cookie":x.headers["Set-Cookie"].split(";")[0]})
password = base64.b64encode(bytes(input("Для перезагрузки роутера введите пароль: "), "utf-8")).decode("utf-8")
x = requests.post('http://192.168.0.1/login/Auth', data={"password":password}, allow_redirects=False)
requests.post("http://192.168.0.1/goform/sysReboot", data={"module1":"sysOperate","action":"reboot"}, headers={"cookie":x.headers["Set-Cookie"].split(";")[0]})
print("Роутер перезагружется. Пожалуйста ожидайте включения.")
except:
print("Произошла ошибка. Проверьте правильность ввода пароля и / или повторите попытку позже.")
quit()
print("Роутер перезагружется. Пожалуйста ожидайте включения.")
print("Произошла ошибка. Проверьте правильность ввода пароля и / или повторите попытку позже.")

input("Нажмите Enter, что бы закрыть это окно.")
quit()

0 comments on commit f7790c2

Please sign in to comment.