j4rv1s Posted October 7, 2016 Share Posted October 7, 2016 (edited) Hi guys i'm looking for a fast way to redirect all http traffic to my website, i tried with the "landing page" option where you can write your own php script. I wrote a simple php script that redirects automatically to my website but when i connect then to a spoofed wifi network i get a server error whenever i try to visit some http website. The error says something like this "too many redirects" and so i can't be able to see my website. Can you guys help me to fix this little thing? :) Thanks! Edited October 9, 2016 by j4rv1s Quote Link to comment Share on other sites More sharing options...
j4rv1s Posted October 8, 2016 Author Share Posted October 8, 2016 No one? :/ ... Quote Link to comment Share on other sites More sharing options...
b0N3z Posted October 8, 2016 Share Posted October 8, 2016 Try DNSspoof or DNSmasq and see if redirecting that way helps any. Quote Link to comment Share on other sites More sharing options...
Zylla Posted October 9, 2016 Share Posted October 9, 2016 It would probably help us help you if we could see this simple redirection script you wrote. As something must clearly be happening that triggers that specific error message. How exactly are you redirecting? Quote Link to comment Share on other sites More sharing options...
j4rv1s Posted October 9, 2016 Author Share Posted October 9, 2016 <?php header ('Location: http://www.website.com/'); exit(); ?> i use this kind of script, but i don't think this is the problem because i already used it successfully with other websites.. Quote Link to comment Share on other sites More sharing options...
j4rv1s Posted October 9, 2016 Author Share Posted October 9, 2016 Okay guys i think i found the problem here... mine is an http website, and the "Landing Page" just redirects every http website to another page, in this case the other page is my http website.. so it's everything a loop. Any idea to fix this issue? Quote Link to comment Share on other sites More sharing options...
Sebkinne Posted October 9, 2016 Share Posted October 9, 2016 Use evil portal instead :) Quote Link to comment Share on other sites More sharing options...
j4rv1s Posted October 9, 2016 Author Share Posted October 9, 2016 (edited) same... i just created a new portal and used my php script into the index.php . Same stuff.. "too many redirects" . as i said, i'm into a loop :P Edited October 9, 2016 by j4rv1s Quote Link to comment Share on other sites More sharing options...
j4rv1s Posted October 9, 2016 Author Share Posted October 9, 2016 (edited) ok i managed to fix it by myself :) since i had my website on a localhost i portforwarded the port and then changed the website address with the ip address+port. BTW with landing page and evil portal when i try to connect to one of my spoofed wifi networks i always get the "sign in to WI-FI network" message on my android phone showing me this annoying blank page (take a look at the pic). Is there any way to turn this request off? (the only way i know is by turning off evil portal or Landing Page :P ) Edited October 9, 2016 by j4rv1s Quote Link to comment Share on other sites More sharing options...
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.