EDIT - Mark here, sorry for post hijacking. I figure I'd put this link right in the first post so people can grab the file easily. The current audit_linux.sh is on Launchpad, [url=http://bazaar.launchpad.net/~ihashacks/oav2/linux-audit-additions/view/head:/other/audit_linux.sh]here[/url].
Now back to your regular programming
--------------------------------------------------------------------------------------
Hi everyone, I started working on a Linux audit script. I gave it a try log time ago on an early beta, but now I'm trying to start again based on the Windows Version 11.
At this moment the script just reports the system info, bios and processor info. I added a new switch check_commands=y just to check the location of the required commands and exit... it is pretty early stuff, but at least I can report my Linux boxes on Beta 7.3.
Since I'm using dmidecode to get some info the script
requires root access.
Copy the audit_linux script on your preferred location (/usr/share/audit_linux.sh is what I'm using)
#cd /usr/share
#chown root.root audit_linux.sh
#chmod u+x audit_linux.sh
Now as a normal user, from your home directory:
[code]$ su -c "/usr/share/audit_linux.sh check_commands=y"
$ su -c "/usr/share/audit_linux.sh create_file=y"
$ su -c "/usr/share/audit_linux.sh submit_online=y url='http://server/oav2/index.php/system/add_system'"[/code]
or
[code]$ sudo "/usr/share/audit_linux.sh create_file=y"
$ sudo "/usr/share/audit_linux.sh create_file=y"
$ sudo "/usr/share/audit_linux.sh submit_online=y url='http://server/oav2/index.php/system/add_system'"[/code]
As new versions are ready I will keep posting.
Enjoy!
_________________
____________________________
Andrés Arenas Vélez
http://www.arenasa.com/