lightaffaire
Occasional Visitor
The attached unix/linux bash script allows one to easily check a firmware file or firmware file contained within a zip archive for security integrity by comparing it's SHA256 signature against the projects "reference" SHA256 signatures located at https://asuswrt-merlin.net/download
It can check a local firmware file, a local zip archive file or via an URL (firmware/zip).
Script available @ https://lightaffaire.com/code/asusrwt-merlin/asuswrt-sha256-signature
$ asuswrt-sha256-signature
Check asuswrt-merlin firmware/zip/url file against offical SHA256 signature.
Usage: asuswrt-sha256-signature [options]
-f file firmware image/zip/url file
-l list official sha256 signatures @ https://asuswrt-merlin.net/download
-v verbose
-h help
1. check url (zip or firmware file)
$ asuswrt-sha256-signature -f https://lightaffaire.com/mirror/asuswrt-merlin/GT-AX11000/Beta/GT-AX11000_386.5_beta1.zip
fetch: https://lightaffaire.com/mirror/asuswrt-merlin/GT-AX11000/Beta/GT-AX11000_386.5_beta1.zip
check: /tmp/GT-AX11000_386.5_beta1.zip [ZIP archive]
sha256 7a4ded381aaa951314fdf3ec3b52f886ba7d871dc91d9413738929068adcec9b [ZIP archive]
check: GT-AX11000_386.5_beta1_cferom_ubi.w [ZIP archive]
sha256 8e390fb884565201324221969db479e646199eb15f6cf34e0a0da38c11536814
check: sha256sum.sha256 [ZIP archive]
sha256 8e390fb884565201324221969db479e646199eb15f6cf34e0a0da38c11536814
check: GT-AX11000_386.5_beta1_cferom_ubi.w @ https://asuswrt-merlin.net/download
sha256 8e390fb884565201324221969db479e646199eb15f6cf34e0a0da38c11536814
2. check local zip file
$ asuswrt-sha256-signature -f /software/asus/asus-merlin/gt-ax11000/GT-AX11000_386.5_beta1.zip
check: /software/asus/asus-merlin/gt-ax11000/GT-AX11000_386.5_beta1.zip [ZIP archive]
sha256 7a4ded381aaa951314fdf3ec3b52f886ba7d871dc91d9413738929068adcec9b [ZIP archive]
check: GT-AX11000_386.5_beta1_cferom_ubi.w [ZIP archive]
sha256 8e390fb884565201324221969db479e646199eb15f6cf34e0a0da38c11536814
check: sha256sum.sha256 [ZIP archive]
sha256 8e390fb884565201324221969db479e646199eb15f6cf34e0a0da38c11536814
check: GT-AX11000_386.5_beta1_cferom_ubi.w @ https://asuswrt-merlin.net/download
sha256 8e390fb884565201324221969db479e646199eb15f6cf34e0a0da38c11536814
3. check local firmware file
$ asuswrt-sha256-signature -f /software/asus/asus-merlin/gt-ax11000/GT-AX11000_386.5_beta1/GT-AX11000_386.5_beta1_cferom_ubi.w
check: GT-AX11000_386.5_beta1_cferom_ubi.w [Firmware]
sha256 8e390fb884565201324221969db479e646199eb15f6cf34e0a0da38c11536814
check: GT-AX11000_386.5_beta1_cferom_ubi.w @ https://asuswrt-merlin.net/download
sha256 8e390fb884565201324221969db479e646199eb15f6cf34e0a0da38c11536814
I am always open to constructive feedback and ideas.
Iain
It can check a local firmware file, a local zip archive file or via an URL (firmware/zip).
Script available @ https://lightaffaire.com/code/asusrwt-merlin/asuswrt-sha256-signature
$ asuswrt-sha256-signature
Check asuswrt-merlin firmware/zip/url file against offical SHA256 signature.
Usage: asuswrt-sha256-signature [options]
-f file firmware image/zip/url file
-l list official sha256 signatures @ https://asuswrt-merlin.net/download
-v verbose
-h help
1. check url (zip or firmware file)
$ asuswrt-sha256-signature -f https://lightaffaire.com/mirror/asuswrt-merlin/GT-AX11000/Beta/GT-AX11000_386.5_beta1.zip
fetch: https://lightaffaire.com/mirror/asuswrt-merlin/GT-AX11000/Beta/GT-AX11000_386.5_beta1.zip
check: /tmp/GT-AX11000_386.5_beta1.zip [ZIP archive]
sha256 7a4ded381aaa951314fdf3ec3b52f886ba7d871dc91d9413738929068adcec9b [ZIP archive]
check: GT-AX11000_386.5_beta1_cferom_ubi.w [ZIP archive]
sha256 8e390fb884565201324221969db479e646199eb15f6cf34e0a0da38c11536814
check: sha256sum.sha256 [ZIP archive]
sha256 8e390fb884565201324221969db479e646199eb15f6cf34e0a0da38c11536814
check: GT-AX11000_386.5_beta1_cferom_ubi.w @ https://asuswrt-merlin.net/download
sha256 8e390fb884565201324221969db479e646199eb15f6cf34e0a0da38c11536814
2. check local zip file
$ asuswrt-sha256-signature -f /software/asus/asus-merlin/gt-ax11000/GT-AX11000_386.5_beta1.zip
check: /software/asus/asus-merlin/gt-ax11000/GT-AX11000_386.5_beta1.zip [ZIP archive]
sha256 7a4ded381aaa951314fdf3ec3b52f886ba7d871dc91d9413738929068adcec9b [ZIP archive]
check: GT-AX11000_386.5_beta1_cferom_ubi.w [ZIP archive]
sha256 8e390fb884565201324221969db479e646199eb15f6cf34e0a0da38c11536814
check: sha256sum.sha256 [ZIP archive]
sha256 8e390fb884565201324221969db479e646199eb15f6cf34e0a0da38c11536814
check: GT-AX11000_386.5_beta1_cferom_ubi.w @ https://asuswrt-merlin.net/download
sha256 8e390fb884565201324221969db479e646199eb15f6cf34e0a0da38c11536814
3. check local firmware file
$ asuswrt-sha256-signature -f /software/asus/asus-merlin/gt-ax11000/GT-AX11000_386.5_beta1/GT-AX11000_386.5_beta1_cferom_ubi.w
check: GT-AX11000_386.5_beta1_cferom_ubi.w [Firmware]
sha256 8e390fb884565201324221969db479e646199eb15f6cf34e0a0da38c11536814
check: GT-AX11000_386.5_beta1_cferom_ubi.w @ https://asuswrt-merlin.net/download
sha256 8e390fb884565201324221969db479e646199eb15f6cf34e0a0da38c11536814
I am always open to constructive feedback and ideas.
Iain
Attachments
Last edited: