![]() |
Yep, a huge botloader alright. Can you please add the right file in post 1? Tnx. :D
|
:( its added everything it needs to the database but its still taking crap.
|
just smilies
|
As mentioned before, how did you get it to work on that forum in the first post? Just smileys is fun for one or two times but Alice has warning points already :D
|
ok prob is botloader.php when its installed the database made the bot id 2 the hack it self is calling for bot id 0
|
The smiley array comes from the tomstalker.php and that part is working good. To good. Under that array are the other ones, tbb etc. Maybe there is a part that can not connect to de db?
|
Quote:
|
this is my tomstalkerbot.php file can anyone see where it says where to call the bot and its id number?
<?php // this is a percentage, determining how often the bot makes a reply. 100 means it will reply every time // 50 means it will reply half the time $ttb_weighting = 100; $ttb = 1; // change to 0 to turn off; $ttb_memberid = 2171; $ttb_username = "TomBot"; $ttb_forumid = 144; $ttb_alicelocation = "http://www.ultimate-forums.co.uk/forums/alice/src/talk.php"; // END CONFIG if ($ttb==1 AND rand(1,100)<=$ttb_weighting AND $forumid==$ttb_forumid AND $bbuserinfo[userid]!=$ttb_memberid) {gottb();}; function gottb() { global $message, $DB_site,$ttb_memberid, $ttb_username, $threadid, $visible, $foruminfo, $ttb_alicelocation; $emot = array(":)",":(",":xmas:",":D",":baaa:",":cool:",": rolleyes:",":mad2:"); $emoticon = " " . $emot[rand(0,7)]; $ttb_message = $message; $ttb_message2 = $ttb_message; // can't be bothered to code correctly, no preg for you people $ttbc = $message; $ttbc = str_replace("[/quote]","",$ttbc); $tthc = $message; $tthc = str_replace("###","",$tthc); if ($tthc != $ttb_message) {return true;}; if ($ttbc != $ttb_message) { // get rid of quotes which will confuse the bot $ttb_message2 = preg_replace("#(\[quote\].*\[/quote\])#ies","",$ttb_message); $ttb_message2 = preg_replace("#(\[quote.*\].*\[/quote\])#ies","",$ttb_message2); $ttb_message2 = preg_replace("#(\[.+\])#ies","",$ttb_message2); } if (strlen($ttb_message2)>10) { $rss = preg_replace("#^(.*)\[/quote\]#ies","",$message); $ff = fopen($ttb_alicelocation . "?input=" . urlencode($rss),"r"); $response = fread($ff,10000); fclose($ff); $ttb_time = time() + rand(1,5); $ttb_message = " Quote:
$DB_site->query("INSERT INTO post (postid,threadid,title,username,userid,dateline,at tachmentid,pagetext,allowsmilie,showsignature,ipad dress,iconid,visible) VALUES (NULL,'$threadid','".addslashes(htmlspecialchars(" "))."','".addslashes($ttb_username)."','$ttb_membe rid','".$ttb_time."','1','".addslashes($ttb_messag e)."','1','1','666.666.666.666','10','1')"); $postid=$DB_site->insert_id(); indexpost($postid,1); if ($visible) { if ($threadinfo[replycount]%10==0) { $replies=$DB_site->query_first("SELECT COUNT(*)-1 AS replies FROM post WHERE threadid='$threadid'"); $DB_site->query("UPDATE thread SET lastpost='".time()."',replycount='$replies[replies]',lastposter='".addslashes($ttb_username)."' WHERE threadid='$threadid'"); } else { $DB_site->query("UPDATE thread SET lastpost='".time()."',replycount=replycount+1,last poster='".addslashes($ttb_username)."' WHERE threadid='$threadid'"); } } $DB_site->query("UPDATE forum SET replycount=replycount+1,lastpost='".time()."',last poster='".addslashes($ttb_username)."' WHERE forumid IN ($foruminfo[parentlist])"); $DB_site->query("UPDATE user SET ".iif ($foruminfo[countposts],"posts=posts+1,","")." $dotitle"."lastpost='".time()."' WHERE userid='$ttb_memberid'"); } } ?> |
im guessing its indexpost($postid,1);
|
I think ive found the problem :). I must run botloader.php again however, ill report back in 30 minutes
|
All times are GMT. The time now is 08:04 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|