Jump to content

Recommended Posts

On 9/16/2020 at 3:29 AM, newbi3 said:

Having an issue?

Please include this information when reporting an issue:

  • A detailed description of the issue including error messages you are receiving and steps to reproduce the problem.
  • The version of Evil Portal you are using
  • The firmware version your pineapple is running
  • Are you connected to the internet?
  • The output of the module log file located at: /tmp/modules/evilportal.log on your pineapple.

 

Hi newbi3.

Here is the issue that I, as well as everyone else I believe, are having with the Evil Portal module on the WiFi Pineapple MK7.

Using the built-in basic portal

When creating a new portal choosing the "basic" option, it creates the required files (based on the skeleton) and you start the servers, whether you use the preview option or run it live from another device, the Evil Portal landing page appears and allows you to click on the "Authorise" button, but the page simply refreshes. No message appears to say you have or hand not been authorised.

Using a pre-built template from kbeflo

When installing the portals from kbeflo, they all appear in the portal list and allow you to activate and run them. However, when you add user credentials it logs the information to the log file and adds the IP address to the allowed list, but as with the basic portal above, the page just refreshed. The user does not see a confirmation message.

It should be noted that some times ANY of the following happens:

  • It will show a message saying "You have NOT been authorised" (even when they have been)
  • A message shows saying "File not found"
  • A blank page appears

For reference, the "target" HTML input is in the form, but it appears that the handleAuthorization() function in "/pineapple/ui/modules/evilportal/assets/api/Portal.php" is not receiving the "target" variable, and so fails the logic test and defaults to the "else" command.

  • The version of Evil Portal is 1.1
  • The pineapple firmware is 1.0.1
  • It IS connected to the internet
  • The output from the log file when running a "basic" portal is as follows:
