AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

AutoTelnet 1.3 (Tested with Putty and Telnet)

 
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
DJAnonimo



Joined: 10 Sep 2006
Posts: 157

PostPosted: Sun Jan 27, 2008 8:19 pm    Post subject: AutoTelnet 1.3 (Tested with Putty and Telnet) Reply with quote

It's time to share something.
Script made in AHK.

Auto connect to a shell with putty or telnet and send command defined in the text file.

Quote:
Hi all.

If you want to change the script or configurations
you can Delete config.ini and run AutoTelnet or simply edit the .ini file.
Script.txt is the file where you put the commands which you would like to send.
I recommend to use Putty for telnet to avoid some chars (\, |, <, >, [, ]) problems which Microsoft Telnet does.
Use "Sl33p, milliseconds" for delay send between lines.
For force exit use "+exit". Use it if telnet or putty don't closed with standard exit command at the end of the script.

v1.3
1) Comment a single line with semicolon ";" (; Sl33p, 1000)
2) Ability to start the application Minimized or Maximized.
3) Added "RUN, <path>" (uppercase, case sensitive) for run an application on the local PC from the script.
4) Bugfix: in some cases AutoTelnet skipping a line of the script.

v1.2
1) Password can't be read from config.ini as text (simple crypter, just for hide)
2) Added "Silent Mode" that disables the "Done" message box.
3) Added command line support for custom .ini and .txt files.
Usage: autotelnet.exe <ini_filename> <script_filename>

v1.12
1) Added "Slow Mode". Use it if you got lowercase/uppercase, and non letters problems such (\, |, <, >, [, ],{,})
2) No more known limitation. Now you can send { } brackets (Slow Mode needed)

v1.11
Small bugfix

v1.1
1) Bugfix
2) Added Sleep in "Commands to send" window. (Wait X milliseconds between lines)
With negative value the script is a bit faster but it can cause skips.
3) Added "Sl33p, <ms>" command. (Wait X milliseconds for a single line)
4) Supports SSH with Putty (putty.exe -ssh IP)
5) Added "+exit" command that sends exit and kill the process (putty, telnet or any other)


Command Line Examples:
1) autotelnet.exe box1.conf script_1.txt (if files dont exist it create box1.conf and script_1.txt)
2) autotelnet.exe box1.conf (if files dont exist it create box1.conf and script.txt)
(if script_filename omitted script.txt will be used, just script_file cant be used)
3) autotelnet.exe (no command line parameter, uses default conf.ini and script.txt)


Script Example (script.txt file):
ps x
; with removing semicolon in the line below will send " ls"
; ls
Sl33p, 1000
help
; the line below wait for 2 secs and then continue (2000ms)
Sl33p, 2000
RUN, shutdown.exe -s -t 120
; shutdown your PC after 120 secs
Sl33p, 5000
RUN, C:\WINDOWS\system32\shutdown.exe -a
; abort the shutdown process
+exit


Scripter: DJAnonimo


Download


Last edited by DJAnonimo on Sat May 10, 2008 1:30 am; edited 5 times in total
Back to top
View user's profile Send private message MSN Messenger
trik



Joined: 15 Jul 2007
Posts: 1320

PostPosted: Sun Jan 27, 2008 8:34 pm    Post subject: Reply with quote

If it is in AHK, post it in Scripts & Functions Wink
_________________
Religion is false. >_>
Back to top
View user's profile Send private message
DJAnonimo



Joined: 10 Sep 2006
Posts: 157

PostPosted: Sun Jan 27, 2008 10:26 pm    Post subject: Reply with quote

It's ok without source there?
Back to top
View user's profile Send private message MSN Messenger
trik



Joined: 15 Jul 2007
Posts: 1320

PostPosted: Sun Jan 27, 2008 10:33 pm    Post subject: Reply with quote

Yes.
_________________
Religion is false. >_>
Back to top
View user's profile Send private message
polyethene



Joined: 11 Aug 2004
Posts: 5248
Location: UK

PostPosted: Sun Jan 27, 2008 10:39 pm    Post subject: Reply with quote

I've moved this topic to Scripts & Functions for you. If you want it back just let me know, although I believe this section has greater exposure :)
_________________
GitHubScriptsIronAHK Contact by email not private message.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
zhitenglin
Guest





PostPosted: Sun Dec 21, 2008 4:33 pm    Post subject: Use NTAutoScript Reply with quote

The NTAutoScript is much better than this one.
and work well anywhere in any console program,not only telnet.
email zhitenglin@163.com
reply you a copy to have a try.
Back to top
DJAnonimo



Joined: 10 Sep 2006
Posts: 157

PostPosted: Sun Dec 21, 2008 11:35 pm    Post subject: Reply with quote

AutoTelnet works with putty SSH and puttytel not only telnet.
it send text to any program, you can send to notepad too.

anyway thank you for info
Back to top
View user's profile Send private message MSN Messenger
tomciu
Guest





PostPosted: Sun Jan 03, 2010 9:29 pm    Post subject: Reply with quote

DJAnonimo:
how to translate AutoTelnet to other language?. After unpack and run Autotelnet report: "EXE corrupted"
Back to top
Pacheco



Joined: 23 Feb 2006
Posts: 168
Location: Portugal

PostPosted: Sat Jun 05, 2010 12:16 am    Post subject: Reply with quote

Don't work in Windows 7 well...

Why don't you give the source so I can correct it? Sad
I really don't understand...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group