HTTP Get command terminates telnet.
#1
Posted 20 August 2006 - 10:52 PM
I am running ubuntu 6.06 Dapper, if that changes anything.
#2
Posted 20 August 2006 - 11:00 PM
Alk3
#3
Posted 20 August 2006 - 11:21 PM
As in police?Be VERY careful which web site you telnet to... Could have a bad outcome.
Alk3
Or as in, that is what is terminating the window.
#4
Posted 20 August 2006 - 11:26 PM
As in police?
Be VERY careful which web site you telnet to... Could have a bad outcome.
Alk3
Or as in, that is what is terminating the window.
As in if you don't have permission from the website you telnet to, some people can count that as a computer crime.
#5
Posted 20 August 2006 - 11:39 PM
#6
Posted 21 August 2006 - 06:05 AM
As in police?
Be VERY careful which web site you telnet to... Could have a bad outcome.
Alk3
Or as in, that is what is terminating the window.
As in if you don't have permission from the website you telnet to, some people can count that as a computer crime.
But on their end, they can't tell the difference between you telnetting there, and you surfing them through Internet Explorer. This isn't accessing unauthorized ressources, but publicly released webpages. So I'm surprised to see you write that.
#7
Posted 21 August 2006 - 08:25 PM
Yes, that may be, but for starting, I will get the permission from the web administrator which I do have.
As in police?
Be VERY careful which web site you telnet to... Could have a bad outcome.
Alk3
Or as in, that is what is terminating the window.
As in if you don't have permission from the website you telnet to, some people can count that as a computer crime.
But on their end, they can't tell the difference between you telnetting there, and you surfing them through Internet Explorer. This isn't accessing unauthorized ressources, but publicly released webpages. So I'm surprised to see you write that.
Edit: Thanks tehbiz. I missed your post earlier.
Edited by Octal, 21 August 2006 - 08:27 PM.
#8
Posted 22 August 2006 - 11:08 AM
browser, instead of a telnet connection, but it's probably not a big deal... at all.
User-Agent: Mozilla/5.0
Edited by stderr, 22 August 2006 - 11:10 AM.
#9
Posted 22 August 2006 - 01:40 PM
get / HTTP/1.1 *enter*
connection: keepalive (or keep-alive or something, i forget) *enter*
*enter*
and it wont terminate
#10
Posted 22 August 2006 - 02:05 PM
Be VERY careful which web site you telnet to... Could have a bad outcome.
There is nothing wrong with telnetting to port 80 on a WebServer and interacting with the web server.
There could be a bad outcome if the telnet port was left open on the webserver and you happen to use it for malicious activity.
#11
Posted 23 August 2006 - 09:10 AM
#12
Posted 23 August 2006 - 09:28 AM
That helped, but both of them still terminated the telnet window. I'm going to search around for articles about this though.type:
get / HTTP/1.1 *enter*
connection: keepalive (or keep-alive or something, i forget) *enter*
*enter*
and it wont terminate
#13
Posted 23 August 2006 - 02:47 PM
Here's a full set of headers based on my default firefox ones that I have used in php
$host would be the domain and $path would be the URI of the specific page you want to request.
$out = "GET " . $path . " HTTP/1.1\r\n" . "Host: " . $host . "\r\n" . "Connection: Close\r\n" . "Accept: text/xml,application/xml,application/xhtml xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\r\n" . "Accept-Language: en-us,en;q=0.5\r\n" . "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\n" . "User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.6) Gecko/20060728 Firefox/1.5.0.6\r\n";
#14
Posted 23 August 2006 - 04:04 PM
That being said; whatever telnet application you are using sounds like it closes the window automagically when it closes off connection, try using the consol version of telnet as the "window" will remain open even when the connection is severed.
As far as law is concerned you needn't any permission, by running a webserver they have given implicit agreement to your accessing their system ON port 80 for the purpose of retrieving the files related to the site, html, php output, etc. so you needn't get any permission, they won't know the difference, if this was a cause for legal action google's proprieters would be in a deep dark dungeon, cos google surely doesn't use IE to access webservers ;p....
Edited by rEph, 23 August 2006 - 04:05 PM.
#15
Posted 23 August 2006 - 05:25 PM
first, make sure when you're telnetting to a webserver you mean THE webserver ie address:80 and not simply the URI/IP that points to the server itself....cos then it'd be just corky and get wouldn't work anyhow.
That being said; whatever telnet application you are using sounds like it closes the window automagically when it closes off connection, try using the consol version of telnet as the "window" will remain open even when the connection is severed.
As far as law is concerned you needn't any permission, by running a webserver they have given implicit agreement to your accessing their system ON port 80 for the purpose of retrieving the files related to the site, html, php output, etc. so you needn't get any permission, they won't know the difference, if this was a cause for legal action google's proprieters would be in a deep dark dungeon, cos google surely doesn't use IE to access webservers ;p....
Thanks for everyone's replies... I know I didnt create this thread, but it is very informing.
Edited by Alk3, 23 August 2006 - 05:26 PM.
#16
Posted 26 August 2006 - 07:09 PM
Try doing "Start > Run > cmd" first, then doing "telnet servername 80". Normally, once it's got the web page, telnet exits, and if you had it running standalone, then the window would also close. Running it from under cmd means that when it exits, you can still see everything.
#17
Posted 26 August 2006 - 07:23 PM
From what you're doing, it sounds like you're running telnet directly.
Try doing "Start > Run > cmd" first, then doing "telnet servername 80". Normally, once it's got the web page, telnet exits, and if you had it running standalone, then the window would also close. Running it from under cmd means that when it exits, you can still see everything.
I think you missed the part about the parent running UBUNTU and not Windows.
BinRev is hosted by the great people at Lunarpages!













