Archive log files using logrotate preremove

Saturday, 12 March 2016

Why? Keep log files for as long as required, whilst mitigating the risk of the archive growing to fill the device holding /var/log.

How? Using the preremove directive with logrotate version 3.8.4 and higher. To Paraphrase the logrotate manpage: "The lines between preremove and endscript are executed … more

On sending encrypted emails

Friday, 2 August 2013

The information leaked by Edward Snowden reveals that the use of encryption (such as PGP encrypted email) is an "anomalous event" which can be used to "find a strong-selector for a known target" or "find a cell of terrorists that has no connection to known strong-selectors" (see p15). What this … more

How To Enable the PHP Fileinfo Extension under Windows

Tuesday, 30 November 2010

These five steps will hopefully help you to enable the Fileinfo extension for PHP under Windows. These steps assume you have the extension installed (e.g. php\ext\php_fileinfo.dll). They worked for me using Xampplite 1.7.1 and PHP 5.2.9 more

Nmap 5 - An Introduction

Thursday, 16 July 2009

Nmap 5.00 is the latest and greatest version of what is arguably the most useful network utility ever created and it's now available, for all major computer operating systems, from the download page at Nmap is Free and Open Source Software.

The previous stable release of Nmap … more

Enable apache mod_userdir on Debian

Sunday, 12 July 2009

Today I wanted to enable mod_userdir for apache2 on Debian 5.0 (Lenny).

Here's what I did:

$ sudo cp /etc/apache2/mods-available/userdir* /etc/apache2/mods-enabled/
$ sudo /etc/init.d/apache2 restart

That was easy! The userdir.conf was already set-up to disable this feature for user root and to … more

Nmap 4.85BETA5 and Conficker detection

Monday, 30 March 2009

UPDATE 2009-04-01: Nmap 4.85BETA6 has been released.  A few tweaks have been made to the smb-check-vulns.nse script which can be used to detect hosts compromised with the Conficker malware.  The ouput from the script is improved and makes it clearer what is the status of the scanned host … more

Install BackTrack 4 beta on VMware 5.5.x from the ISO image

Friday, 6 March 2009

Image of the Logo for Backtrack 4

BackTrack is a Linux distribution which comes configured with a set of tools and a menu layout designed to assist with pentesting. The distribution is available as an ISO image which can be burned to a CD (although, at 854MB it's a bit big for most CDs) becoming a bootable … more

firefox for browsing, firefox for auditing

Wednesday, 25 February 2009

When using a web application proxy, such as those found in WebScarab, Paros Proxy or Burp Suite, it's useful to have a second firefox window open which uses a different user profile set-up to connect through the local web proxy server.  Having a separate instance of firefox running a different … more

Nmap 4.85 BETA2

Saturday, 31 January 2009

UPDATE: 3 February 2009 Nmap 4.85 BETA3 is now available - this release fixes a few minor issues and contains a couple of small tweaks.

Version 4.85 BETA2 of Nmap, everyone's favourite network security scanner, has been released.  This version includes a huge amount of improvements, bug fixes and … more

Modify the PATH Environment Variable in Windows

Thursday, 22 January 2009

You know what it's like when you need to be able to execute a particular command, perhaps one you've written yourself, from any Windows XP command window without having to specify the full path to the executable. The directory could be added to the PATH environment variable, but getting to … more