Snoopy Logger
Link: http://hackersome.com/p/a2o/snoopy
# yum install socat
# cd /usr/src
# wget http://source.a2o.si/download/snoopy/snoopy-2.4.4.tar.gz
# tar -zxvf snoopy-2.4.4.tar.gz
# mv snoopy-2.4.4 snoopy
# cd snoopy
# ./configure --with-message-format="[%{hostname} %{datetime}][usr=%{username} uid=%{uid} cwd= %{cwd}]: %{cmdline}" --with-default-output=file:/var/log/snoopy.log
# make
# make install
# make enable
# ./util/snoopy-enable
# reboot
# chmod 722 /var/log/snoopy.log
Log file: /var/log/snoopy.log
# yum install socat
# cd /usr/src
# wget http://source.a2o.si/download/snoopy/snoopy-2.4.4.tar.gz
# tar -zxvf snoopy-2.4.4.tar.gz
# mv snoopy-2.4.4 snoopy
# cd snoopy
# ./configure --with-message-format="[%{hostname} %{datetime}][usr=%{username} uid=%{uid} cwd= %{cwd}]: %{cmdline}" --with-default-output=file:/var/log/snoopy.log
# make
# make install
# make enable
# ./util/snoopy-enable
# reboot
# chmod 722 /var/log/snoopy.log
Log file: /var/log/snoopy.log
Nhận xét
Đăng nhận xét