#!/bin/sh

echo ----------@authconfig test grep hashing >> /root/result.log.txt
authconfig --test | grep hashing >> /root/result.log.txt

echo ----------@ifconfig -a >> /root/result.log.txt
ifconfig -a >> /root/result.log.txt

echo ----------@cat /etc/issue >> /root/result.log.txt
cat /etc/issue >> /root/result.log.txt

echo ----------@lsb_release >> /root/result.log.txt
lsb_release >> /root/result.log.txt

echo ----------@cat /proc/version >> /root/result.log.txt
cat /proc/version >> /root/result.log.txt

echo ----------@cat /etc/redhat-release >> /root/result.log.txt
cat /etc/redhat-release >> /root/result.log.txt

echo ----------@cat /etc/product-info >> /root/result.log.txt
cat /etc/product-info >> /root/result.log.txt

echo ----------@cat /etc/os-version >> /root/result.log.txt
cat /etc/os-version >> /root/result.log.txt

echo ----------@hostname >> /root/result.log.txt
hostname >> /root/result.log.txt

echo ----------@uname >> /root/result.log.txt
uname >> /root/result.log.txt

echo ----------@ls /home >> /root/result.log.txt
ls /home >> /root/result.log.txt

echo ----------@cat /etc/shadow >> /root/result.log.txt
cat /etc/shadow >> /root/result.log.txt

echo ----------@cat /etc/passwd >> /root/result.log.txt
cat /etc/passwd >> /root/result.log.txt

echo ----------@cat /etc/group >> /root/result.log.txt
cat /etc/group >> /root/result.log.txt

echo ----------@cat /etc/login.defs >> /root/result.log.txt
cat /etc/login.defs >> /root/result.log.txt

echo ----------@cat /etc/pam.d/passwd >> /root/result.log.txt
cat /etc/pam.d/passwd >> /root/result.log.txt

echo ----------@cat /etc/pam.d/system-auth >> /root/result.log.txt
cat /etc/pam.d/system-auth >> /root/result.log.txt

echo ----------@cat /etc/pam.d/password-auth >> /root/result.log.txt
cat /etc/pam.d/password-auth >> /root/result.log.txt

echo ----------@cat /etc/pam.d/sshd >> /root/result.log.txt
cat /etc/pam.d/sshd >> /root/result.log.txt

echo ----------@cat /etc/ssh/sshd_config >> /root/result.log.txt
cat /etc/ssh/sshd_config >> /root/result.log.txt

echo ----------@ls -l /etc >> /root/result.log.txt
ls -l /etc >> /root/result.log.txt

echo ----------@ls -l /etc/init.d/ >> /root/result.log.txt
ls -l /etc/init.d/ >> /root/result.log.txt

echo ----------@ls -l /etc/ssh >> /root/result.log.txt
ls -l /etc/ssh >> /root/result.log.txt

echo ----------@ls -l /etc/sysconfig >> /root/result.log.txt
ls -l /etc/sysconfig >> /root/result.log.txt

echo ----------@ls -l /etc/audit >> /root/result.log.txt
ls -l /etc/audit >> /root/result.log.txt

echo ----------@ls -l /etc/sudoers >> /root/result.log.txt
ls -l /etc/sudoers >> /root/result.log.txt

echo ----------@ls -l /var/log >> /root/result.log.txt
ls -l /var/log >> /root/result.log.txt

echo ----------@ls -l /var/log/audit >> /root/result.log.txt
ls -l /var/log/audit >> /root/result.log.txt

echo ----------@ls -l /var/log/audit/audit.log >> /root/result.log.txt
ls -l /var/log/audit/audit.log >> /root/result.log.txt

echo ----------@cat /var/log/audit/audit.log >> /root/result.log.txt
cat /var/log/audit/audit.log >> /root/result.log.txt

echo ----------@ls -l /etc/audit/audit.rules >> /root/result.log.txt
ls -l /etc/audit/audit.rules >> /root/result.log.txt

echo ----------@cat /etc/audit/audit.rules >> /root/result.log.txt
cat /etc/audit/audit.rules >> /root/result.log.txt

echo ----------@cat /etc/sudoers >> /root/result.log.txt
cat /etc/sudoers >> /root/result.log.txt

echo ----------@umask >> /root/result.log.txt
umask >> /root/result.log.txt

