Skip to content

Instantly share code, notes, and snippets.

@InvisibleRain
Created November 10, 2025 21:28
Show Gist options
  • Select an option

  • Save InvisibleRain/2b3751af9515cf0e4b7e5575be88a040 to your computer and use it in GitHub Desktop.

Select an option

Save InvisibleRain/2b3751af9515cf0e4b7e5575be88a040 to your computer and use it in GitHub Desktop.
Crawl WiZ firmware from http://firmware.wiz.world
#!/bin/bash
CURL_FLAGS="--silent --skip-existing --fail --max-time 1 --ipv4 --retry 5 --max-filesize 1"
FW_VERSION="1.35.0"
KINDS="SHTW1_01 SHDW_01 SHTW1_01 SHRGB_01 SHTWC_01 BLANK"
FILENAMES="Consumer_FW_1.bin Consumer_FW_2.bin wizlight.bin"
echo "Firmware version: $FW_VERSION"
for kind in $KINDS; do
echo "Kind: $kind"
for filename in $FILENAMES; do
for i in {01..26} 56; do
url="http://firmware.wiz.world/firmwares/ESP${i}_${kind}/${FW_VERSION}/$filename"
out_file="ESP${i}_${kind}-v${FW_VERSION}_$filename"
echo "Trying to download $out_file"
curl $CURL_FLAGS $url -o $out_file
if [[ ($? -eq 63) || ($? -eq 0) ]]; then
printf "Found URL: "
echo "$url" | tee -a urls.txt;
fi;
done
done
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment