Microsoft DOS
--
Questions
--
Followers
Top Experts
Zero AI Policy
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
echo password | telnet -l username IPaddress
Be aware that putting unencrypted passwords into scripts/batch files is a security breach.
Alternatively you could use other languages such as perl to do this task:
use Net::Telnet ();
$t = new Net::Telnet (Timeout => 10,
Prompt => '/bash\$ $/');
$t->open("hostname");
$t->login($username, $passwd);
@lines = $t->cmd("who");
print @lines;
How does this other tool not store my password?
This other tool will also store your password in a text file. :(
Here is a write up of what the program does. Link: http://jerrymannel.com/blog/2008/11/11/telnet-scripting-tool-aka-tst10exe/






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
Learn to use from the below link..
http://www.vandyke.com/products/securecrt/
I am using the same for telnet and run the commands which are preloaded.
Attached are the screenshots..just for reference..
Cheers!
I'm all for telnet but this needs to be something that the SQL server can execute. If so, then its a good option.

Get a FREE t-shirt when you ask your first question.
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
I've done some testing and I can't get passed the logon part. What I've done so far is that I have a text file called, "logon.txt" and an "Output.txt" file which is blank.
My logon.txt file contains:
128.#.#.# 23
WAIT "login"
SEND "username\m"
WAIT "password"
SEND "$1234\m"
WAIT ">"
SEND "ss1\m"
WAIT ">"
SEND "stop_procs\m"
WAIT ">"
I then go to the cmd and type:
TST10.exe /r:logon.txt /o:output.txt /m
but it fails to get passed the username/password.
It then shows this:
Welcome to Microsoft Telnet Service
login: hciuser
ciuser
password: $eveN11
The handle is invalid.
Login Failed
login:
http://www.makeuseof.com/tag/automate-telnet-commands-vb-script/
~bp






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
Microsoft DOS
--
Questions
--
Followers
Top Experts
Microsoft Disk Operating System (MS-DOS) was an operating system for x86-based personal computers, and traces of it are still found in the Windows operating system. DOS is still used in some embedded systems and for certain legacy 16-bit networks.