Skip to content

Commit

Permalink
Merge pull request #374 from mjokic/get_domain_sid-module-arguments-fix
Browse files Browse the repository at this point in the history
Fix for the passing arguments to the Get-DomainSID function
  • Loading branch information
Cx01N authored Oct 29, 2020
2 parents bb67b65 + 4a0f3f4 commit ac98739
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/modules/powershell/management/get_domain_sid.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def __init__(self, mainMenu, params=[]):

'Author': ['@harmj0y'],

'Description': ('Returns the SID for the current of specified domain.'),
'Description': ('Returns the SID for the current or specified domain.'),

'Software': '',

Expand Down Expand Up @@ -93,6 +93,7 @@ def generate(self, obfuscate=False, obfuscationCommand=""):
scriptEnd += " -" + str(option) + " " + str(values['Value'])

scriptEnd += ' | Out-String | %{$_ + \"`n\"};"`n'+str(moduleName)+' completed!"'
script += scriptEnd

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

0 comments on commit ac98739

Please sign in to comment.