Created
November 28, 2024 00:29
-
-
Save dstreefkerk/16e790b92784f3eb4d460c4a79976fed to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# PowerShell script in response to this: | |
# https://github.com/hattonsec/hattonsec.github.io/commit/1d78938bf324fac1a68d89f83e8d6dcd785ac8bd#diff-0eb547304658805aad788d320f10bf1f292797b5e6d745a3bf617584da017051R838 | |
$BaseUrl = "https://log[.]linpeas[.]sh" # defanged. Don't actually do this, I just generated this script for the lolz | |
# Need the lyrics in a text file somewhere | |
$rick = Get-Content C:\temp\rick.txt | Where-Object {-not [string]::IsNullOrWhiteSpace($_)} | |
foreach ($roll in $rick) { | |
$uuid = [guid]::NewGuid().guid -replace '-','' | |
$id = [guid]::NewGuid().guid -replace '-','' | |
$root = "true" | |
$hostname = "rickpc01" | |
$user = "rick" | |
$uname = [System.Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes($roll)) | |
$uriString = "{0}?uuid={1}&id={2}&root={3}&hostname={4}&user={5}&uname={6}" -f $BaseUrl,$uuid,$id,$root,$hostname,$user,$uname | |
Invoke-WebRequest -Uri $uriString -Method Get -ErrorAction SilentlyContinue | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment