Omnimaga

General Discussion => Other Discussions => Miscellaneous => Topic started by: AngelFish on July 16, 2011, 12:44:13 am

Title: IRC over Telnet
Post by: AngelFish on July 16, 2011, 12:44:13 am
I was wondering how many people have experienced the pain sheer joy of IRC over Telnet (http://windows.microsoft.com/en-US/windows-vista/Telnet-frequently-asked-questions). The premise of Telnet is that you can connect at a fairly low level to computers on other systems through its use, which means you can view IRC through the command prompt.

To do it on windows and access #omnimaga from the command line (once Telnet is installed):

Code: [Select]
telnet irc.prison.net 6667
NICK RickAstley
USER RickAstley 8 * : Rick
JOIN #omnimaga

This will set you up as a user named RickAstley in #omnimaga whose real name is Rick. Of course, what good is just joining? Talking is even more fun and uses the badly named PRIVMSG function:

The code
Code: [Select]
PRIVMSG #omnimaga "message"
will send "message" to everyone in the chan. To send a private message, just use their username instead.

If you remain inactive for too long, though, you'll receive "PING :irc.prison.net", to which the appropriate response is "PONG :irc.prison.net". If you don't respond, you'll be automatically disconnected.

Also, be careful if you try it. My IP is now banned from EFnet  ;D
Title: Re: IRC over Telnet
Post by: Michael_Lee on July 16, 2011, 12:47:40 am
Your ip... was banned? O.o

Is this actually safe to try?
Title: Re: IRC over Telnet
Post by: AngelFish on July 16, 2011, 12:49:24 am
It should be. Telnet basically allows you to implement the raw underlying IRC protocol.
Title: Re: IRC over Telnet
Post by: Ti-Programmer on July 16, 2011, 12:49:58 am
Why were you banned?

it should have just kicked you off, not the bot the server, for ping timeout, if you fail to pong.

Could a mod unban u?
Title: Re: IRC over Telnet
Post by: Michael_Lee on July 16, 2011, 12:50:16 am
I'm still kinda curious how you got banned, though.
Title: Re: IRC over Telnet
Post by: AngelFish on July 16, 2011, 12:51:10 am
I'm not sure why I was banned, but I can't reconnect now :(
Every time I try (even under different usernames), it just returns my IP followed by "( ***** BANNED )"
Title: Re: IRC over Telnet
Post by: Juju on July 16, 2011, 12:54:01 am
IRC over Telnet is fun. Especially when you're in more than 1 channel.
Title: Re: IRC over Telnet
Post by: AngelFish on July 16, 2011, 12:56:31 am
Yeah, it's just hard to keep track of your typing when the page scrolls every ten three seconds.
Title: Re: IRC over Telnet
Post by: DrDnar on July 16, 2011, 12:59:37 am
Have you tried a different server?
Title: Re: IRC over Telnet
Post by: XVicarious on July 16, 2011, 03:31:16 am
Hum... My connection is SO BAD that I get disconnected right away from a timeout. I do have one bar and the network is god knows how far away. I wonder if someone can write a batch script or something to add the "PRIVMSG #omnimaga" autmatically. I dont know exactly how telnet works tho.
Title: Re: IRC over Telnet
Post by: jnesselr on July 16, 2011, 10:29:43 am
It's fun but difficult.  I hate when I get a ping message, and am like "oh, gosh, what do I do???"
Title: Re: IRC over Telnet
Post by: calcdude84se on July 16, 2011, 02:11:36 pm
To my knowledge sending a message takes the form "PRIVMSG #channel :message", where #channel is the channel and message is the message. You need that colon there unless your message has no spaces. Same for the "real name" field of the USER command (the last one). (You also don't put a space after the colon.)
graphmastur: when you receive a message of the form "PING stuff", the proper reply is "PONG stuff", replying with the same stuff. Some servers send them in the form ":server PING stuff", in which case you just ignore what's before the command.
For everyone who wants to see the official documentation, here's a link to RFC 2812 (http://tools.ietf.org/html/rfc2812).
Title: Re: IRC over Telnet
Post by: Deep Toaster on July 16, 2011, 03:07:57 pm
The code
Code: [Select]
PRIVMSG #omnimaga "message"
will send "message" to everyone in the chan. To send a private message, just use their username instead.

The protocol is actually to use :message instead. Multi-word strings are preceded by a colon, not a quotation mark.

A really useful resource for anyone who wants to telnet to IRC is here: http://en.wikipedia.org/wiki/List_of_Internet_Relay_Chat_commands
Title: Re: IRC over Telnet
Post by: AngelFish on July 16, 2011, 03:35:14 pm
Hum... My connection is SO BAD that I get disconnected right away from a timeout. I do have one bar and the network is god knows how far away. I wonder if someone can write a batch script or something to add the "PRIVMSG #omnimaga" autmatically. I dont know exactly how telnet works tho.

You can't do telnet with a batch script by design. The way microsoft wrote telnet.exe, all execution pauses when the commandline goes into telnet and requires manual input from that point forward. You'd probably have to use a compiled language to telnet.

@DrDnar: The ban went away after a few hours.
Title: Re: IRC over Telnet
Post by: Ti-Programmer on July 16, 2011, 03:39:25 pm
You could try a sendkey vbs in windows too. (Visual Basic Scipt) the only thing is, it cant get the output from the command line, so it couldn't respond to Pings. Otherwise, it could log u on and join a channel.
Title: Re: IRC over Telnet
Post by: Broseph Radson on July 16, 2011, 06:45:41 pm
I did this in class once. T'was rather difficult.
Title: Re: IRC over Telnet
Post by: AngelFish on August 06, 2011, 06:21:44 am
I was wondering if it was possible to use Telnet as a rudimentary web browser and apparently it is. I managed to connect to Google, get various types of errors, do searches (by knowing the URL beforehand :P) and "view" the Google logo. HTTP is... interesting.

Now to try to actually use the Google search box [or some other page's text input box]...
Title: Re: IRC over Telnet
Post by: Deep Toaster on August 06, 2011, 11:09:27 pm
http://www.jmarshall.com/easy/http/http_footnotes.html#manually
^ Lotsa fun :D
Try POSTing stuff. Like logging in to Omni.
Title: Re: IRC over Telnet
Post by: AngelFish on August 07, 2011, 12:18:20 am
I can't keep a connection up for longer than one exchange.

Also, your sig spoilers aren't very spoilerish in raw html :P
Title: Re: IRC over Telnet
Post by: DJ Omnimaga on August 07, 2011, 12:19:31 am
I tried the other week and it wouldn't even let me connect. I got a timeout error. Oh well. :P