获取stok

curl 'http://192.168.2.1/cgi-bin/' -H 'Origin: http://192.168.2.1' -H 'Accept-Encoding: gzip, deflate' -H 'Accept-Language: zh,zh-CN;q=0.9' -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36' -H 'Content-Type: application/json' -H 'Accept: */*' -H 'Referer: http://192.168.2.1/cgi-bin' -H 'X-Requested-With: XMLHttpRequest' -H 'Connection: keep-alive' -H 'DNT: 1' --data-binary '{"method":"set","module":{"security":{"login":{"username":"admin","password":"c211111111111D"}}},"_deviceType":"pc"}' --compressed ;

stok信息:

{"module":{"security":{"login":{"stok":"8fbdcaf48c8736a5d15c546abecb445d","guide":"0","ip":"192.168.2.219"}}},"error_code":0}

获取网络状态

curl 'http://192.168.2.1/cgi-bin/stok=8fbdcaf48c8736a5d15c546abecb445d/data' -H 'Origin: http://192.168.2.1' -H 'Accept-Encoding: gzip, deflate' -H 'Accept-Language: zh,zh-CN;q=0.9' -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36' -H 'Content-Type: application/json' -H 'Accept: */*' -H 'Referer: http://192.168.2.1/cgi-bin' -H 'X-Requested-With: XMLHttpRequest' -H 'Connection: keep-alive' -H 'DNT: 1' --data-binary '{"method":"get","module":{"device_manage":{"device_num":null},"network":{"wan_status":null},"device":{"info":null}},"_deviceType":"pc"}' --compressed

网络状态:

{"module":{"device":{"info":{"mac":"2C%3aB2%3a1A%3a86%3aFB%3a84","cpu_freq":"800","domain":"p.to","region":"","isp":"","product_id":"783b5f7beaba3069be724ae1325a9033","used_ram":"109617152","sw_ver":"32.1
.46.268","hw_ver":"B1","uptime":"9323","current_time":"2018%2f12%2f04%2022%3a42%3a24","model":"K3C","cpu_used":"13","total_ram":"194641920","hw_id":"8148d919440dab6f291a4395804586e6","wan_ip":"10.206.226.194"}},"network":{"wan_status":{"mac":"2C%3aB2%3a1A%3a86%3aFB%3a84","dns_pri":"180.76.76.76","protocol":"pppoe","netmask":"255.255.255.255","dns_sec":"223.5.5.5","upload_speed":"46516","ip":"10.206.226.194","status_code":"0","gateway":"10.206.224.1","internet_status":"1","download_speed":"778403"}},"device_manage":{"device_num":{"online_24G":"2","online_5G":"6","online_lan":"6","online_guest":"0"}}},"error_code":0}

获取系统状态

curl 'http://192.168.2.1/cgi-bin/stok=f82274a2e931a107c9177ecf007e6be6/data' -H 'Origin: http://192.168.2.1' -H 'Accept-Encoding: gzip, deflate' -H 'Accept-Language: zh,zh-CN;q=0.9' -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36' -H 'Content-Type: application/json' -H 'Accept: */*' -H 'Referer: http://192.168.2.1/cgi-bin' -H 'X-Requested-With: XMLHttpRequest' -H 'Connection: keep-alive' -H 'DNT: 1' --data-binary '{"method":"get","module":{"device":{"info":null},"network":{"wan_status":null,"lan":null},"wireless":{"wifi_2g_status":null,"wifi_5g_status":null},"usb":{"device":null},"wisp":{"config":null}},"_deviceType":"pc"}' --compressed

系统状态:

{"module":{"network":{"wan_status":{"mac":"2C%3aB2%3a1A%3a86%3aFB%3a84","dns_pri":"180.76.76.76","protocol":"pppoe","netmask":"255.255.255.255","dns_sec":"223.5.5.5","upload_speed":"7068","ip":"10.206.226
.194","status_code":"0","gateway":"10.206.224.1","internet_status":"1","download_speed":"885544"},"lan":{"mac":"2C%3aB2%3a1A%3a86%3aFB%3a84","netmask":"255.255.255.0","ip":"192.168.2.1"}},"wireless":{"wifi_2g_status":{"mac":"2C%3aB2%3a1A%3a86%3aFB%3a87","ssid":"db","channel":"%20%20%20%20%20%20%20%20%20%2010%0a","enable":"1","mode":"0","safe_mode":"1"},"wifi_5g_status":{"mac":"2C%3aB2%3a1A%3a86%3aFB%3a85","ssid":"db","channel":"%20%20%20%20%20%20%20%20%20%2036%0a","enable":"1","mode":"0","safe_mode":"1"}},"device":{"info":{"mac":"2C%3aB2%3a1A%3a86%3aFB%3a84","cpu_freq":"800","domain":"p.to","region":"","isp":"","product_id":"783b5f7beaba3069be724ae1325a9033","used_ram":"107892736","sw_ver":"32.1.46.268","hw_ver":"B1","uptime":"9906","current_time":"2018%2f12%2f04%2022%3a52%3a07","model":"K3C","cpu_used":"19","total_ram":"194641920","hw_id":"8148d919440dab6f291a4395804586e6","wan_ip":"10.206.226.194"}},"wisp":{"config":{"band":"0","ssid":"%40PHICOMM_XX","encryption":"TKIP","enable":"0","bssid":"00%3aCD%3aFE%3aDF%3aD7%3a48","ip":"10.10.10.1","password":"12345678","safe_mode":"WPA2-PSK","gateway":"10.10.10.100","protocol":"dhcp"}},"usb":{"device":{"device_list":[{"dev":"sda","name":"H1%20Phi","free_capacity":"304949338112","total_capacity":"1000202240000"}],"connecte":"1"}}},"error_code":0}

获取无线终端

curl 'http://192.168.2.1/cgi-bin/stok=f82274a2e931a107c9177ecf007e6be6/data' -H 'Origin: http://192.168.2.1' -H 'Accept-Encoding: gzip, deflate' -H 'Accept-Language: zh,zh-CN;q=0.9' -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36' -H 'Content-Type: application/json' -H 'Accept: */*' -H 'Referer: http://192.168.2.1/cgi-bin' -H 'X-Requested-With: XMLHttpRequest' -H 'Connection: keep-alive' -H 'DNT: 1' --data-binary '{"method":"get","module":{"device_manage":{"client_list":null}},"_deviceType":"pc"}' --compressed

无线终端:

{"module":{"device_manage":{"client_list":[{"mac":"00%3ae0%3a4c%3a68%3a02%3a3c","online_status":"0","internet_enable":"1","download_speed":"","upload_speed":"","ip":"192.168.2.236","online_time":"","name"
:"ESXi","id":"Device.Clients.Client.3","upload_limit":"0","download_limit":"0","device_type":"0"},{"mac":"50%3a8f%3a4c%3ae5%3ace%3ace","online_status":"1","internet_enable":"1","download_speed":"9","upload_speed":"8","ip":"192.168.2.240","online_time":"5734","name":"MI6-qy","id":"Device.Clients.Client.4","upload_limit":"0","download_limit":"0","device_type":"2"},{"mac":"38%3abc%3a1a%3a15%3ac3%3aa9","online_status":"0","internet_enable":"1","download_speed":"","upload_speed":"","ip":"192.168.2.208","online_time":"","name":"MEIZU-MX4-qy","id":"Device.Clients.Client.7","upload_limit":"0","download_limit":"0","device_type":"0"},{"mac":"00%3ae0%3a4c%3a36%3aa0%3ab3","online_status":"0","internet_enable":"1","download_speed":"","upload_speed":"","ip":"192.168.2.103","online_time":"","name":"server-atom","id":"Device.Clients.Client.8","upload_limit":"0","download_limit":"0","device_type":"0"},{"mac":"84%3aef%3a18%3a9c%3abb%3abb","online_status":"0","internet_enable":"1","download_speed":"0","upload_speed":"0","ip":"192.168.2.212","online_time":"25","name":"*","id":"Device.Clients.Client.9","upload_limit":"0","download_limit":"0","device_type":"0"},{"mac":"94%3a87%3ae0%3a22%3a7c%3aef","online_status":"1","internet_enable":"1","download_speed":"160873","upload_speed":"28","ip":"192.168.2.150","online_time":"9604","name":"MI8-wx","id":"Device.Clients.Client.12","upload_limit":"0","download_limit":"0","device_type":"2"},{"mac":"a4%3a7b%3a9d%3a05%3ad1%3a6c","online_status":"0","internet_enable":"1","download_speed":"","upload_speed":"","ip":"192.168.2.187","online_time":"","name":"%e4%bd%93%e8%84%82%e7%a7%b0-wx","id":"Device.Clients.Client.13","upload_limit":"0","download_limit":"0","device_type":"0"},{"mac":"3c%3abd%3a3e%3a99%3a2a%3ad1","online_status":"1","internet_enable":"1","download_speed":"0","upload_speed":"0","ip":"192.168.2.211","online_time":"9604","name":"MiAiSoundbox-wx","id":"Device.Clients.Client.14","upload_limit":"0","download_limit":"0","device_type":"1"},{"mac":"78%3a11%3adc%3a50%3a65%3a73","online_status":"0","internet_enable":"1","download_speed":"","upload_speed":"","ip":"192.168.2.209","online_time":"","name":"%e7%94%b5%e7%a3%81%e7%82%89-wx","id":"Device.Clients.Client.15","upload_limit":"0","download_limit":"0","device_type":"0"},{"mac":"98%3a9e%3a63%3aeb%3a5c%3ae4","online_status":"1","internet_enable":"1","download_speed":"77881","upload_speed":"3460","ip":"192.168.2.127","online_time":"416","name":"ouakirakiiPhone-wx","id":"Device.Clients.Client.16","upload_limit":"0","download_limit":"0","device_type":"2"},{"mac":"78%3a02%3af8%3a28%3a3c%3a97","online_status":"1","internet_enable":"1","download_speed":"0","upload_speed":"0","ip":"192.168.2.213","online_time":"9604","name":"MI5s-xiaomishouji-wx","id":"Device.Clients.Client.17","upload_limit":"0","download_limit":"0","device_type":"2"},{"mac":"d8%3a9a%3a34%3a25%3abf%3a3e","online_status":"1","internet_enable":"1","download_speed":"0","upload_speed":"0","ip":"192.168.2.245","online_time":"9604","name":"phone-wx","id":"Device.Clients.Client.18","upload_limit":"0","download_limit":"0","device_type":"2"},{"mac":"a8%3aa7%3a95%3a8b%3a79%3acb","online_status":"0","internet_enable":"1","download_speed":"","upload_speed":"","ip":"192.168.2.120","online_time":"","name":"king-PC-wx","id":"Device.Clients.Client.19","upload_limit":"0","download_limit":"0","device_type":"0"},{"mac":"fc%3a7c%3a02%3a4b%3a5d%3ad3","online_status":"0","internet_enable":"1","download_speed":"","upload_speed":"","ip":"192.168.2.170","online_time":"","name":"N1-lan","id":"Device.Clients.Client.20","upload_limit":"0","download_limit":"0","device_type":"0"},{"mac":"00%3a90%3a4c%3ac5%3a12%3a38","online_status":"1","internet_enable":"1","download_speed":"217","upload_speed":"90","ip":"192.168.2.151","online_time":"9604","name":"N2-5g","id":"Device.Clients.Client.23","upload_limit":"0","download_limit":"0","device_type":"2"},{"mac":"58%3a40%3a4e%3a2d%3a0d%3ac9","online_status":"0","internet_enable":"1","download_speed":"","upload_speed":"","ip":"192.168.2.141","online_time":"","name":"pearXie","id":"Device.Clients.Client.29","upload_limit":"0","download_limit":"0","device_type":"0"},{"mac":"b0%3a35%3a9f%3a90%3a96%3ad8","online_status":"0","internet_enable":"1","download_speed":"","upload_speed":"","ip":"192.168.2.220","online_time":"","name":"XQX-PC","id":"Device.Clients.Client.30","upload_limit":"0","download_limit":"0","device_type":"0"},{"mac":"80%3afa%3a5b%3a2b%3ad8%3a62","online_status":"1","internet_enable":"1","download_speed":"533048","upload_speed":"28236","ip":"192.168.2.229","online_time":"9604","name":"DevOps","id":"Device.Clients.Client.31","upload_limit":"0","download_limit":"0","device_type":"0"},{"mac":"b4%3a9c%3adf%3adc%3a9a%3a30","online_status":"1","internet_enable":"1","download_speed":"407571","upload_speed":"1775","ip":"192.168.2.216","online_time":"7381","name":"xieqixiude-iPad","id":"Device.Clients.Client.32","upload_limit":"0","download_limit":"0","device_type":"2"},{"mac":"00%3a0c%3a29%3ad3%3ab9%3adc","online_status":"0","internet_enable":"1","download_speed":"","upload_speed":"","ip":"192.168.2.112","online_time":"","name":"*","id":"Device.Clients.Client.33","upload_limit":"0","download_limit":"0","device_type":"0"},{"mac":"00%3a0c%3a29%3aa9%3aa2%3a37","online_status":"0","internet_enable":"1","download_speed":"","upload_speed":"","ip":"192.168.2.109","online_time":"","name":"node02","id":"Device.Clients.Client.34","upload_limit":"0","download_limit":"0","device_type":"0"},{"mac":"00%3a0c%3a29%3acf%3a2a%3afd","online_status":"0","internet_enable":"1","download_speed":"","upload_speed":"","ip":"192.168.2.241","online_time":"","name":"node01","id":"Device.Clients.Client.35","upload_limit":"0","download_limit":"0","device_type":"0"},{"mac":"00%3a0c%3a29%3ad2%3a29%3af2","online_status":"0","internet_enable":"1","download_speed":"","upload_speed":"","ip":"192.168.2.143","online_time":"","name":"node03","id":"Device.Clients.Client.36","upload_limit":"0","download_limit":"0","device_type":"0"},{"mac":"00%3a0c%3a29%3a00%3af1%3aab","online_status":"1","internet_enable":"1","download_speed":"202","upload_speed":"208","ip":"192.168.2.201","online_time":"9604","name":"node01","id":"Device.Clients.Client.37","upload_limit":"0","download_limit":"0","device_type":"0"},{"mac":"00%3a0c%3a29%3a26%3a3a%3ab7","online_status":"0","internet_enable":"1","download_speed":"","upload_speed":"","ip":"192.168.2.132","online_time":"","name":"*","id":"Device.Clients.Client.38","upload_limit":"0","download_limit":"0","device_type":"0"},{"mac":"00%3a0c%3a29%3a26%3a9b%3aef","online_status":"0","internet_enable":"1","download_speed":"","upload_speed":"","ip":"192.168.2.152","online_time":"","name":"node01","id":"Device.Clients.Client.39","upload_limit":"0","download_limit":"0","device_type":"0"},{"mac":"00%3a0c%3a29%3a81%3a24%3a12","online_status":"0","internet_enable":"1","download_speed":"","upload_speed":"","ip":"192.168.2.165","online_time":"","name":"node02","id":"Device.Clients.Client.40","upload_limit":"0","download_limit":"0","device_type":"0"},{"mac":"00%3a0c%3a29%3ade%3a58%3ab9","online_status":"0","internet_enable":"1","download_speed":"","upload_speed":"","ip":"192.168.2.188","online_time":"","name":"node03","id":"Device.Clients.Client.41","upload_limit":"0","download_limit":"0","device_type":"0"},{"mac":"00%3a0c%3a29%3a0e%3a65%3a84","online_status":"0","internet_enable":"1","download_speed":"","upload_speed":"","ip":"192.168.2.175","online_time":"","name":"*","id":"Device.Clients.Client.42","upload_limit":"0","download_limit":"0","device_type":"0"},{"mac":"00%3a0c%3a29%3aa6%3afd%3a2a","online_status":"1","internet_enable":"1","download_speed":"0","upload_speed":"18","ip":"192.168.2.144","online_time":"9604","name":"db","id":"Device.Clients.Client.43","upload_limit":"0","download_limit":"0","device_type":"0"},{"mac":"00%3a0c%3a29%3aa2%3a15%3a7d","online_status":"0","internet_enable":"1","download_speed":"","upload_speed":"","ip":"192.168.2.123","online_time":"","name":"WIN-MG63L2OJFBT","id":"Device.Clients.Client.44","upload_limit":"0","download_limit":"0","device_type":"0"},{"mac":"00%3a0c%3a29%3abc%3aeb%3a74","online_status":"0","internet_enable":"1","download_speed":"","upload_speed":"","ip":"192.168.2.248","online_time":"","name":"WIN-MG63L2OJFBT","id":"Device.Clients.Client.45","upload_limit":"0","download_limit":"0","device_type":"0"},{"mac":"00%3a0c%3a29%3a5e%3a09%3aad","online_status":"0","internet_enable":"1","download_speed":"","upload_speed":"","ip":"192.168.2.169","online_time":"","name":"server","id":"Device.Clients.Client.46","upload_limit":"0","download_limit":"0","device_type":"0"},{"mac":"00%3a0c%3a29%3a7e%3a25%3af0","online_status":"0","internet_enable":"1","download_speed":"","upload_speed":"","ip":"192.168.2.171","online_time":"","name":"desktop-esxi","id":"Device.Clients.Client.47","upload_limit":"0","download_limit":"0","device_type":"0"},{"mac":"00%3a0c%3a29%3a3d%3a0c%3a8c","online_status":"0","internet_enable":"1","download_speed":"","upload_speed":"","ip":"192.168.2.109","online_time":"","name":"node01","id":"Device.Clients.Client.48","upload_limit":"0","download_limit":"0","device_type":"0"},{"mac":"00%3a0c%3a29%3ab1%3a11%3a96","online_status":"0","internet_enable":"1","download_speed":"","upload_speed":"","ip":"192.168.2.237","online_time":"","name":"node02","id":"Device.Clients.Client.49","upload_limit":"0","download_limit":"0","device_type":"0"},{"mac":"00%3a0c%3a29%3ad2%3ada%3af1","online_status":"0","internet_enable":"1","download_speed":"","upload_speed":"","ip":"192.168.2.172","online_time":"","name":"node03","id":"Device.Clients.Client.50","upload_limit":"0","download_limit":"0","device_type":"0"},{"mac":"00%3a0c%3a29%3a09%3a97%3a18","online_status":"0","internet_enable":"1","download_speed":"","upload_speed":"","ip":"192.168.2.181","online_time":"","name":"*","id":"Device.Clients.Client.51","upload_limit":"0","download_limit":"0","device_type":"0"},{"mac":"00%3a0c%3a29%3a9f%3a20%3a59","online_status":"1","internet_enable":"1","download_speed":"7630","upload_speed":"1298","ip":"192.168.2.219","online_time":"9604","name":"server","id":"Device.Clients.Client.52","upload_limit":"0","download_limit":"0","device_type":"0"},{"mac":"00%3a0c%3a29%3a7e%3a25%3afa","online_status":"1","internet_enable":"1","download_speed":"183","upload_speed":"177","ip":"192.168.2.181","online_time":"9604","name":"desktop","id":"Device.Clients.Client.53","upload_limit":"0","download_limit":"0","device_type":"0"},{"mac":"00%3a0c%3a29%3a00%3af1%3ab5","online_status":"0","internet_enable":"1","download_speed":"","upload_speed":"","ip":"192.168.2.201","online_time":"","name":"*","id":"Device.Clients.Client.54","upload_limit":"0","download_limit":"0","device_type":"0"},{"mac":"00%3a0c%3a29%3ac0%3aea%3a22","online_status":"0","internet_enable":"1","download_speed":"","upload_speed":"","ip":"192.168.2.224","online_time":"","name":"node02","id":"Device.Clients.Client.55","upload_limit":"0","download_limit":"0","device_type":"0"},{"mac":"00%3a0c%3a29%3a6f%3a7f%3a23","online_status":"0","internet_enable":"1","download_speed":"","upload_speed":"","ip":"192.168.2.183","online_time":"","name":"node03","id":"Device.Clients.Client.56","upload_limit":"0","download_limit":"0","device_type":"0"},{"mac":"00%3a0c%3a29%3a34%3ab4%3acf","online_status":"0","internet_enable":"1","download_speed":"","upload_speed":"","ip":"192.168.2.136","online_time":"","name":"omv","id":"Device.Clients.Client.57","upload_limit":"0","download_limit":"0","device_type":"0"},{"mac":"a4%3a5e%3a60%3ab7%3ad6%3aff","online_status":"0","internet_enable":"1","download_speed":"","upload_speed":"","ip":"192.168.2.192","online_time":"","name":"chenghuandeMBP","id":"Device.Clients.Client.58","upload_limit":"1","download_limit":"0","device_type":"0"},{"mac":"fc%3a7c%3a02%3ad2%3a2b%3a2e","online_status":"0","internet_enable":"1","download_speed":"","upload_speed":"","ip":"192.168.2.189","online_time":"","name":"unknown","id":"Device.Clients.Client.59","upload_limit":"0","download_limit":"0","device_type":"0"},{"mac":"fc%3a7c%3a02%3ad2%3a2b%3a2f","online_status":"0","internet_enable":"1","download_speed":"","upload_speed":"","ip":"192.168.2.190","online_time":"","name":"unknown","id":"Device.Clients.Client.60","upload_limit":"0","download_limit":"0","device_type":"0"},{"mac":"00%3a0c%3a29%3afa%3afa%3ade","online_status":"1","internet_enable":"1","download_speed":"0","upload_speed":"0","ip":"192.168.2.140","online_time":"9604","name":"public","id":"Device.Clients.Client.61","upload_limit":"0","download_limit":"0","device_type":"0"}]}},"error_code":0}

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注

Captcha Code