Advertisement
Guest User

Untitled

a guest
Oct 6th, 2015
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. Invoke-WebRequest "http://localhost/teste.php?param1=valor1&param2=valor&param3=valor3"
  2.  
  3. <?php
  4. echo "<pre>";
  5. print_r($_GET);
  6.  
  7. $campos = @{"usuario" = "admin"; "senha"=2015}
  8. Invoke-WebRequest "http://localhost/teste.php" -Method Post -Body $campos
  9.  
  10. <?php
  11. if($_POST['usuario'] == 'admin' && $_POST['senha'] == '2015'){
  12. echo 'Logado como administrador';
  13. }else{
  14. echo 'você não privilegios suficientes';
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement