View Full Version : Need batch file help
At the student dorm where i am presently at
to get connected to the internet, i have to
1.type in run "telnet *****ip adress****"
command prompt comes up
2.type in username "***username***"
enter
3.type in password "***password*"
enter
is there any way for a simple batchfile script to do this because i have to do this several times a day and it is rather annoying.
Thanks in advance
Vargas
03-27-2006, 05:07 AM
would the -l varibule work?
type: telnet /? for command line options
-l Specifies the user name to log in with on the remote system.
Requires that the remote system support the TELNET ENVIRON option.
zaphodiv
03-27-2006, 08:44 AM
I'm not aware of a way to automatically enter a password with a batch file.
There is a windows port of expect (http://expect.nist.gov/FAQ.html) which can be used for automating telent sessions.
If you hunt around you can probably find a telnet client that can save usernames and passwords.
Thanks for help
i will look into auto password programs
but if i make a batch saying
telnet 129.234.221.9
the command window pops up exactly as expected
could i simply put in after (telnet)
u5ern4me
and then
pA55w0rd
Vargas i don't understand your -l variable - where to place it?
nice to see you back btw.
zaphodiv
03-27-2006, 10:17 PM
could i simply put in after (telnet) u5ern4me
I don't think so. Firstly the interpreter will not process the next line until the telnet program closes, secondly the interpreter will take that as an instruction to run a program called u5ern4me
Vargas
03-28-2006, 02:57 AM
telnet -l username 129.234.221.9
it doesn't say anything about password though. . . maybe:
telnet -l username password 129.234.221.9
zaphodiv
03-28-2006, 03:01 AM
maybe:
telnet -l username password 129.234.221.9
That does not work.
C:\Documents and Settings\Owner>telnet -l zaphodiv password a.machine.of.mine
Connecting To password...Could not open connection to the host, on port a.machine.of.mine: Connect failed
Vargas
03-28-2006, 08:56 AM
maybe:
telnet -l zaphodiv|password a.machine.of.yours
but i think the solution would be a telnet client that supports scripting
aaah i see the problem
thanks for the info
i found two programs which are supposedly able to do this
SecureCRT or PenguiNet.
;)
Powered by vBulletin® Version 4.2.3 Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.