Fritzbox
<?
$fritzbox_ip = 'fritz.box';
$fritzgui = 'http://fritz.box/cgi-bin/webcm';
$fritzseite = '../html/de/menus/menu2.html';
$password = 'xxxxx';
$ch = curl_init('http://' . $fritzbox_ip . '/cgi-bin/webcm?getpage=../html/login_sid.xml');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$login = curl_exec($ch);
$session_status_simplexml = simplexml_load_string($login);
if($session_status_simplexml->iswriteaccess == 1)
{
$SID = $session_status_simplexml->SID;
}
else
{
$challenge = $session_status_simplexml->Challenge;
$response = $challenge . '-' . md5(mb_convert_encoding($challenge . '-' . $password, "UCS-2LE", "UTF-8"));
curl_setopt($ch, CURLOPT_POSTFIELDS, "login:command/response={$response}&getpage=../html/de/menus/menu2.html");
preg_match('/name="sid" value="([0-9a-f]*)"/', curl_exec($ch), $matches);
if (isset($matches[1]) && $matches[1] != '0000000000000000')
{
$SID = $matches[1];
}
else
{
echo "Fehler: Login fehlgeschlagen";
return;
}
}
curl_close($ch);
$logInet = file_get_contents("http://fritz.box/system/syslog.lua?tab=internet&sid=".$SID);
preg_match_all('((?:\d{1,3}\.){3}\d{1,3})i', strip_tags($logInet), $ip);
SetValue(16596 /*[Fritzbox\IP-Adressen\I-Net]*/, $ip[0][0]);
SetValue(22491 /*[Fritzbox\IP-Adressen\DNS-Server 1]*/, $ip[0][1]);
SetValue(56705 /*[Fritzbox\IP-Adressen\DNS-Server 2]*/, $ip[0][2]);
SetValue(58268 /*[Fritzbox\IP-Adressen\Gateway]*/, $ip[0][3]);
//print_r($ip);
?>
Aktuelle IP-Adresse ( extern ) :
PHP-Code:
$StatusPage = file_get_contents('http://fritz.box/internet/inetstat_monitor.lua?sid='.$SID); $ip=substr(strstr($StatusPage,'["connection0:status/ip"] ='),29,14); $ip=substr($ip,0,strpos($ip,'"'));
Verbunden seit :
PHP-Code:--
$StatusPage = file_get_contents('http://fritz.box/internet/inetstat_monitor.lua?sid='.$SID); $datum=substr(strstr($StatusPage,'["connection0:status/conntime_date"]'),40,10); $zeit=substr(strstr($StatusPage,'["connection0:status/conntime_time"] ='),40,5); $verbundenseit=$datum." ".$zeit;
- Anker 575 USB-C Docking Station (13-in-1), 85W für Laptops
- Perfect Server Hardware for Virtualization | Proxmox | pve-05
- Pioneer Blu-Ray/BD/DVD/CD Reader/writer USB 3.0 BDR-XD07TB | WORKS OK with Debian 11
- NOT WORKING WITH DEBIAN 11 | Dockingstation | IcyBox 14-in-1 USB Type-C | IB-DK2262AC
- How to remove systemd services
- Laptop | Lenovo | Thinkpad E15 Gen3 AMD
- Laptop | Lenovo | LENOVO-IDEA IdeaPad 3 15IGL05 Notebook (15.6 ", 128 GB SSD, Business Black)
- D. Klimo | Kent monoblocks
- TTN Mapper
- LILYGO TTGO T-Beam V1.1 ESP32 LoRa 868Mhz GPS 18650 Board
- LILYGO® TTGO T-Beam 868MHz -> The Things Network (TTN/TTS) -> Karte | Infos und Video bei Alex (www.aeq-web.com)
- Kabelfarben 3.3V, 5V, 12V, 230V | Durchmesser
- 01 Digi-Bee Stand01 Wetter
- Solar Panel | 6V 3W Solar Panel JY D145x145
- TTGO LoRa32 V2.1_1.6 version 433/868/915Mhz ESP32 LoRa OLED 0.96 Inch SD Card Bluetooth WIFI wireless Module ESP-32 SMA
- -pve-04 | Disk SSD and HDD
- DISK SSD | 1 TB | Samsung SSD 870 EVO 1TB - 1TB
- NanoVNA V2
- CubeSat | antennas |
- KoZo_GS3_433MHz
- tinyGS - shortcut what it means
- TinyGS Telegram community | published Links
- Wolfgang W. Osterhage (Springer Verlag Sachbuch 2021): Die Geschichte der Raumfahrt | (gefundene Fehler)
- ucs Univention some commands
- SMA-Stecker / SMA-Buchse