NiggerGrinder
By: a guest | Jul 3rd, 2009 | Syntax:
PHP | Size: 2.40 KB | Hits: 9 | Expires: Never
<?php
// INSTRUCTIONS:
// 1. Register 3 (three) accounts on Twitter - no email validation, so it's easy. You can't just use one account because it will get blocked quickly.
// 2. Save this script (click download above) as "twitter.php" in C:\Documents and Settings\Your_Username
// 3. Edit the file with notepad, fill in the usernames and passwords of the three accounts you've registered - see below, it's really simple
// 4. Install PHP 5.3 from http://php.net (direct Windows download - http://windows.php.net/download)
// 5. Open command line (Start -> Run -> cmd.exe)
// 6. Type in php -f twitter.php and leave it running
// 7. ????
// 8. PROFIT
$accounts = array( // fill in usernames/passwords here as shown below
array('username1', 'password1'),
array('username2', 'password2'),
array('username3', 'password3')
);
// have fun
$timer = 15;
$useragent="Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20091204 Firefox/3.5.0.1";
$tweetUrl = 'http://www.twitter.com/statuses/update.xml';
$topicUrl = 'http://search.twitter.com/trends/current.json';
$cnt = 0;
while(1) {
foreach ($content["trends"] as $a => $b) {
foreach($b as $c) {
$topics[] = $c["name"];
}
}
if($topics[0]) break;
}
while(1) {
$status = '#gorillapenis';
$status = $status . ' ' . $topics[rand(0
,count($topics)-1
)];
$username = $accounts[$rand][0];
$password = $accounts[$rand][1];
curl_setopt($curl, CURLOPT_POSTFIELDS
, "status=$status");
curl_setopt($curl, CURLOPT_USERPWD
, "$username:$password");
if ($resultArray['http_code'] == 200) {
$cnt++;
echo "Tweet posted from account $username. ";
echo "Altogether, $cnt tweets posted.\n";
} else {
echo "$result";
echo "Could not post tweet to Twitter right now. Try again later.\n";
}
}
?>