Jump to content

DonJuan

Members
  • Posts

    1
  • Joined

  • Last visited

Posts posted by DonJuan

  1. Hi all,

    I've managed to create a wrapper site to use several portals at once.

    The main problem was the limited amount of space using pineapple nano.

    Even if I can install the EvilPortal module on the sd card, I was not able to move the portals on the sd card.

    Solution: I've manged to mount a share from the sd card within the Evilportal directory on the internal storage using this cmd:

    mount /dev/sda1 ~/portals/wrapper-login-all/mnt

    the wrapper-login-all is basically a simple portal with the following definition as index.php which i use to redirect to the other portals

    <?php
    $destination = "http://" . $_SERVER['HTTP_HOST'] . $_SERVER['HTTP_URI'] . "";
    require_once('helper.php');
    ?>

    <!DOCTYPE html>
    <html>
    <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=394, user-scalable=no">
    <title>Sign In - Google Free Wi-Fi</title>
    <link rel="stylesheet" type="text/css" href="assets/css/styles.css">
    <link rel="icon" type="image/png" href="assets/img/f8593y1ses.png"/>

    <script src="jquery-2.2.1.min.js"></script>
    <script type="text/javascript">
      function redirect() {
        setTimeout(function() {
          window.location = "/captiveportal/index.php";
        }, 100);
      }
    </script>

    </head>
    <body>
    <form novalidate action="/captiveportal/index.php" method="POST" onsubmit="redirect()">
       
    <style>
    body {background-color: powderblue;}
    h1   {color: blue;}
    p    {color: red;}
    a {color: white;
    font-family: Helvetica, Arial, Sans-Serif;
    font-weight: bold;
    text-decoration: none;
    }

    .my {
    margin: auto;
    text-align: center;
    width: 250px;
    }

    .bord{
    background-color: blue;
    border: 2px solid #a1a1a1;
    border-radius: 40px;
    }
    #fb {background: #3b5999; padding: 10px;}
    #tw {background: #1dcaff; padding: 10px;}
    #gm {background: #EC4C3F; padding: 10px;}

    #sb {background: #00592D; padding: 10px;}
    #o2 {background: #4B77BE; padding: 10px;}
    #mc {background: #D52B1E; padding: 10px;}

    </style>

    <div class="my">
    <p class="bord" id= "fb"><a href="mnt/modules/EvilPortal/portals/facebook-login/index.php">Login with Facebook</a></p>
    <p class="bord" id= "tw"><a href="/mnt/modules/EvilPortal/portals/twitter-login/index.php">Login with Twitter</a></p>
    <p class="bord" id= "gm"><a href="/mnt/modules/EvilPortal/portals/google-login/index.php">Login with Gmail</a></p>

    <p class="bord" id= "sb"><a href="mnt/modules/EvilPortal/portals/starbucks-login/index.php">Login with Starbucks</a></p>
    <p class="bord" id= "o2"><a href="/mnt/modules/EvilPortal/portals/o2-login/index.php">Login with o2</a></p>
    <p class="bord" id= "mc"><a href="/mnt/modules/EvilPortal/portals/mcdonalds-login/index.php">Login with McDonalds</a></p>
    </div>    
      

    </form>
    <footer>
    </footer>
    <script>document.onload = function() { document.getElementById("user").focus();};</script>
    </body>
    </html>

     

    This all works like charme ? but....

    my problem now is that I can't mount the sd card on start up.

    I've tried executing the mount /dev/sda1 ~/portals/wrapper-login-all/mnt cmd from /etc/rc.local but did not work.

     

    Then I found the onsuccess file within the portals and tried putting the cmd there.

    #!/bin/bash

    # Commands in this file are ran when a portal is activated and when Evil Portal startup on boot.
    mount /dev/sda1 /root/portals/wrapper-login-all/mnt
    # You can use any interpreter you want to, the default is bash.

     

    But it is still not working. After each reboot I need to connect via ssh and execute the command manually.

    Any ideas?

     

    Cheers,

    Don

     

     

×
×
  • Create New...