Announcement

Collapse
No announcement yet.

xPico Wifi lockout

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • xPico Wifi lockout

    Hi

    OK i have managed to lock out of my xpico Wifi

    I am using the latest 1.4 release version

    I have developed my application and as usual copied my working.html to the //http sub directory.

    All worked very well.

    However.....I decided to rename my working.html development file to ...index.html

    Now I am able to load the custom user page but am unable to access the xpico wifi setup page - it loads but keeps on responding with status 501 on Chrome.


    So I then tried to access using the serial backdoor on line 1

    I first tried lower case x or y or x while asserting default pin while booting
    nothing happened on my serial terminal at 9600baud

    I then tried the ! while asserting default line ....eventlually the terminal echoed ....a single ! .....so I tried to type in xyz .....nothing happened.

    What am I missing here, is there some kinda trick to get these sequences right to get to the user directory.

    The other bothersome issue is .....why did renaming my file to index.html locked me out of setup mode in the first place.

    Can my user file be called index.html at all??


    Is there maybe a shortcut that I can type in to access the xpico wifi setup page to load

  • #2
    Use curl to remove it
    curl -s -u admin:PASSWORD -X DELETE http://192.168.0.1/fs/main/http/web_manager/index.html

    Change the path as required to 'hit' your specific file under the /fs/

    Comment


    • #3
      OK I am really wasting precious time here....???

      I have installed Postman for Chrome

      I have run the DELETE

      http://192.168.0.1/.overlay/main/htt...ger/index.html

      Postman Result

      <!DOCTYPE html>
      <html xmlns="http://www.w3.org/1999/xhtml"xml:lang="en" lang="en">
      <head>
      <title>Error</title>
      </head>
      <body>
      <b>501 Not Implemented</b>
      <br/>
      /.overlay/main/http/web_manager/index.html
      <br/>
      </body>
      </html>


      SO...................i tried the following URL instead


      http://192.168.0.1/embedded/main/htt...ger/index.html



      <!DOCTYPE html>
      <html xmlns="http://www.w3.org/1999/xhtml"xml:lang="en" lang="en">
      <head>
      <title>Error</title>
      </head>
      <body>
      <b>501 Not Implemented</b>
      <br/>
      /embedded/main/http/web_manager/index.html
      <br/>
      </body>
      </html>




      Please advise
      Last edited by linktek; 02-24-2017, 01:44 AM.

      Comment


      • #4
        So I am still trying to resuscitate this xpico wifi module that I accidentally replaced the xpico index.html a custom version.


        Using Postman on Chrome I am able to execute cURL commands

        such as ...

        http://192.168.0.1/export/config

        http://192.168.0.1/export/status

        receiving a long list of xml data - good


        However I am trying to use Postman cURL to delete a test file and have tried virtually any path with no luck

        Comment


        • #5
          Where did you put the index.html?
          Change the path in the curl command I sent you to the location of the index.html
          And yes, you could have done a Factory Reset to solved the problem too.

          Comment


          • #6
            Originally posted by garry0427 View Post
            Where did you put the index.html?
            Change the path in the curl command I sent you to the location of the index.html
            And yes, you could have done a Factory Reset to solved the problem too.
            When launching the xpico Wifi web manager you can navigate

            FILESYSTEM->BROWSE->HTTP

            And HTTP is the directory where I put this custom index.html file


            That seems to be a well defined path.....is it not?

            However using Postman on Chrome i could not target this directory

            The burning question then

            What is the makeup of this well know path, what should i specify in my Postman command prompt...

            I am asking because I dont know the answer....to above question

            Comment


            • #7
              Did you try:
              curl -s -u admin:PASSWORD -X DELETE http://192.168.0.1/fs/http/index.html

              Comment


              • #8
                Originally posted by garry0427 View Post
                Did you try:
                curl -s -u admin:PASSWORD -X DELETE http://192.168.0.1/fs/http/index.html
                It worked!!!!

                Thank you very much.

                The thing is that this specific module was encapsulated in resin.

                To complicate matters only Line 1 was accessible so factory defaults would have set Line 2 to command line with Line 1 set to tunnel.

                Curl seemed to be the only way around this mess.

                I was thinking in dumping and uploading a modified config xml schema with Line 1 set to command line however i got distracted by other things.

                Comment


                • #9
                  Originally posted by linktek View Post
                  It worked!!!!

                  Thank you very much.

                  The thing is that this specific module was encapsulated in resin.

                  To complicate matters only Line 1 was accessible so factory defaults would have set Line 2 to command line with Line 1 set to tunnel.

                  Curl seemed to be the only way around this mess.

                  I was thinking in dumping and uploading a modified config xml schema with Line 1 set to command line however i got distracted by other things.
                  Personally i think that factory defaults should set both Line 1&2 to command line so a proper recovery will always be possible via command line mode on either Line 1 or 2

                  Factory defaults might also delete the user index.html or at least rename it so the xpico wifi setup page can be loaded. After that the user can change the settings again.
                  Last edited by linktek; 02-28-2017, 08:22 AM.

                  Comment

                  Working...
                  X