boran / lusas Goto Github PK
View Code? Open in Web Editor NEWLinux/Unix Security Auditing Scripts: Lusas
Linux/Unix Security Auditing Scripts: Lusas
What steps will reproduce the problem?
1. Run lusas
2. ls -ald /dev/null
crw------- 1 root root 1, 3 2008-05-28 12:17 /dev/null
To fix:
chmod a+rw /dev/null
This is a critical issue as it will break some applications (e.g. cacti for
me). Lusas must not make any systems changes.
Original issue reported on code.google.com by [email protected]
on 31 Dec 2008 at 12:23
Check and report crypt method for passwords
Original issue reported on code.google.com by [email protected]
on 27 Nov 2009 at 4:42
When run on a clients Sun Cluster a script in /etc/init.d/ reboots the server.
Make sure all scripts in the directory have a "case $1" before calling it
Original issue reported on code.google.com by epablo%[email protected]
on 16 Sep 2010 at 10:48
httpd version, is not correctly shown in the report on Fedora 10
httpd version:
httpd config ...
Original issue reported on code.google.com by epablo%[email protected]
on 27 Jan 2009 at 1:04
What steps will reproduce the problem?
1. run the script
2. read the results from env
What is the expected output? What do you see instead?
You should be able to check the PATH set by the root user, instead it is
overwritten by the script.
.
Original issue reported on code.google.com by epablo%[email protected]
on 22 Jan 2009 at 3:00
What steps will reproduce the problem?
./lusas-basic.sh -c on a specific Ubuntu 8.04 system
What is the expected output? What do you see instead?
It sits there hanging. The last entry in lusas-basic.log is "Running
Services Module"
services contains
----- snip --
>>>>>>>>>> Services ----------
---------- Services status ----------
Running services -----
Usage: /etc/init.d/alsa-utils {start [CARD]|stop [CARD]|restart
[CARD]|reset [CARD]}
Usage: bootmisc.sh [start|stop]
Usage: checkfs.sh [start|stop]
Usage: checkroot.sh [start|stop]
Usage: /etc/init.d/halt start|stop
Usage: hostname.sh [start|stop]
Usage: /etc/init.d/killprocs start|stop
Usage: /etc/init.d/libpam-foreground {start|stop|restart|force-reload}
Usage: /etc/init.d/makedev {start|stop|restart|force-reload}
Usage: mountall-bootclean.sh [start|stop]
Usage: mountall.sh [start|stop]
Usage: mountdevsubfs [start|stop]
Usage: mountvirtfs [start|stop]
Usage: mountnfs-bootclean.sh [start|stop]
Usage: mountoverflowtmp [start|stop]
Usage: mountall-mtab.sh [start|stop]
Usage: /etc/init.d/procps {start|stop|restart|force-reload}
Usage: /etc/init.d/rc.local start|stop
ifup: interface lo already configured
mount: you must specify the filesystem type
--- snip -----
Analysis: The affected code is:
if [ "$os" = "Linux" ] ; then
$echo "Running services -----"
for i in `ls /etc/init.d/*`; do $i status; done |grep running 2>
/dev/null
so many startup scripts don't have a "status" parameter, maybe do an echo
of the startupscript name before doing a status, or just comment out this
code for now?
Original issue reported on code.google.com by [email protected]
on 31 Dec 2008 at 10:33
Looks good.
Tested on Ubuntu 8.04, as:
./lusas-basic.sh -c
./lusas-basic.sh -e -s
Basic:
move Memory Info to kernel?
move ">>>>>>>>>> Networking Information ----------" and all its
subsections to "kernel" or move ps -ef & lsof from kernel back in here.
move "Java version" to services
Move >>>>>>>>>> Software, Packages ---------- into a separate file as the
output can be very long.
I've also updated the README and home page on google.
Original issue reported on code.google.com by [email protected]
on 31 Dec 2008 at 10:10
Lots of services answer with a PID
Language issues can also come up, can't assume all boxes are in english
This is where the change should be made:
### * Services status
...
if [ "$dist" = "redhat" ] ; then
$echo "Running services -----\n"
for i in `ls /etc/init.d/*`; do $i status; done |grep
running 2> /dev/null
Original issue reported on code.google.com by epablo%[email protected]
on 23 Jan 2009 at 9:19
Check and make sure that netstat is run with -n
Original issue reported on code.google.com by epablo%[email protected]
on 23 Jan 2009 at 8:24
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.