| Subcribe via RSS

How-to: FOR loop inside a FOR loop in batch

October 14th, 2010 | No Comments | Posted in Scripting, Windows

How to do a FOR loop inside a FOR loop in batch?
How to do nested FOR loops in batch?

@echo off
setlocal EnableDelayedExpansion EnableExtensions
for /F %%a in (file.txt) do (
set file_content=%%a
for /f "tokens=*" %%k in (' %file_content%') do (
set command_result=%%k
echo !file_content! !command_result!

Tags: , , , , ,

Trend Micro OfficeScan 10.5 Features and thoughts

October 11th, 2010 | No Comments | Posted in Security, Software, Trend Micro, Windows

It’s almost 2 months since the release of OfficeScan 10.5. Anyone out there upgraded yet? If so, what’s your experience?
I’ve done a couple of installations and upgrades, and I’ll share my experiences:

First, what’s changed in OfficeScan from version 10.0 SP1?

– Active Directory Integration
– Smart Protection Solutions
– Security Compliance
– Virtual Desktop Support
– Role-based administration
– General Product enhancements

So, what is my experience with the new features?
More »

Tags: , , ,

New version of Process Explorer (and some other tools)

March 30th, 2010 | No Comments | Posted in Windows

Microsoft Sysinternals just released a new version of Process Explorer (v12).
In the new version you can see what svchost is hosting, the mapping of service names to threads and the TCP/IP tabs on Vista/Win 7. There are also some features related to IE8.

Process Explorer:

They also updated som other tools:



Read the entire blog post here:

Tags: , ,

0-day SMB remote exploit in Windows 7 and Windows Server 2008 R2

November 13th, 2009 | No Comments | Posted in Security, Windows

There is a new 0-day remote exploit available for Windows 7 and Windows Server 2008 R2.
This only works on R2 of Windows Server, but it work even with all the latest patches applied.

Exploitation of the exploit crashes the system. This is done by sending a NetBios header that specifies that the SMB-packet is 1, 2 or 4 bytes larger or smaller than what it actually is.

When the system crashes, there is no BSOD, the system simply freezes. And there is no traces in the event logs (after reboot).

When the system receives the packet, it goes into an infinite loop.

The crash itself happens in KeAccumulateTicks() due to NT_ASSERT()/DbgRaiseAssertionFailure() (which is caused by an infinite loop).

The vulnerability could possibly be exploited through IE.

And the proof of concept works by:

1. Running the python code on a *nix box, and ensuring port 445 is open.
2. Connecting through SMB to the *nix box.

Read more:

Tags: , , , , ,

Installing Windows XP on a Dell XPS M1330

September 7th, 2009 | No Comments | Posted in Windows

If you want to install Windows XP Professional on a Dell XPS M1330 laptop, its enough to set the S-ATA controller to “ATA”-mode in the BIOS (yes, disable ACHI, and remember to disable the flash cache thingy too).

Tags: , ,