Accessing regular linux commands in Huawei's Dopra Linux












4















Backstory: I have a Huawei HG8245 router in my house and I want to change the default username/password. I've tried following this guide but the config file always gets reset. My ISP isn't helping either so I'm looking for other ways to accomplish this. The router has telnet access so this seems like a way to change the credentials.



The first shell I gain access to looks like this:



WAP>


Pressing "?" gives me a list of available commands which I've pasted here, the two interesting ones are "su" and "shell". I can't seem to get su access, even after logging in as root (challenge password prompt, and then nothing happens), but shell gives me a proper linux shell.



WAP>shell

BusyBox v1.18.4 (2017-12-26 17:06:34 CST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

WAP(Dopra Linux) #


Now this is where it gets interesting, BusyBox is installed, but the help command doesn't actually work.



WAP(Dopra Linux) # help
ERROR::Command is not existed


Hitting "?" again gives me another list of available commands which I've pasted here. They are pretty limited but I have access to ls and I can see that /bin actually has a lot of classic linux stuff in it, but I can't seem to run any of it, even busybox. It just throws the cheeky "Command is not existed" error message.



My question is: How can I access these commands (preferably cat and echo)?










share|improve this question

























  • @RuiFRibeiro I don't see how this is offtopic, I'm asking a straightforward question about an underlying *NIX system in a device, which is the second example in the accepted questions. It's neither vague nor does it requre a whole book to answer. It also doesn't promote random discussion. I added the extra details to add the context to the it, but I've seen very similar ones asked and answered on this site about other botched linux versions.

    – DzeriMNE
    Sep 6 '18 at 1:00











  • @RuiFRibeiro I've rephrased the question at the end, but it was, and still is the only question in the whole post. Without the details I'm sure it would get flagged as too vague. As for asking for learning materials, I'm not specifically. Besides, every single answer on this entire website could be considered "learning material" and most of them contain steps in form of a tutorial. It is not a hacking request. Plenty of accepted questions ask for some form of privilege escalation (I don't even see this as one, just a poorly made system I'm trying to fix)

    – DzeriMNE
    Sep 6 '18 at 1:17











  • /bin/echo hello

    – Rui F Ribeiro
    Sep 6 '18 at 1:26











  • @RuiFRibeiro "Command is not existed"

    – DzeriMNE
    Sep 6 '18 at 1:27











  • github.com/ekawahyu/ekawahyu.github.io/blob/master/_posts/…

    – slm
    Sep 6 '18 at 1:28
















4















Backstory: I have a Huawei HG8245 router in my house and I want to change the default username/password. I've tried following this guide but the config file always gets reset. My ISP isn't helping either so I'm looking for other ways to accomplish this. The router has telnet access so this seems like a way to change the credentials.



The first shell I gain access to looks like this:



WAP>


Pressing "?" gives me a list of available commands which I've pasted here, the two interesting ones are "su" and "shell". I can't seem to get su access, even after logging in as root (challenge password prompt, and then nothing happens), but shell gives me a proper linux shell.



WAP>shell

BusyBox v1.18.4 (2017-12-26 17:06:34 CST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

WAP(Dopra Linux) #


Now this is where it gets interesting, BusyBox is installed, but the help command doesn't actually work.



WAP(Dopra Linux) # help
ERROR::Command is not existed


Hitting "?" again gives me another list of available commands which I've pasted here. They are pretty limited but I have access to ls and I can see that /bin actually has a lot of classic linux stuff in it, but I can't seem to run any of it, even busybox. It just throws the cheeky "Command is not existed" error message.



My question is: How can I access these commands (preferably cat and echo)?










share|improve this question

























  • @RuiFRibeiro I don't see how this is offtopic, I'm asking a straightforward question about an underlying *NIX system in a device, which is the second example in the accepted questions. It's neither vague nor does it requre a whole book to answer. It also doesn't promote random discussion. I added the extra details to add the context to the it, but I've seen very similar ones asked and answered on this site about other botched linux versions.

    – DzeriMNE
    Sep 6 '18 at 1:00











  • @RuiFRibeiro I've rephrased the question at the end, but it was, and still is the only question in the whole post. Without the details I'm sure it would get flagged as too vague. As for asking for learning materials, I'm not specifically. Besides, every single answer on this entire website could be considered "learning material" and most of them contain steps in form of a tutorial. It is not a hacking request. Plenty of accepted questions ask for some form of privilege escalation (I don't even see this as one, just a poorly made system I'm trying to fix)

    – DzeriMNE
    Sep 6 '18 at 1:17











  • /bin/echo hello

    – Rui F Ribeiro
    Sep 6 '18 at 1:26











  • @RuiFRibeiro "Command is not existed"

    – DzeriMNE
    Sep 6 '18 at 1:27











  • github.com/ekawahyu/ekawahyu.github.io/blob/master/_posts/…

    – slm
    Sep 6 '18 at 1:28














4












4








4








Backstory: I have a Huawei HG8245 router in my house and I want to change the default username/password. I've tried following this guide but the config file always gets reset. My ISP isn't helping either so I'm looking for other ways to accomplish this. The router has telnet access so this seems like a way to change the credentials.



The first shell I gain access to looks like this:



WAP>


Pressing "?" gives me a list of available commands which I've pasted here, the two interesting ones are "su" and "shell". I can't seem to get su access, even after logging in as root (challenge password prompt, and then nothing happens), but shell gives me a proper linux shell.



WAP>shell

BusyBox v1.18.4 (2017-12-26 17:06:34 CST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

WAP(Dopra Linux) #


Now this is where it gets interesting, BusyBox is installed, but the help command doesn't actually work.



WAP(Dopra Linux) # help
ERROR::Command is not existed


Hitting "?" again gives me another list of available commands which I've pasted here. They are pretty limited but I have access to ls and I can see that /bin actually has a lot of classic linux stuff in it, but I can't seem to run any of it, even busybox. It just throws the cheeky "Command is not existed" error message.



My question is: How can I access these commands (preferably cat and echo)?










share|improve this question
















Backstory: I have a Huawei HG8245 router in my house and I want to change the default username/password. I've tried following this guide but the config file always gets reset. My ISP isn't helping either so I'm looking for other ways to accomplish this. The router has telnet access so this seems like a way to change the credentials.



The first shell I gain access to looks like this:



WAP>


Pressing "?" gives me a list of available commands which I've pasted here, the two interesting ones are "su" and "shell". I can't seem to get su access, even after logging in as root (challenge password prompt, and then nothing happens), but shell gives me a proper linux shell.



WAP>shell

BusyBox v1.18.4 (2017-12-26 17:06:34 CST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

WAP(Dopra Linux) #


Now this is where it gets interesting, BusyBox is installed, but the help command doesn't actually work.



WAP(Dopra Linux) # help
ERROR::Command is not existed


Hitting "?" again gives me another list of available commands which I've pasted here. They are pretty limited but I have access to ls and I can see that /bin actually has a lot of classic linux stuff in it, but I can't seem to run any of it, even busybox. It just throws the cheeky "Command is not existed" error message.



My question is: How can I access these commands (preferably cat and echo)?







linux busybox telnet ash huawei






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Sep 6 '18 at 1:11







DzeriMNE

















asked Sep 6 '18 at 0:19









DzeriMNEDzeriMNE

213




213













  • @RuiFRibeiro I don't see how this is offtopic, I'm asking a straightforward question about an underlying *NIX system in a device, which is the second example in the accepted questions. It's neither vague nor does it requre a whole book to answer. It also doesn't promote random discussion. I added the extra details to add the context to the it, but I've seen very similar ones asked and answered on this site about other botched linux versions.

    – DzeriMNE
    Sep 6 '18 at 1:00











  • @RuiFRibeiro I've rephrased the question at the end, but it was, and still is the only question in the whole post. Without the details I'm sure it would get flagged as too vague. As for asking for learning materials, I'm not specifically. Besides, every single answer on this entire website could be considered "learning material" and most of them contain steps in form of a tutorial. It is not a hacking request. Plenty of accepted questions ask for some form of privilege escalation (I don't even see this as one, just a poorly made system I'm trying to fix)

    – DzeriMNE
    Sep 6 '18 at 1:17











  • /bin/echo hello

    – Rui F Ribeiro
    Sep 6 '18 at 1:26











  • @RuiFRibeiro "Command is not existed"

    – DzeriMNE
    Sep 6 '18 at 1:27











  • github.com/ekawahyu/ekawahyu.github.io/blob/master/_posts/…

    – slm
    Sep 6 '18 at 1:28



















  • @RuiFRibeiro I don't see how this is offtopic, I'm asking a straightforward question about an underlying *NIX system in a device, which is the second example in the accepted questions. It's neither vague nor does it requre a whole book to answer. It also doesn't promote random discussion. I added the extra details to add the context to the it, but I've seen very similar ones asked and answered on this site about other botched linux versions.

    – DzeriMNE
    Sep 6 '18 at 1:00











  • @RuiFRibeiro I've rephrased the question at the end, but it was, and still is the only question in the whole post. Without the details I'm sure it would get flagged as too vague. As for asking for learning materials, I'm not specifically. Besides, every single answer on this entire website could be considered "learning material" and most of them contain steps in form of a tutorial. It is not a hacking request. Plenty of accepted questions ask for some form of privilege escalation (I don't even see this as one, just a poorly made system I'm trying to fix)

    – DzeriMNE
    Sep 6 '18 at 1:17











  • /bin/echo hello

    – Rui F Ribeiro
    Sep 6 '18 at 1:26











  • @RuiFRibeiro "Command is not existed"

    – DzeriMNE
    Sep 6 '18 at 1:27











  • github.com/ekawahyu/ekawahyu.github.io/blob/master/_posts/…

    – slm
    Sep 6 '18 at 1:28

















@RuiFRibeiro I don't see how this is offtopic, I'm asking a straightforward question about an underlying *NIX system in a device, which is the second example in the accepted questions. It's neither vague nor does it requre a whole book to answer. It also doesn't promote random discussion. I added the extra details to add the context to the it, but I've seen very similar ones asked and answered on this site about other botched linux versions.

– DzeriMNE
Sep 6 '18 at 1:00





@RuiFRibeiro I don't see how this is offtopic, I'm asking a straightforward question about an underlying *NIX system in a device, which is the second example in the accepted questions. It's neither vague nor does it requre a whole book to answer. It also doesn't promote random discussion. I added the extra details to add the context to the it, but I've seen very similar ones asked and answered on this site about other botched linux versions.

– DzeriMNE
Sep 6 '18 at 1:00













@RuiFRibeiro I've rephrased the question at the end, but it was, and still is the only question in the whole post. Without the details I'm sure it would get flagged as too vague. As for asking for learning materials, I'm not specifically. Besides, every single answer on this entire website could be considered "learning material" and most of them contain steps in form of a tutorial. It is not a hacking request. Plenty of accepted questions ask for some form of privilege escalation (I don't even see this as one, just a poorly made system I'm trying to fix)

– DzeriMNE
Sep 6 '18 at 1:17





@RuiFRibeiro I've rephrased the question at the end, but it was, and still is the only question in the whole post. Without the details I'm sure it would get flagged as too vague. As for asking for learning materials, I'm not specifically. Besides, every single answer on this entire website could be considered "learning material" and most of them contain steps in form of a tutorial. It is not a hacking request. Plenty of accepted questions ask for some form of privilege escalation (I don't even see this as one, just a poorly made system I'm trying to fix)

– DzeriMNE
Sep 6 '18 at 1:17













/bin/echo hello

– Rui F Ribeiro
Sep 6 '18 at 1:26





/bin/echo hello

– Rui F Ribeiro
Sep 6 '18 at 1:26













@RuiFRibeiro "Command is not existed"

– DzeriMNE
Sep 6 '18 at 1:27





@RuiFRibeiro "Command is not existed"

– DzeriMNE
Sep 6 '18 at 1:27













github.com/ekawahyu/ekawahyu.github.io/blob/master/_posts/…

– slm
Sep 6 '18 at 1:28





github.com/ekawahyu/ekawahyu.github.io/blob/master/_posts/…

– slm
Sep 6 '18 at 1:28










1 Answer
1






active

oldest

votes


















0














I haven't actually solved this problem yet, but there are something like 15 user levels on these boxes, configured by a secret configuration file in the admin interface (pro-tip: root is a normal user, theres another one above that just google it).



Lemme know if you figure it out!
-T






share|improve this answer








New contributor




Todd Allen is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "106"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f467175%2faccessing-regular-linux-commands-in-huaweis-dopra-linux%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    I haven't actually solved this problem yet, but there are something like 15 user levels on these boxes, configured by a secret configuration file in the admin interface (pro-tip: root is a normal user, theres another one above that just google it).



    Lemme know if you figure it out!
    -T






    share|improve this answer








    New contributor




    Todd Allen is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.

























      0














      I haven't actually solved this problem yet, but there are something like 15 user levels on these boxes, configured by a secret configuration file in the admin interface (pro-tip: root is a normal user, theres another one above that just google it).



      Lemme know if you figure it out!
      -T






      share|improve this answer








      New contributor




      Todd Allen is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.























        0












        0








        0







        I haven't actually solved this problem yet, but there are something like 15 user levels on these boxes, configured by a secret configuration file in the admin interface (pro-tip: root is a normal user, theres another one above that just google it).



        Lemme know if you figure it out!
        -T






        share|improve this answer








        New contributor




        Todd Allen is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.










        I haven't actually solved this problem yet, but there are something like 15 user levels on these boxes, configured by a secret configuration file in the admin interface (pro-tip: root is a normal user, theres another one above that just google it).



        Lemme know if you figure it out!
        -T







        share|improve this answer








        New contributor




        Todd Allen is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        share|improve this answer



        share|improve this answer






        New contributor




        Todd Allen is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        answered 18 mins ago









        Todd AllenTodd Allen

        1




        1




        New contributor




        Todd Allen is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.





        New contributor





        Todd Allen is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.






        Todd Allen is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Unix & Linux Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f467175%2faccessing-regular-linux-commands-in-huaweis-dopra-linux%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Loup dans la culture

            How to solve the problem of ntp “Unable to contact time server” from KDE?

            ASUS Zenbook UX433/UX333 — Configure Touchpad-embedded numpad on Linux