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.

Undernet no Ident Login

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
g
grrmisfit
Voice
Posts: 6
Joined: Sat Mar 29, 2008 4:24 pm

Undernet no Ident Login

Post by grrmisfit »

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
User avatar
strikelight
Owner
Posts: 708
Joined: Mon Oct 07, 2002 10:39 am
Contact:

Post by strikelight »

http://www.tclscript.com/

Search for "quotepass.tcl"
User avatar
user
 
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Post by user »

Try this (not tested):

Code: Select all

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 :P
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"?
User avatar
strikelight
Owner
Posts: 708
Joined: Mon Oct 07, 2002 10:39 am
Contact:

Post by strikelight »

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.
User avatar
user
 
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Post by user »

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 :P
Have you ever read "The Manual"?
User avatar
strikelight
Owner
Posts: 708
Joined: Mon Oct 07, 2002 10:39 am
Contact:

Post by strikelight »

You might connect to a server that doesn't require the quote pass...
User avatar
strikelight
Owner
Posts: 708
Joined: Mon Oct 07, 2002 10:39 am
Contact:

Post by strikelight »

user wrote:but string match is cheaper than regexp :P
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.
User avatar
user
 
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Post by user »

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

EDIT: To make things clear... I'm talking about the part removing the bind on disconnect.
Last edited by user on Mon Apr 07, 2008 9:53 pm, edited 1 time in total.
Have you ever read "The Manual"?
User avatar
strikelight
Owner
Posts: 708
Joined: Mon Oct 07, 2002 10:39 am
Contact:

Post by strikelight »

user wrote:
strikelight wrote:You might connect to a server that doesn't require the quote pass...
:?:
Nothing, was thinking of something else... However, it will leave a needless bind in memory if never-give-up is set to 0.
User avatar
user
 
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Post by user »

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" ;)
If we had a hair splitting forum, I would split this thread and move the last part there :P
Have you ever read "The Manual"?
User avatar
strikelight
Owner
Posts: 708
Joined: Mon Oct 07, 2002 10:39 am
Contact:

Post by strikelight »

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" ;)
If we had a hair splitting forum, I would split this thread and move the last part there :P
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.
g
grrmisfit
Voice
Posts: 6
Joined: Sat Mar 29, 2008 4:24 pm

Post by grrmisfit »

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
Post Reply