代码拉取完成,页面将自动刷新
<?php
/**
* 模拟wifi路由器发送虚拟身份数据
* 需要重新配置host地址
*
*/
require 'config.php';
$host = HOST_ADDR;
function request_by_curl($remote_server, $post_string) {
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $remote_server);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_string);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_USERAGENT, "AnyWiFi.com's CURL Example beta");
$data = curl_exec($ch);
curl_close($ch);
return $data;
}
$data = '"devmac":"48-5d-60-a3-bc-8a","climac":"c0-f2-fb-8c-c0-48","ssid":"","bssid":"","time":"1458968069","signal":"0"'.chr(13).chr(10).'"devmac":"48-5d-60-a3-bc-8a","climac":"ec-5a-86-c6-eb-5c","ssid":"","bssid":"","time":"1458968069","signal":"0","qq":"11111111111","qq":"333333333","taobao":"444444444"'.chr(10).'"devmac":"48-5d-60-a3-bc-8a","climac":"20-68-9d-c7-51-33","ssid":"","bssid":"","time":"1458968070","signal":"-65","qq":"22222221111","taobao":"dddddddd"';
echo request_by_curl('cliprobe_curl/index.php?action=reportclient', $data);
$ap_data = '"devmac":"48-5d-60-a3-bc-8a","bssid":"c0-f2-fb-8c-c0-48","ssid":"2182","channel":"1","encrypt":"WPA2","signal":"-83"'.chr(13).chr(10).'"devmac":"48-5d-60-a3-bc-88","bssid":"c0-f2-fb-8c-c0-48","ssid":"2182","channel":"1","encrypt":"WPA2","signal":"-83"';
echo request_by_curl('cliprobe_curl/index.php?action=reportap', $ap_data);
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。