From 56de43ca265b40e2f21cf02eaee049167889037a Mon Sep 17 00:00:00 2001 From: Nasir Hafeez <38311694+nasirhafeez@users.noreply.github.com> Date: Sat, 22 Feb 2025 10:11:42 +0500 Subject: [PATCH] ruckus vsz --- Ruckus/vsz/index.php | 78 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 Ruckus/vsz/index.php diff --git a/Ruckus/vsz/index.php b/Ruckus/vsz/index.php new file mode 100644 index 0000000..d437e55 --- /dev/null +++ b/Ruckus/vsz/index.php @@ -0,0 +1,78 @@ + "ruckus", + "RequestUserName" => "admin", + "RequestPassword" => "Admin@123", + "APIVersion" => "1.0", + "RequestCategory" => "UserOnlineControl", + "RequestType" => "Login", + "UE-IP" => $_SESSION["uip"], + "UE-MAC" => $_SESSION["client_mac"], + "UE-Proxy" => "0", + "UE-Username" => $username, + "UE-Password" => $password + ]; + + $curl = curl_init(); + + curl_setopt_array($curl, array( + CURLOPT_URL => $_SESSION['url'], + CURLOPT_RETURNTRANSFER => true, + CURLOPT_ENCODING => '', + CURLOPT_MAXREDIRS => 10, + CURLOPT_TIMEOUT => 0, + CURLOPT_SSL_VERIFYPEER => false, + CURLOPT_SSL_VERIFYHOST => false, + CURLOPT_FOLLOWLOCATION => true, + CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, + CURLOPT_CUSTOMREQUEST => 'POST', + CURLOPT_POSTFIELDS => json_encode($postData), + CURLOPT_HTTPHEADER => array( + 'Content-Type: application/json' + ), + )); + + $response = curl_exec($curl); + + curl_close($curl); + + if ($response !== false) { + $json = json_decode($response, true); + echo "
" . json_encode($json, JSON_PRETTY_PRINT) . ""; + } + else { + die("Error: check with your network administrator"); + } +} + +?> + + + + + +
Welcome!
+ Please login to our Wifi service