Jump to content

I Want To Run A Telnet Chat Server (prob solved thanx)


hsncorrosion

Recommended Posts

After a fast search on google with this terms: "telnet chat server GPL" gives me this:

http://freshmeat.net/projects/stchat/

GL :)

P.S STFW ;)

Thanx but im having trouble getting it to run.

I cant find a .jar file.

Here is the readme for it.

Thanx

Small Telnet Chat (STC)



Requirements

------------



Server: All you need are the files of the chatserver and a functional JRE.



Client: To connect to the server you need at VT100 capable telnet client.

  Simple telnet to a server on which the STC is running. (You need to know the

  port on which the server is listening since STC can run on any port).



  STC is known to work with:

    -> PuTTY works fine

    -> Win2000 telnet works

    -> WinXP telnet works (some versions of WinXP telnet seem to have problems but up to date

       ones (with service packs, etc.) work)

    -> Linux telnet (netkit) works



Installation

------------



No special installation procedure is required. Simply unpack the

archive into a directory and run it.



The configuration file (config.xml) has to be in the same

directory as the server.



For those who want to put the server to place where executables usually

reside (/usr/local/bin, etc.), a .jar file is provided.





Running

-------



To run the chatserver, cd into the directory into which you have copied the

files.



Run the server by typing:

    java stc <port>



If you want to use the .jar file, you have to type:

    java -jar stc-x_xx.jar <port>



Where <port> is the TCP port on which you want the server to listen and

x_xx has to be replaced with the version suffix (0_15, etc.).



Note: In Linux/Unix you have to be root to run the server at a port

below 1024.





Configuring

-----------



You can configure the server either by telnetting to it and change to

administrator mode or edit the config.xml directly.

Please consider that the server relies on the correctness of the config file

so it is better to configure it via telnet mode.



To configure the server start it:

    e.g. java stc 23



If you want to run it in background and want wo prevent it from spamming your console use:

    e.g. java stc 23 & > /dev/null

which should work on most Linux/Unixes.



Now telnet to the server:

    e.g. telnet localhost



Enter any nickname (or simply press enter) and choose a color.

After logging in, you should see the prompt:

    >



To change to administrator mode, you have to change you nickname.

The server will not permit opening a session as administrator, but you can

change to admin mode afterwards. Change your nick to the name of the administrator

which is "admin" by default:

    > nick admin

