Užitočné (1) | TomasHC |
#!/usr/bin/php <?php $heslo = "admin:nejakeheslo"; // zapnutie wifi $fd = fopen ("htt...//$heslo@192.168.0.100/goform/formWlanSetup?wlanDisabled0=&save=Apply+Changes", "r"); $zoznam=""; while (!feof ($fd)) { $buffer = fgets($fd, 2048); $zoznam=$zoznam.$buffer; } fclose ($fd); ?> a podobne ďalšie // zmena hesla $fd2 = fopen ("htt...//$heslo@192.168.0.100/goform/formWlEncrypt_New?method0=4&pskFormat0=0&pskValue0=$heslowifi&lifeTime0=3600&wlan0_auth_type=0&wlan0_encrypt=4&wlan0_wpa_auth=2&wlan0_enable_1x=&wlan0_wpa_cipher_suite=0&wlan0_wpa2_cipher_suite=2&submit-value=0.013&run_script_do_flag=no&save=Apply+Changes", "r"); // restartovanie $fd = fopen ("htt...//$heslo@192.168.0.100/goform/formReboot?reboot=Reboot", "r"); // vypnutie wifi $fd = fopen ("htt...//$heslo@192.168.0.100/goform/formWlanSetup?wlanDisabled0=ON&save=Apply+Changes", "r");