There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
Linux and Unix
Tag Cloud
access acer asus bios bsod computer crash desktop dns driver drivers error ethernet excel freeze gaming google hard drive hardware hdmi internet laptop malware memory monitor motherboard netgear network printer problem ram registry repair router security slow software sound trojan usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless
Search
Search for:
Tech Support Guy Forums > Operating Systems > Linux and Unix >
TELNET script ?

Reply  
Thread Tools
vikrant321's Avatar
Junior Member with 12 posts.
 
Join Date: Aug 2004
Experience: Intermediate
30-Oct-2004, 03:28 AM #1
Question TELNET script ?
I need to build a script performing TELNET and some actions within the TELNET. How do I send a command to the TELNET client (starting User & Password) ? How do I make it think I typed this command from keyboard.
tsunam's Avatar
Senior Member with 1,246 posts.
 
Join Date: Sep 2003
Experience: Linux~su
30-Oct-2004, 03:34 AM #2
telnet is terribly insecure...if you want to connect/ do anything on a network might i suggest using ssh for it...not any more difficult and its included within linux..if you are connectiong to a windows machine...vpn..
Whiteskin's Avatar
Senior Member with 2,051 posts.
 
Join Date: Nov 2002
Location: Alberta, Canada
Experience: Windows: Decent. Unix/Linux: Advanced +1
30-Oct-2004, 01:42 PM #3
I wouldn't let telnet touch my personal files with a tenfoot stick. Stick to SSH.
tdi_veedub's Avatar
Senior Member with 590 posts.
 
Join Date: Jan 2004
31-Oct-2004, 02:40 AM #4
Even SSH has its faults if you are not careful. Things I have done to my SSH server to help secure it:

Run it on a non-standard port. Preferably in the high range so that at least the cheesy port scanners and lame *** kiddie scripts don't see it.

Disable the root login. OpenSSH has it enabled by default.

Add the following lines to your hosts.deny file:

ALL: kornet.net
ALL: pubnet.kr

A TON of SSH scans and HTTPD exploits orginate from those two domains.

If you use password authentication. USE SECURE PASSWORDS!!! At least 8 characters long, NOT a word, at least ONE special character, mix of upper-case and lower-case letters, and at least ONE numerical character.
__________________
Computer specs:
----------------------------------
Dell XPS 1530
Centrino 7500 2.2Ghz
GeForce 8600GT
120GB/2GB
tsunam's Avatar
Senior Member with 1,246 posts.
 
Join Date: Sep 2003
Experience: Linux~su
31-Oct-2004, 03:19 AM #5
good advice tdi_veedub
dago's Avatar
Member with 56 posts.
 
Join Date: Sep 2004
Location: Brazil
Experience: Intermediate
31-Oct-2004, 03:53 AM #6
This is more a direction than a real tip. When I was working in a carrier company, many (some thousands) equipment were only telnet capable, no ssh at all.
I'm not a programmer, to be honest -- I hate it... but I could find a workable solution playing on PERL. I was able to issue commands from a server and catch the output for every single stup** router on that dawn network...
Man, I get tired even when I think about it.

The only thing I remember now is: Perl will only work if you load the proper libraries to handle telnet.

I hope it could help. Cheers
Reply

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.
Thread Tools



Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 03:10 AM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.