Posts

Showing posts from July, 2022

Managing PSStyle's File Extension Dictionary

Image
Documentation on PowerShell's experimental PSANSIRenderingFileInfo feature is understandably limited at the moment. This experiment was added in PowerShell 7.2. This feature adds the $PSStyle.FileInfo member and enables coloring of specific file types. $PSStyle.FileInfo.Directory - Built-in member to specify color for directories $PSStyle.FileInfo.SymbolicLink - Built-in member to specify color for symbolic links $PSStyle.FileInfo.Executable - Built-in member to specify color for executables. $PSStyle.FileInfo.Extension - Use this member to define colors for different file extensions. The Extension member pre-includes extensions for archive and PowerShell files. Using Experimental Features in PowerShell | Microsoft Docs Methods After some trial-and-error in a console, I found several methods offered by [System.Management.Automation.PSStyle+FileExtensionDictionary] that stand out: Add() Creates an extension with an associated decoration and appends it to the dic...

Resolving Nonfatal Access Violation Error Spam in Cheat Engine

Image
While ASLR exploit mitigation has been present in Windows since Vista, it wasn't implemented as ubiquitously as it now is. Given the inherent nature of what Cheat Engine is , it's not exactly surprising that the two conflict with each other. Shut Up and Tell Me How to Fix It Open the start menu with Win , copy and paste explorer windowsdefender://ExploitProtection , and press Enter to open the Exploit Protection settings page within the Windows Security control panel. Navigate to the Program Settings tab and create the following entries via Choose exact file path in the dropdown that appears when making additions: Cheat Engine.exe cheatengine-i386.exe cheatengine-x86_64.exe cheatengine-x86_64-SSE4-AVX2.exe Kernelmoduleunloader.exe Upon adding an entry, you will be prompted with a list of possible settings to override: Disable mandatory ASLR and bottom-up ASLR for each one. I've provided a screenshot of my own control panel for re...