Java-Android-Magisk-Burp-Objection-Root-Emulator-Easy
Java-Android-Magisk-Burp-Objection-Root-Emulator-Easy copied to clipboard
Gradle Support ... but no ...
I was going to use Gradle for something but ended up not needing it but here is the basic code... good for pulling latest links from stuff 0 levels deep in HTML
############ CHECK gradle
Function CheckGradle {
if (-not(Test-Path -Path "$VARCD\Gradle" )) {
try {
Write-Host "[+] Downloading latest Gradle"
$downloadUri = (Invoke-RestMethod -Method GET -Uri "https://gradle.org/releases/") -split '\n' -match '.*binary-only.*' | ForEach-Object {$_ -ireplace '.* href="','' -ireplace '".*',''}| select -first 1
downloadFile "$downloadUri" "$VARCD\Gradle.zip"
Write-Host "[+] Extracting Gradle"
Add-Type -AssemblyName System.IO.Compression.FileSystem
Add-Type -AssemblyName System.IO.Compression
[System.IO.Compression.ZipFile]::ExtractToDirectory("$VARCD\Gradle.zip", "$VARCD")
Get-ChildItem "$VARCD\gradle-*" | Rename-Item -NewName "Gradle"
#Start-Process -FilePath "$VARCD\7zip.exe" -ArgumentList "/S /D=$VARCD\7zip" -NoNewWindow -Wait
}
catch {
throw $_.Exception.Message
}
}
else {
Write-Host "[+] $VARCD\Gradle already exists "
}
}