1. cometmcfest's Avatar
    Is there a way for me to execute a bash command on the device using bash server?

    code I'm using here:

    script:
    su
    alpine
    cd /
    cd var
    cd mobile
    cd Documents
    dpkg -i file.deb

    html:
    <!DOCTYPE html>
    <html>
    <head>
    </head>
    <body>
    <form method="post">
    <input type="submit" name="submit" value="Launch SH" />
    </form>
    <?php
    if (isset($_POST['submit'])) {
    echo exec("script.sh");
    }
    ?>


    <a href="file.deb">file</a>
    </body>
    </html>
    2012-08-11 02:23 AM
  2. BradBrown's Avatar
    Your missing #!?
    mod edit/link removed
    2012-09-03 06:08 AM
LINK TO POST COPIED TO CLIPBOARD