Created
January 27, 2024 05:13
-
-
Save whqwert/a1b9911ce7dbeef45750b6805143a170 to your computer and use it in GitHub Desktop.
diskinternals
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$boundary = [System.Guid]::NewGuid().ToString(); | |
$body = ( | |
"-----$boundary`r`nContent-Disposition: form-data; name=`"pass`"`r`n`r`nB061199B-885A-4E2F-A1C4-AC90E5091B61", | |
"-----$boundary`r`nContent-Disposition: form-data; name=`"product_short_id`"`r`n`r`nLR", | |
"-----$boundary`r`nContent-Disposition: form-data; name=`"type`"`r`n`r`nversion", | |
"-----$boundary--`r`n" | |
) -join "`r`n" | |
$response = Invoke-RestMethod -Uri 'https://www.diskinternals.com/app/log/' -Method Post -ContentType "multipart/form-data; boundary=---$boundary" -Body $body | |
$response.program | Select-Object version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment