Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Initialization
- $username = "iPowerX";
- $password= "9339572";
- $url = "https://www.fxp.co.il/";
- // Change
- $forumid = "21"; // enter the forum id
- $uid = "836513"; // Your Fxp User id
- date_default_timezone_set('Asia/Jerusalem'); // Change To IL Time
- echo date("H:i:s"). "|| Loading FXP.\n";
- // Login
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_VERBOSE, false); // Log
- curl_setopt($ch, CURLOPT_HEADER,false);
- curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookie.txt');
- curl_setopt($ch, CURLOPT_COOKIEJAR, 'cookie.txt');
- curl_setopt($ch, CURLOPT_RETURNTRANSFER,true);
- curl_setopt($ch, CURLOPT_COOKIESESSION,true);
- curl_setopt($ch, CURLOPT_SSL_VERIFYPEER,false);
- curl_setopt($ch, CURLOPT_SSL_VERIFYHOST,false);
- curl_setopt($ch, CURLOPT_FOLLOWLOCATION,true);
- 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');
- curl_setopt($ch, CURLOPT_REFERER, $url.'index.php');
- curl_setopt($ch, CURLOPT_URL, $url.'login.php?do=login');
- curl_setopt($ch, CURLOPT_POST, 1);
- 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));
- $exec = curl_exec($ch);
- echo date("H:i:s"). "|| Logging in.\n";
- sleep(5);
- // Get The Security Token
- $timeout = 5;
- curl_setopt($ch, CURLOPT_URL, $url);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
- curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
- $data_csrf = curl_exec($ch);
- $csrf = substr($data_csrf, strpos($data_csrf,'securitytoken') , 73);
- $csrf2 = substr($data_csrf, strpos($data_csrf,'securitytoken') , 22);
- $csrf3 = str_replace($csrf2,"",$csrf);
- echo date("H:i:s"). "|| Security Token: " .$csrf3. "\n";
- while(1) {
- $random = substr( md5(rand()), 0, 7);
- curl_setopt($ch, CURLOPT_URL, "https://www.fxp.co.il/newthread.php?do=postthread&f=$forumid");//
- curl_setopt($ch, CURLOPT_POST, true);
- $data = array(
- "prefixid" => "q",
- "subject" => $random,
- "message_backup" => $random,
- "message" => $random,
- "wysiwyg" => "1",
- "s" => "",
- "securitytoken" => $csrf3,
- "f" => $forumid,
- "do" => "postthread",
- "posthash" => "",
- "poststarttime" => "",
- "loggedinuser" => $uid,
- "sbutton" => "צור אשכול חדש",
- "signature" => "1",
- "parseurl" => "1"
- );
- $data_2 = http_build_query($data);
- curl_setopt($ch, CURLOPT_POSTFIELDS, $data_2);
- $exec = curl_exec($ch);
- echo date("H:i:s"). "Comment sent.\n";
- sleep(1*5);
- }
- curl_close($ch);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement