Solved

http telnet commands

Posted on 2008-10-22
6
2,366 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
  • 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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

Online collaboration is quickly becoming embedded in the workplace, and its benefits are tangible. See what the current landscape looks like and what the future holds for collaboration tools and the future of work.
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

757 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now