-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathunix-linuxlogs.py
59 lines (48 loc) · 2.13 KB
/
unix-linuxlogs.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
import os
import commands
import cmd
'''
Nohidy is a free software you could redistribute it and/or modify it under the terms of the
GNU General Public License as published by the Free Software Foundation either version 3.0 of the License or any later version.
Nohidy is free of charge but we accept donations(it would help if you donated both
to flipchan and the Free Software Foundation).
Nohidy is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY :
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE see the GNU General Public License along with Nohidy. if not see <http://www.gnu.org/licenses>.
__author__ = "Filip kalebo"
__copyright__ = "Free Software Foundation"
__license__ = "GPL"
__version__ = "3.0"
__maintainer__ = "Filip kalebo"
__email__ = "flipchan@riseup.net"
__status__ = "still in developing"
'''
#unix n linux logfile catcher
print"Checks your unix n linux logs and runs the rkhunter and chkrootkit"
print"U need rkhunter plus chkrootkit for this"
viewlastlog =raw_input("Wanna check the quick recent log Yes/No?: ")
if viewlastlog=="No":
print"Oki dokey"
else:
os.system("lastlog")
print"lets copy the kernal logfile in to this dir so we could upload it later"
print"for exampel enter the folder of nohidy"
kernallogz =raw_input("Enter current directory: ")
print"fetching kernal logfile"
os.system("cp /var/log/kern.log " + kernallogz)
print"moving to authentication logfile master"
authlogfilee =raw_input("Master do you want me to send my mens to get the authentication logfile Yes/No: ")
if authlogfilee=="Yes":
os.system("cp /var/log/auth.log " + kernallogz)
rkhunter =raw_input("Do you want me to go and get rkhunter master?Yes/No: ")
if rkhunter=="Yes":
print"I am updateing and running rkhunter master"
os.system("rkhunter --update && rkhunter --check")
else:
print"procceding to next stage"
chkrootkit= raw_input("Master do you want me make an check?Yes/No: ")
if chkrootkit=="Yes":
print"Running chkrootkit master"
os.system("chkrootkit")
else:
print"i am exiting master"