mirror of
https://github.com/pbatard/Fido.git
synced 2025-09-17 06:38:03 +02:00
Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
e4645bfabc | ||
![]() |
9769ff8a16 | ||
![]() |
d26c757f67 | ||
![]() |
1d5a4dc17b |
8
Fido.ps1
8
Fido.ps1
@@ -75,6 +75,12 @@ $ko = 0x20000
|
|||||||
$WindowsVersions = @(
|
$WindowsVersions = @(
|
||||||
@(
|
@(
|
||||||
@("Windows 10", "Windows10ISO"),
|
@("Windows 10", "Windows10ISO"),
|
||||||
|
@(
|
||||||
|
"19H1 (Build 18362.30 - 2019.05)",
|
||||||
|
@("Windows 10 Home/Pro", 1214),
|
||||||
|
@("Windows 10 Education", 1216),
|
||||||
|
@("Windows 10 Home China ", ($zh + 1215))
|
||||||
|
),
|
||||||
@(
|
@(
|
||||||
"1809 R2 (Build 17763.107 - 2018.10)",
|
"1809 R2 (Build 17763.107 - 2018.10)",
|
||||||
@("Windows 10 Home/Pro", 1060),
|
@("Windows 10 Home/Pro", 1060),
|
||||||
@@ -110,7 +116,7 @@ $WindowsVersions = @(
|
|||||||
@("Windows 10 Home China", ($zh + 364))
|
@("Windows 10 Home China", ($zh + 364))
|
||||||
),
|
),
|
||||||
@(
|
@(
|
||||||
"1607 [Redstone 1] (Build 14393.0 - 2017.07)",
|
"1607 [Redstone 1] (Build 14393.0 - 2016.07)",
|
||||||
@("Windows 10 Home/Pro", 244),
|
@("Windows 10 Home/Pro", 244),
|
||||||
@("Windows 10 Home/Pro N", 245),
|
@("Windows 10 Home/Pro N", 245),
|
||||||
@("Windows 10 Single Language", 246),
|
@("Windows 10 Single Language", 246),
|
||||||
|
@@ -36,7 +36,7 @@ License
|
|||||||
How it works
|
How it works
|
||||||
------------
|
------------
|
||||||
|
|
||||||
The script basically performs the same operation as one might perform when visiting either of the following ULRs (that
|
The script basically performs the same operation as one might perform when visiting either of the following URLs (that
|
||||||
is, provided that you have also changed your `User-Agent` browser string, since, when they detect that you are using a
|
is, provided that you have also changed your `User-Agent` browser string, since, when they detect that you are using a
|
||||||
version of Windows that is the same as the one you are trying to download, the Microsoft web servers at these addresses
|
version of Windows that is the same as the one you are trying to download, the Microsoft web servers at these addresses
|
||||||
redirect you __away__ from the pages that allow you to download retail ISOs):
|
redirect you __away__ from the pages that allow you to download retail ISOs):
|
||||||
|
8
sign.sh
8
sign.sh
@@ -1,5 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# This script creates the RSA-2048 signatures for our downloadable content
|
# Creates an LZMA compressed Fido.ps1 (including decompressed size) and sign it
|
||||||
|
|
||||||
PRIVATE_KEY=/d/Secured/Akeo/Rufus/private.pem
|
PRIVATE_KEY=/d/Secured/Akeo/Rufus/private.pem
|
||||||
PUBLIC_KEY=/d/Secured/Akeo/Rufus/public.pem
|
PUBLIC_KEY=/d/Secured/Akeo/Rufus/public.pem
|
||||||
@@ -25,6 +25,10 @@ echo
|
|||||||
# Confirm that the pass phrase is valid by trying to sign a dummy file
|
# Confirm that the pass phrase is valid by trying to sign a dummy file
|
||||||
openssl dgst -sha256 -sign $PRIVATE_KEY -passin pass:$PASSWORD $PUBLIC_KEY >/dev/null 2>&1 || { echo Invalid pass phrase; exit 1; }
|
openssl dgst -sha256 -sign $PRIVATE_KEY -passin pass:$PASSWORD $PUBLIC_KEY >/dev/null 2>&1 || { echo Invalid pass phrase; exit 1; }
|
||||||
|
|
||||||
find . -maxdepth 1 -name "*.ps1" | while read FILE; do sign_file; done
|
lzma -kf Fido.ps1
|
||||||
|
# The 'lzma' utility does not add the uncompressed size, so we must add it manually. And yes, this whole
|
||||||
|
# gymkhana is what one must actually go through to insert a 64-bit little endian size into a binary file...
|
||||||
|
printf "00: %016X" `stat -c "%s" Fido.ps1` | xxd -r | xxd -p -c1 | tac | xxd -p -r | dd of=Fido.ps1.lzma seek=5 bs=1 status=none conv=notrunc
|
||||||
|
find . -maxdepth 1 -name "Fido.ps1.lzma" | while read FILE; do sign_file; done
|
||||||
# Clear the PASSWORD variable just in case
|
# Clear the PASSWORD variable just in case
|
||||||
PASSWORD=`head -c 50 /dev/random | base64`
|
PASSWORD=`head -c 50 /dev/random | base64`
|
||||||
|
Reference in New Issue
Block a user