unamed Posted February 15, 2022 Posted February 15, 2022 Hi everyone! I'm doing some stuff with captive portal. Everything went well until I wanted to make my own. I was successfully upload evil portals from https://github.com/kleo/evilportals but when I upload my own, I've got Error activating portal Evil Portal Version: 1.4 Pineapple version: 1.1.1 Are you connected to the internet?: Yes The output of the module log file located at: /tmp/modules/evilportal.log on your pineapple.: 2022-02-15 14:18:50,180 - evilportal - ERROR - NO EP FILE FOUND: /www/<name_of_my_module>.ep (module.py:53) 2022-02-15 14:18:50,212 - evilportal - DEBUG - Accepting on module socket (module.py:85) 2022-02-15 14:18:50,244 - evilportal - DEBUG - Sending response {"error": "Error activating portal."} (module.py:89) I've removed all Captive Portals and installed them again but error still occurs. How to get rid of this error and make CP work again? PS: Sometimes, when accessing Evil Portal module I receiving: unix /tmp/modules/evil portal.sock: connect: resource temporarily unavailable Quote
unamed Posted February 15, 2022 Author Posted February 15, 2022 Jest there is: MyPortal.php <name_of_my_module>.ep helper.php README.md assets index.php Quote
unamed Posted February 16, 2022 Author Posted February 16, 2022 I've removed that .ep file from /www folder. Once I clicked on any other Captive Portal I've received Handler raised exception: [Errno 17] File exists: '/root/portals/cliqq-payload/README.md' -> '/www/README.md' Quote
unamed Posted February 16, 2022 Author Posted February 16, 2022 My solution: go to Settings Scroll down to Software Update Click on Check For Updates button If there are no updates click this button again message will change on CTA to Reinstall Current Firmware No effort, no wires, no errors... WHY this is not mentioned anywhere? Anyways... it's a really good TIP and helpful feature. After that I created my test Captive Portal which I could Preview Quote
Layer4Redna Posted August 21, 2022 Posted August 21, 2022 This solution has worked for me. After running some obscure portals found on GitHub, I began receiving the error "Error activating portal" when attempting to activate any previously working portals. Access /www Remove all contents excluding the captiveportal directory or its contents. Access /root/portals. Remove all existing portals you may have added. Prepare to transfer original portal files from your host to the Pineapple. In each portal directory, for example facebook-login, remove the enable and disable files. Re-transfer each of the evil portal directories to the /root/portals path. Access Pineapple Evil Portal module and attempt to activate. TLDR: On the pineapple, remove everything from the www folder but the captiveportal folder. Then delete all files in the /root/portals. In your Kleo EvilPortal repo clone, delete the enable/disable files from each of the portal folders and re-add them to the /root/portals path. Hope this helps, it has worked for me each time I have tried using a non-working evil portal. Notes: Portals I tested and found not working. These resulted in errors when activating other portals. JonnyBanana/Netflix_EVIL_PORTAL gscamelo/evilportals Microsoft SSO Evil Portal LuemmelSec/evilportals ADFS Evil Portal Quote
Wind010 Posted January 1, 2023 Posted January 1, 2023 I was able to resolve this by deleting all the .enable and .disable files from /root/portals using the following since the -delete flag isn't supported with find in this bash. rm $(find -type f -name '.enable') rm $(find -type f -name '.disable') Quote
Wind010 Posted January 1, 2023 Posted January 1, 2023 3 minutes ago, Wind010 said: I was able to resolve this by deleting all the .enable and .disable files from /root/portals using the following since the -delete flag isn't supported with find in this bash. rm $(find -type f -name '.enable') rm $(find -type f -name '.disable') Correction from the portals directory: rm $(find . -type f -name '.enable') rm $(find . -type f -name '.disable') 1 Quote
Wind010 Posted January 1, 2023 Posted January 1, 2023 Also cleared out the /www directory: rm -r /www/* 1 Quote
focus666 Posted February 25, 2023 Posted February 25, 2023 On 1/1/2023 at 1:33 PM, Wind010 said: Correction from the portals directory: rm $(find . -type f -name '.enable') rm $(find . -type f -name '.disable') You're way was the way Quote
4sakenGol3m Posted November 30, 2023 Posted November 30, 2023 (edited) I’m experiencing similar issues with the Wi-Fi Pineapple and Evil Portal module. Refreshing the page, restarting the Evil Portal module, or rebooting (not factory resetting) helps. I’ve also faced problems transferring custom captive portals and using Kleo’s portals. Even integrating my code into the basic portal encountered issues. These products are innovative but tend to be buggy. Persistence and luck seem key. Turning off the Evil Portal’s web server improves file transfers and portal display. If errors occur, I refresh the page or re-login, until there aren’t any errors. I suggest Updating OPKG in the terminal might help, though I’m uncertain. After many hours of playing with the WiFi Pineapple I have successfully created portals and transferred Kelo’s portals from host to pineapple. I recommend that one portal is transferred at a time and then refresh the Wi-Fi pineapple webpage. If you receive any errors, just keep on refreshing the page. When you are creating a captive portal, I also suggest that you use everything that comes with file. Changing the design and how you want the portal to look and possibly behave is a must, but make sure you keep all the logic and all the files in tact. For my experience as of right now, the Wi-Fi pineapple is working great and I have successfully used it on a few penetration engagements. Remember there are other open-source software available for similar tasks. Edited December 2, 2023 by 4sakenGol3m Changing my experience about the device Quote
dino213dz Posted September 16 Posted September 16 You probabely renamed the portal folder but not the .ep file. The portal folder name should have the same name as the .ep file in it. https://github.com/dino213dz Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.