These are some of the programs I've written or contributed to that I
can recall right now.
- security-audit.sh is a shell script to perform some basic security checks of your system, highlight things that seem anomalous, and give you a report. It is licensed under the GPL. If it breaks, feel free to keep both pieces. Oh, and it's written for Debian, but feel free to modify it for your own needs. I hope you find it useful.
- This is version 0.02. Changes since v0.01 (the unnumbered version that was here before) include telling you which Debian package a SUID or SGID file belongs to, not showing the main root account during the /etc/passwd check, some improved logic, running nmap and netstat against the local system, and probably some other stuff that I'm too tired to remember right now. If you want to know more about what it does, then UTSL; I tried to put appropriate comments in the code. Let me know what you think.
- df-analyze (v0.10), a
Perl script to generate statistics from a log file of the format:
df of MM.DD (Two-digit month and two-digit day)
<output of the df command>
- rename-mp3s, a
small Perl program designed to rename (what else?) MP3 files based on their
ID3 tags. (You
know, I just went and found that page, and it seems that the person who
posted that had written something similar to this program for a similar
reason.) In order to use this, you will need the MPEG::MP3Info
Perl module (don't forget the readme!),
available from the MPEG
section of CPAN or as
libmpeg-mp3info-perl in your Debian distribution ("apt-get install
Burton, David Steuber, and I
have written a set of utilities for generating documentation for Perl
modules. Download them here. If you prefer,
have a look at the README. (I am the
principal author of lineage.) You can
also browse the files online if you'd like.
- owrite, a shell program
designed to safely use a file for output redirection and command input
simultaneously. An example of why this is useful:
$ ls -l lifeswork.c
-rw-r--r-- 1 user group 3582956 Nov 20 14:40 lifeswork.c
$ sed -e s/$badcode/$goodcode/ lifeswork.c >lifeswork.c
$ cat lifeswork.c
$ ls -l lifeswork.c
-rw-r--r-- 1 user group 0 Nov 20 14:40 lifeswork.c
bash: @$%$^: command not found
With owrite, you can avoid this heartache.
$ owrite lifeswork.c sed -e s/$badcode/$goodcode/
When you use output redirection, the Unix shell immediately opens the file
for writing. This necessitates using a temporary file if the input and
output files are the same. owrite simply automates the
I have only tested this shell program with bash, but it might work
with other Bourne or Bourne-style shells. If it does for you, please let
me know so I can note that here.
Credit is given to Brian W. Kernighan and Robert Pike for The
UNIX Programming Environment. This program is based on an example
I remember from that book.
Valid HTML hand-coded by email@example.com
Last modified Sat Mar 1 09:17:59 MST 2003