(Don't enter the space before the >, the server will print it for you.)



Now you are required to enter the password which is "god" by default:

    Password: ***



Take a look at the server settings by entering the command "listdef"

(BTW: All commands start with a backslash):

    > listdef



The output will be something like:

    Jokes                        : 'off'

    Serverecho                   : 'on'

    Dump to console              : 'off'

    Fancy VT100 commands         : 'on'

    Admin name                   : admin

    Admin password: (not printed)

    LPS Quota                    : 5

    Max. connections             : 16

    Autoblock IPs                : 'off'

    Autoblock IP timeout         : 1

    Default logfile              : logfile.txt

    Configfile (can't be changed): config.xml

    Logged users                 :



Jokes: This options decides whether the server prints 'jokes' in certains situations.

Serverecho: If it is on, the server will echo all your keys.

Dump to console: Set this to on to and all chat messages will be printed to standard output.

Fancy VT100 commands: If you disable this option, no VT100 commands are sent to the clients.

   It is discouraged to turn it off. (Try it and you'll see what I mean.)

Admin name: The user with this name is recognized as administrator.

Admin password: The admin's password which is not printed, of course.

LPS Quota: This is the maximum-lines-per-second-quota. If a user exceeds it, he will be kicked.

  The administrator has no quota.

Max. connections: The number of simulataneous connections the server will allow to open.

Autoblock IPs: If you set this to on, a client who exceeds the line quota will not be allowed

  to re-enter the chat till the timout has expired. (Block is done on per-IP basis.)

Autoblock IP timeout: Defines the timout for blocked users in minutes.

Default logfile: Filename of the logfile which will be opened at starup.

Logged users: Shows a list of users whose messages are logged.



Change the settings according to your needs and enjoy.





Command list

------------



Commands available to all users:



    help:

        Prints a help screen



    nick newnick:

        Changes your nickname to "newnick". You can use quotation marks if you nickname

        contains spaces.



    color number:

        Change your message colour to colour "number". Enter color without a parameter

        to get a list of colours.



    list:

        List all users currently logged in. The administrator will be shown additional information

        like client IP and port number.



    detach:

        If you enter this command you wont get messages from other users.

    attach

        Re-enable message dispatching after entering detach

    secho [on|off]

        Enables or disable key echo from server.

    quit:

        Close connection.





Commands for the administrator only:

def xxx commands set defaults which apply to all clients or all future clients

(depending on setting).



    logfile file:

        Sets the name of the current logfile. Be careful: Existing files

        are overwritten without prompting!



    kick nickname:

        Kick the user with nickname "nickname".

    killserver:

        Terminates the server-process.



    log user1 user2 ...:

        Log messages of the given users. Use log * to log all user activity.

        log without paramters diables logging of all users.



    def serverecho [on|off]:

        Defines whether the server will echo key.



    def dump2con [on|off]:

        Defines wheter the server will dump all user messages to stdout.



    def fancy  [on|off]:

        Defines whether the server will use VT100 commands.



    def jokes [on|off]

        This setting defines whether the server will print joke messages in

        certain situations.



    def ipblock [on|off]:

        Enables or disables the autoblocking mode.



    def ipblocktime ...:

        Sets the autoblocking timeout in minutes.



    clearblock:

        Clear the list of currently blocked IPs.



    listblock:

        Shows the list with currently blocked IPs.



    def adminname ...:

        Sets the user which will be recognized as administrator.



    def adminpw ...:

        Sets the administrato's password.



    def logfile ...:

        Sets the logfile which will be opened on startup.



    def maxlps ...:

        Sets the maximum-lines-per-second quota.



    def maxconns

        Sets the macimum number of concurrent connections.



    listdef:

        Show the server settings.



    cleanconfig:

        Generates a new "factory default" configuration.



    wrconfig:

        Writes the configuration to config.xml



    rdconfig:

        Loads the configuration from config.xml



    clearlog:

        Clears the current logfile. (Simply deletes it.)



    dumplog:

        Prints a dump of the logfile.

EDIT

Got it to work using CD command and typing in java stc <port>

how do i compile this into a file? or can i make a batch file for it?

EDIT

NVM I got It.

Here is the bat file i made

@ECHO ON

java stc 23

@ECHO OFF

pause

Link to comment
Share on other sites

If anyone wants to check it out telnet

hsnclanserver.gotdns.com

For the poor souls who dont know how and run windows heres what you do.

Click start --> run --> cmd (or command) -->type in telnet hsnclanserver.gotdns.com

The post is default so you should be able to connect without typing the port. Other wise the port number is: 23

Link to comment
Share on other sites

How safe is this for the guy whos computer this server is running on ?

Well, I've never had a breakin.

Also I've heard that having a telnet will protect your computer. I don't know it thats true but thats what I heard.

Anyway I'll let you know if anything happens but I've been running servers for about two years now. I'm not too worried.

Link to comment
Share on other sites

How safe is this for the guy whos computer this server is running on ?

Well, I've never had a breakin.

Also I've heard that having a telnet will protect your computer. I don't know it thats true but thats what I heard.

Anyway I'll let you know if anything happens but I've been running servers for about two years now. I'm not too worried.

what types of telnet servers ?

Link to comment
Share on other sites

I think the main security element of telnet is the fact that its so old and out of date that 99% of script kiddies won't be looking for it. But its still as secure as leaving your windows open, your doors unlocked and going on holiday.

Link to comment
Share on other sites

Also I've heard that having a telnet will protect your computer. I don't know it thats true but thats what I heard.

Where did you hear this from?

I don't rember, but I think that any sort of server no matter how secure. If a port is open your open to attack. But like I said I will let you guys know if anything does happen.

Link to comment
Share on other sites

Ok heres what I've figured out about telnet server security.

This (or any other) telnet server is a major security hole.

I found it on this site.

http://pwts.sourceforge.net/

EDIT

So based off of this quote and info on the site.

I would advise that you run it on a spare computer.

But I also think that telnet is Extremly Old and that lessnes the worry in my mind that someone would use it to hack.

Once again like I said before I will keep you all up to date with the server. If someone hacks it you'll be the first to know.

But I'm not too worried.

Link to comment
Share on other sites

Sorry for the double post but...

Is there a way to change the logo?

I made a post for this question at

http://www.hak5.org/forums/viewtopic.php?t=5033

If anyone knows plz post there.

Also can someone tell me a good way to advertise this. So far I've had over 10 people on the chat, just one problem. Only one person has come at once. So people just leave, because nobody wants to wait for more people to come.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...