This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Vhost list

Old posts that have not been replied to for several years.
User avatar
Thunderdome
Op
Posts: 187
Joined: Tue Mar 15, 2005 4:42 pm

Vhost list

Post by Thunderdome »

Hello!
This may sound weird... but is it possible to have a tcl that makes this:
- when eggdrop is running, detect if it is online in IRC or not (sometimes it gets klinned, but it is still running, so crontab is pretty useless)

- .dies the bot, then runs it
- check if the vhost works (if the bot gets connected with it)
- changes the vhost if it is still banned (bot does not connect), or .die and ./eggdrop to other vhost
- can have a list of valid vhosts made by the user


is this possible? :idea:
Thanks of the help :)
User avatar
^DooM^
Owner
Posts: 772
Joined: Tue Aug 26, 2003 5:40 pm
Location: IronForge
Contact:

Post by ^DooM^ »

This has been asked before and the answer to this was 'We wont help you evade bans'.
The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born
User avatar
Thunderdome
Op
Posts: 187
Joined: Tue Mar 15, 2005 4:42 pm

Post by Thunderdome »

you don't understand...
Its is not bans... but in my ISP, for one IP it has several bots... so when one gets klinned, all get klinned... :(
So all I want is a way to get back online with another vhost if my vhost gets klinned... it is nothing evil or illegal...
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

You can bind notc or RAW and check, for specific server notices by string matching, "YOU HAVE BEEN AKILLED" etc. Else change the bot's vhost by the "set" command by choosing a random vhost through a defined list and try again untill it finally connects.
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
User avatar
Thunderdome
Op
Posts: 187
Joined: Tue Mar 15, 2005 4:42 pm

Post by Thunderdome »

yes, but how can I do that in a automatic manner?
I don't get it... :cry:
User avatar
Thunderdome
Op
Posts: 187
Joined: Tue Mar 15, 2005 4:42 pm

Post by Thunderdome »

Well, anyone can help me out? In my ISP, people get their bots and psybnc's killed a lot, since many use the same vhost... (and many do crap with their eggdrops).

I just want something simples that verifies if the bot is online and if it is not, changes vhost...


I found this in this forum, but I dunno how to use it...

Code: Select all

namespace eval vhost { 

  variable vhostlist { 
    hostnumber.one 
    hostnumber.two 
    and.so.on 
  } 

  proc change_vhost {t} { 
    variable vhostlist 
    foreach {x} $vhostlist { 
      if {![string equal -nocase $x ${::my-hostname}]} { 
        set ::my-hostname $x 
        set ::my-ip $x 
        break 
      } 
    } 
  } 

  bind evnt disconnect-server [namespace current]::change_vhost 
}
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Try and load it, don't send me messages about this topic.
User avatar
Thunderdome
Op
Posts: 187
Joined: Tue Mar 15, 2005 4:42 pm

Post by Thunderdome »

The problem is I dunno where to put this...
In a tcl?
in the eggdrop.conf? (in which place there?)
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Try like any other script :P
User avatar
Thunderdome
Op
Posts: 187
Joined: Tue Mar 15, 2005 4:42 pm

Post by Thunderdome »

I made a TCL with that code, and made the eggdrop run it...
I replaced the

Code: Select all

    hostnumber.one 
    hostnumber.two 
    and.so.on
with ips for each vhost in each line...
rehashed the bot...

and now?
Do I need to change the eggdrop.conf?
or is it done?
User avatar
Thunderdome
Op
Posts: 187
Joined: Tue Mar 15, 2005 4:42 pm

Post by Thunderdome »

This does not work at all!
I need it to reconnect the bot to a new vhost... it does absolutly nothing... :|

Can you help me out?
g
greenbear
Owner
Posts: 733
Joined: Mon Sep 24, 2001 8:00 pm
Location: Norway

Post by greenbear »

not getting klined seems like the better solution
User avatar
Thunderdome
Op
Posts: 187
Joined: Tue Mar 15, 2005 4:42 pm

Post by Thunderdome »

inevitable it is.
vhost shared with many, klined probability strong.
changing vhost when klined, good solution is.
User avatar
^DooM^
Owner
Posts: 772
Joined: Tue Aug 26, 2003 5:40 pm
Location: IronForge
Contact:

Post by ^DooM^ »

Thunderdome wrote:inevitable it is.
vhost shared with many, klined probability strong.
changing vhost when klined, good solution is.
Watched StarWars Episode III lately you did :wink:
The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born
User avatar
Thunderdome
Op
Posts: 187
Joined: Tue Mar 15, 2005 4:42 pm

Post by Thunderdome »

amazed I was, good film it is. :) eheheh, I say.
help me in my vhost quest, can you?
Locked