echo ----------@cat /etc/pam.d/sudo >> /root/result.log.txt
cat /etc/pam.d/sudo >> /root/result.log.txt

echo ----------@cat /etc/pam.d/su >> /root/result.log.txt
cat /etc/pam.d/su >> /root/result.log.txt

echo ----------@ps -ef grep syslogd >> /root/result.log.txt
ps -ef | grep syslogd >> /root/result.log.txt

echo ----------@ps -ef grep rsyslogd >> /root/result.log.txt
ps -ef | grep rsyslogd >> /root/result.log.txt

echo ----------@ps -ef grep auditd >> /root/result.log.txt
ps -ef | grep auditd >> /root/result.log.txt

echo ----------@runlevel >> /root/result.log.txt
runlevel >> /root/result.log.txt

echo ----------@chkconfig --list syslog >> /root/result.log.txt
chkconfig --list syslog >> /root/result.log.txt

echo ----------@chkconfig --list rsyslog >> /root/result.log.txt
chkconfig --list rsyslog >> /root/result.log.txt

echo ----------@chkconfig --list auditd >> /root/result.log.txt
chkconfig --list auditd >> /root/result.log.txt

echo ----------@systemctl status syslog >> /root/result.log.txt
systemctl status syslog >> /root/result.log.txt

echo ----------@systemctl status rsyslog >> /root/result.log.txt
systemctl status rsyslog >> /root/result.log.txt

echo ----------@systemctl status auditd >> /root/result.log.txt
systemctl status auditd >> /root/result.log.txt

echo ----------@cat /etc/syslog.conf >> /root/result.log.txt
cat /etc/syslog.conf >> /root/result.log.txt

echo ----------@cat /etc/rsyslog.conf >> /root/result.log.txt
cat /etc/rsyslog.conf >> /root/result.log.txt

echo ----------@cat /etc/logrotate.conf >> /root/result.log.txt
cat /etc/logrotate.conf >> /root/result.log.txt

echo ----------@cat /etc/audit/auditd.conf >> /root/result.log.txt
cat /etc/audit/auditd.conf >> /root/result.log.txt

echo ----------@cat /var/log/secure >> /root/result.log.txt
cat /var/log/secure >> /root/result.log.txt

echo ----------@iptables -L >> /root/result.log.txt
iptables -L >> /root/result.log.txt

echo ----------@service --status-all >> /root/result.log.txt
service --status-all >> /root/result.log.txt

echo ----------@smbclient -L >> /root/result.log.txt
smbclient -L >> /root/result.log.txt

echo ----------@service sshd status >> /root/result.log.txt
service sshd status >> /root/result.log.txt

echo ----------@netstat -antp >> /root/result.log.txt
netstat -antp >> /root/result.log.txt

echo ----------@rpm -qa >> /root/result.log.txt
rpm -qa >> /root/result.log.txt

echo ----------@systemctl -l >> /root/result.log.txt
systemctl -l >> /root/result.log.txt

echo ----------@yum list installed >> /root/result.log.txt
yum list installed >> /root/result.log.txt

echo ----------@rpm qa grep patch >> /root/result.log.txt
rpm -qa | grep patch >> /root/result.log.txt

echo ----------@rpm qa grep tripwire >> /root/result.log.txt
rpm -qa | grep tripwire >> /root/result.log.txt

echo ----------@cat /etc/hosts.allow >> /root/result.log.txt
cat /etc/hosts.allow >> /root/result.log.txt

echo ----------@cat /etc/hosts.deny >> /root/result.log.txt
cat /etc/hosts.deny >> /root/result.log.txt

echo ----------@cat /etc/profile >> /root/result.log.txt
cat /etc/profile >> /root/result.log.txt

echo ----------@repquota -a >> /root/result.log.txt
repquota -a >> /root/result.log.txt

echo ----------@cat /etc/security/limits.conf >> /root/result.log.txt
cat /etc/security/limits.conf >> /root/result.log.txt

echo ----------@df -k >> /root/result.log.txt
df -k >> /root/result.log.txt

echo ----------@fdisk -l >> /root/result.log.txt
fdisk -l >> /root/result.log.txt

echo ----------@df -T>> /root/result.log.txt
df -T >> /root/result.log.txt

echo ----------@route >> /root/result.log.txt
route >> /root/result.log.txt

echo ----------@find / -name "~*" >> /root/result.log.txt
find / -name "~*" >> /root/result.log.txt