egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Undernet no Ident Login

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
grrmisfit
Voice


Joined: 29 Mar 2008
Posts: 6

PostPosted: Mon Apr 07, 2008 7:45 pm    Post subject: Undernet no Ident Login Reply with quote

im running an eggdrop on my nix box but problem is that my isp blocks ident port 113 so my bot cannot ident. on undernet they ask a user to basicly auth themselves by askin users to type something. it goes something like this...

type /quote pass randomnumbershere to connect

in mirc i do fix his with

on *:snotice:*quote*pass*:{
noop $regex($1-,/quote\spass\s(\S+)/i)
quote PASS $regml(1)
}

any help would be great
Back to top
View user's profile Send private message
strikelight
Owner


Joined: 07 Oct 2002
Posts: 708

PostPosted: Mon Apr 07, 2008 9:15 pm    Post subject: Reply with quote

http://www.tclscript.com/

Search for "quotepass.tcl"
Back to top
View user's profile Send private message Visit poster's website
user
 


Joined: 18 Mar 2003
Posts: 1452
Location: Norway

PostPosted: Mon Apr 07, 2008 9:25 pm    Post subject: Reply with quote

Try this (not tested):
Code:
bind evnt - connect-server passbind
bind evnt - init-server passunbind
proc passbind x {
   bind raw - NOTICE passnotice
}
proc passunbind x {
   unbind raw - NOTICE passnotice
}
proc passnotice {f k a} {
   if {$f==""&&[string match "AUTH */QUOTE PASS *" $a]} {
      putquick "PASS [lindex [split $a] end]"
   }
}

(the extra code is to prevent it from being exploited/wasting resources like the mirc thing appears to be vulnerable to/do.)

EDIT: I guess I should have reloaded the page after writing the code to prevent this redundant post Razz
Guppy's script seems to do pretty much the same thing...except that it will run a regexp on ALL notices recieved during the connection process and (try to) remove the (possibly nonexistant) bind when you disconnect (which is not needed IMO)
_________________
Have you ever read "The Manual"?
Back to top
View user's profile Send private message
strikelight
Owner


Joined: 07 Oct 2002
Posts: 708

PostPosted: Mon Apr 07, 2008 9:33 pm    Post subject: Reply with quote

Very close user... missing the disconnect bind incase the bot gets it wrong though ;x

Download the quotepass.tcl at tclscript.com, or download the latest cvs of eggdrop, it is included and automatically loaded depending on your net-type.

Edit for edit: Yours will run the comparison on all server notices as well during connection, I don't suspect regular users (read as: none) will be noticing connecting clients in any event, since they have no idea who is connecting.

Edit 2: I see what you mean, after entering the password, all notices after that could be avoided from processing by unbinding at that point.


Last edited by strikelight on Mon Apr 07, 2008 9:39 pm; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website
user
 


Joined: 18 Mar 2003
Posts: 1452
Location: Norway

PostPosted: Mon Apr 07, 2008 9:38 pm    Post subject: Reply with quote

strikelight wrote:
missing the disconnect bind incase the bot gets it wrong though

I don't see why it needs to be removed...it will be created again when the bot tries to reconnect, and creating the same bind several times (like my script would do in that case) should not cause any problems.
strikelight wrote:
Yours will run the comparison on all server notices as well during connection

Yes...the $f=="" check might be a waste of cpu (the notices from the server during connect (not NOTICE AUTH) might happen after "init-server" - I don't remember), but string match is cheaper than regexp Razz
_________________
Have you ever read "The Manual"?
Back to top
View user's profile Send private message
strikelight
Owner


Joined: 07 Oct 2002
Posts: 708

PostPosted: Mon Apr 07, 2008 9:43 pm    Post subject: Reply with quote

You might connect to a server that doesn't require the quote pass...
Back to top
View user's profile Send private message Visit poster's website
strikelight
Owner


Joined: 07 Oct 2002
Posts: 708

PostPosted: Mon Apr 07, 2008 9:44 pm    Post subject: Reply with quote

user wrote:
but string match is cheaper than regexp Razz


Yes, we discussed that and tested it thoroughly... nothing of significance...
We decided on regexp as it lends itself more to the application of this system, incase the wording changes or what not.
Back to top
View user's profile Send private message Visit poster's website
user
 


Joined: 18 Mar 2003
Posts: 1452
Location: Norway

PostPosted: Mon Apr 07, 2008 9:47 pm    Post subject: Reply with quote

strikelight wrote:
You might connect to a server that doesn't require the quote pass...

Question

EDIT: To make things clear... I'm talking about the part removing the bind on disconnect.
_________________
Have you ever read "The Manual"?


Last edited by user on Mon Apr 07, 2008 9:53 pm; edited 1 time in total
Back to top
View user's profile Send private message
strikelight
Owner


Joined: 07 Oct 2002
Posts: 708

PostPosted: Mon Apr 07, 2008 9:52 pm    Post subject: Reply with quote

user wrote:
strikelight wrote:
You might connect to a server that doesn't require the quote pass...

Question


Nothing, was thinking of something else... However, it will leave a needless bind in memory if never-give-up is set to 0.
Back to top
View user's profile Send private message Visit poster's website
user
 


Joined: 18 Mar 2003
Posts: 1452
Location: Norway

PostPosted: Mon Apr 07, 2008 9:55 pm    Post subject: Reply with quote

strikelight wrote:
However, it will leave a needless bind in memory if never-give-up is set to 0.

The disconnect-server bind is doing that job in your version. You should unbind the disconnect-server bind in the init-server code and get rid of that pesky "catch" Wink
If we had a hair splitting forum, I would split this thread and move the last part there Razz
_________________
Have you ever read "The Manual"?
Back to top
View user's profile Send private message
strikelight
Owner


Joined: 07 Oct 2002
Posts: 708

PostPosted: Mon Apr 07, 2008 10:13 pm    Post subject: Reply with quote

user wrote:
strikelight wrote:
However, it will leave a needless bind in memory if never-give-up is set to 0.

The disconnect-server bind is doing that job in your version. You should unbind the disconnect-server bind in the init-server code and get rid of that pesky "catch" Wink
If we had a hair splitting forum, I would split this thread and move the last part there Razz


Haha, true enough about the disconnect-bind...
As for the catch, double unbind'ing can result in errors, and while it shouldn't happen, just making sure.

Perhaps guppy has a better reason than I can recall for the disconnect-server bind.
Back to top
View user's profile Send private message Visit poster's website
grrmisfit
Voice


Joined: 29 Mar 2008
Posts: 6

PostPosted: Tue Apr 08, 2008 7:08 am    Post subject: Reply with quote

thanks alot guys i really appreciate it. while i got you here know of any X service scripts that randomly check hostname to see if thier logged in and login if not.. this comes to deal with Unets total lack of stability and if you get disconnected it will see you as still logged in by the time you reconnect thgus preventing a login
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber