Jump to content

Cleann all logs?


Boba Fett

Recommended Posts

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 by Foxtrot
Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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 by Foxtrot
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...