# sectoolkit.py [args]
|
Welcome!!!
This is a alpha release of SecurityToolkit
SecurityToolkit is an automated program to
speed up the use of OSSTMM.
You can perform an test (a), query *all* database (q),
query the database by field with regex (r) or delete a row (d):
(^C exits)
a: test
d: delete row
q: query
r: query by regex
sectoolkit prompt>
|
0 - Cron
1 - Inetd
2 - maurochecklist
3 - security-update-check
*****************
Make your choice:
|
Every time you launch sectoolkit it will check first for expired tests and
eventually dumps a warning message to stdout.
If you want a more complete resume of expired tests you can query database.
The '-R' option shows show test's expiration time.
!!!!!!!!!!!!!! Test below expired !!!!!!!!!!!!!!
** 0 **
Cron check test spawned at: Thu Jan 1 22:22:24 2004
Expiration at: Sat Jan 31 22:22:24 2004
** 1 **
Cron check test spawned at: Tue Aug 3 10:40:01 2004
Expiration at: Thu Sep 2 10:40:01 2004
** 2 **
Mauro Fast Security CheckList test spawned at: Tue Aug 3 11:26:30 2004
Expiration at: Thu Sep 2 11:26:30 2004
Which row do you want to delete?
--------------------------------
'q' exits & commits>
|
# cat sectollkitZODB/deleted-rows.sec
Tue Aug 3 11:26:43 2004
Expiration time: Thu Sep 2 11:26:43 2004
Plugin name: Inetd check
Primary key: Tue Aug 3 11:26:43 2004
Machine id: 0
Error id: 5
Error description: Warning: there are active services
Error long description: Warning: there are active services started by inetd.
Suggest: Edit your inetd.conf file.
Admin name: tmp
Admin email: tmp<AT>cmlug.org
Organization:
License: GPL
License description: you can find it at www.gnu.org
md5 checksum: no
Key: no
Plugin type: 0
Action description: Inetd check
Action long description:
This plugin will examinate your inetd configuration and
permissions of inetd files.
Disclaimer: This is experimental code..
Expected result:
Improve the inetd configuration.
Tasks:
# ENSURE that the permissions on this file are set to 600.
# ENSURE that the owner is root.
# DO disable any services which you do not require.
Reviewing:
You should edit the /etc/inetd.conf and /etc/xinetd.conf files.
Post exec:
Warning!! You should execute again this test in the next months!
Module:
Module bin:
Executable: 1
RAV cycle: 30
RAV degradation: 5
Checksum:
1b73d5851c5242a3d66dca8e053b1769
*********************************************************
|
Option 'q' will simply dump all database rows into stdout, so stream is piped to less.
Option 'r' will provide a full regular expression text matching, see this
article
(in italian) if you want a quick description of regex.
See table_5 below.
****************************************
Query ZODB database by field with regex:
****************************************
Now you have to insert a regex that matches one of the field to query database.
Enter a regex:
^$.*\[](|) >
|
Do you want to search for primary keys (date and time) or
for other fields?
p = primary key
o = other
p/o >
|
Whatever option you'll choose, the text matching will be performed an all database rows. The row that will match with your regex will be fully displayed.
Speech support
If you want speech support launch sectoolkit with the '-S' option; this
option requires the festival package installed available at
http://www.cstr.ed.ac.uk/projects/festival/download.html.
This document is not yet complete, please come back soon ....
Feedback:
Send us your comments and suggestions:
sracatus
|
tmp