Previous Thread
Next Thread
Print Thread
Rate Thread
#15976 10/21/02 10:20 AM
Joined: Mar 1983
Posts: 55
S
Skull Offline OP
UGN Elder
OP Offline
UGN Elder
S
Joined: Mar 1983
Posts: 55
Since i've installed telnet on my linux mandrake machine its worked perfectly. But when i went to try to log in today i found that it was refusing connections. So i did the normal, checked the firewall, made sure it was still installed as a server and everything, but to no luck. When i went to my deamons/services menu to make sure it was running, it wasn't there. Everything else that should be just not my telnet server. So i figured mabye the install was currupt or something so i went and uninstalled it, and reinstalled it. Install went well, no problems occured, go back to services menu, and still no telnet. Has anybody ever expirenced this type of problem before and if so how was it fixed.

Regards,

Skull


Trust me, if i started killing people, there'd None of you left
#15977 10/21/02 11:12 AM
Joined: Oct 2002
Posts: 37
Junior Member
Offline
Junior Member
Joined: Oct 2002
Posts: 37
Well. First off. You don't want to be running telnet.
Second of. Make sure you have a in.telnetd. That is the name of the server binary. After that. You are going to want to run telnet from xinetd or just inetd. Depending on which Mandrake uses. Let me know which you have and I'll show you how to set it up.

#15978 10/21/02 11:17 AM
Joined: Oct 2002
Posts: 37
Junior Member
Offline
Junior Member
Joined: Oct 2002
Posts: 37
Oh. I suppose I should go into why you shouldn't use telnet. Also, listing an alternative. Ok. The reason you don't want to use telnet is because it sends data over the network completely unencrypted. All you would need is someone sitting around sniffing your network and blammo. One lost password. What you want to run, which is probably already running, is ssh. If you need a program to connect to your SSH Server from Windows. Go to www.ssh.com and then go to downloads and download their Win SSH Program. Very nice. SSH though, encrypts the data that is transmitted through it so that you don't have to worry about people sniffing your connection. Also, you can transfer files through SSH and many other fun things.

#15979 10/21/02 01:09 PM
Joined: Mar 2002
Posts: 626
Member
Offline
Member
Joined: Mar 2002
Posts: 626
It is true for the most part about telnet. You should not be having this problem. Never know, you could have forgetten where you put it. Or even if it seemed to install correctly, it didn't didn't. There are several made telnets out there, java, perl, c++... Go search em out and d/l a new one. I got a Java telenet, which worked fine, for my uh uses.


-hKzKnight
"The ghost... Was never there and you'll never see me"
#15980 10/21/02 04:07 PM
Joined: Mar 1983
Posts: 55
S
Skull Offline OP
UGN Elder
OP Offline
UGN Elder
S
Joined: Mar 1983
Posts: 55
I use telnet because it is convient and comes default with windows, I would use ssh but i am unable to install it on my school computers with out going through the effort of disabling their security, and i just don't have time to do that to each one of their computers. I realize that it is a big security hole, and don't care all that much... If ssh came standard on windows i'd use it instead.
Also it is a telnet server, not a client. And it has worked for about a year till i tryed to log in via that today, which it didn't work.

Skull,


Trust me, if i started killing people, there'd None of you left
#15981 10/21/02 04:52 PM
Joined: Mar 2002
Posts: 815
S
nobody
Offline
nobody
S
Joined: Mar 2002
Posts: 815
I carry putty with me on a floppy at school. It doesent matter what kind of security they have unless they dont allow you to run programs and use the floppy drives. No need to install anything just run the .exe. If i forget my floppy ill just download it to the computer im on and run it.

Hkz those are clients your refering to. Im certain skull is refering to the telnet deamon or server or telnetd what ever you wanna call it.

#15982 10/21/02 05:42 PM
Joined: Mar 2002
Posts: 626
Member
Offline
Member
Joined: Mar 2002
Posts: 626
Ahh yes you are right, sorry didn't read that detail. Was working late. Well wait it out skull, it might actully just be the server is down. If not check that the port and term type are correct, maybe you did something. Never know. Nice idea sin, I carry all sorts of disks on me, got a floppy Unix (like a hundred) on disk, put that in the school pcs. Anway... Let us know skull.