2020-11-26 11:44:10,572 - evilportal - DEBUG - Initializing module evilportal. (module.py:24)
2020-11-26 11:44:10,600 - evilportal - INFO - Starting module... (module.py:189)
2020-11-26 11:44:10,606 - evilportal - DEBUG - Binding to socket /tmp/modules/evilportal.sock (module.py:191)
2020-11-26 11:44:10,614 - evilportal - DEBUG - Listening on socket! (module.py:194)
2020-11-26 11:44:10,621 - evilportal - DEBUG - Calling 1 startup handlers. (module.py:196)
2020-11-26 11:44:10,695 - evilportal - DEBUG - Processing request. (module.py:211)
2020-11-26 11:44:10,731 - evilportal - DEBUG - Calling handler for action check_dependencies and passing {'module': 'evilportal', 'action': 'check_dependencies'} (module.py:108)
2020-11-26 11:44:11,883 - evilportal - DEBUG - Accepting on module socket (module.py:79)
2020-11-26 11:44:11,890 - evilportal - DEBUG - Sending response {"payload": {"installed": true, "installing": false, "job_id": null}} (module.py:83)
2020-11-26 11:44:11,962 - evilportal - DEBUG - Processing request. (module.py:211)
2020-11-26 11:44:11,970 - evilportal - DEBUG - Calling handler for action status and passing {'module': 'evilportal', 'action': 'status'} (module.py:108)
2020-11-26 11:44:12,178 - evilportal - DEBUG - Accepting on module socket (module.py:79)
2020-11-26 11:44:12,186 - evilportal - DEBUG - Sending response {"payload": {"running": false, "webserver": true, "start_on_boot": false}} (module.py:83)
2020-11-26 11:44:12,274 - evilportal - DEBUG - Processing request. (module.py:211)
2020-11-26 11:44:12,300 - evilportal - DEBUG - Calling handler for action load_file and passing {'module': 'evilportal', 'action': 'load_file', 'path': '/pineapple/ui/modules/evilportal/assets/permanentclients.txt'} (module.py:108)
2020-11-26 11:44:12,360 - evilportal - DEBUG - Accepting on module socket (module.py:79)
2020-11-26 11:44:12,399 - evilportal - DEBUG - Sending response {"payload": "172.16.42.42\n"} (module.py:83)
2020-11-26 11:44:12,520 - evilportal - DEBUG - Processing request. (module.py:211)
2020-11-26 11:44:12,563 - evilportal - DEBUG - Calling handler for action list_portals and passing {'module': 'evilportal', 'action': 'list_portals'} (module.py:108)
2020-11-26 11:44:12,591 - evilportal - DEBUG - Creating portal folder (module.py:473)
2020-11-26 11:44:12,659 - evilportal - DEBUG - Listing directories (module.py:476)
2020-11-26 11:44:12,725 - evilportal - DEBUG - Building list (module.py:479)
2020-11-26 11:44:12,797 - evilportal - DEBUG - Accepting on module socket (module.py:79)
2020-11-26 11:44:12,842 - evilportal - DEBUG - Sending response {"payload": [{"title": "facebook-login", "portal_type": "basic", "size": 4096, "location": "/root/portals/facebook-login", "active": true}, {"title": "Basic", "portal_type": "basic", "size": 4096, "location": "/root/portals/Basic", "active": false}]} (module.py:83)
2020-11-26 11:44:13,040 - evilportal - DEBUG - Processing request. (module.py:211)
2020-11-26 11:44:13,045 - evilportal - DEBUG - Calling handler for action load_file and passing {'module': 'evilportal', 'action': 'load_file', 'path': '/tmp/EVILPORTAL_CLIENTS.txt'} (module.py:108)
2020-11-26 11:44:13,100 - evilportal - ERROR - Exception occurred while reading file:  (module.py:462)
2020-11-26 11:44:13,145 - evilportal - DEBUG - Accepting on module socket (module.py:79)
2020-11-26 11:44:13,181 - evilportal - DEBUG - Sending response {"error": ""} (module.py:83)
2020-11-26 11:44:54,439 - evilportal - DEBUG - Processing request. (module.py:211)
2020-11-26 11:44:54,469 - evilportal - DEBUG - Calling handler for action check_dependencies and passing {'module': 'evilportal', 'action': 'check_dependencies'} (module.py:108)
2020-11-26 11:44:55,958 - evilportal - DEBUG - Accepting on module socket (module.py:79)
2020-11-26 11:44:55,972 - evilportal - DEBUG - Sending response {"payload": {"installed": true, "installing": false, "job_id": null}} (module.py:83)
2020-11-26 11:44:56,057 - evilportal - DEBUG - Processing request. (module.py:211)
2020-11-26 11:44:56,092 - evilportal - DEBUG - Calling handler for action list_portals and passing {'module': 'evilportal', 'action': 'list_portals'} (module.py:108)
2020-11-26 11:44:56,116 - evilportal - DEBUG - Creating portal folder (module.py:473)
2020-11-26 11:44:56,197 - evilportal - DEBUG - Listing directories (module.py:476)
2020-11-26 11:44:56,244 - evilportal - DEBUG - Building list (module.py:479)
2020-11-26 11:44:56,315 - evilportal - DEBUG - Accepting on module socket (module.py:79)
2020-11-26 11:44:56,352 - evilportal - DEBUG - Sending response {"payload": [{"title": "facebook-login", "portal_type": "basic", "size": 4096, "location": "/root/portals/facebook-login", "active": true}, {"title": "Basic", "portal_type": "basic", "size": 4096, "location": "/root/portals/Basic", "active": false}]} (module.py:83)
2020-11-26 11:44:56,610 - evilportal - DEBUG - Processing request. (module.py:211)
2020-11-26 11:44:56,615 - evilportal - DEBUG - Calling handler for action load_file and passing {'module': 'evilportal', 'action': 'load_file', 'path': '/tmp/EVILPORTAL_CLIENTS.txt'} (module.py:108)
2020-11-26 11:44:56,661 - evilportal - ERROR - Exception occurred while reading file:  (module.py:462)
2020-11-26 11:44:56,707 - evilportal - DEBUG - Accepting on module socket (module.py:79)
2020-11-26 11:44:56,743 - evilportal - DEBUG - Sending response {"error": ""} (module.py:83)
2020-11-26 11:44:56,984 - evilportal - DEBUG - Processing request. (module.py:211)
2020-11-26 11:44:57,010 - evilportal - DEBUG - Calling handler for action load_file and passing {'module': 'evilportal', 'action': 'load_file', 'path': '/pineapple/ui/modules/evilportal/assets/permanentclients.txt'} (module.py:108)
2020-11-26 11:44:57,059 - evilportal - DEBUG - Accepting on module socket (module.py:79)
2020-11-26 11:44:57,093 - evilportal - DEBUG - Sending response {"payload": "172.16.42.42\n"} (module.py:83)
2020-11-26 11:44:57,475 - evilportal - DEBUG - Processing request. (module.py:211)
2020-11-26 11:44:57,507 - evilportal - DEBUG - Calling handler for action status and passing {'module': 'evilportal', 'action': 'status'} (module.py:108)
2020-11-26 11:44:58,194 - evilportal - DEBUG - Accepting on module socket (module.py:79)
2020-11-26 11:44:58,202 - evilportal - DEBUG - Sending response {"payload": {"running": false, "webserver": true, "start_on_boot": false}} (module.py:83)
2020-11-26 11:44:59,067 - evilportal - DEBUG - Processing request. (module.py:211)
2020-11-26 11:44:59,096 - evilportal - DEBUG - Calling handler for action toggle_portal and passing {'module': 'evilportal', 'action': 'toggle_portal', 'portal': 'Basic'} (module.py:108)
2020-11-26 11:44:59,252 - evilportal - WARNING - Portal API already exists under /www/captiveportal. This is probably not an issue. (module.py:84)
2020-11-26 11:44:59,337 - evilportal - DEBUG - Accepting on module socket (module.py:79)
2020-11-26 11:44:59,375 - evilportal - DEBUG - Sending response {"payload": "Portal has been activated."} (module.py:83)
2020-11-26 11:44:59,511 - evilportal - DEBUG - Processing request. (module.py:211)
2020-11-26 11:44:59,533 - evilportal - DEBUG - Calling handler for action list_portals and passing {'module': 'evilportal', 'action': 'list_portals'} (module.py:108)
2020-11-26 11:44:59,563 - evilportal - DEBUG - Creating portal folder (module.py:473)
2020-11-26 11:44:59,633 - evilportal - DEBUG - Listing directories (module.py:476)
2020-11-26 11:44:59,692 - evilportal - DEBUG - Building list (module.py:479)
2020-11-26 11:44:59,753 - evilportal - DEBUG - Accepting on module socket (module.py:79)
2020-11-26 11:44:59,785 - evilportal - DEBUG - Sending response {"payload": [{"title": "facebook-login", "portal_type": "basic", "size": 4096, "location": "/root/portals/facebook-login", "active": false}, {"title": "Basic", "portal_type": "basic", "size": 4096, "location": "/root/portals/Basic", "active": true}]} (module.py:83)
2020-11-26 11:46:21,607 - evilportal - DEBUG - Processing request. (module.py:211)
2020-11-26 11:46:21,641 - evilportal - DEBUG - Calling handler for action load_file and passing {'module': 'evilportal', 'action': 'load_file', 'path': '/pineapple/ui/modules/evilportal/assets/permanentclients.txt'} (module.py:108)
2020-11-26 11:46:21,689 - evilportal - DEBUG - Accepting on module socket (module.py:79)
2020-11-26 11:46:21,720 - evilportal - DEBUG - Sending response {"payload": "172.16.42.42\n"} (module.py:83)
2020-11-26 11:46:22,060 - evilportal - DEBUG - Processing request. (module.py:211)
2020-11-26 11:46:22,093 - evilportal - DEBUG - Calling handler for action status and passing {'module': 'evilportal', 'action': 'status'} (module.py:108)
2020-11-26 11:46:23,355 - evilportal - DEBUG - Accepting on module socket (module.py:79)
2020-11-26 11:46:23,430 - evilportal - DEBUG - Sending response {"payload": {"running": true, "webserver": true, "start_on_boot": false}} (module.py:83)
2020-11-26 11:46:23,571 - evilportal - DEBUG - Processing request. (module.py:211)
2020-11-26 11:46:23,613 - evilportal - DEBUG - Calling handler for action list_portals and passing {'module': 'evilportal', 'action': 'list_portals'} (module.py:108)
2020-11-26 11:46:23,664 - evilportal - DEBUG - Creating portal folder (module.py:473)
2020-11-26 11:46:23,771 - evilportal - DEBUG - Listing directories (module.py:476)
2020-11-26 11:46:23,815 - evilportal - DEBUG - Building list (module.py:479)
2020-11-26 11:46:23,887 - evilportal - DEBUG - Accepting on module socket (module.py:79)
2020-11-26 11:46:23,936 - evilportal - DEBUG - Sending response {"payload": [{"title": "facebook-login", "portal_type": "basic", "size": 4096, "location": "/root/portals/facebook-login", "active": false}, {"title": "Basic", "portal_type": "basic", "size": 4096, "location": "/root/portals/Basic", "active": true}]} (module.py:83)
2020-11-26 11:46:24,405 - evilportal - DEBUG - Processing request. (module.py:211)
2020-11-26 11:46:24,456 - evilportal - DEBUG - Calling handler for action check_dependencies and passing {'module': 'evilportal', 'action': 'check_dependencies'} (module.py:108)
2020-11-26 11:46:25,985 - evilportal - DEBUG - Accepting on module socket (module.py:79)
2020-11-26 11:46:26,002 - evilportal - DEBUG - Sending response {"payload": {"installed": true, "installing": false, "job_id": null}} (module.py:83)
2020-11-26 11:46:26,130 - evilportal - DEBUG - Processing request. (module.py:211)
2020-11-26 11:46:26,186 - evilportal - DEBUG - Calling handler for action load_file and passing {'module': 'evilportal', 'action': 'load_file', 'path': '/tmp/EVILPORTAL_CLIENTS.txt'} (module.py:108)
2020-11-26 11:46:26,262 - evilportal - DEBUG - Accepting on module socket (module.py:79)
2020-11-26 11:46:26,321 - evilportal - DEBUG - Sending response {"payload": "172.16.42.126\n"} (module.py:83)

