Telnet Help?

  • Ripon ahmed
  • Newbie
  • Newbie
  • Ripon ahmed
  • Posts: 7

Post 3+ Months Ago

Hello,
I was connected by telnet to 110,80,port in linux.But there is a problem that what is command after connected.

Please help me about telnet
:?:
( I am looking for such a best freind who is linux expert. If any then please contact me by eamil. email:jobyerahmedripon at ymail dot com and ripon dot ahmed72 at gmail dot com)

PLease help me about telnet command after connected to another host.
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • Don2007
  • Web Master
  • Web Master
  • Don2007
  • Posts: 4924
  • Loc: NY

Post 3+ Months Ago

The telnet port is 23, not 110 or 80. 80 is for websites & 110 is for email. Telnet has been replaced, for the most part by SSH, which is port 22.
  • Daemonguy
  • Moderator
  • Web Master
  • User avatar
  • Posts: 2700
  • Loc: Somewhere outside the box in Sarasota, FL.

Post 3+ Months Ago

Not true Don.

You can telnet to any port and in fact this is a common troubleshooting tool to ensure network connectivity.

Ripon I believe what you are looking for is the following;

telnet <IP> 80 (Which is the ip address of a web server I imagine)
GET / HTTP/1.0
That second line will return the path of the document root and show you the site as text. For example:

Code: [ Select ]
> telnet google.com 80
Trying 74.125.67.100...
Connected to google.com.
Escape character is '^]'.
GET / HTTP/1.0

HTTP/1.0 200 OK
Date: Tue, 10 Nov 2009 13:20:39 GMT
Expires: -1
Cache-Control: private, max-age=0
Content-Type: text/html; charset=ISO-8859-1
Set-Cookie: PREF=ID=561ccc9691c02b36:TM=1257859239:LM=1257859239:S=_ojfsikisFIzVBQF; expires=Thu, 10-Nov-2011 13:20:39 GMT; path=/; domain=.google.com
Set-Cookie: NID=28=Ow1Ko7ZMPy3OWe21o6E_SnNiTj78vSZr_77lS0XUjgbYJRG8gf121TGFuU7Gnbdtbg8Nv31DBqlUQGDvRRHy2_1wBfr_84Sb9lz99XqWhHIGaGqX9WahWLzlZ_kkWoPB; expires=Wed, 12-May-2010 13:20:39 GMT; path=/; domain=.google.com; HttpOnly
Server: gws
X-XSS-Protection: 0

<!doctype html><html><head><meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"><title>Google</title><script>window.google={kEI:"p2j5SvG-AtKUtgeLwJHPDA",kEXPI:"17259,21517,21766,22107,22451",kCSIE:"17259,21517,21766,22107,22451",kCSI:{e:"17259,21517,21766,22107,22451",ei:"p2j5SvG-AtKUtgeLwJHPDA"},kHL:"en"};

window.google.sn="webhp";window.google.timers={load:{t:{start:(new Date).getTime()}}};try{}catch(b){}window.google.jsrt_kill=1;
var _gjwl=location;function _gjuc(){var e=_gjwl.href.indexOf("#");if(e>=0){var a=_gjwl.href.substring(e);if(a.indexOf("&q=")>0||a.indexOf("#q=")>=0){a=a.substring(1);if(a.indexOf("#")==-1){for(var c=0;c<a.length;){var d=c;if(a.charAt(d)=="&")++d;var b=a.indexOf("&",d);if(b==-1)b=a.length;var f=a.substring(d,b);if(f.indexOf("fp=")==0){a=a.substring(0,c)+a.substring(b,a.length);b=c}else if(f=="cad=h")return 0;c=b}_gjwl.href="/search?"+a+"&cad=h";return 1}}}return 0}function _gjp(){!(window._gjwl.hash&&
window._gjuc())&&setTimeout(_gjp,500)};
  1. > telnet google.com 80
  2. Trying 74.125.67.100...
  3. Connected to google.com.
  4. Escape character is '^]'.
  5. GET / HTTP/1.0
  6. HTTP/1.0 200 OK
  7. Date: Tue, 10 Nov 2009 13:20:39 GMT
  8. Expires: -1
  9. Cache-Control: private, max-age=0
  10. Content-Type: text/html; charset=ISO-8859-1
  11. Set-Cookie: PREF=ID=561ccc9691c02b36:TM=1257859239:LM=1257859239:S=_ojfsikisFIzVBQF; expires=Thu, 10-Nov-2011 13:20:39 GMT; path=/; domain=.google.com
  12. Set-Cookie: NID=28=Ow1Ko7ZMPy3OWe21o6E_SnNiTj78vSZr_77lS0XUjgbYJRG8gf121TGFuU7Gnbdtbg8Nv31DBqlUQGDvRRHy2_1wBfr_84Sb9lz99XqWhHIGaGqX9WahWLzlZ_kkWoPB; expires=Wed, 12-May-2010 13:20:39 GMT; path=/; domain=.google.com; HttpOnly
  13. Server: gws
  14. X-XSS-Protection: 0
  15. <!doctype html><html><head><meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"><title>Google</title><script>window.google={kEI:"p2j5SvG-AtKUtgeLwJHPDA",kEXPI:"17259,21517,21766,22107,22451",kCSIE:"17259,21517,21766,22107,22451",kCSI:{e:"17259,21517,21766,22107,22451",ei:"p2j5SvG-AtKUtgeLwJHPDA"},kHL:"en"};
  16. window.google.sn="webhp";window.google.timers={load:{t:{start:(new Date).getTime()}}};try{}catch(b){}window.google.jsrt_kill=1;
  17. var _gjwl=location;function _gjuc(){var e=_gjwl.href.indexOf("#");if(e>=0){var a=_gjwl.href.substring(e);if(a.indexOf("&q=")>0||a.indexOf("#q=")>=0){a=a.substring(1);if(a.indexOf("#")==-1){for(var c=0;c<a.length;){var d=c;if(a.charAt(d)=="&")++d;var b=a.indexOf("&",d);if(b==-1)b=a.length;var f=a.substring(d,b);if(f.indexOf("fp=")==0){a=a.substring(0,c)+a.substring(b,a.length);b=c}else if(f=="cad=h")return 0;c=b}_gjwl.href="/search?"+a+"&cad=h";return 1}}}return 0}function _gjp(){!(window._gjwl.hash&&
  18. window._gjuc())&&setTimeout(_gjp,500)};


Course it goes on from there. Alternatively you can replace GET with HEAD, POST etc.

Also, 110 is for pop3 which is a retrieval method for email, but not in and of itself email since you still send email out over 25 SMTP and can receive mail on imap port 220. Course there's replacements for those now as well which use ssl; imaps and pop3s.
  • Don2007
  • Web Master
  • Web Master
  • Don2007
  • Posts: 4924
  • Loc: NY

Post 3+ Months Ago

I know what you're saying & I've done it but the topic lead me to believe that he wanted the telnet commands when connected to port 23. No one uses telnet anymore anyway. It's been replaced by SSH.
  • kc0tma
  • o|||||||o
  • Web Master
  • User avatar
  • Posts: 3318
  • Loc: Trout Creek, MT

Post 3+ Months Ago

I know with MS exchange (not sure about other email servers) you can telnet to port 25 and send test email messages from the server to test whether or not your server is actually working. If I remember right, you type telnet 192.168.1.2 25 or something like that, it will prompt you for user name and password, then you create your headers and message body and send the message.

Post Information

  • Total Posts in this topic: 5 posts
  • Users browsing this forum: No registered users and 44 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.