• vBulletin Thank Spammer
    4 replies, posted
I think this is more of programming then web development, so if im wrong yea a mod can move it probably if its that big of a deal. This script thanks every post of the member you issue below. This would be good to use for a bot to thank every post of yours on a forum, or thank every post of a friend and such. Also, if the forum has a "10 thanks a day" type thing, this script is not for that, this script is for unlimited thanks a day and such. You got a web host that uses Curl? Then spam a little. Requirements: Upload a "cookie.txt" file with 777 perms in the same directory. [PHP] <?php $username = "Ugleh"; //You or your bots username. $password = "passwordhere"; //You or your bots password $forum = "http://website.net/forum/"; //Forum you want to use //This is the main forum page, not Just the URL $thanksuser = "5374"; //Person you want to give thanks to(their ID) //Everything else off limits k. curl_login(''.$forum.'login.php?do=login','vb_login_username='.$username.'&&cookieuser=1&vb_login_password='.$password.'&x=13&y=22&s=&securitytoken=guest&do=login&vb_login_md5password=&vb_login_md5password_utf=','','off'); $grabbedpage = curl_grab_page(''.$forum.'search.php?searchid='.$thanksuser .'&pp=990000','','off'); //echo $grabbedpage; $post = '/#post(.+?)"/'; preg_match_all($post,$grabbedpage,$ost); $shit = $ost[1]; $variable = count($shit); $start = 0; do{ $grabbedpage = curl_grab_page(''.$forum.'showthread.php?t='.$shit[$start],'','off'); $html1 = '/name="securitytoken" value="(.+?)"/'; preg_match($html1,$grabbedpage,$raw1); $token1 = $raw1[1]; /*/ $grabbedpage = curl_grab_page(''.$forum.'reputation.php?p='.$shit[$start],'','off'); $html1 = '/name="securitytoken" value="(.+?)"/'; preg_match($html1,$grabbedpage,$raw1); $token2 = $raw1[1]; /*/ curl_post_data(''.$forum.'post_thanks.php','do=post_thanks_add&using_ajax=1&p='.$shit[$start].'&securitytoken='.$token1.'','','off'); }while(++$start<$variable); function curl_login($url,$data,$proxy,$proxystatus){ $fp = fopen("cookie.txt", "w"); fclose($fp); $login = curl_init(); curl_setopt($login, CURLOPT_COOKIEJAR, "cookie.txt"); curl_setopt($login, CURLOPT_COOKIEFILE, "cookie.txt"); curl_setopt($login, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)"); curl_setopt($login, CURLOPT_TIMEOUT, 40); curl_setopt($login, CURLOPT_RETURNTRANSFER, TRUE); if ($proxystatus == 'on') { curl_setopt($login, CURLOPT_SSL_VERIFYHOST, FALSE); curl_setopt($login, CURLOPT_HTTPPROXYTUNNEL, TRUE); curl_setopt($login, CURLOPT_PROXY, $proxy); } curl_setopt($login, CURLOPT_URL, $url); curl_setopt($login, CURLOPT_HEADER, TRUE); curl_setopt($login, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']); curl_setopt($login, CURLOPT_FOLLOWLOCATION, TRUE); curl_setopt($login, CURLOPT_POST, TRUE); curl_setopt($login, CURLOPT_POSTFIELDS, $data); ob_start(); // prevent any output return curl_exec ($login); // execute the curl command ob_end_clean(); // stop preventing output curl_close ($login); unset($login); } function curl_grab_page($site,$proxy,$proxystatus){ $ch = curl_init(); curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); curl_setopt($login, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)"); curl_setopt($login, CURLOPT_TIMEOUT, 40); if ($proxystatus == 'on') { curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE); curl_setopt($ch, CURLOPT_HTTPPROXYTUNNEL, TRUE); curl_setopt($ch, CURLOPT_PROXY, $proxy); } curl_setopt($ch, CURLOPT_COOKIEFILE, "cookie.txt"); curl_setopt($ch, CURLOPT_URL, $site); ob_start(); // prevent any output return curl_exec ($ch); // execute the curl command ob_end_clean(); // stop preventing output curl_close ($ch); } function curl_post_data($site,$datas,$proxy,$proxystatus){ $datapost = curl_init(); curl_setopt($datapost, CURLOPT_TIMEOUT, 40000000); curl_setopt($datapost, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)"); if ($proxystatus == 'on') { curl_setopt($datapost, CURLOPT_SSL_VERIFYHOST, FALSE); curl_setopt($datapost, CURLOPT_HTTPPROXYTUNNEL, TRUE); curl_setopt($datapost, CURLOPT_PROXY, $proxy); } curl_setopt($datapost, CURLOPT_URL, $site); curl_setopt($datapost, CURLOPT_HEADER, FALSE); curl_setopt($datapost, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']); curl_setopt($datapost, CURLOPT_POST, TRUE); curl_setopt($datapost, CURLOPT_POSTFIELDS, $datas); curl_setopt($datapost, CURLOPT_COOKIEFILE, "cookie.txt"); ob_start(); // prevent any output return curl_exec ($datapost); // execute the curl command ob_end_clean(); // stop preventing output curl_close ($datapost); unset($datapost); } ?> [/PHP]
Thanks but no thanks.
Sadly, I see no use for this, other than spamming.
Gracias pero no gracias. :P
Actually I think that would be "Gracias, pero ningunas gracias" :v:
Sorry, you need to Log In to post a reply to this thread.