-hKzKnight
"The ghost... Was never there and you'll never see me"
#15983 10/22/02 09:17 AM
Joined: Oct 2002
Posts: 37
Junior Member
Offline
Junior Member
Joined: Oct 2002
Posts: 37
I'd imagine he'd have known if the server was "down" considering, well, that it was HIS server in the first place. Lets see. Skull, since you have decided to go ahead and stick to unsecure connections, which is Ok so long as you don't care about your boxes security, then if you are using RedHat 7.1 or later. Type /sbin/service xinetd start. Then try connecting. If that doesn't work. Do an ls /etc/xinetd.d/. If there is a file in there called telnet. Open it up. vi /etc/xinetd.d/telnet. Look at the file. Does it by chance say "disable = yes"? If so. Change that to "disable = no". Then try telneting. Guaranteed success. This will probably work for Mandrake and SuSE as well. The default location of the in.telnetd executable by the way is /usr/sbin/in.telnetd. Here is what my /etc/xinetd.d/telnet file looks like. Feel free to create the file if it doesn't already exist. (So long as you have an /etc/xinetd.d directory.)

Code
service telnet
{
        flags           = REUSE
        socket_type     = stream
        wait            = no
        user            = root
        server          = /usr/sbin/in.telnetd
        log_on_failure  += USERID
        disable         = yes
}
Just put that in the directory and everything will work. Considering you change disable on over to no. Oh. Also. Do a /sbin/chkconfig --list. Make sure xinetd is listed as on in run levels 3, 4, and 5. If they aren't. Do a /sbin/chkconfig --level 345 xinetd on. If that doesn't work. Do --levels. Can't remember off the top of my head which one it is. Well. That should explain a lot maybe. Let me know. Oh yes. Another thing. To check to see whether you have the telnet server even installed. If you are using a rpm based distribution, do this rpm -qa | grep telnet-server. This should pop up a response. If you don't get anything from that. Install the damned thing. This should be it. If you need any more info, feel free to let me know.

#15984 10/24/02 11:27 AM
Joined: Mar 1983
Posts: 55
S
Skull Offline OP
UGN Elder
OP Offline
UGN Elder
S
Joined: Mar 1983
Posts: 55
Finally an intellegent responce from someone who actually read the post, i'll give those things a try, and get back to ya. And yes, i do realize that telnet is like going outside and yelling my passworld to the world, and at the moment convience is more important then security, eventually i'm sure i'll make the switch but am well, to lazy at the current time.

Regards,

Skull


Trust me, if i started killing people, there'd None of you left
#15985 10/24/02 12:16 PM
Joined: Oct 2002
Posts: 37
Junior Member
Offline
Junior Member
Joined: Oct 2002
Posts: 37
I mentioned this post to Energy, when he read it he said to me "You should have told him about TCP Wrappers". Which had completely slipped my mind. Set up tcp wrappers and you'll be a little safer then you would have normally been.

If you aren't sure what tcp wrappers are, they are the /etc/hosts.deny and /etc/hosts.allow file. In /etc/hosts.deny I'd put in ALL: ALL. In the /etc/hosts.allow file I'd put in in.telnetd:IP.ADD.RE.SS that you'll be coming from at school. If you don't know the full thing or if it's subject to change, you can just put the first 3 octects in there. IE. As opposed to 127.0.0.1, you could put 127.0.0. That would work. Also, you'd need to give permission for any other services you wanted to log into. Such as ftp or mailserver or anything. Or, if you want to be lazy about it. In hosts.deny just put in in.telnetd: ALL.
The way it is read is the first part is the service and the second part is "Who can access this" or "Who is blocked from this". It reads the hosts.deny file first too. Then any rules in hosts.allow overwrite the hosts.deny rules. I hope that made some semblance of sense. If not, let me know and I'll clarify.

#15986 10/24/02 05:59 PM
Joined: Mar 2002
Posts: 626
Member
Offline
Member
Joined: Mar 2002
Posts: 626
Some lil info (future refrence etc, tcp wrappers)

Probably TCP Wrappers and the old "double reverse lookup problem." Try adding an entry in /etc/hosts to refer back to your client(s) and make sure that your /etc/nsswitch.conf and /etc/hosts.conf are configured to honor "files" over DNS and NIS.

On Linux systems the /etc/inetd.conf is usually configured to run most programs under an access control and logging utility called "TCP Wrappers"
(/usr/sbin/tcpd). That utility refers to a couple of configuration files (/etc/hosts.allow, and /etc/hosts.deny) and it does some "paranoid" consistency checking to try and ensure that the client "is who he claims to be." The specifics of this paranoid checking are referred to as a "double reverse DNS lookup."

Linux uses a modular name services resolution system. Newer versions of Linux use the /etc/nsswitch.conf files to control the list of name services that are used for each name space (users/accounts, groups, hosts and networks, services, mail aliases, file server maps, etc). In most cases you wouldn't have to modify the nsswitch.conf to make it look at the /etc/hosts file. In other cases you might

other sites of refrence

Perl's NET::Telnet and NET::Telnet::CISCO modules may have what you're looking for. Check www.cpan.org.

(please watch what neg [censored] you say)


-hKzKnight
"The ghost... Was never there and you'll never see me"
#15987 10/24/02 09:08 PM
Joined: Mar 1983
Posts: 55
S
Skull Offline OP
UGN Elder
OP Offline
UGN Elder
S
Joined: Mar 1983
Posts: 55
Cheers good fellows, I got it up and running again. Thank you for the info specially on the TCP Wrappers, i'll have to go do some research to further the extent of my knowlege on em, but i got a few tests done using the hosts.deny and my windows machine, and everything seems to be working

Regards,

Skull


Trust me, if i started killing people, there'd None of you left

Link Copied to Clipboard
Member Spotlight
Posts: 30
Joined: June 2002
Forum Statistics
Forums41
Topics33,840
Posts68,858
Average Daily Posts1
Members2,176
Most Online3,253
Jan 13th, 2020
Latest Postings
Where and how do you torrent?
by danni75 - 03/01/24 05:58 AM
Animation,
by JohanKaariainen - 08/15/19 01:18 AM
Blackbeard.....
by Gremelin - 10/03/18 07:02 PM
my old account still exists!
by Crime - 08/10/18 02:47 PM
Okay WTF?
by HenryMiring - 09/27/17 01:45 AM
The History Thread...
by Gremelin - 08/11/17 12:11 PM
My friend NEEDS your HELP!
by Lena01 - 07/21/17 12:06 AM
I'm having fun with this guy.
by gabithompson730 - 07/20/17 01:50 AM
I want to upgrade my phone
by gabithompson730 - 07/20/17 01:49 AM
Doom 3
by Cyrez - 09/11/14 08:58 PM
Amazon Gift Card Generator/KeyGen?te
by Gecko666 - 08/22/14 09:21 AM
AIM scene 99-03
by lavos - 09/02/13 08:06 AM
Planetside 2
by Crime - 03/04/13 07:10 AM
Beta Testers Wanted
by Crime - 03/04/13 06:55 AM
Hello Everyone
by Gremelin - 02/12/12 06:01 PM
Tracfone ESN Generator
by Zanvin Green - 01/18/12 01:31 PM
Python 3 issue
by Testing - 12/17/11 09:28 PM
tracfone airtime
by Drache86 - 07/30/11 03:37 AM
Backdoors and the Infinite
by ZeroCoolStar - 07/10/11 03:52 AM
HackThisZIne #12 Releaseed!
by Pipat2 - 04/28/11 09:20 PM
gang wars? l33t-wars?
by Gremelin - 04/28/11 05:56 AM
Consolidate Forums
by diggin2deep - 04/21/11 10:02 AM
LAN Hacking Noob
by Gremelin - 03/12/11 12:42 AM
Top Posters
UGN Security 41,392
Gremelin 7,203
§intå× 3,255
SilentRage 1,273
Ice 1,146
pergesu 1,136
Infinite 1,041
jonconley 955
Girlie 908
unreal 860
Top Likes Received
Ghost 2
Crime 1
Ice 1
Dartur 1
Cyrez 1
Powered by UBB.threads™ PHP Forum Software 7.7.5