PortaboomThe contents of this website are Copyright (c)2006 by Brian Manning <brian at antlinux dot com>. Please do not reuse any of the content on this website without permission from the author.
sh gnupg-batch.sh --wordlist ~/diceware.en.txt --dicepath ~/src/perl_scripts \ --output /dev/shm/output --count 5100 --tempdir /dev/shm/keys --tempnum 510 \ --challenge
for DIR in *;do echo "ls of $DIR is:"; ls $DIR | wc -l; done
ls -t sorts the directory listing by most recent
ls -t source_dir/ | grep -v keylist.txt | head -n 1000 \
| xargs -i -t mv source_dir/{} target_dir/{}
tail -n 500 grabs the last 500 entries from the key file
tail -n 500 source_dir/keylist.txt > target_dir/keylist.txt
source_dir and prune out the keys that have been used from the keylist file; HINT: look for the oldest filename in target_dir, search for that key ID # in the keylist, then delete to the end of the source_dir keylist file
See also start to finish key generation
losetup to mount the partion meant for LVM2 via the loopback interface, losetup for some reason looks for root's home directory; in a normal system, this directory is obtained by making a call to libnss (part of GNU libc). Since libnss is not on this system, the equivalent functions were enabled in busybox ( Login/Password Management Utilities -> Use internal password and group functions rather than system functions ), but they didn't work, the NSS utils need to be part of the image.
ext2/ext3 filesystem utilities want a metric fuckton of extra libraries; busybox has some ext2 functionality built in. Turn it on and use it instead of bundling libraries?
init to run from initramfs; the rcS script is now put on the initramfs image as /init, and in the /etc/inittab file the :sysinit: stanza was removed so that the rcS script started up the system, and also executed busybox init should the user call for it with a run=init flag as part of the kernel boot arguments
switch_root.c source file does too many dissimilar checks on things like /init and whether or not the root filesystem is a TMPFS or RAMFS filesystem. I ended up separating the checks and making multiple checks in order to better diagnose issues with how the system is set up prior to running switch_root. The patched source file lives in $CVS/antlinux/builds/antlinux/switch_root.c.
farkhttpd.pl reveals that something is hangning Perl when it has the socket open in SSL mode
tftp directory to locations outside of that directory since you're chroot'ing tftpd; when the daemon starts and executes chroot, it will no longer be able to resolve symlinks that point to files outside of the chroot jail
configure string for simple CGI functionality; the resultant PHP binary was about 11 megabytes
./configure --disable-short-tags --disable-libxml --disable-dom \ --disable-simplexml --disable-xml --disable-xmlreader --disable-xmlwriter \ --without-pear --with-config-file-path=/etc/php
farkhttpd.pl is an interesting idea, but there are already webservers out there that work, why re-invent the wheel
perl -c to make sure it will compile, then run it as a CGI under thttpd and hope you get a meaninful error message.
use directive to load CGI::Carp helps a lot with thttpd:
use CGI::Carp qw(fatalsToBrowser);
farkhttpd.pl is a SSL-enabled webserver with a CGI script that accepts the keys and authentication, and dumps them after the filesystem is mounted. farkhttpd.pl is no longer being developed, as the webserver wheel should not be re-invented.
http://www.someserver.com/?key=0x1234abcd, the system then brings up a key passphrase screen and prompts you to enter the passphrase.
build_apache2.txt file in CVS
/proc/uptime, how should it be parsed?)
farkhttpd.pl log the number of connection attempts, and print the log on the screen or with a special URL/password combination
farkhttpd.pl todos: