上传者: 43263541
|
上传时间: 2022-03-10 14:34:48
|
文件大小: 2KB
|
文件类型: -
万能钥匙在线密码查询
万能钥匙api查询接口在线查询wifi密码源码
$bssid = $_POST["bssid"] ;
$ssid = $_POST["ssid"] ;
if (isset( $bssid ) && isset( $ssid )){
//update salt
$ret = request( $bssid , $ssid , md5(rand(1, 10000)));
$ret = json_decode( $ret );
$ret = request( $bssid , $ssid , $ret ->retSn);
$ret = json_decode( $ret );
if ( $ret ->retCd == 0){
if ( $ret ->qryapwd->retCd == 0){
$list = $ret ->qryapwd->psws;
foreach ( $list as $wifi ){
echo 'SSID: ' . $wifi ->ssid. "" ;
echo 'PWD: ' .decryptStrin( $wifi ->pwd). "" ;
echo 'BSSID: ' . $wifi ->bssid. "" ;
if ( $wifi ->xUser){
echo 'xUser: ' . $wifi ->xUser. "" ;
echo 'xPwd: ' . $wifi ->xPwd. "" ;
}
}
}
else {
echo $ret ->qryapwd->retMsg;
}
}