Solved

http telnet commands

Posted on 2008-10-22
6
2,373 Views
Last Modified: 2013-11-22
Hi I cannot seem to get access to my remote lacie drive through my vpn tunnel, I can however connect to the remote router that is on the same subnet and then telnet the lacie drive on port80.But I cannot seem to get it to reboot, because of a username and password issue.

Trying 10.11.1.3, 80 ... Open
GET /cgi-bin/admin/reboot?action=shutdown.cgi
HTTP/1.0 401 Unauthorized
                         Content-type: text/html
Date: Wed, 22 Oct 2008 17:42:24 GMT
Connection: close
WWW-Authenticate: Basic realm="LaCie Ethernet Disk mini Administration"

<HEAD><TITLE>401 Unauthorized</TITLE></HEAD>
                                            <BODY><H1>401 Unauthorized</H1>

                                                                           </BOD
Y>
0
Comment
Question by:Dan560
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 57

Expert Comment

by:giltjr
ID: 22785375
When you telnet to to a HTTP server, you need to act like a browser.  That is everything you type in needs to be valid HTTP commands.

Does the lacie drive have a telnet management interface you can use?

Why can't you use a browser to access the http management interface?

0
 
LVL 2

Author Comment

by:Dan560
ID: 22785508
There is a problem with the lacie drive, it needs a restart now and then for me to access it through a vpn tunnel. Its not anything to do with the routers firewall because I can access every other device on the same network. I have two tunnels same problem - it works when its restarted.Where can I find valid http commands?
0
 
LVL 57

Expert Comment

by:giltjr
ID: 22785671
Where did I say anything about firewalls or routers?  I asked two questions.  Can you answer them?

Part of the problem you will find with attempting to using a telnet client to do HTTP work is that in order to pass the user-id and password when using basic authentication (which is what it appears the lacie device is using) you need to encode the user-id and password and type http header that carries that and type in the encoded value of the user-id and password.


0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 2

Author Comment

by:Dan560
ID: 22785795
You didnt, apologies for not answering your questions thoroughly but I felt I needed to pass on this information. I can't even access through telnet going to 10.11.1.3 80
I need to telnet into my router and then telnet into the lacie during the same telnet session.

the lacie drive does not have telnet management interface, but it is listening on port 80.21
I cannot access it through the web from my network,nor can other networks connected through a vpn.

I dont understand you solution of ecoding the user id and password, I need you to elaborate more.
0
 
LVL 57

Accepted Solution

by:
giltjr earned 500 total points
ID: 22786574
When a web server does basic authentication the user-id and password are passed from the client to the server as values in a specific HTTP header.  However the user-id and password is not passed in clear text, but is encoded in base 64.  You can read about it here:

http://en.wikipedia.org/wiki/Basic_access_authentication

What you would need to do in order to TRY and do this via a telnet client is telnet to the web server on port 80 and then enter:

GET ?????????? HTTP/1.0 <hit enter>
Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==  <hit enter>
<press enter>

Where ??????? is the uri of the page you want to get to and QWxhZGRpbjpvcGVuIHNlc2FtZQ== is the value of user-id:password encoded in Base-64.  You do NOT type in <hit enter> but you actually hit the enter key.

Then you have to learn what the HTTP exchange is in order to navigate to the page where you tell the Lacie box to re-boot.  You may get a better idea of what you need to do by running a packet capture of a real web session to the Lacie box where you tell it to re-boot.
0
 
LVL 2

Author Comment

by:Dan560
ID: 22794318
Thanks it worked perfectley, well when I say perfectly, it looks like I told it to shutdown instead of restart.
GET /cgi-bin/admin/reboot?action=shutdown HTTP/1.0

looks like a reboot to me.. ah well,thanks for you advice was much appreciated.
0

Featured Post

Do you have a plan for Continuity?

It's inevitable. People leave organizations creating a gap in your service. That's where Percona comes in.

See how Pepper.com relies on Percona to:
-Manage their database
-Guarantee data safety and protection
-Provide database expertise that is available for any situation

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you try to share a printer , you may receive one of the following error messages. Error message when you use the Add Printer Wizard to share a printer: Windows could not share your printer. Operation could not be completed (Error 0x000006…
During and after that shift to cloud, one area that still poses a struggle for many organizations is what to do with their department file shares.
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Suggested Courses

635 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question