diff --git a/quickget b/quickget index 69d386f..8931a97 100755 --- a/quickget +++ b/quickget @@ -3438,7 +3438,7 @@ function curl_windows() { mv "${part_file}" "${real_file}" } -function download_windows-server() { +function download_windows_server() { # Download enterprise evaluation windows versions local windows_version="$1" local enterprise_type="$2" @@ -3521,7 +3521,7 @@ function download_windows-server() { OS="windows-server" } -function download_windows() { +function download_windows_workstation() { # Download newer consumer Windows versions from behind gated Microsoft API # This function aims to precisely emulate what Fido does down to the URL requests and HTTP headers (exceptions: updated user agent and referer adapts to Windows version instead of always being "windows11") but written in POSIX sh (with coreutils) and curl instead of PowerShell (also simplified to greatly reduce attack surface) # However, differences such as the order of HTTP headers and TLS stacks (could be used to do TLS fingerprinting) still exist @@ -3670,11 +3670,11 @@ function download_windows() { function get_windows() { if [ "${RELEASE}" == "10-ltsc" ]; then - download_windows-server windows-10-enterprise ltsc + download_windows_workstation windows-10-enterprise ltsc elif [ "${OS}" == "windows-server" ]; then - download_windows-server windows-server-${RELEASE} + download_windows_server "windows-server-${RELEASE}" else - download_windows "${RELEASE}" + download_windows_workstation "${RELEASE}" fi if [ "${download_iso}" == 'on' ]; then