Category Archives: Windows

Everything which related to Windows OS

How disable Control-C in a console program.

Control-C (CTRL+C) key combinations sends special signal to console processes, when a console window has the keyboard focus. By default Control-C (also Control-Break) signal is treated not as keyboard input but aborts all console processes attached to this console. In GUI applications Control-C is treated differently and usually is used to copy highlighted text or… Read More »

Remote desktop from Mac to Windows and input control matching.

Recently working from home I needed to use remote desktop connection from Mac to Windows computer. Microsoft remote desktop client is available on the App Store. There was no problem with Microsoft Remote Desktop installation on Mac laptop and connection to Windows PC. The main difficulties appeared with using Mac keyboard with Windows applications. Later… Read More »

Get Thumbprints from Windows Catalog File on Linux

This article is related to the “Windows Catalog Files” post and describes how to parse catalog sis.cat file using posix c++ on Linux platform. On Windows as it is mentioned in “Windows Catalog Files” it is possible to retrieve thumbprints with mscat.h API. The Linux parsing method is based on searching positions of some OIDs… Read More »

Windows Catalog Files

Windows Catalog file is used to store hash checksums or thumbprints of any collection of files to validate its authenticity. Besides the Catalog file may be digitally signed and be used as group digital signature of the files which thumbprints are presented in this Catalog file. Catalog file may be generated from text catalog definition… Read More »

Rip Audio CD Programmatically

More than 10 years ago I started XEdit project which is binary editor for files and disks contents. XEdit is available there. I am still using it sometime, however I do not support the project since 2011 mainly because this MFC application was written on Visual C++ 6 and I have no time to do… Read More »

Get screenshot programmatically

Several years ago I implemented a small project: “Optical character recognition (OCR) of Windows application screenshots”. It the first part of the project – the console application which makes screenshot of some process main window or capture entire screen image. The process is selected by its process ID which should specified as argument. When argument… Read More »

Verify digital signature programmatically

It is continuation of “Signing Windows PE file on Linux” post to verify digital signature programmatically. For demonstration, I am using a previously signed usb-cubby-signed.exe file on Linux with self-signed certificate and Windows .Net API from X509Certificates namespace. The C# console application which determines if application is signed and presents certificate issuer if certificate has… Read More »

Signing Windows PE file on Linux

The first question is: what for? There are a lot of reason for example someone download Windows application from Linux Apache server. The downloaded application is signed in runtime with different certificate according to selected license. Later during execution Windows application checks certificate type, revocation status and blocks or grants some features. Also application may… Read More »

Installing Powershell and Invoke-Obfuscation on CentOS 8

This article shows how to obfuscate PowerShell command or script for free using Invoke-Obfuscation. We will obfuscate powershell command on Linux CentOS machine and execute obfuscated command on Windows PC. Invoke-Obfuscation runs under powershell and because Microsoft powershell is cross-platform tool and available for many not Windows platforms this obfuscator could be also used anywhere.… Read More »

Renci.SshNet default ConnectionInfo values.

Renci.SshNet.dll was already mentioned in current blog. It is client library to connect to SSH servers for example Linux sshd daemon. Similar as other ssh related software Renci.SshNet.dll has list of default Ciphers, Key Exchange Algorithms, Message Authentication Code and other connection settings. These setting are defined in Renci ConnectionInfo class. It is possible to… Read More »