genghis_tron Posted May 10, 2012 Share Posted May 10, 2012 Ok so I am a complete n00b to coding anything (HTML I can do). I should also say that nyan cat / rick roll are working with no issues, but how do you direct to a website rather than a local file/mp3? I thought it would be simple as editing the DNS spoof list and landing page but that has not worked for me. I have also messed around with the redirect.php file and was successful in getting facebook redirected to a webpage, but I lack the PHP experience to make this for any website (no wildcards in PHP?). Quote Link to comment Share on other sites More sharing options...
barry99705 Posted May 10, 2012 Share Posted May 10, 2012 Ok so I am a complete n00b to coding anything (HTML I can do). I should also say that nyan cat / rick roll are working with no issues, but how do you direct to a website rather than a local file/mp3? I thought it would be simple as editing the DNS spoof list and landing page but that has not worked for me. I have also messed around with the redirect.php file and was successful in getting facebook redirected to a webpage, but I lack the PHP experience to make this for any website (no wildcards in PHP?). Pretty easy. Just edit the DNS spoof host file to look something like this. 172.16.42.1 205.196.209.62 Quote Link to comment Share on other sites More sharing options...
genghis_tron Posted May 10, 2012 Author Share Posted May 10, 2012 Pretty easy. Just edit the DNS spoof host file to look something like this. 172.16.42.1 205.196.209.62 Thanks for the reply. I think I actually tried this when I first got the pineapple and it did not seem to work, but I will give it another shot when I get home. Quote Link to comment Share on other sites More sharing options...
genghis_tron Posted May 10, 2012 Author Share Posted May 10, 2012 Just tried it and that did not work. It will allow me to go to any website I like. Quote Link to comment Share on other sites More sharing options...
PineDominator Posted May 10, 2012 Share Posted May 10, 2012 (edited) Ok so I am a complete n00b to coding anything (HTML I can do). I should also say that nyan cat / rick roll are working with no issues, but how do you direct to a website rather than a local file/mp3? I thought it would be simple as editing the DNS spoof list and landing page but that has not worked for me. I have also messed around with the redirect.php file and was successful in getting facebook redirected to a webpage, but I lack the PHP experience to make this for any website (no wildcards in PHP?). problem is if your redirecting everything "172.16.42.1 *" and then in a local html or php file redirect or send them to www.google.com they go back to 172.16.42.1/index.php if you redirect say only a few sites "172.16.42.1 facebook.com" then anytime someone goes to facebook.com they get redirected to 172.16.42.1/index.php and after that you send them to google.com, they are not sent back to the pineapple because there is no rule for "172.16.42.1 google.com" make sure ICS is working. Edited May 10, 2012 by petertfm Quote Link to comment Share on other sites More sharing options...
genghis_tron Posted May 11, 2012 Author Share Posted May 11, 2012 (edited) ok so here is my host file: 172.16.42.1 facebook.com 172.16.42.1 google.com here is the landing page: <html> <head> <meta http-equiv="Refresh" content="0; url=http://www.m0ar.org/5949"> </head> <body> </body> </html> It seemed like it took a while for those changes to take "effect" and it worked a couple of times then allowed me to go to facebook and google no problem. i have also tried the landing page to redirect to redirect.php with code: <?php $ref = $_SERVER['HTTP_REFERER']; if (strpos($ref, "facebook")) { header('Location: http://www.m0ar.org/5949'); } if (strpos($ref, "twitter")) { header('Location: twitter.html'); } require('error.php'); ?> Last night it seemed to be working a lot more consistently with redirect.php Edited May 11, 2012 by genghis_tron Quote Link to comment Share on other sites More sharing options...
vince2015 Posted May 12, 2012 Share Posted May 12, 2012 can you run dns spoof and sslstrip at the same time? 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.