Advertisement
Guest User

ss

a guest
Aug 9th, 2016
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.73 KB | None | 0 0
  1. <?php
  2. // Initialization
  3. $username = "iPowerX";
  4. $password= "9339572";
  5. $url = "https://www.fxp.co.il/";
  6.  
  7. // Change
  8. $forumid = "21"; // enter the forum id
  9. $uid = "836513"; // Your Fxp User id
  10.  
  11. date_default_timezone_set('Asia/Jerusalem'); // Change To IL Time
  12.  
  13. echo date("H:i:s"). "|| Loading FXP.\n";
  14. // Login
  15. $ch = curl_init();
  16. curl_setopt($ch, CURLOPT_VERBOSE, false); // Log
  17. curl_setopt($ch, CURLOPT_HEADER,false);
  18. curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookie.txt');
  19. curl_setopt($ch, CURLOPT_COOKIEJAR, 'cookie.txt');
  20. curl_setopt($ch, CURLOPT_RETURNTRANSFER,true);
  21. curl_setopt($ch, CURLOPT_COOKIESESSION,true);
  22. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER,false);
  23. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST,false);
  24. curl_setopt($ch, CURLOPT_FOLLOWLOCATION,true);
  25. curl_setopt($ch, CURLOPT_USERAGENT,'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.54 Safari/537.36');
  26. curl_setopt($ch, CURLOPT_REFERER, $url.'index.php');
  27. curl_setopt($ch, CURLOPT_URL, $url.'login.php?do=login');
  28. curl_setopt($ch, CURLOPT_POST, 1);
  29. curl_setopt($ch, CURLOPT_POSTFIELDS, "vb_login_username=$username&vb_login_password&s=&securitytoken=guest&do=login&vb_login_md5password=".md5($password)."&vb_login_md5password_utf=".md5($password));
  30. $exec = curl_exec($ch);
  31. echo date("H:i:s"). "|| Logging in.\n";
  32.  
  33. sleep(5);
  34.  
  35. // Get The Security Token
  36. $timeout = 5;
  37. curl_setopt($ch, CURLOPT_URL, $url);
  38. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  39. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
  40. $data_csrf = curl_exec($ch);
  41. $csrf = substr($data_csrf, strpos($data_csrf,'securitytoken') , 73);
  42. $csrf2 = substr($data_csrf, strpos($data_csrf,'securitytoken') , 22);
  43. $csrf3 = str_replace($csrf2,"",$csrf);
  44. echo date("H:i:s"). "|| Security Token: " .$csrf3. "\n";
  45.  
  46. while(1) {
  47. $random = substr( md5(rand()), 0, 7);
  48. curl_setopt($ch, CURLOPT_URL, "https://www.fxp.co.il/newthread.php?do=postthread&f=$forumid");//
  49. curl_setopt($ch, CURLOPT_POST, true);
  50. $data = array(
  51. "prefixid" => "q",
  52. "subject" => $random,
  53. "message_backup" => $random,
  54. "message" => $random,
  55. "wysiwyg" => "1",
  56. "s" => "",
  57. "securitytoken" => $csrf3,
  58. "f" => $forumid,
  59. "do" => "postthread",
  60. "posthash" => "",
  61. "poststarttime" => "",
  62. "loggedinuser" => $uid,
  63. "sbutton" => "צור אשכול חדש",
  64. "signature" => "1",
  65. "parseurl" => "1"
  66.  
  67. );
  68. $data_2 = http_build_query($data);
  69. curl_setopt($ch, CURLOPT_POSTFIELDS, $data_2);
  70. $exec = curl_exec($ch);
  71. echo date("H:i:s"). "Comment sent.\n";
  72. sleep(1*5);
  73. }
  74. curl_close($ch);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement