Skip to content

Instantly share code, notes, and snippets.

@j027
j027 / setup_sd_longevity_v2.sh
Last active November 2, 2026 00:39
Enphase IQ Gateway SD Card sync and tmpfs bind mount
#!/bin/bash
# setup_sd_longevity_v2.sh — Enphase Envoy eMMC Longevity Setup (v3 snapshot runtime)
# Run as root on the Envoy after inserting the SD card (via USB adapter)
#
# Usage:
# bash setup_sd_longevity_v2.sh # Install / re-install
# bash setup_sd_longevity_v2.sh --uninstall # Remove v3 runtime
# bash setup_sd_longevity_v2.sh --update # Update runtime only
# bash setup_sd_longevity_v2.sh --update --seed <backup_dir> # Update + seed
# bash setup_sd_longevity_v2.sh --seed <backup_dir> # Seed only
@j027
j027 / poc.py
Created August 3, 2026 05:06
Enphase IQ Gateway Unauthenticated RCE
import argparse
import base64
import hashlib
import ipaddress
import socket
import time
import xml.etree.ElementTree as ET
import requests
import urllib3