Ruslan Ulanov’s Codeshack

The developer’s notebook

18 Ways to Kill Your Process

2 comments

Advanced Process Termination utility from Diamond Computer Systems Pty. Ltd. provides 18 unique process attacks:

  • 2 kernel-mode termination techniques
  • 12 user-mode process termination techniques
  • 2 suspension techniques
  • 2 fatal crash techniques

This arsenal makes APT ideal for testing the resistance of software to termination attacks, testing the configuration of your own security programs, as well as allowing you to terminate stubborn software that simply refuses to die.

Kernel Kill #1 – Attempts to terminate the process from a driver using the kernel-level ZwTerminateThread function against every thread in the target process.
Main functions: ZwTerminateThread (ntoskrnl.exe)

Kernel Kill #2 – Attempts to terminate the process from a driver using the kernel-level ZwTerminateProcess function against the target process.
Main functions: ZwTerminateProcess (ntoskrnl.exe) Read the rest of this entry »

Written by Ruslan Ulanov

July 31st, 2008 at 7:28 pm

Posted in C/C++

Tagged with

Fixing IE6/IE7 style issues

leave a comment

Check out Cascading Style Sheet Compatibility in Internet Explorer 7 article at MSDN.

It explains how to address IE7 compatibility issues in CSS.
In short, there were several bugs in CSS parser of IE6. Some CSS constructs (filters) that were applied by IE6 are ignored by IE7 and above – like “* html”. We could take advantage of these broken filters to create IE6-specific rules.

Read the rest of this entry »

Written by Ruslan Ulanov

May 27th, 2008 at 7:40 pm

Posted in CSS,HTML

Tagged with

IRT.org Knowledge Base

leave a comment

IRT.org has a nice collection of FAQs on DHTML, JS, Java, CSS, etc.

http://www.irt.org/faq.htm

Written by Ruslan Ulanov

May 5th, 2008 at 7:07 pm

Use CSS to create an image map

leave a comment

TechRepublic.com has an article on using CSS to create an image map. Nice and simple technique though it won’t work if you need to define complex shapes (like state boundaries on the map of USA, etc.).

Written by Ruslan Ulanov

April 29th, 2008 at 8:37 pm

Posted in CSS,HTML

Javascript equivalent for PHP’s functions

leave a comment

Mr. Kevin van Zonneveld has a nice collection of PHP functions ported to JS.

For example sprintf:

Read the rest of this entry »

Written by Ruslan Ulanov

March 13th, 2008 at 8:23 pm

Posted in JavaScript

mredkj.com

leave a comment

A good JS and VB.NET resource with unpronounceable name at http://www.mredkj.com/index.html

Written by Ruslan Ulanov

March 13th, 2008 at 8:17 pm

Posted in JavaScript,VB.NET

Dynamically loading an external JavaScript or CSS file

leave a comment

To load a .js or .css file dynamically, in a nutshell, it means using DOM methods to first create a swanky new “SCRIPT” or “LINK” element, assign it the appropriate attributes, and finally, use element.appendChild() to add the element to the desired location within the document tree. It sounds a lot more fancy than it really is. Lets see how it all comes together:

 Read the rest of this entry »

Written by Ruslan Ulanov

March 6th, 2008 at 9:36 pm

Posted in JavaScript