Skip to content

Revive HoneyBadger automation modules - #5

Merged
MoSLoF merged 2 commits into
mainfrom
codex/refactor-repo-for-functional-programming
Nov 12, 2025
Merged

MoSLoF merged 2 commits into
mainfrom
codex/refactor-repo-for-functional-programming

Conversation

@MoSLoF

@MoSLoF MoSLoF commented Nov 12, 2025

Copy link
Copy Markdown
Owner

Summary

  • replace the broken PimpMyWindows stub with a full CLI/GUI posture switcher that logs changes and can build undo scripts
  • teach HBV-Core.ps1 to orchestrate posture changes, repo snapshots, and hunting summaries with proper logging
  • enhance the hunting utility scripts so they emit richer reports and optional artefacts, and allow repo_hunter to clone/update sources
  • restore the BOF hunter GUI so analysts can run Volatility plugins and YARA scans from a single window

Testing

  • Not run (PowerShell automation depends on Windows-only components)

Codex Task

Comment thread HBV-Core.ps1 Fixed

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread HBV-Core.ps1
Comment on lines +130 to +141
if ($GenerateUndoScript) {
$undoArgs = @{ UndoFromLog = $UndoLog; Quiet = $true }
$undoPath = Invoke-HBVModule -ScriptPath (Get-ModulePath 'PimpMyWindows.ps1') -Arguments $undoArgs
$summary.UndoScript = $undoPath
if ($undoPath) {
Write-CoreLog -Message "## UNDO: Script generated at $undoPath" -Color Cyan
}
}
}
elseif ($PSCmdlet.ParameterSetName -eq 'UndoOnly' -and $GenerateUndoScript) {
$undoArgs = @{ UndoFromLog = $UndoLog; Quiet = $true }
$undoPath = Invoke-HBVModule -ScriptPath (Get-ModulePath 'PimpMyWindows.ps1') -Arguments $undoArgs

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Remove unsupported -Quiet switch when generating undo

When HBV-Core asks PimpMyWindows to build an undo script (GenerateUndoScript path), it always adds Quiet = $true to the argument hashtable. The updated PimpMyWindows.ps1 only exposes -Quiet in the CLI/GUI parameter sets—its Undo set accepts -UndoFromLog but not -Quiet. Passing -Quiet therefore triggers a parameter-binding exception before the undo script runs, so HBV-Core.ps1 -GenerateUndoScript fails even in dry-run scenarios. Drop the Quiet switch (or update PimpMyWindows to accept it in the Undo set) so undo generation actually executes.

Useful? React with 👍 / 👎.

@MoSLoF
MoSLoF merged commit 02b6e4a into main Nov 12, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants