Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <title> Gerenciamento WI-FI </title>
- <meta charset="UTF-8">
- </head>
- <style>
- .button {
- background: #cce;
- border-radius:25px 30px;
- }
- .textbox {
- border-radius: 25px 30px;
- }
- #conteudo {
- padding:30px;
- border-radius:30px 20px;
- margin:0 auto 0;
- width:900px;
- height:500px;
- background:#cce;
- }
- </style>
- <body>
- <div id="conteudo">
- <h2> wrpc </h2>
- <hr>
- <?php
- $trocar = isset($_POST["trocar"]);
- $gateway = isset($_POST["gateway"]);
- $senha = isset($_POST["senha"]);
- if($trocar == true){
- $url = "$gateway";
- $post = "user=admin&senha=admin";
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, "$url");
- curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
- curl_setopt($ch, CURLOPT_TIMEOUT, 60);
- curl_setopt($ch, CURLOPT_POST, 1);
- curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
- $resultado = curl_exec ($ch);
- echo $result;
- curl_close($ch);
- }
- ?>
- <form method='POST' action='#'>
- Gateway : <br> <input type="text" name="gateway" class="textbox" placeholder="192.168.88.2"><br><br>
- Digite a nova senha:<br> <input type="text" name="senha" class="textbox"><br><br>
- <button type="submit" name="trocar" class="button">Trocar senha</button>
- </form>
- <br><br>
- <font size=+1>1- Digite uma senha de 8 Digitos e clique em "Trocar Senha"</font><br>
- <font size=+1>2- Aguarde 20 segundos</font><br>
- <font size=+1>3- Clique em Reiniciar Roteador</font><br>
- <font size=+1>4- Conecte-se nos seus aparelhos com sua nova senha!</font><br>
- </body>
- </div>
- </html>
Add Comment
Please, Sign In to add comment