g0rillapen1s
By: a guest | Jul 4th, 2009 | Syntax:
PHP | Size: 3.01 KB | Hits: 10 | 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 (the WHOLE file) 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
// if you know what you're doing you can of course add more username/password combinations
// then you can also decrease the timer value:
$timer = 15;
$useragent="Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)";
$hashtag = "#gorillapenis";
"ebaums", "nigger", "aids", "cancer", "gorilla", "faggot", "n00b", "penis", "vagina", "asshole",
"butthurt", "ebaumsworld", "koran", "islam", "basement", "retard", "merkel", "listening to", "movie",
"happy hour", "love", "hate", "virgin", "lulz", "nazi", "hitler", "negro", "anime", "manga",
"pooper", "sex", "anal"
);
$tweetUrl = 'http://www.twitter.com/statuses/update.xml';
$searchUrl = 'http://search.twitter.com/search.json?q=';
$cnt = 0;
$ucnt = 0;
random_tweets();
while(1) {
$status = $hashtag . ' ' . $tweets[rand(0
,count($tweets)-1
)]; ;
$username = $accounts[$ucnt][0];
$password = $accounts[$ucnt][1];
$ucnt++;
if ($ucnt == count($accounts)) {
$ucnt = 0;
random_tweets();
}
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";
}
}
function random_tweets()
{
global $topics,$searchUrl,$tweets;
foreach ($content["results"] as $a => $b) {
$tweets[] = $b["text"];
}
}
?>