Kavinda Munasinghe’s Blog Rotating Header Image

Posts Tagged ‘Scripting’

Escaping SQL injection attacks

Those nasty SQL Injection attacks have not stopped. They’ve probably just started!
If you’re still in the process of going through your SQL code and making sure it’s not susceptible to SQL injection attacks that means your websites are still wide open to the attack.
However not to worry, the Microsoft IIS team has come to the [...]

Attacked!

The month of May seems to be a time for many SQL injection attacks around the world. Unfortunately one of the sites affected by these attacks happens to be one that is administrated by a friend of mine. As it so happens the site was also developed by a friend and I’m sure we can have [...]

How to: Delete old [log] files.

Here is a little command that I came across when I was looking for a quick and easy way to delete some old log files from my system.

C:\>forfiles /?
FORFILES [/P pathname] [/M searchmask] [/S]         [/C command] [/D [+ | -] {MM/dd/yyyy | dd}]
Description:    Selects a file (or set of files) and executes a    command [...]

Batch files and vbScripts

Recently a friend needed to pass a value from a vbscript to a batch file which called the vbscript. I’ve never had to do this before so after a little bit of head scratching, googling and few rounds of trial/error we managed to solve the problem.In the process we came across three ways to get [...]