barry99705 Posted October 19, 2013 Share Posted October 19, 2013 Anybody else having this problem? I've got the following in my spoofhost config, 172.16.42.1 64.64.4.109 But browsing on my phone connected to "bob'sfreewifi" just browses as normal, no getting redirected to kittenwar. Quote Link to comment Share on other sites More sharing options...
Sebkinne Posted October 19, 2013 Share Posted October 19, 2013 That's probably because whatever you are browsing with is using different DNS servers and not the pineapple. Can't spoof if it doesn't get hit up! Quote Link to comment Share on other sites More sharing options...
barry99705 Posted October 19, 2013 Author Share Posted October 19, 2013 Okay, this is weird. DHCP from the pineapple is pushing a second real dns server address. Quote Link to comment Share on other sites More sharing options...
10base2 Posted October 19, 2013 Share Posted October 19, 2013 I'm having the same issue with the exact settings I have on my mark IV Quote Link to comment Share on other sites More sharing options...
barry99705 Posted October 19, 2013 Author Share Posted October 19, 2013 OpenDNS address? Quote Link to comment Share on other sites More sharing options...
barry99705 Posted October 19, 2013 Author Share Posted October 19, 2013 (edited) Found it. It's in the dhcp conf file. config 'dhcp' 'lan' option 'interface' 'lan' option 'start' '100' option 'limit' '150' option 'leasetime' '12h' option 'ignore' '0' list 'dhcp_option' '3,172.16.42.42' list 'dhcp_option' '3,172.16.42.1' list 'dhcp_option' '6,172.16.42.1,8.8.8.8' list 'dhcp_option' '6,172.16.42.1,208.67.222.222' 208.67.222.222 is getting pushed to the client. removed the last line, and the google dns address, so now it's not pushing alternate dns, but spoofhost still isn't redirecting. Edited October 19, 2013 by barry99705 Quote Link to comment Share on other sites More sharing options...
shoeless89 Posted October 19, 2013 Share Posted October 19, 2013 OpenDNS address? Yeah I am having trouble with DNSspoof also. The first DNS server getting pushed from DHCP on the MKV is 172.16.42.1 but the second is OpenDNS's 208.67.222.222 Quote Link to comment Share on other sites More sharing options...
hfam Posted October 19, 2013 Share Posted October 19, 2013 Yeah I am having trouble with DNSspoof also. The first DNS server getting pushed from DHCP on the MKV is 172.16.42.1 but the second is OpenDNS's 208.67.222.222 Isnt that supplied so: DNS1 provides redirects for all defined domains, and when user request is undefined, DNS2 can correctly resolve and pass the traffic on? Otherwise wouldn't all undefined domains at 172.16.42.1 just fail as unreachable to the ensnared? Quote Link to comment Share on other sites More sharing options...
shoeless89 Posted October 19, 2013 Share Posted October 19, 2013 Isnt that supplied so: DNS1 provides redirects for all defined domains, and when user request is undefined, DNS2 can correctly resolve and pass the traffic on? Otherwise wouldn't all undefined domains at 172.16.42.1 just fail as unreachable to the ensnared? Yeah thats correct. But I can't figure out why the DNS request is passing 172.16.42.1 and reaching 208.67.222.222. I'm sure its just something I have misconfigured in my DSNSpoof configuration. Quote Link to comment Share on other sites More sharing options...
barry99705 Posted October 19, 2013 Author Share Posted October 19, 2013 Well crap. I fired up the mk4 and it's pushing the same dns settings, and working.... Quote Link to comment Share on other sites More sharing options...
hfam Posted October 19, 2013 Share Posted October 19, 2013 Well crap. I fired up the mk4 and it's pushing the same dns settings, and working.... That's where I was going ...its not the 2nd real DNS at issue, its as if DNS isn't answering on the MKV. Quote Link to comment Share on other sites More sharing options...
barry99705 Posted October 19, 2013 Author Share Posted October 19, 2013 Heeey! The factory reset dip switches are pretty slick! Still not working though... Quote Link to comment Share on other sites More sharing options...
hfam Posted October 19, 2013 Share Posted October 19, 2013 For what it's worth, I've confirmed I'm having exactly the same issue. Quote Link to comment Share on other sites More sharing options...
hfam Posted October 19, 2013 Share Posted October 19, 2013 there was an issue with Karma some time ago on an earlier MKIII or IV where editing in the gui caused rogue chars (^H? ^N?) to get inserted at the end of each line of the conf file and causing it to not fire up. Wonder if mebbe this is something similar? I don't know where this particular file is, but maybe someone who does could confirm the files are clean in VI or something? Worth a shot I guess. Quote Link to comment Share on other sites More sharing options...
barry99705 Posted October 19, 2013 Author Share Posted October 19, 2013 there was an issue with Karma some time ago on an earlier MKIII or IV where editing in the gui caused rogue chars (^H? ^N?) to get inserted at the end of each line of the conf file and causing it to not fire up. Wonder if mebbe this is something similar? I don't know where this particular file is, but maybe someone who does could confirm the files are clean in VI or something? Worth a shot I guess. Yep! That's what it's doing. Now I just have to figure out what all configs it touches to remove the ^M's. Quote Link to comment Share on other sites More sharing options...
hfam Posted October 19, 2013 Share Posted October 19, 2013 (edited) FeelsGoodMan.jpg :) Edited "etc/pineapple/spoofhost", removed the ^M's, saved, and it works fine now. Gotta fix the GUI editor :) Edited October 19, 2013 by hfam Quote Link to comment Share on other sites More sharing options...
barry99705 Posted October 19, 2013 Author Share Posted October 19, 2013 Hey dude, can you post up the origional index.php? I thought I made a backup, but didn't. Quote Link to comment Share on other sites More sharing options...
hfam Posted October 19, 2013 Share Posted October 19, 2013 Hey dude, can you post up the origional index.php? I thought I made a backup, but didn't. <?php //ini_set('display_errors',1); if(file_exists('/pineapple/includes/welcome/')){include('/pineapple/includes/welcome/welcome.php'); exit(0);} include_once('/pineapple/includes/api/auth.php'); if(isset($_GET['noJS'])){echo "You need to have JavaScript enabled to use this UI.";die();} ?> <html> <head> <title>WiFi Pineapple - Management</title> <meta http-equiv="cache-control" content="max-age=0" /> <meta http-equiv="cache-control" content="no-cache" /> <meta http-equiv="expires" content="0" /> <meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" /> <meta http-equiv="pragma" content="no-cache" /> <link rel="stylesheet" type="text/css" href="includes/css/styles.php" /> <script src="includes/js/jquery.min.js"></script> <script src="includes/js/functions.js" type="text/javascript" ></script> <noscript><meta http-equiv="refresh" content="0;url=index.php?noJS" /></noscript> </head> <body onload="init()"> <div class="statusBar"><div class="statusBar_content"></div><div class="logout"><a href="/?logout"><img src="/includes/img/exit.png"></a></div></div> <div class='popup'> <a id='close' href='JAVASCRIPT: close_popup()'>[X]</a> <div class='popup_content'></div> </div> <div class="tiles"><div class="tiles_wrapper"><div class="tile_expanded"></div></div></div> </body> </html> <?php if(!function_exists("check_login")){ function check_login(){ if (session_status() == PHP_SESSION_NONE) { session_start(); } if(!isset($_SESSION['logged_in'])){ include('/pineapple/includes/api/login.php'); exit(); } } } ?> that what youre looking for? Quote Link to comment Share on other sites More sharing options...
barry99705 Posted October 19, 2013 Author Share Posted October 19, 2013 No, the one in the www folder. Quote Link to comment Share on other sites More sharing options...
Crypiehef Posted October 19, 2013 Share Posted October 19, 2013 I removed all the ^M's and mine still won't redirect. Odd. Quote Link to comment Share on other sites More sharing options...
hfam Posted October 19, 2013 Share Posted October 19, 2013 No, the one in the www folder. <html> <head> <meta http-equiv="REFRESH" content="0;url=redirect.php"> </head> <body> </body> </html> Quote Link to comment Share on other sites More sharing options...
barry99705 Posted October 19, 2013 Author Share Posted October 19, 2013 Thanks dude! Quote Link to comment Share on other sites More sharing options...
hfam Posted October 19, 2013 Share Posted October 19, 2013 Thanks dude! ;) anytime brother Quote Link to comment Share on other sites More sharing options...
barry99705 Posted October 20, 2013 Author Share Posted October 20, 2013 Now we just need to figure out why dnsspoof isn't working.... Quote Link to comment Share on other sites More sharing options...
hfam Posted October 20, 2013 Share Posted October 20, 2013 (edited) I did as I indicated above, cleaned up the file and entered 2 test domains using VI, made sure there were only the 2 lines containing the domains, restarted DNSspoof, and I get the redirect.php as advertised for those 2 domains. I haven't dug into it any further to see if there are further bugs, but DNSspoof went from not answering the call, to answering based on the above actions. The issue appears to be the GUI editor, not DNSspoof, but again, I stopped there because I had other shit to get done. :) Looking forward to seeing what seb & Darren have to say. Edited October 20, 2013 by hfam 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.