Lockon Posted December 17, 2013 Share Posted December 17, 2013 Holy cr*p Foxtrot, the 1.2 release is incredible! Quote Link to comment Share on other sites More sharing options...
Foxtrot Posted December 19, 2013 Author Share Posted December 19, 2013 What other features would you guys like to see in the next release btw? Maybe some new rolls too :) I smell a 'Fix it fix it fix it', ey seb ;) Quote Link to comment Share on other sites More sharing options...
phibertap Posted December 19, 2013 Share Posted December 19, 2013 (edited) Awesome work Foxtrot, can I make a few suggestions? Great thanks! :PChange your functions.php to backup the current index.php, error.php and redirect.php during a startand restore these back during a stop.Also, you should change your dnsspoof command to use /tmp/dnsspoof.log incase anyone is watching that log.And finally :)Since your dnsspoof command uses its own spoofhost file. You don't need to echo 172.16.42.1 example.com back in during a stop.PTCheck it my mods to your functions.php Edit:placed the proper dnsspoof.log back in, so it shows in the infusion's log window. // Start and Stop RandomRoll if(isset($_POST['startRandomRollSubmit'])){ exec('killall dnsspoof'); exec('dnsspoof -i br-lan -f /pineapple/components/infusions/randomroll/assets/files/spoofhost > /dev/null 2> /pineapple/components/infusions/randomroll/assets/files/dnsspoof.log &'); exec('cp /www/error.php /pineapple/components/infusions/randomroll/assets/files/error.orig'); exec('cp /www.index.php /pineapple/components/infusions/randomroll/assets/files/index.orig'); exec('cp /www/redirect.php /pineapple/components/infusions/randomroll/assets/files/redirect.orig'); exec('rm -rf /www/error.php'); exec('rm -rf /www/index.php'); exec('rm -rf /www/redirect.php'); exec('ln -s /pineapple/components/infusions/randomroll/assets/files/index.php /www/index.php'); exec("ln -s /pineapple/components/infusions/randomroll/assets/rolls/ /www/"); } if(isset($_POST['stopRandomRollSubmit'])){ exec('killall dnsspoof'); exec('rm -rf /pineapple/components/infusions/randomroll/assets/files/dnsspoof.log'); exec('rm -rf /www/index.php'); exec('rm -rf /www/rolls/'); exec('cp /pineapple/components/infusions/randomroll/assets/files/error.orig /www/error.php'); exec('cp /pineapple/components/infusions/randomroll/assets/files/index.orig /www/index.php'); exec('cp /pineapple/components/infusions/randomroll/assets/files/redirect.orig /www/redirect.php'); exec('rm -rf /www/rickroll.php'); exec('rm -rf /www/rcmroll.php'); exec('rm -rf /www/nyanroll.php'); exec('rm -rf /www/pbjtroll.php'); exec('rm -rf /www/trollroll.php'); exec('rm -rf /www/bsodroll.php'); exec('rm -rf /www/afroroll.php'); } Edited December 20, 2013 by phibertap Quote Link to comment Share on other sites More sharing options...
Foxtrot Posted December 19, 2013 Author Share Posted December 19, 2013 Backing up the current index.php, error.php and redirect.php has been implemented, but using the /tmp/dnsspoof.log will not. This is done on purpose because the infusion is supposed to show ONLY what RandomRoll is doing. Using the above mods will break functionality within the infusion. Quote Link to comment Share on other sites More sharing options...
phibertap Posted December 20, 2013 Share Posted December 20, 2013 Rodger that - and thanks for putting in the backup feature :) Quote Link to comment Share on other sites More sharing options...
yabasoya Posted December 20, 2013 Share Posted December 20, 2013 (edited) I've been working in a retirement community for the past two weeks, I made a roll to have fun with. http://tinyurl.com/m3ex742 Edited December 20, 2013 by yabasoya Quote Link to comment Share on other sites More sharing options...
phibertap Posted December 20, 2013 Share Posted December 20, 2013 Foxtrot, I did notice that your logging function within your infusion seems to display the log as a run-on instead of each line being displayed one after another. dnsspoof: listening on br-lan [udp dst port 53 and not src 172.16.42.1] 172.16.42.175.65355 > 172.16.42.1.53: 34816+ A? www.itools.info 172.16.42.175.61906 > 172.16.42.1.53: 9800+ A? www.ibook.info 172.16.42.175.49431 > 172.16.42.1.53: 32618+ A? www.apple.com 172.16.42.175.52962 > 172.16.42.1.53: 61479+ A? p07-keyvalueservice.icloud.com 172.16.42.175.58969 > 172.16.42.1.53: 50823+ A? 44-courier.push.apple.com 172.16.42.175.50558 > 172.16.42.1.53: 23116+ A? apple.com 172.16.42.175.49431 > 172.16.42.1.53: 32618+ A? www.apple.com 172.16.42.175.52962 > 172.16.42.1.53: 61479+ A? p07-keyvalueservice.icloud.com 172.16.42.175.58969 > 172.16.42.1.53: 50823+ A? 44-courier.push.apple.com 172.16.42.175.54948 > 172.16.42.1.53: 51987+ A? 48-courier.push.apple.com 172.16.42.175.54948 > 172.16.42.1.53: 51987+ A? 48-courier.push.apple.com 172.16.42.175.58502 > 172.16.42.1.53: 50844+ A? www.uo-pixel.de When i watch the /pineapple/components/infusions/randomroll/assets/files/dnsspoof.logwithin the logs infusions, the log is displayed like this: Following '/pineapple/components/infusions/randomroll/assets/files/dnsspoof.log': 172.16.42.175.50558 > 172.16.42.1.53: 23116+ A? apple.com 172.16.42.175.49431 > 172.16.42.1.53: 32618+ A? www.apple.com 172.16.42.175.52962 > 172.16.42.1.53: 61479+ A? p07-keyvalueservice.icloud.com 172.16.42.175.58969 > 172.16.42.1.53: 50823+ A? 44-courier.push.apple.com 172.16.42.175.54948 > 172.16.42.1.53: 51987+ A? 48-courier.push.apple.com 172.16.42.175.54948 > 172.16.42.1.53: 51987+ A? 48-courier.push.apple.com 172.16.42.175.58502 > 172.16.42.1.53: 50844+ A? www.uo-pixel.de 172.16.42.175.51461 > 172.16.42.1.53: 34448+ A? 22-courier.push.apple.com 172.16.42.175.63483 > 172.16.42.1.53: 51061+ A? cl2.apple.com 172.16.42.175.63082 > 172.16.42.1.53: 30786+ A? 40-courier.push.apple.com Not sure if this is a bug or intended. PT Quote Link to comment Share on other sites More sharing options...
Foxtrot Posted December 20, 2013 Author Share Posted December 20, 2013 Gah, Fixed in next update, probably tommorow, Thanks! Quote Link to comment Share on other sites More sharing options...
Hits_s Posted January 12, 2014 Share Posted January 12, 2014 Hello, just wanted to say that I do not get to add a new "roll" on my pineapple, I edited functions.php to add the lines that point to the directory of my new "roll" without success. this is the code: <?php // Start and Stop RandomRoll if(isset($_POST['startRandomRollSubmit'])){ exec('killall dnsspoof'); exec('dnsspoof -i br-lan -f /pineapple/components/infusions/randomroll/assets/files/spoofhost > /dev/null 2> /pineapple/components/infusions/randomroll/assets/files/dnsspoof.log &'); exec('rm -rf /www/index.php'); exec('rm -rf /www/redirect.php'); exec('rm -rf /www/error.php'); exec('ln -s /pineapple/components/infusions/randomroll/assets/files/index.php /www/index.php'); exec("ln -s /pineapple/components/infusions/randomroll/assets/rolls/ /www/"); exec('echo "172.16.42.1 *" > /pineapple/components/infusions/randomroll/assets/files/spoofhost'); } if(isset($_POST['stopRandomRollSubmit'])){ exec('killall dnsspoof'); exec('rm -rf /pineapple/components/infusions/randomroll/assets/files/dnsspoof.log'); exec('rm -rf /www/index.php'); exec('rm -rf /www/rolls/'); exec('cp /pineapple/components/infusions/randomroll/assets/files/error.orig /www/error.php'); exec('cp /pineapple/components/infusions/randomroll/assets/files/index.orig /www/index.php'); exec('cp /pineapple/components/infusions/randomroll/assets/files/redirect.orig /www/redirect.php'); exec('echo "172.16.42.1 example.com" > /pineapple/components/infusions/randomroll/assets/files/spoofhost'); exec('rm -rf /www/rickroll.php'); exec('rm -rf /www/rcmroll.php'); exec('rm -rf /www/nyanroll.php'); exec('rm -rf /www/pbjtroll.php'); exec('rm -rf /www/trollroll.php'); exec('rm -rf /www/bsodroll.php'); exec('rm -rf /www/afroroll.php'); exec('rm -rf /www/MYROLL.php'); } //// Selection of Rolls. // Remove rolls. if(isset($_POST['rollsRemoveSubmit'])){ exec('rm -rf /www/rickroll.php'); exec('rm -rf /www/rcmroll.php'); exec('rm -rf /www/nyanroll.php'); exec('rm -rf /www/pbjtroll.php'); exec('rm -rf /www/trollroll.php'); exec('rm -rf /www/bsodroll.php'); exec('rm -rf /www/afroroll.php'); exec('rm -rf /www/MYROLL.php'); } // Submit if(isset($_POST['rollsCheckBoxSubmit'])){ // cool guys dont look at explosions... $rolls = explode(',', $_POST['checkbox']); foreach($rolls as $roll){ switch ($roll) { case 'rickroll': exec('ln -s /pineapple/components/infusions/randomroll/assets/rolls/RickRoll/rickroll.php /www/rickroll.php'); break; case 'rcmroll': exec('ln -s /pineapple/components/infusions/randomroll/assets/rolls/RCMRoll/rcmroll.php /www/rcmroll.php'); break; case 'nyanroll': exec('ln -s /pineapple/components/infusions/randomroll/assets/rolls/NyanRoll/nyanroll.php /www/nyanroll.php'); break; case 'pbjtroll': exec("ln -s /pineapple/components/infusions/randomroll/assets/rolls/PBJTRoll/pbjtroll.php /www/pbjtroll.php"); break; case 'trollroll': exec('ln -s /pineapple/components/infusions/randomroll/assets/rolls/TrollRoll/trollroll.php /www/trollroll.php'); break; case 'bsodroll': exec('ln -s /pineapple/components/infusions/randomroll/assets/rolls/BSODRoll/bsodroll.php /www/bsodroll.php'); break; case 'afroroll': exec('ln -s /pineapple/components/infusions/randomroll/assets/rolls/AfroRoll/afroroll.php /www/afroroll.php'); break; case 'MYROLL': exec('ln -s /pineapple/components/infusions/randomroll/assets/rolls/MYROLL/MYROLL.php /www/MYROLL.php'); break; } } echo 'You Selected :<br/>'; print_r($_POST['checkbox']); } //// Small Tile Code! // Quick Start if(isset($_POST['quickstartSmallTileSubmit'])){ exec('killall dnsspoof'); exec('dnsspoof -i br-lan -f /pineapple/components/infusions/randomroll/assets/files/spoofhost > /pineapple/components/infusions/randomroll/assets/files/dnsspoof.log &'); exec('rm -rf /www/index.php'); exec('rm -rf /www/redirect.php'); exec('rm -rf /www/error.php'); exec('ln -s /pineapple/components/infusions/randomroll/assets/files/index.php /www/index.php'); exec("ln -s /pineapple/components/infusions/randomroll/assets/rolls/ /www/"); exec('echo "172.16.42.1 *" > /pineapple/components/infusions/randomroll/assets/files/spoofhost'); exec('ln -s /pineapple/components/infusions/randomroll/assets/rolls/RickRoll/rickroll.php /www/rickroll.php'); exec('ln -s /pineapple/components/infusions/randomroll/assets/rolls/RCMRoll/rcmroll.php /www/rcmroll.php'); exec('ln -s /pineapple/components/infusions/randomroll/assets/rolls/NyanRoll/nyanroll.php /www/nyanroll.php'); exec("ln -s /pineapple/components/infusions/randomroll/assets/rolls/PBJTRoll/pbjtroll.php /www/pbjtroll.php"); exec('ln -s /pineapple/components/infusions/randomroll/assets/rolls/TrollRoll/trollroll.php /www/trollroll.php'); exec('ln -s /pineapple/components/infusions/randomroll/assets/rolls/BSODRoll/bsodroll.php /www/bsodroll.php'); exec('ln -s /pineapple/components/infusions/randomroll/assets/rolls/AfroRoll/afroroll.php /www/afroroll.php'); exec('ln -s /pineapple/components/infusions/randomroll/assets/rolls/MYROLL/MYROLL.php /www/MYROLL.php'); } // Quick Stop if(isset($_POST['quickstopSmallTileSubmit'])){ exec('killall dnsspoof'); exec('rm -rf /pineapple/components/infusions/randomroll/assets/files/dnsspoof.log'); exec('rm -rf /www/index.php'); exec('rm -rf /www/rolls/'); exec('cp /pineapple/components/infusions/randomroll/assets/files/error.orig /www/error.php'); exec('cp /pineapple/components/infusions/randomroll/assets/files/index.orig /www/index.php'); exec('cp /pineapple/components/infusions/randomroll/assets/files/redirect.orig /www/redirect.php'); exec('echo "172.16.42.1 example.com" > /pineapple/components/infusions/randomroll/assets/files/spoofhost'); exec('rm -rf /www/rickroll.php'); exec('rm -rf /www/rcmroll.php'); exec('rm -rf /www/nyanroll.php'); exec('rm -rf /www/pbjtroll.php'); exec('rm -rf /www/trollroll.php'); exec('rm -rf /www/bsodroll.php'); exec('rm -rf /www/afroroll.php'); exec('rm -rf /www/MYROLL.php'); } ?> Maybe I'm doing something wrong, pineapple mark iv had no problems, but perhaps with the mark V is leaving me something along the way.I do not think it much more complicated to add my own "Roll"Thanks for the responses. Quote Link to comment Share on other sites More sharing options...
yabasoya Posted January 12, 2014 Share Posted January 12, 2014 I believe that you need to edit large_tile.php as well Quote Link to comment Share on other sites More sharing options...
barry99705 Posted January 12, 2014 Share Posted January 12, 2014 (edited) functions.php, and large_tile.php need edited. Aww man! Pineapple Surprise quit working with 1.2! My Nedry roll still works though. Took me a few minutes to realize you moved the thumbnails to a new location. Edited January 12, 2014 by barry99705 Quote Link to comment Share on other sites More sharing options...
Hits_s Posted January 13, 2014 Share Posted January 13, 2014 Thanks, I did not realize to check that file for editing.What I had were problems with having installed all infusions in micro-sd, the system slowed down and had to remove them.You guys left a part ye to exchange (swap) on the sd?Thanks for the help, and served me well in the future I will be more careful when reviewing the code. Quote Link to comment Share on other sites More sharing options...
lunokhod Posted January 27, 2014 Share Posted January 27, 2014 Backing up the current index.php, error.php and redirect.php has been implemented, but using the /tmp/dnsspoof.log will not. This is done on purpose because the infusion is supposed to show ONLY what RandomRoll is doing. Using the above mods will break functionality within the infusion. Starting RandomRoll seemed to overwrite my index.php, error.php and redirect.php and did not restore them when stopped. I had to restore the files from /rom/www/ Quote Link to comment Share on other sites More sharing options...
Foxtrot Posted January 28, 2014 Author Share Posted January 28, 2014 That is the whole point. And as you should of read from that quotation, I said it was implemented. It just needs to be released. Quote Link to comment Share on other sites More sharing options...
lunokhod Posted April 18, 2014 Share Posted April 18, 2014 I'm after some guidance on getting Random Roll v1.2 working on my WiFi Pineapple (firmware v1.3). I select the Roll I want, click on "Apply Selected Roll.", then click on "Start Random Roll". I see a brief message at the top informing me that Random Roll has started... and then a log entry below.dnsspoof: listening on br-lan [udp dst port 53 and not src 172.16.42.1] I confirm that DNSSpoof is running. ... and then nothing! Clients connected to the WiFi Pineapples wlan0 access point seem to be unaffected. Their web browsing either seems to work fine... or it stops altogether after some time of the Random Roll infusing running.What am I doing wrong? Any tips?Lunokhod Quote Link to comment Share on other sites More sharing options...
lunokhod Posted May 11, 2014 Share Posted May 11, 2014 Another "stupid" question on top of my previous post. I'm still trying to get RandomRoll working reliably... I've got v1.2 installed. When I start RandomRoll my existing existing /www index.php, error.php and redirect.php files are not copied into the /sd/infusions/randomroll/assets/files directory... with .orig suffix. I see the new index.php, roll .php file/s and roll folder symbolic links in /www. When I stop RandomRoll, the .orig files are copied back into the /www folder (with .php suffix) overwriting the files that are there. Is this what others are experiencing with RandomRoll? Quote Link to comment Share on other sites More sharing options...
barry99705 Posted May 11, 2014 Share Posted May 11, 2014 That's what should be happening I believe. It copies the random roll index.php to where the web server can read them. When you stop it, the old one is copied back. Sometimes mobile devices ignore the pineapple's dns settings if they've been to a site lately. Reboot the device and try after that. Also try starting up random roll before they connect. Quote Link to comment Share on other sites More sharing options...
Foxtrot Posted May 11, 2014 Author Share Posted May 11, 2014 clearing the cache may also work.. not sure to what extent though Quote Link to comment Share on other sites More sharing options...
lunokhod Posted May 11, 2014 Share Posted May 11, 2014 RandomRoll does not copy the index.php file from /sd/infusions/randomroll/assets/files/ it creates a sym link to the original file... this is fine. DNS caching is my main problem with RandomRoll not working. This is something that I can fix on my own machines... but not easy to circumvent if it happens on "someone else's" PC. :-) I'm more concerned that my carefully crafted index.php, error.php and redirect.php files in /www/ are not backed up before being removed by the infusion. The .orig ones stored in /sd/infusions/randomroll/assets/files/ are most certainly copied back to www when the the infusion is stopped. I can manually copy my files over (changing the suffix to .orig) and RandomRoll will replace them when it's stopped. Now I understand what is happening I can work around it. Lunokhod Quote Link to comment Share on other sites More sharing options...
barry99705 Posted May 12, 2014 Share Posted May 12, 2014 RandomRoll does not copy the index.php file from /sd/infusions/randomroll/assets/files/ it creates a sym link to the original file... this is fine. DNS caching is my main problem with RandomRoll not working. This is something that I can fix on my own machines... but not easy to circumvent if it happens on "someone else's" PC. :-) I'm more concerned that my carefully crafted index.php, error.php and redirect.php files in /www/ are not backed up before being removed by the infusion. The .orig ones stored in /sd/infusions/randomroll/assets/files/ are most certainly copied back to www when the the infusion is stopped. I can manually copy my files over (changing the suffix to .orig) and RandomRoll will replace them when it's stopped. Now I understand what is happening I can work around it. Lunokhod I see what you're saying now. Turn your index.php into a roll. That way you don't accidentally kill it. It's not too difficult to figure out how they are set up. I did it, so it can't be that hard! Quote Link to comment Share on other sites More sharing options...
Foxtrot Posted May 12, 2014 Author Share Posted May 12, 2014 (edited) 1.3 will be out soon fixing this problem hopefully. It works by just renaming your current (ie, the files before you start randomroll) index, redirect and error.php to index, redirect and error.php.orig, and then RandomRoll will proceed to just softlink its own files there, as usual. Then when you disable RandomRoll it unlinks its files and renames your files before you started randomroll back to the defaults, and then happy days. If their are any more problems, bugs or something i'm missing please reply here so i can fix them hopefully before the release. I am sad to say that there is no 'easy' way to add rolls yet, as im really busy as most of you are. I will try to do it as I know it would make life easier for some of you (especially barry with his nice custom rolls ). Edited May 12, 2014 by Foxtrot Quote Link to comment Share on other sites More sharing options...
barry99705 Posted May 13, 2014 Share Posted May 13, 2014 1.3 will be out soon fixing this problem hopefully. It works by just renaming your current (ie, the files before you start randomroll) index, redirect and error.php to index, redirect and error.php.orig, and then RandomRoll will proceed to just softlink its own files there, as usual. Then when you disable RandomRoll it unlinks its files and renames your files before you started randomroll back to the defaults, and then happy days. If their are any more problems, bugs or something i'm missing please reply here so i can fix them hopefully before the release. I am sad to say that there is no 'easy' way to add rolls yet, as im really busy as most of you are. I will try to do it as I know it would make life easier for some of you (especially barry with his nice custom rolls ). I ought to just send you mine to add. Quote Link to comment Share on other sites More sharing options...
Foxtrot Posted May 13, 2014 Author Share Posted May 13, 2014 That might not be a bad idea. . . Shoot me a PM if you want them in :) Quote Link to comment Share on other sites More sharing options...
Foxtrot Posted May 13, 2014 Author Share Posted May 13, 2014 1.3 is out :) Changelog updated. Hope you enjoy the new features and functionality haha :) Quote Link to comment Share on other sites More sharing options...
barry99705 Posted May 13, 2014 Share Posted May 13, 2014 Nice! I like how it tells you which roll is running on the small tile now. 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.