Script to telnet web server


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Script to telnet web server
# 1  
Old 12-02-2008
Script to telnet web server

A similar script I wrote long time ago, it was working, but it was deleted and now for some reasons my new script doesnt work. I have been searching for a while in google but no luck so far. Can anyone help me to spot syntax errors with this little script here:

Code:
#!/bin/sh

{
    sleep 2 
    echo -e "HEAD / HTTP/1.0\r\r"
} | telnet server 80

# 2  
Old 12-03-2008
Any idea, pls?
# 3  
Old 12-03-2008
use round brackets ()
# 4  
Old 12-03-2008
Ah yes, it should have been (). Nonetheless, it makes no progress, I still cannot pass the HEAD method command to the server
# 5  
Old 12-03-2008
i've recently done some testing on sending mais by telnetting mailserver on port 25 but i didn't manage to make telnet read data from stdin. i was wondering that souch things has been working, as you said.
if you are interestet in the perl example i will send it to you gently
# 6  
Old 12-03-2008
It was indeed working. I even managed to write a port scanner utility with telnet as a backend application

But then I changed to another backend application (netcat), as telnet doesnt support UDP connection.

Unfortunately I didnt keep copy of the working version based on telnet Smilie

Thanks for your offer, but I dont have any knowledge in perl Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

5 More Discussions You Might Find Interesting

1. Web Development

Script to determine which web server at ip addresses

how do we determine if ip addresses are hosting IIS version 7.x or Apache 2.2.x. ? (3 Replies)
Discussion started by: NameSake
3 Replies

2. Shell Programming and Scripting

Script for HP Embedded Web Server

Hi, In our company we have serveral HP Officejet Pro 8600 N911g printers. I would like to create one addressbook (in CSV format) and import it to all our printers If i go to the settings of my network printer by ip address: /#hId-EmailContacts in my browser I don't see an option ... (0 Replies)
Discussion started by: eclectica1
0 Replies

3. Shell Programming and Scripting

How to auto telnet the server from another server using script

Hi All, I have a problem with auto telnet script, but I want to tell u something a) I am only a member access on the server, so not able to access 'root' account b) not able to install any software on server 3) On server, there is not install 'except' I have to write a script, which is ran... (0 Replies)
Discussion started by: atul9806
0 Replies

4. Shell Programming and Scripting

Script to monitor JBoss web server

Hello All, I need a shell script to monitor JBOSS web server.If the JBOSS web server is down, then the script should send a mail. Please help on this. Regards, Sachin (2 Replies)
Discussion started by: nsachin
2 Replies

5. Shell Programming and Scripting

(w)get web server's directories + bash script

Hi everyone. I need to write a script which will download files/folders (a huge collection) to the local file server (centOS 4.4 Server), and check regularly (every 6 hours or so if any new files are present, or if the old ones were modified to update contents). Any insights on how to tackle... (2 Replies)
Discussion started by: reminiscent
2 Replies
Login or Register to Ask a Question