Skip to content

Instantly share code, notes, and snippets.

@muhanLuo
muhanLuo / pacu_error.md
Created June 15, 2026 00:09
Fix for Pacu: 'Namespace' object has no attribute 'cli_binary_format'

PACU awscli Error

Problem

When you try to run an AWSCLI command in Pacu, you get the following error:

Pacu (beanstalk_secrets_session:beanstalk_admin) > aws --sts get-caller-identity

'Namespace' object has no attribute 'cli_binary_format'
"""
Script Name: wp_find-missing-auth-ajax-vulns.py
Description: Scans a directory of WordPress plugins for AJAX hooks with missing authorization issues. Then triages these findings using Claude. Output format is .sarif
Author: Muhan Luo
Date: 2026-05-10
(Note: This script is specifically intended to be used with the following Semgrep rule, otherwise the script doesn't work: https://github.com/muhanLuo/wordpress-plugin-semgrep-rules/blob/main/missing-auth/wp-ajax-hook-missing-auth.yml)
Dependency Versions:

Fixing Xdebug Connection Issues in Docker with VSCode on WSL

The Problem

When running Xdebug in a Docker container with VSCode on WSL, you may see this error in your logs:

[php:notice] [pid 21:tid 21] [client 172.23.0.1:54372] Xdebug: [Step Debug] Could not connect to debugging client. Tried: 172.23.0.1:9003 (from REMOTE_ADDR HTTP header), host.docker.internal:9003 (fallback through xdebug.client_host/xdebug.client_port).

Why This Happens

@muhanLuo
muhanLuo / htb_pwnbox_no_instances_available.md
Created January 27, 2026 22:37
How to fix "There are no instances available. Please try again later." when starting a PwnBox on HackTheBox.

HackTheBox: PwnBox not Starting

Problem

You get this error when you try to start Pwnbox: There are no instances available. Please try again later.

Solution

You can fix this by changing the Pwnbox Location.

@muhanLuo
muhanLuo / download_top_wp_plugins.py
Last active August 22, 2026 00:37
Python script which downloads the latest version of the most popular WordPress plugins and unzips them into a directory. By default, downloads the top 500 most popular plugins.
"""
Script Name: download_top_wp_plugins.py
Description: Downloads the latest version of the most popular WordPress plugins and unzips them into a directory. By default, downloads all plugins which have 100,000+ active installs and have been updated within the last 2 years.
Author: Muhan Luo
Date: 2026-04-05
"""
import requests
import argparse
import json