vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   TomBot v1.1 vB AI User Bot (https://vborg.vbsupport.ru/showthread.php?t=48053)

NuclioN 01-24-2003 08:24 AM

Yep, a huge botloader alright. Can you please add the right file in post 1? Tnx. :D

C.Birch 01-24-2003 08:44 AM

:( its added everything it needs to the database but its still taking crap.

C.Birch 01-24-2003 08:44 AM

just smilies

NuclioN 01-24-2003 08:53 AM

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

C.Birch 01-24-2003 08:54 AM

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

NuclioN 01-24-2003 08:58 AM

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?

C.Birch 01-24-2003 09:08 AM

Quote:

Originally posted by NuclioN
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?
thats what im looking at because its calling the wrong bot id number.

C.Birch 01-24-2003 09:14 AM

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:

" . $rss . "
\r\n\r\n" . $response . $emoticon;
$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'");
}
}
?>

C.Birch 01-24-2003 09:15 AM

im guessing its indexpost($postid,1);

Brad 01-24-2003 09:45 AM

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
  • Page Generation 0.01710 seconds
  • Memory Usage 1,741KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete