Monthly Archive: August 2009

Aug 31

Multi-Page Offline (x)HTML Validation

@Clarkee21 was looking for one, seems there are many online versions available and many single-page versions available but less easy to find are offline whole site validators. So I did a very simple one in PHP. You need to install the htmlhelp validating proggie… sudo apt-get install wdg-html-validator Then save this as validate.php into the …

Continue reading »

Aug 23

PHP Redirect Script While Retaining Variables

That’s a long winded title isn’t it, but the point is this. I sometimes want to redirect different users to different pages of a site, however using a regular header() redirect meant that you weren’t passing through any $_GET variables as they came in. So I wrote this small workaround script to forward whatever GET …

Continue reading »

Aug 17

Webgeekery

I’ve been doing some webfoolery over the past week or so. Firstly I registered and started working on the missions in HackThisSite. What a brilliant site it is, I was up to level 3(Apprentice) when they, somewhat ironically, had to restore the site to a backup because of an exploit discovery! If you are at …

Continue reading »

Aug 05

Linux File Shredder

Here’s a bash script that does exactly what it says on the box. the key line is shred -uz *.* which tells linux to remove all files that have extensions from the folder from which you are running the command. It overwrites the files 26 times with jargon, then recursively renames the files with decreasing …

Continue reading »