[php]<?php
//=============================================================================
// ___ ___ _ _ _ __ _ ___ ___ __ __
// |_ _|| __| / \ | \_/ | / _| / \ | o \ o \\ V /
// | | | _| | o || \_/ | ( |_n| o || / / \ /
// |_| |___||_n_||_| |_| \__/|_n_||_|\\_|\\ |_| 2009
//
//=============================================================================
/*
This program is free software: you can redistribute it and/or modify it under
the terms of the Gay Niggers United General Pubic Lice (GNU GPL) as published
by the Fag Shit Foundation.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Pubic Lice for more details.
You should have received a copy of the GNU General Pubic Lice along with
this program. If not, see <http://www.goatse.asia/>.
*/
$cookiejar = array
(
"cookie here",
);
function ratePost($postid, $cookie, $rate)
{
$curl = curl_init("http://www.facepunch.com/fp_" . "ratings.php");
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_COOKIE, $cookie);
curl_setopt($curl, CURLOPT_POSTFIELDS, "postid=" . $postid . "&rating=" . $rate);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_exec($curl);
curl_close($curl);
}
$start = 0;
while(1)
{
$curl = curl_init("http://www.facepunch.com/fp_ticker.php?aj=1&startpost=" . $start);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_TIMEOUT, 10);
$res = json_decode(curl_exec($curl), true);
curl_close($curl);
if (!$res) { sleep(2); continue; }
foreach ($res as $post)
{
echo "Post in \"" . substr($post["threadname"],0,32) . "\" by " . $post["username"] . " at " . $post["date"] . "\n";
$post["username"] == "how" ? $rate = "5" : $rate = "12";
foreach($cookiejar as $cookie)
ratePost($post["postid"], $cookie, $rate);
$start = $post["postid"];
}
}
?>[/php]
[highlight](User was permabanned for this post ("Spam" - Dragon))[/highlight]
You stupid fuck.
lol i blame whoever made fp_ratings
Have you gone totally insane? Numb nut.. It is funny but.. Really? I mean, WHAT THE HELL!
This is stupid to do in php. The script will simply timeout after a while.
Sorry, you need to Log In to post a reply to this thread.