Category Archives: Articles

Signed Ghostscript PDF printer driver

When trying to install stock Ghostscript PDF print diver on a 64-bit Windows the OS requires the print driver to be signed and the installation fails (Add Printer dialog cannot be confirmed). You can disable this OS protection feature with a … Continue reading

Posted in Articles | Tagged , , | Leave a comment

How to use fail2ban with Terminal Servers (RDSH) farm

We are using haproxy for token redirected load balancing of a Remote Desktop Session Hosts farm and because the farm is exposed on the default RDP port (3389) it is subjected to constant brute-force attacks. These attacks besides being a … Continue reading

Posted in Articles | Tagged , , , | Leave a comment

Implementing preg_replace in VBScript

Here are a couple of wrapper VBScript functions that make using script’s built-in RegExp class similar to PHP’s preg_xxx family of functions. First a private helper function to initialize an instance of RegExp: This enables optionally to set flags of … Continue reading

Posted in Articles | Tagged , , , | Leave a comment

[VB6] Using WinInet to post binary file

Here are a couple of VB6 functions that can be used to upload a zip file through an http post request. Using ready-made Microsoft.XMLHTTP or WinHttp.WinHttpRequest.5.1 First the easy one, using XMLHTTP to do the actual work The biggest benefit of using … Continue reading

Posted in Articles | Tagged , , , , | 55 Comments

IPSec through NAT: Securing SQL Server remote connections

This quick tutorial will show you how to secure SQL Server access (or any other service) leveraging “raw” IPSec encryption in transport mode. Two batch scripts are used to setup server-side and client-side configuration of IPSec policy. This setup is … Continue reading

Posted in Articles | Tagged , , | 3 Comments