Monthly Archives: July 2021

Opening OLE2 COM Structured Storage Documents with PowerShell

COM structured storage is popular storage format used in many legacy applications and some modern ones. Examples include: Microsoft Office 97–2003 documents (.DOC, .DOT, .XLS, .XLT, .PPT, .POT, PUB, .VSD, .MPP, .MSG) Macros in Office 2007+ documents (vbaProject.bin file embedded … Continue reading

Posted in Uncategorized | Leave a comment

PowerShell Script To Output Network Traffic in Real Time

Here is a PowerShell script that utilizes .NET frameworks System.Net.Sockets.Socket to initialize packet capture against selected adapter on the local machine. It utilizes SIO_RCVALL Control Code – Win32 apps | Microsoft Docs to receive all packets passing through a network … Continue reading

Posted in Uncategorized | 2 Comments

Case of System Becoming Unusably Slow when Visual Studio Hit A Breakpoint

Had an application being debugged with Visual Studio 2019 on Windows 10 21H1. The application itself was consuming nearly no system resources at all, machine was running nice and quick. Fast SSD, more than 16 GB free ram, CPU not … Continue reading

Posted in Uncategorized | Leave a comment

Increasing Size of Stack Allocated Buffers with IDA Pro on Intel x86 Platform

Here we have a program with the following bad code: When we try to run it reads values which are too large for the variables that are on the stack, and it overwrites the return address on stack, so when … Continue reading

Posted in Uncategorized | Leave a comment

Write CPU Registers to Console in MS-DOS x86 Assembly

In analysis of a legacy MS-DOS application’s behavior I was having trouble to get the CPU registers after after a particular DOS API call had completed, which seemed to be behaving differently from any available documentation on the API I … Continue reading

Posted in Uncategorized | Leave a comment