One Hat Cyber Team
Your IP :
216.73.217.15
Server IP :
157.15.65.100
Server :
Linux 157-15-65-100.cprapid.com 5.14.0-362.24.2.el9_3.x86_64 #1 SMP PREEMPT_DYNAMIC Sat Mar 30 14:11:54 EDT 2024 x86_64
Server Software :
Apache
PHP Version :
8.2.28
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
...
/
clean
/
View File Name :
README.md
# Description Linux Log Cleaner  This tool is used to remove log traces. `/var/log/btmp`, `/var/run/utmp`, `/var/log/wtmp`, `/var/log/lastlog`. # CookBook ## utmp clear `/var/run/utmp` to hide your login info in command: `w`:  then we want to hide the user: `macr0phag3`:  result:  ## wtmp clear `/var/log/wtmp` to hide your info in command: `last`. just like `utmp` ## btmp clear `/var/log/btmp` to hide your info in command: `lastb`. just like `utmp` ## lastlog tamper/clear the records in `/var/log/lastlog`. you can use command: `lastlog` to check it out:    or just clear the record:   ## others ``` usage: LLC.py [-h] -l {0,1,2,3} [-u USERNAME] [-i IP] [-t TTYNAME] [-f FILENAME] [-d] [-m] [-mtime MTIME] [-mstime MSTIME] [-mtty MTTY] [-mip MIP] optional arguments: -h, --help 显示帮助信息 -l {0,1,2,3}, --log {0,1,2,3} 指定修改的日志文件。 0:btmp; [1:utmp]; 2:wtmp; 3:lastlog -u USERNAME, --username USERNAME 根据用户名匹配记录 -i IP, --ip IP 根据 ip 匹配记录 -t TTYNAME, --ttyname TTYNAME 根据 tty 匹配记录 -f FILENAME, --filename FILENAME 如果日志文件不在正常的位置或者不是正常的名字,需要给出具体的路径(包括文件名) -d, --debug 调试模式会输出一些详细的东西。 -m, --mode 默认为清空操作,加了此参数为修改操作(仅用于 lastlog) -mtime MTIME **仅在操作 lastlog 时使用** 指定修改后的时间。时间格式为:"1997-01-01 08:00:00" -mstime MSTIME **仅在操作 lastlog 时使用** 指定修改后的。时间格式为:时间戳 -mtty MTTY **仅在操作 lastlog 时使用** 指定修改后的 tty:pts/1 -mip MIP **仅在操作 lastlog 时使用** 指定修改后的 ip:192.168.1.1 ``` just run `python LLC.py -h` :P # Version The latest version: _2018.10.30 10:41:03_ # Dependencies - Py 2 or 3 - ROOT :P  # TODO - [x] `help list`. _2018.10.29 14:03_ - [x] fix the bug of lastlog. _2018.10.29 21:03_ - [X] `Print` func. _2018.10.29 22:03_ - [x] colored. _2018.10.29 22:10 PM_ - [x] compatible with py3.x. _2018.10.30 10:38:36_ - [x] verbose level 2. _2018.10.31 14:47:59_ - [x] replace "" with [empty]. _2018.10.31 14:53:57_ - [x] add func: tamper lastlog time. _2018.10.31 20:16:25_ - [x] add verbos level 0. _2018.10.31 20:30:23_ - [x] README pics. _2018.10.31 22:03:49_ - [x] LOGO. _2018.10.31 22:25:00_ - [x] add logfile: `/var/log/btmp`. _2018.11.2 13:45:04_ - [x] show record's time in log [0, 1, 2]. _2018.11.2 13:46:58_