And when using the Facebook-Login portal from kbeflo at https://github.com/kbeflo/evilportals the log file is as follows:

2020-11-26 11:48:54,629 - evilportal - DEBUG - Processing request. (module.py:211)
2020-11-26 11:48:54,655 - evilportal - DEBUG - Calling handler for action toggle_portal and passing {'module': 'evilportal', 'action': 'toggle_portal', 'portal': 'facebook-login'} (module.py:108)
2020-11-26 11:48:54,771 - evilportal - WARNING - Portal API already exists under /www/captiveportal. This is probably not an issue. (module.py:84)
2020-11-26 11:48:54,865 - evilportal - DEBUG - Accepting on module socket (module.py:79)
2020-11-26 11:48:54,899 - evilportal - DEBUG - Sending response {"payload": "Portal has been activated."} (module.py:83)
2020-11-26 11:48:55,274 - evilportal - DEBUG - Processing request. (module.py:211)
2020-11-26 11:48:55,310 - evilportal - DEBUG - Calling handler for action list_portals and passing {'module': 'evilportal', 'action': 'list_portals'} (module.py:108)
2020-11-26 11:48:55,340 - evilportal - DEBUG - Creating portal folder (module.py:473)
2020-11-26 11:48:55,404 - evilportal - DEBUG - Listing directories (module.py:476)
2020-11-26 11:48:55,450 - evilportal - DEBUG - Building list (module.py:479)
2020-11-26 11:48:55,497 - evilportal - DEBUG - Accepting on module socket (module.py:79)
2020-11-26 11:48:55,529 - evilportal - DEBUG - Sending response {"payload": [{"title": "facebook-login", "portal_type": "basic", "size": 4096, "location": "/root/portals/facebook-login", "active": true}, {"title": "Basic", "portal_type": "basic", "size": 4096, "location": "/root/portals/Basic", "active": false}]} (module.py:83)

Please could you advise how to proceed?

Many thanks.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...