Skip to content

Commit

Permalink
Updated Ubuntu to 2024 and added Kali ISO
Browse files Browse the repository at this point in the history
  • Loading branch information
spyr0-sec committed Sep 6, 2024
1 parent 4c949bc commit c685b44
Showing 1 changed file with 41 additions and 28 deletions.
69 changes: 41 additions & 28 deletions Functions/Get-EvaluationISOs.ps1
Original file line number Diff line number Diff line change
@@ -1,19 +1,6 @@
$LocalIsoPath = "$(Get-LabSourcesLocation)\ISOs"
Write-Host "[+] Downloading Windows ISOs to $LocalIsoPath. This may take a while.."

# Download Windows 10 22H2 ISO
Write-Host "[+] Downloading Windows 10 ISO"

$WIN10_22H2_ISO_URL = "https://software-static.download.prss.microsoft.com/dbazure/988969d5-f34g-4e03-ac9d-1f9786c66750/19045.2006.220908-0225.22h2_release_svc_refresh_CLIENTENTERPRISEEVAL_OEMRET_x64FRE_en-us.iso"
Start-BitsTransfer -Source $WIN10_22H2_ISO_URL -Destination "$LocalIsoPath\Windows10_22H2_Enterprise_Evaluation.iso"

$WIN10_22H2_ISO_SHA256 = "EF7312733A9F5D7D51CFA04AC497671995674CA5E1058D5164D6028F0938D668"
If ((Get-FileHash -Path "$LocalIsoPath\Windows10_22H2_Enterprise_Evaluation.iso" -Algorithm SHA256).Hash -eq $WIN10_22H2_ISO_SHA256) {
Write-Host " [+] Windows 10 22H2 ISO checksum matches"
} else {
Write-Host " [!] Windows 10 22H2 ISO checksum does not match"
}

# Download Windows 11 22H2 ISO
Write-Host "[+] Downloading Windows 11 ISO"

