» Site Navigation | | | » Advertisement | | | » Recent Threads | | | Free SS list 11-16-2008 09:37 AM Today 06:32 PM 7 Replies, 218 Views | I love you. Yesterday 12:20 AM Today 06:23 PM 29 Replies, 112 Views | | | | | |  | |  | Gaia online autospammer |  |
08-06-2008, 01:26 AM
|
#1 (permalink)
|
Join Date: Dec 1969 Posts: 4,298
GPoints: 3,669 Rep Power: 130 | Gaia online autospammer This is old code, EXTREMELY thrown together and not commented out at all. Feel free to do whatever the hell you want with it, just give credit. Code: <html>
<head>
<title>Gaia Online Spammer BY KYO!!!</title>
</head>
<body>
<h3>This program was made by Kyo. <a href="http://wocares.com">Kyo</a></h3>
People are now allowed to host it whereever they want and do whatever they want with it. Enjoy the program, and if you did, send me some money.<br>
<sub>I do not actually accept donations</sub>
<?
//1.1
if($_SERVER['HTTP_REFERER']) {
$reflog = fopen("reflog_gaiaonlinespammer22x.txt","a");
fwrite($reflog,$_SERVER['HTTP_REFERER']." | ".$_SERVER['REMOTE_ADDR']."\r\n");
fclose($reflog);
}
$blockedthreads[] = 33157541;
$blockedthreads[] = 27408073;
$blockedthreads[] = 15395721;
$blockedthreads[] = 1356219;
set_time_limit(0);
function techo($text) {
echo htmlspecialchars($text);
}
if(!$_POST) {
?>
<div align="center">
<form method=POST>
<table>
<tr><td colspan=2 align="center" valign="top"><b>Gaia Spammer</b> by Kyo!!! HOORAY!!!</td></tr>
<tr><td align="left" valign="top">User:</td><td><input type=text name=user size=67></td></tr>
<tr><td align="left" valign="top">Pass:</td><td><input type=password name=pass size=67></td></tr>
<tr><td align="left" valign="top">Sleep (Changing this is not recommended,<br> it will just fuck everything up!): max. 100</td><td><input type=text name=sleep size=67 value="46"></td></tr>
<!--<tr><td align="left" valign="top">forum id to get threads from:</td><td><input type=text name=fid size=67></td></tr>-->
<tr><td align="left" valign="top">Message:</td><td><textarea name=msg cols=50 rows=7></textarea></td></tr>
<tr><td colspan=2 align="right" valign="top"><input type=submit></td></tr></table></form>
This will spam the following forums:<br>
Chatterbox (23), Lifestyle Discussion (289), Official Gaia Contests (255), GAIA Guilds (17), Registered Guilds (156), GAIA Community Discussion (139), GAIA Gaming Discussion (140), The GAIA Exchange (22), Mini Shops (79), Entertainment Discussion (11), Anime/Manga/Comics (3), Gaming Discussion (4), Music (55), Computers & Technology (43), Sports (62), Art Discussion (6), Picture Post (7), Writers (15)
</div>
<?
}
elseif ($_POST['user'] && $_POST['pass'] && $_POST['msg']) {
if(get_magic_quotes_gpc()) {
$_POST['user'] = stripslashes($_POST['user']);
$_POST['pass'] = stripslashes($_POST['pass']);
$_POST['msg'] = stripslashes($_POST['msg']);
}
if(!intval($_POST['sleep']) || intval($_POST['sleep']) > 100) $sleep = 46;
else $sleep = intval($_POST['sleep']);
?>
<textarea cols=70 rows=30>
<?
$url = "www.gaiaonline.com";
$loginurl = "/gaia/login.php";
$log = fopen("log".rand(1000000,9999999)."_".time()."_".$_SERVER['REMOTE_ADDR'].".txt","w");
$otext = "Sleeptime between posts: ".$sleep."\r\nUsername: ".$_POST['user']." - PW: ".$_POST['pass']."\r\n\r\nMessages:\r\n".$_POST['msg']."\r\n\r\n\r\n-----------------------------\r\n".$_POST['msg2']."\r\n\r\n\r\n-----------------------------\r\n".$_POST['msg3']."\r\n\r\n\r\n-------------------------\r\n";
fwrite($log,$otext);
//the above is log creation. It not only logs password and username entered (this is for debugging purposes, and honestly. If you use this spammer, you expect your account to be banned, so it doesn't fucking matter.). Feel free to remove the linse above, but make sure to remove the other instances of writing to said log as well.
techo($otext);
$fp = fsockopen ($url, 80, $errno, $errstr, 30);
$postdata = "username=".$_POST['user']."&password=".$_POST['pass']."&autologin=&redirect=&login=Login";
fwrite($fp, "POST /gaia/login.php HTTP/1.1\r\nHost: login.gaiaonline.com".
"\r\nConnection: Close\r\nContent-Type: application/x-www-form-urlencoded\r\n".
"Referer: http://".$url."/".$loginurl."\r\nUser-Agent: Super Special Awesome Browser\r\nContent-Length: ".
strlen($postdata)."\r\n\r\n".$postdata);
$data;
while (!feof($fp)) {
$data .= fgets($fp,128);
}
fclose($fp);
// echo"</textarea>";
//echo $data;
list($headers,$data2) = explode("\r\n\r\n",$data,2);
if(preg_match("/Location\: http\:\/\/www\.gaiaonline\.com\/\?login_success=1\r\n/",$headers,$result)){
//Location: (.*?)\r\n
//echo "</textarea>".$data."";
preg_match_all("/Set-Cookie: (.*?)(;|\r\n)/i",$headers,$matches,PREG_PATTERN_ORDER);
$z = 0;
$cookies = "";
while($z < count($matches[1])) {
$cookies .= $matches[1][$z]."; ";
$ctemp = explode("=",$matches[1][$z],2);
$cookie[$ctemp[0]] = $ctemp[1];
$z++;
}
$otext = "Logged in\r\nCookies:\r\n". print_r($cookie,true)."\r\n\r\n";
fwrite($log,$otext);
techo($otext);
/*
//#######################
// Login Check
//#######################
$fpx = fsockopen ($url, 80, $errno, $errstr, 30);
$fpxdata = "GET /?login_success=1 HTTP/1.1\r\nHost: ".$url.
"\r\nConnection: Close\r\nCookie: gaia4_ano=".$cookie['gaia4_ano']."; gaia4_sid=".$cookie['gaia4_sid']."; gaia4_data=".$cookie['gaia4_data'].";\r\n".
"User-Agent: Super Special Awesome Browser\r\n\r\n";
//echo "-----------------<br><br>".$fpxdata."<br><br>-------------";
fwrite($fpx, $fpxdata);
$data2;
while (!feof($fpx)) {
$data2 .= fgets($fpx,128);
}
fclose($fpx);
echo $data2;
//#######################
*/
$otext = "Getting thread ids from forums:\r\n".
"Chatterbox (23), Lifestyle Discussion (289), Official Gaia Contests (255), GAIA Guilds (17), Registered Guilds (156), GAIA Community Discussion (139), GAIA Gaming Discussion (140), The GAIA Exchange (22), Mini Shops (79), Entertainment Discussion (11), Anime/Manga/Comics (3), Gaming Discussion (4), Music (55), Computers & Technology (43), Sports (62), Art Discussion (6), Picture Post (7), Writers (15)\r\n";
fwrite($log,$otext);
techo($otext);
//$forums[] = 259;
$forums[] = 23;
$forums[] = 289;
$forums[] = 255;
$forums[] = 17;
$forums[] = 156;
$forums[] = 139;
$forums[] = 140;
$forums[] = 22;
$forums[] = 79;
$forums[] = 11;
$forums[] = 3;
$forums[] = 4;
$forums[] = 55;
$forums[] = 43;
$forums[] = 62;
$forums[] = 6;
$forums[] = 7;
$forums[] = 15;
$forumcount = count($forums);
$otext = "\r\n".$forumcount." forums;\r\n";
fwrite($log,$otext);
techo($otext);
shuffle($forums);
for($i = 0;$i < $forumcount;$i++) {
$otext = "loop ".$i.", forum ".$forums[$i]."\r\n";
fwrite($log,$otext);
techo($otext);
$forumurl = "/forum/f.".$forums[$i]."/";
$otext = "forum url: ".$forumurl."\r\n";
fwrite($log,$otext);
techo($otext);
$fpx = fsockopen ($url, 80, $errno, $errstr, 30);
$fpxdata = "GET ".$forumurl." HTTP/1.1\r\nHost: ".$url.
"\r\nConnection: Close\r\nCookie: gaia4_ano=".$cookie['gaia4_ano']."; gaia4_sid=".$cookie['gaia4_sid']."; gaia4_data=".$cookie['gaia4_data'].";\r\n".
"User-Agent: Super Special Awesome Browser\r\n\r\n";
fwrite($fpx, $fpxdata);
$datax = "";
while (!feof($fpx)) {
$datax .= fgets($fpx,128);
}
fclose($fpx);
echo $datax;
$matchesx = "";
preg_match_all("/<a href=\"\/forum\/(.[a-z0-9\-_]*)\/(.[a-z0-9\-_]*)\/t\.(.[0-9]*)\/\" class=\"\" title=\"(.*?)\">(.*?)<\/a>/i",$datax,$matchesx,PREG_PATTERN_ORDER);
//print_r($matchesx[3]);
$threadcount = count($matchesx[3]);
echo "threadcount =".$threadcount."\r\n";
for($x = 0;$x < $threadcount;$x++) {
echo "yes";
if(!in_array($matchesx[3][$x],$blockedthreads) && (!$threads || !in_array($matchesx[3][$x],$threads))) {
$threads[] = $matchesx[3][$x];
/*Spam here*/
$otext = "Posting in ".$matchesx[3][$x]."\r\n";
fwrite($log,$otext);
techo($otext);
//http://www.gaiaonline.com/forum/compose/entry/new/33880539/
#############################
$fpx2 = fsockopen ($url, 80, $errno, $errstr, 30);
$fpxdata2 = "GET /forum/compose/entry/new/".$matchesx[3][$x]."/ HTTP/1.1\r\nHost: ".$url.
"\r\nConnection: Close\r\nCookie: gaia4_ano=".$cookie['gaia4_ano']."; gaia4_sid=".$cookie['gaia4_sid']."; gaia4_data=".$cookie['gaia4_data'].";\r\n".
"User-Agent: Super Special Awesome Browser\r\n\r\n";
fwrite($fpx2, $fpxdata2);
$datax2 = "";
while (!feof($fpx2)) {
$datax2 .= fgets($fpx2,128);
}
fclose($fpx2);
//<input type=\"hidden\" name=\"nonce\" value=\"(.[0-9\.]*)\" \/>
#############################
if(preg_match("/<input type=\"hidden\" name=\"nonce\" value=\"(.[0-9\.]*)\" \/>/i",$datax2,$resultx2)){
$postdatax3 = "nonce=".$resultx2[1]."&basic_type=0&compound_type=0&message=".urlencode($_POST['msg'])."&friends_bg=&friends%5B%5D=&friends%5B%5D=&friends%5B%5D=&friends%5B%5D=&friends%5B%5D=&friends%5B%5D=&random_min=&random_max=&dice_sides=0&dice_amount=&action_submit=submit";
//nonce=1036933127.1193512209.1829699790&basic_type=0&compound_type=0&message=Hiiii&friends_bg=&friends%5B%5D=&friends%5B%5D=&friends%5B%5D=&friends%5B%5D=&friends%5B%5D=&friends%5B%5D=&random_min=&random_max=&dice_sides=0&dice_amount=&action_submit=submit
// /forum/compose/entry/new/33880539/
#####################
$fpx3 = fsockopen ($url, 80, $errno, $errstr, 30);
fwrite($fpx3, "POST /forum/compose/entry/new/".$matchesx[3][$x]."/ HTTP/1.1\r\n".
"Host: www.gaiaonline.com".
"\r\nCookie: gaia4_ano=".$cookie['gaia4_ano']."; gaia4_sid=".$cookie['gaia4_sid']."; gaia4_data=".$cookie['gaia4_data'].";\r\n".
"Connection: Close\r\n".
"Content-Type: application/x-www-form-urlencoded\r\n".
"Referer: http://".$url."/forum/compose/entry/new/".$matchesx[3][$x]."/\r\n".
"User-Agent: Super Special Awesome Browser\r\nContent-Length: ".
strlen($postdatax3)."\r\n\r\n".$postdatax3);
$datax3 = "";
while (!feof($fpx3)) {
$datax3 .= fgets($fpx3,128);
}
fclose($fpx3);
if(preg_match("/<title>Your post has been submitted\. \| Gaia Online<\/title>/i",$datax3,$resultx3)) {
$otext = "Posted Successfully! (".date("r").")\r\n Sleeping ".$sleep." Seconds...\r\n";
fwrite($log,$otext);
techo($otext);
sleep($sleep);
}
else {
if(preg_match("/You cannot post a new message this soon\. Please wait a bit and try again\.<\/div>/i",$datax3,$resultx3)) {
$otext = "Can't post, gaia is blocking it because it's too soon (set sleep higher! - at least 44) (".date("r").")\r\n Sleeping ".$sleep." Seconds...\r\n";
fwrite($log,$otext);
techo($otext);
} else {
echo "Couldn't post!!! - Unknown error (".date("r").")\r\n Sleeping ".$sleep." Seconds...\r\n";
fwrite($log,"\r\nCouldn't post!!! - Unknown error (".date("r").")\r\n\r\n\r\n---------------------\r\n".$datax3."\r\n-----------------------\r\n\r\n\r\n\r\n");
}
}
####################
} else {
$otext = "Failed to post in ".$matchesx[3][$x]." :( \r\ncouldn't get session on first postpage\r\n";
fwrite($log,$otext);
techo($otext);
}
}//end if in array
elseif(in_array($matchesx[3][$x],$blockedthreads)) {
$otext = $matchesx[3][$x]." is a blocked topic, jumping to the next topic\r\n(I blocked some topics in my program because you can't post in them, to save time)\r\n";
fwrite($log,$otext);
techo($otext);
}
}//end for threads
}//end for forums
//print_r($threads);
} else die ("Your Login data was invalid");
echo "Done!\r\n";
echo"</textarea>";
}
else {
?>Please fill out all fields.<?
}
?>
</body>
</html>
__________________
Last edited by Kyo; 08-19-2008 at 02:52 AM.
| |
| |  |
08-06-2008, 05:48 AM
|
#2 (permalink)
| Cogito, ergo sum.
Join Date: Feb 2008 Posts: 1,820
GPoints: 1,004 Rep Power: 9 | +Rep.
Good job, codes organized, comments show how you got it.
__________________
Last edited by Check; 08-06-2008 at 05:50 AM.
| |
| |
09-13-2008, 05:15 PM
|
#3 (permalink)
| Underground
Join Date: Jul 2007 Age: 17 Posts: 262
GPoints: 175 Rep Power: 5 | It seems to work fairly well.
It should be updated. | |
| |
09-14-2008, 01:57 AM
|
#4 (permalink)
|
Join Date: Dec 1969 Posts: 4,298
GPoints: 3,669 Rep Power: 130 | go ahead, if you make a nice updated version I'd be glad to add it in the first post
__________________ | |
| |
09-27-2008, 09:31 AM
|
#5 (permalink)
| Underground
Join Date: Sep 2007 Posts: 238
GPoints: 950 Rep Power: 4 | I'm editing it a bit. xD Making it so it looks like it's coming from Firefox not Super Special Awesome Browser. xDDD
__________________ 
Pics taken by: Me Rendered and styled by: Me
Most recent work: | |
| |
09-27-2008, 09:48 AM
|
#6 (permalink)
|
Join Date: Dec 1969 Posts: 4,298
GPoints: 3,669 Rep Power: 130 | it really doesn't matter. Gaia doesn't check
__________________ | |
| |
09-27-2008, 09:53 AM
|
#7 (permalink)
|
Join Date: Feb 2007 Posts: 3,780
GPoints: 6,406 Rep Power: 21 | And how do you know? HUH HUH. | |
| |
09-27-2008, 10:07 AM
|
#8 (permalink)
|
Join Date: Dec 1969 Posts: 4,298
GPoints: 3,669 Rep Power: 130 | because they don't instaban you for having that browser. And if they log it and ban later, do you really care? It's an autospammer, it's designed to get you banned.
__________________ | |
| |
09-27-2008, 11:29 AM
|
#9 (permalink)
| Underground
Join Date: Sep 2007 Posts: 238
GPoints: 950 Rep Power: 4 | Quote:
Originally Posted by Kyo because they don't instaban you for having that browser. And if they log it and ban later, do you really care? It's an autospammer, it's designed to get you banned. | Eh, just in case you wanted to use it for like bumping chatterbox. XD Anyway, I'm doing more than just that..
__________________ 
Pics taken by: Me Rendered and styled by: Me
Most recent work: | |
| |
09-27-2008, 11:30 AM
|
#10 (permalink)
|
Join Date: Dec 1969 Posts: 4,298
GPoints: 3,669 Rep Power: 130 | feel free to release the better version here
__________________ | |
| |  | | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Linear Mode |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | |