Jump to content

Redirecting from evil portal


Diesl
 Share

Recommended Posts

Hi!

I'm working with evil portal right now and want to redirect from the evil portals login page to a page then warning about the dangers of using unknown networks like this and submitting information.

I have a redirect in the PHP of the evil portal, but it doesn't seem to redirect properly. I click submit on the portal box and, on my iPhone, get redirected to captive.apple.com.

Has anyone else done something similar?

Link to comment
Share on other sites

Check the captive portal's code and see if it's not already redirecting you somewhere, then either edit that or remove it and create your own redirect.

Also, iOS devices might already treat submit buttons on specific portals as "captive.apple.com" redirects as a native thing. I'm not sure - it would be silly but that's what Apple likes doing, unfortunately. They love limiting stuff on their devices.

Link to comment
Share on other sites

So it comes with a redirect function:

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

When the form is filled out, you click next, then it closes out after you're done.

I've changed the index.php to hello.html, and it redirects to hello.html but it's just the portal page without the fancy graphics, as opposed to the test html page for information on what happened.

Link to comment
Share on other sites

The call to captive.apple.com is the iPhone testing to see if it's behind a portal. I think If the phone connected successfully to captive.apple.com it would have proceeded to load the page that you fed as a redirect. 

Link to comment
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.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...