Expand All @@ -27,6 +14,19 @@ If ((Get-FileHash -Path "$LocalIsoPath\Windows11_22H2_Enterprise_Evaluation.iso"
Write-Host " [!] Windows 11 22H2 ISO checksum does not match"
}

# Download Windows 10 22H2 ISO
Write-Host "[+] Downloading Windows 10 ISO"

$WIN10_22H2_ISO_URL = "https://software-static.download.prss.microsoft.com/dbazure/988969d5-f34g-4e03-ac9d-1f9786c66750/19045.2006.220908-0225.22h2_release_svc_refresh_CLIENTENTERPRISEEVAL_OEMRET_x64FRE_en-us.iso"
Start-BitsTransfer -Source $WIN10_22H2_ISO_URL -Destination "$LocalIsoPath\Windows10_22H2_Enterprise_Evaluation.iso"

$WIN10_22H2_ISO_SHA256 = "EF7312733A9F5D7D51CFA04AC497671995674CA5E1058D5164D6028F0938D668"
If ((Get-FileHash -Path "$LocalIsoPath\Windows10_22H2_Enterprise_Evaluation.iso" -Algorithm SHA256).Hash -eq $WIN10_22H2_ISO_SHA256) {
Write-Host " [+] Windows 10 22H2 ISO checksum matches"
} else {
Write-Host " [!] Windows 10 22H2 ISO checksum does not match"
}

# Download Windows Server 2022 ISO
Write-Host "[+] Downloading Windows 2022 ISO"

Expand Down Expand Up @@ -67,31 +67,18 @@ If ((Get-FileHash -Path "$LocalIsoPath\Windows_Server_2016_Evaluation.iso" -Algo
}

# Download Windows Server 2012r2 ISO
Write-Host "[+] Downloading Windows 2012r2 ISO"
Write-Host "[+] Downloading Windows 2012 R2 ISO"

$WS2012_ISO_URL = "http://care.dlservice.microsoft.com/dl/download/6/2/A/62A76ABB-9990-4EFC-A4FE-C7D698DAEB96/9600.17050.WINBLUE_REFRESH.140317-1640_X64FRE_SERVER_EVAL_EN-US-IR3_SSS_X64FREE_EN-US_DV9.ISO"
Start-BitsTransfer -Source $WS2012_ISO_URL -Destination "$LocalIsoPath\Windows_Server_2012_Evaluation.iso"

$WS2012_ISO_SHA256 = "6612B5B1F53E845AACDF96E974BB119A3D9B4DCB5B82E65804AB7E534DC7B4D5"
If ((Get-FileHash -Path "$LocalIsoPath\Windows_Server_2012_Evaluation.iso" -Algorithm SHA256).Hash -eq $WS2012_ISO_SHA256) {
Write-Host " [+] Windows Server 2012 ISO checksum matches"
Write-Host " [+] Windows Server 2012 R2 ISO checksum matches"
} else {
Write-Host " [!] Windows Server 2012 ISO checksum does not match"
}

# Download Ubuntu 22.04 x64 Server ISO
Write-Host "[+] Downloading Ubuntu 22.04 ISO"

$Ubuntu2204_ISO_URL = "https://releases.ubuntu.com/22.04.4/ubuntu-22.04.4-live-server-amd64.iso"
Start-BitsTransfer -Source $Ubuntu2204_ISO_URL -Destination "$LocalIsoPath\Ubuntu_2204_Server.iso"

$Ubuntu2204_ISO_SHA256 = "45F873DE9F8CB637345D6E66A583762730BBEA30277EF7B32C9C3BD6700A32B2"
If ((Get-FileHash -Path "$LocalIsoPath\Ubuntu_2204_Server.iso" -Algorithm SHA256).Hash -eq $Ubuntu2204_ISO_SHA256) {
Write-Host " [+] Ubuntu 2204 Server ISO checksum matches"
} else {
Write-Host " [!] Ubuntu 2204 Server ISO checksum does not match"
}

# Download Windows SQL 2019 ISO
Write-Host "[+] Downloading Windows SQL 2019 ISO"

Expand All @@ -118,4 +105,30 @@ If ((Get-FileHash -Path "$LocalIsoPath\Office 2016 Professional.iso" -Algorithm
Write-Host " [!] Windows Office 2016 ISO checksum does not match"
}

# Download Ubuntu 24.04.1 x64 Server ISO
Write-Host "[+] Downloading Ubuntu 24.04.1 ISO"

$UBUNTU_2404_ISO_URL = "https://releases.ubuntu.com/24.04.1/ubuntu-24.04.1-live-server-amd64.iso"
Start-BitsTransfer -Source $UBUNTU_2404_ISO_URL -Destination "$LocalIsoPath\Ubuntu_2404_Server.iso"

$UBUNTU_2404_ISO_SHA256 = "E240E4B801F7BB68C20D1356B60968AD0C33A41D00D828E74CEB3364A0317BE9"
If ((Get-FileHash -Path "$LocalIsoPath\Ubuntu_2404_Server.iso" -Algorithm SHA256).Hash -eq $UBUNTU_2404_ISO_SHA256) {
Write-Host " [+] Ubuntu 24.04.1 Server ISO checksum matches"
} else {
Write-Host " [!] Ubuntu 24.04.1 Server ISO checksum does not match"
}

# Download Kali Linux ISO
Write-Host "[+] Downloading Kali Linux 2024.2 ISO"

$KALI_2024_ISO_URL = "https://cdimage.kali.org/kali-2024.2/kali-linux-2024.2-installer-amd64.iso"
Start-BitsTransfer -Source $KALI_2024_ISO_URL -Destination "$LocalIsoPath\Kali_Linux_2024_2.iso"

$KALI_2024_ISO_SHA256 = "5EB9DC96CCCBDFE7610D3CBCED1BD6EE89B5ACDFC83FFEE1F06E6D02B058390C"
If ((Get-FileHash -Path "$LocalIsoPath\Kali_Linux_2024_2.iso" -Algorithm SHA256).Hash -eq $KALI_2024_ISO_SHA256) {
Write-Host " [+] Kali Linux 2024.2 ISO checksum matches"
} else {
Write-Host " [!] Kali Linux 2024.2 ISO checksum does not match"
}

Write-Host "[+] ISOs downloaded!"

0 comments on commit c685b44

Please sign in to comment.