Category Archives: .NET

Check Validity and Download SSL Certs in PowerShell

Little utility I made to check a list of URLs, their SSL certs, including any URLs they redirect to. The entire certificate chain for each host is also downloaded into %temp%\SslCerts folder Script source files can be downloaded here: https://1drv.ms/u/s!Aj0HCnRwyKPhge1bfpIYIlTJ6IugVQContinue reading

Posted in .NET, PowerShell | Tagged , | Leave a comment

Retrieve Time Machine Password Last Reset via PowerShell

In diagnosing a machine lockout issue I wanted to find the time that: Machine Password was last set in Active Directory Machine Password was last set locally By default when a machine has a healthy connection to Active Directory you … Continue reading

Posted in .NET, Active Directory, PowerShell | Tagged | Leave a comment

Case of the Network Name That Couldn’t Be Found

Continuing the series on .NET patching from https://chentiangemalc.wordpress.com/2015/09/03/case-of-the-object-is-not-set-to-an-instance-of-an-object-net-patching/ An application when moved from XP to Windows 8.1 started reporting error The network name cannot be found. A dump file was taken at this point with procdump –ma option (http://live.sysinternals.com/procdump.exe ) … Continue reading

Posted in .NET, AppCompat, Patching | Tagged | Leave a comment

Case of the Object Is Not Set To An Instance of an Object–.NET Patching

Continuing our series on patching .NET code without source ( https://chentiangemalc.wordpress.com/2015/07/31/case-of-the-black-background-window-net-patching/ ) A .NET application which worked fine on Windows 7, started throwing an exception when opening an image in Windows 10’s default editor. However the images still opened OK. … Continue reading

Posted in .NET, C#, Hacking, IL, MSIL, Patching, Reverse Engineering | Tagged | Leave a comment

Case of the .NET Memory Leak via Gfx Driver on Windows 8

A .NET 4 application used to index scanned documents started to fail on Windows 8 Typically the recommendation for Not enough storage is available to process this command might involve: reduce the number of running programs; remove unwanted files from … Continue reading

Posted in .NET, C#, Debugging, Windows 8 | Tagged | Leave a comment

Case of the Black Background Window (.NET Patching)

On Windows XP  a Windows form had a white background, something like this: However on Windows 8 it had a black background like this, making text on the form unreadable:   This is a common AppCompat bug…where the developer instead … Continue reading

Posted in .NET, AppCompat, IL, Patching | Leave a comment

Case of the Invoked Hang (.NET)

A .NET application was hanging completely when certain background tasks were occurring. Using ProcDump (http://live.sysinternals.com/Procdump.exe ) with option Procdump –ma <process name> i captured a 3 dump files about 10 seconds apart, to identify where hang was occurring. Opening dmp … Continue reading

Posted in .NET, Debugging, IL, WinDbg | Tagged | 2 Comments