tessa1 Halfop
Joined: 18 Apr 2005 Posts: 49 Location: Germany
|
Posted: Fri May 22, 2009 7:23 am Post subject: [SOLVED] Telnet login command-Deliver nickname and password |
|
|
Hi,
I'm connecting via putty (ssh and keyfile) to the server.
then i type the follwing command
| Code: | | telnet 127.0.0.1 1234 |
--> Bot needs nickname and password
Is it possible to deliver the nickname and password in this command?
EDIT and Solved: I'm using expect on my shell.
eggdropautologin.sh
| Code: |
#!/usr/bin/expect -f
spawn telnet 127.0.0.1 1234
expect -re "Nickname"
send "tessa1\n"
expect -re "Passwort"
send "XXXXXXXXXXXXXXX\n"
interact
|
|
|