|
|
| Author |
Message |
W-Unit Newbie

Joined: 29 Jul 2004 Posts: 83
|
Posted: Jan 13, 2005 5:29pm Post subject: Telnetting into IRC |
|
|
Maybe this is a newbish question but I've tried and tried and can't figure it out.
Alright, well obviously if you want to telnet in the first thing you do is connect; I'm not that dumb. But from there I'm lost. How do I get it to stop doing this (this is an example of a testing thing I tried)?
:SERVER.SERVER.BLAH NOTICE AUTH :*** Looking up your hostname...
:SERVER.SERVER.BLAH NOTICE AUTH :*** Found your hostname (cached)
:SERVER.SERVER.BLAH NOTICE AUTH :*** Checking ident...
:SERVER.SERVER.BLAH NOTICE AUTH :*** No ident response; username prefixed with ~
privmsg W-Unit :hi
:MusicWorld.TheCrystalGlen.net 451 privmsg :You have not registered |
|
| Back to top |
|
 |
zeke Idler

Joined: 04 Oct 2003 Posts: 320
|
Posted: Jan 13, 2005 7:08pm Post subject: |
|
|
you need to read up on the USER and NICK commands
I can't remember the exact syntax for them both, IIRC USER comes first, then NICK
Send those..and you will have "Registered" - and you'll get all the nice stream of server info and motd etc |
|
| Back to top |
|
 |
GreyMouser Newbie

Joined: 04 Dec 2004 Posts: 74
|
|
| Back to top |
|
 |
[DiMENSiON] Eleet

Joined: 06 Sep 2003 Posts: 621
|
Posted: Jan 14, 2005 9:50am Post subject: |
|
|
| RTFM is always a good idea.. or just google it ^_^ |
|
| Back to top |
|
 |
Cobi Lurker

Joined: 30 Dec 2003 Posts: 121 Location: IRC
|
Posted: Jan 14, 2005 11:39pm Post subject: |
|
|
| Quote: | :SERVER.SERVER.BLAH NOTICE AUTH :*** No ident response; username prefixed with ~
NICK Substitute-NickName-Here
:SERVER.SERVER.BLAH NOTICE Cobi__ :*** If you are having problems connecting due to ping timeouts, please type /quote pong 484845AC or /raw pong 484845AC now.
PING :484845AC
USER TELNET LOCALHOST Insert-server-host-here :My Real Name
PONG :484845AC
:SERVER.SERVER.BLAH 001 Insert-NickName-Here :Welcome to the Winbots IRC Network Insert-NickName-Here!~Test@192.168.0.102
:SERVER.SERVER.BLAH 002 Insert-NickName-Here :Your host is SERVER.SERVER.BLAH, running version Unreal3.2.2
:SERVER.SERVER.BLAH 003 Insert-NickName-Here :This server was created Sat Oct 30 2004 at 01:15:21 EDT
:SERVER.SERVER.BLAH 004 Insert-NickName-Here SERVER.SERVER.BLAH Unreal3.2.2 iowghraAsORTVSxNCWqBzvdHtGpU lvhopsmntikrRcaqOALQbSeKVfMGCuzNTUj
:SERVER.SERVER.BLAH 005 Insert-NickName-Here CMDS=KNOCK,MAP,DCCALLOW,USERIP SAFELIST HCN MAXCHANNELS=20 CHANLIMIT=#:20 MAXLIST=b:60,e:60 NICKLEN=30 CHANNELLEN=32 TOPICLEN=307 KICKLEN=307 AWAYLEN=307 MAXTARGETS=20 WALLCHOPS :are supported by this server
:SERVER.SERVER.BLAH 005 Insert-NickName-Here WATCH=128 SILENCE=15 MODES=12 CHANTYPES=# PREFIX=(qaohv)~&@%+ CHANMODES=be,kfL,lj,psmntirRcOAQKVGCuzNSMTU NETWORK=Winbots CASEMAPPING=ascii EXTBAN=~,cqnr ELIST=MNUCT STATUSMSG=~&@%+ EXCEPTS :are supported by this server
:SERVER.SERVER.BLAH 251 Insert-NickName-Here :There are 59 users and 133 invisible on 9 servers
:SERVER.SERVER.BLAH 252 Insert-NickName-Here 9 :operator(s) online
:SERVER.SERVER.BLAH 253 Insert-NickName-Here 1 :unknown connection(s)
:SERVER.SERVER.BLAH 254 Insert-NickName-Here 49 :channels formed
:SERVER.SERVER.BLAH 255 Insert-NickName-Here :I have 8 clients and 8 servers
:SERVER.SERVER.BLAH 265 Insert-NickName-Here :Current Local Users: 8 Max: 113
:SERVER.SERVER.BLAH 266 Insert-NickName-Here :Current Global Users: 192 Max: 841
:SERVER.SERVER.BLAH 375 Insert-NickName-Here :- SERVER.SERVER.BLAH Message of the Day -
:SERVER.SERVER.BLAH 372 Insert-NickName-Here :- 26/12/2004 0:08
:SERVER.SERVER.BLAH 372 Insert-NickName-Here :- Insert-MOTD-Here
:SERVER.SERVER.BLAH 376 Insert-NickName-Here :End of /MOTD command.
PING :SERVER.SERVER.BLAH
PONG :SERVER.SERVER.BLAH
NOTICE Cobi :test
JOIN #channel
:Insert-NickName-Here!~TELNET@Insert-HostName-Here JOIN :#channel
:SERVER.SERVER.BLAH 353 Insert-NickName-Here = #channel :@Insert-NickName-Here
:SERVER.SERVER.BLAH 366 Insert-NickName-Here #channel :End of /NAMES list.
PART #channel :testing
:Insert-NickName-Here!~TELNET@Insert-HostName-Here PART #channel :testing
QUIT :Buh Bye!
ERROR :Closing Link: Insert-NickName-Here[Insert-IP/Host-Here] (Quit: Buh Bye!)
Connection closed by foreign host.
|
i typed what is in bold |
|
| Back to top |
|
 |
