generic_chm_file

Description

Generates a Windows Compiled HTML Help (.CHM) file that executes a specified command when opened.

Overview

Generates a CHM file that silently executes a command via the ShortCut ActiveX object (CLSID 52a2aaae-085d-4187-97ea-8c30db990436) when opened with hh.exe. A decoy help page is displayed to the user.

Requires hhc.exe (HTML Help Workshop compiler) to be present in the server dependencies.

Parameters

Name Type Description
Command string The command to execute (passed to cmd.exe /c). Avoid commas in the command string.
Title string Help window title shown to the user. Default: Microsoft Help.
Topic string Decoy body text shown in the visible help pane. Default: empty.

Example Output

<CHM binary>
Scroll to Top