Boba Fett Posted March 11, 2013 Share Posted March 11, 2013 I have a question, there is a way to clean all logs or the only way it´s do it manually? Quote Link to comment Share on other sites More sharing options...
Foxtrot Posted March 11, 2013 Share Posted March 11, 2013 (edited) Save the following code as "logcleanup" and SCP it into /bin/ on the pineapple, that way you can run it straight from the SSH by executing 'logcleanup' in any directory you are, and you will be pleased to know, it should work from the WPS button. Code : #!/bin/bash #Log Cleanup WPS Script! #Made by Foxtrot echo "Clearing logs!" echo "" > /pineapple/logs/dnsspoof.log echo "" > /pineapple/logs/ngrep.log echo "" > /pineapple/logs/phish.log echo "" > /pineapple/logs/urlsnarf-clean.log echo "" > /pineapple/logs/urlsnarf.log echo "" > /pineapple/logs/dhcp echo "Done clearing logs!" -Foxtrot Edited March 11, 2013 by Foxtrot Quote Link to comment Share on other sites More sharing options...
Boba Fett Posted March 11, 2013 Author Share Posted March 11, 2013 Save the following code as "logcleanup" and SCP it into /bin/ on the pineapple, that way you can run it straight from the SSH by executing 'logcleanup' in any directory you are, and you will be pleased to know, it should work from the WPS button. -Foxtrot Foxtrot, where I can find the script you mention? Quote Link to comment Share on other sites More sharing options...
Foxtrot Posted March 11, 2013 Share Posted March 11, 2013 Foxtrot, where I can find the script you mention? Sorry about that, post updated. -Foxtrot Quote Link to comment Share on other sites More sharing options...
Boba Fett Posted March 11, 2013 Author Share Posted March 11, 2013 Thanks! Quote Link to comment Share on other sites More sharing options...
Sebkinne Posted March 11, 2013 Share Posted March 11, 2013 Yeah, either his script or use the "Clear Cache" button in the advanced webUI. Quote Link to comment Share on other sites More sharing options...
Boba Fett Posted March 11, 2013 Author Share Posted March 11, 2013 In my case, that button apparently doesnt clean all logs. Quote Link to comment Share on other sites More sharing options...
Foxtrot Posted March 12, 2013 Share Posted March 12, 2013 (edited) In my case, that button apparently doesnt clean all logs. Hmm. doesn't seem to do it for me either... The problem seems to be that 'dnsspoof.log' and 'phish.log' were not in the advanced.php This can be fixed by adding : exec("echo ' ' > logs/dnsspoof.log"); exec("echo ' ' > logs/phish.log"); directly underneath : exec("echo ' ' > logs/ngrep-clean.log"); in /pineapple/pages/advanced.php -Foxtrot Edited March 12, 2013 by Foxtrot 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.