aquanight Lurker

Joined: 14 Jun 2004 Posts: 118 Location: Boise, ID
|
Posted: Jan 19, 2005 11:51pm Post subject: |
|
|
| For some reason, I do USER first, and technically, the second and third fields (the localhost and servername) are ignored, the second field is just pulled from the socket data (or the DNS reply), and the third field is pulled from config. Though I imagine IRC bouncers or virtual servers can use the third parameter to decide what server to connect to (similar to how HTTP/1.1 uses the Host request header). |
|
| Back to top |
|
 |
zeke Idler

Joined: 04 Oct 2003 Posts: 320
|
Posted: Jan 20, 2005 5:59am Post subject: |
|
|
IIRC, some hybrid servers (and maybe others) use the servername field when telling you what you've connected to.
{edit}
I just had a go connecting to EFNet. Aside from being constantly dc'd for lack of Identd:
| Quote: | [00:57:11] * Connecting to irc.us.efnet.info (6667)
[00:57:12] -irc.us.efnet.info- *** Looking up your hostname...
[00:57:12] -irc.us.efnet.info- *** Checking Ident
[00:57:12] -irc.us.efnet.info- *** No Ident response
[00:57:13] -irc.us.efnet.info- *** Found your hostname
[00:57:13] -irc.easynews.com- *** Notice -- You need to install identd to use this server. If you have ident installed, ensure you are not blocking port 113 via a firewall. Visit our website for additional assistance.
[00:57:13] Closing Link: 127.0.0.1 (Install identd)
[00:57:13] * Disconnected |
It used the servername i gave it, in the first stages of connection. After that it used whatever was in the config |
|
| Back to top |
|
 |
aquanight Lurker

Joined: 14 Jun 2004 Posts: 118 Location: Boise, ID
|
Posted: Jan 20, 2005 3:45pm Post subject: |
|
|
| The servername put in those first server notices actually came from mIRC. If you telnet irc.us.efnet.info:6667 you'd see that the authentication notices actually don't have a sender prefix, so mIRC makes a "best guess" and fills in the server it thinks it's connecting to. I've sometimes had the IP address appear in those notices because that's what I connected to and the server didn't have the sender prefix in the authnotices. |
|
| Back to top |
|
 |
W-Unit Newbie

Joined: 29 Jul 2004 Posts: 83
|
Posted: Jan 20, 2005 7:48pm Post subject: |
|
|
| Regardless, you would still have to send the second and third parameters so that you can send the fourth which IS required, right? |
|
| Back to top |
|
 |
EqualSlashed_Brian Lurker

Joined: 29 Aug 2004 Posts: 222 Location: IRC
|
Posted: Jan 21, 2005 1:09am Post subject: |
|
|
| aquanight wrote: | | The servername put in those first server notices actually came from mIRC. If you telnet irc.us.efnet.info:6667 you'd see that the authentication notices actually don't have a sender prefix, so mIRC makes a "best guess" and fills in the server it thinks it's connecting to. I've sometimes had the IP address appear in those notices because that's what I connected to and the server didn't have the sender prefix in the authnotices. |
Actually, the prefix depends on the IRCd used. For example, UnrealIRCd doesn't use the client's prefix, it uses the actual server name. |
|
| Back to top |
|
 |
aquanight Lurker

Joined: 14 Jun 2004 Posts: 118 Location: Boise, ID
|
Posted: Jan 26, 2005 10:57am Post subject: |
|
|
| W-Unit wrote: | | Regardless, you would still have to send the second and third parameters so that you can send the fourth which IS required, right? |
Yes, but you could theoretically just put any random trash you want .
| EqualSlashed_Brian wrote: | | Actually, the prefix depends on the IRCd used. For example, UnrealIRCd doesn't use the client's prefix, it uses the actual server name. |
Well, I know unreal puts its servername in the prefix field for the auth notices. EG, :irc.server.name NOTICE AUTH :*** Looking up your hostname, etc. Hybrid and friends do not. It's just NOTICE AUTH :*** Looking up your hostname. Now, technically that might be invalid; messages from a server should pretty much always have a sender prefix, but since Hybrid doesn't send it, mIRC makes a "best guess" - it puts in what it thinks the server's name is, which is what you originally connected to.
Just pull up telnet to irc.efnet.net 6667 and you'll see that in action . Of course, it depends on what server you land on... bear in mind that mIRC most likely grabs the real servername from the 002 numeric, and not the first server-prefixed message it receives. |
|
| Back to top |
|
 |
|