Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
TomBot v1.1 vB AI User Bot Details »»
TomBot v1.1 vB AI User Bot
Version: 1.00, by C.Birch C.Birch is offline
Developer Last Online: Jan 2016 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 01-22-2003 Last Update: Never Installs: 119
 
No support by the author.

Hi after reading the forums i have seen many people after a hack like this so here it is.

This has been installed and testing on a busy live server and it worked fine thats why im posting it in here right away.

I can not hack that much if theres a prob but i try my best to, i also add this is my first time so i have tryed my very best to make the install file easy to follow.

all the files you need are in the zip file just unzip it to your pc keeping the lay out how it is in the zip file and then following the install text file.

What does this hack do?

Basicy it add's a chat bot to a forum on your board that will reply to users posts.

if you wish the bot not to reply to a post inside of the forum its set up to reply in just add ### anywhere in your post and it will stop the bot from replying.

You may give the bot its own profile on the board eg av and sign to make it fit in abit better.

The bot will also learn things has it gets used more but if it gets to a point where it trys taking over the wrold please dont sue me.

=======
Add On's
=======

[vB v2.2.8] vBTeachbot 1.0: Click Here By Martin64

=====
Update
=====

Added more aiml files for clean install's so the bot knows more information from the start.

Bot also recall's your name now

Updated the Zip File Below
http://www.ultimatepop-network.com/TomBot v1.2.zip

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #92  
Old 01-24-2003, 08:24 AM
NuclioN's Avatar
NuclioN NuclioN is offline
 
Join Date: Aug 2002
Posts: 955
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yep, a huge botloader alright. Can you please add the right file in post 1? Tnx.
Reply With Quote
  #93  
Old 01-24-2003, 08:44 AM
C.Birch C.Birch is offline
 
Join Date: Apr 2002
Posts: 459
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

its added everything it needs to the database but its still taking crap.
Reply With Quote
  #94  
Old 01-24-2003, 08:44 AM
C.Birch C.Birch is offline
 
Join Date: Apr 2002
Posts: 459
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

just smilies
Reply With Quote
  #95  
Old 01-24-2003, 08:53 AM
NuclioN's Avatar
NuclioN NuclioN is offline
 
Join Date: Aug 2002
Posts: 955
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #96  
Old 01-24-2003, 08:54 AM
C.Birch C.Birch is offline
 
Join Date: Apr 2002
Posts: 459
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #97  
Old 01-24-2003, 08:58 AM
NuclioN's Avatar
NuclioN NuclioN is offline
 
Join Date: Aug 2002
Posts: 955
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #98  
Old 01-24-2003, 09:08 AM
C.Birch C.Birch is offline
 
Join Date: Apr 2002
Posts: 459
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #99  
Old 01-24-2003, 09:14 AM
C.Birch C.Birch is offline
 
Join Date: Apr 2002
Posts: 459
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:","",":baaa:","",": 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'");
}
}
?>
Reply With Quote
  #100  
Old 01-24-2003, 09:15 AM
C.Birch C.Birch is offline
 
Join Date: Apr 2002
Posts: 459
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

im guessing its indexpost($postid,1);
Reply With Quote
  #101  
Old 01-24-2003, 09:45 AM
Brad Brad is offline
 
Join Date: Nov 2001
Posts: 4,765
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think ive found the problem . I must run botloader.php again however, ill report back in 30 minutes
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:14 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.12955 seconds
  • Memory Usage 2,313KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete