Line 1: <?php
Line 2: if ($_SERVER['REQUEST_URI'] == $_SERVER['PHP_SELF'])
Line 3: exit();
Scripts's archives
Protect Your PHP Includes
Squid Log Parsing
The squid access.log file is useful for determing where your users are going when using http/80. These log files are generally rotated daily and each contain a LOT of data. In my organization, this is in the realm of 2 GB per day. So how do you find what you are looking for? I use [...]
Bad Captchas
I added a captcha plugin for my blog and it has pretty much eliminated the random spamming. However, take a look at this and tell me what purpose this serves:
Now it’s a DOS. Great. It’s almost as bad as this one.
Why does it have to be text? Why can’t a captcha be made using random [...]
FTP Backup Script
A script used to backup a site or other FTP contents to a folder and then archive it. Deletes files that are more than 60 days old.
#!/usr/bin/perl
#
# Download all contents via FTP using ncftpget
# Version 0.1 RDG 20080421
my $configdir = "/usr/local/scripts/ftpscript";
my $year = (localtime)[5] + 1900;
my $month = (localtime)[4] + 1;
my $day = (localtime)[3];
if ($month [...]
Simple PHP POST Filter
Here is a simple function for filtering out bad characters from user input. In most of my uses, I don’t care if the data is actually present so I simply remove it. You could just as easily replace these bad characters with their encoded equivalents if you really wanted to allow them (such as HTML).
function [...]
Featured Articles
Protect Your PHP Includes...
Line 1: <?php Line 2: if ($_SERVER['REQUEST_URI'] == $_SERVER['PHP_SELF']) Line 3: exit(); [+]
Default Installations...
What is it with people leaving default installations public facing? They must think I don't [+]
Account Lockout in Linux - PAM Tally...
Some pretty basic functions are missing from most of the *-nix systems by default. One [+]
Categories
Archives
- November 2008 (1)
- October 2008 (4)
- September 2008 (1)
- August 2008 (3)
- July 2008 (1)
- June 2008 (3)
- May 2008 (2)
- April 2008 (3)
- March 2008 (2)
- February 2008 (3)
- January 2008 (2)
- December 2007 (3)
Meta
Google Ads
Recent Articles
- Protect Your PHP Includes
- Default Installations
- Account Lockout in Linux - PAM Tally
- Squid Log Parsing
- Oops… Bring out the backup.
- CISSP Begins…
- Outlook Organization
- Motorcycle Helmet Laws
- America needs more people like this asap
- American Musical - What you should not do.
Popular Tags
- beer browser ceh cell phones certs conversion cookies domain downloads firefox gadgets giac hacking incident response ipod isc linux minefield money mp3 pdf Perl php pix politics prelogic privacy programming registrars review sanitize input sans satillite radio scripting Scripts securecrt security sirius spam studying tftp toolkit validation vulnerability scanner web logs
