Added missing Invoke-CredentialInjection.ps1 file

Updated .gitignore
1.6
Harmj0y 2016-07-20 21:51:14 -04:00
parent fe43560bad
commit 0163ebec06
3 changed files with 3435 additions and 6 deletions

4
.gitignore vendored
View File

@ -1,5 +1,7 @@
data/empire.db
./data/empire.pem
data/empire.pem
empire.debug
*.pyc
downloads/*
.vscode/*
*.txt

File diff suppressed because one or more lines are too long

View File

@ -17,7 +17,7 @@ class Module:
'Background' : False,
'OutputExtension' : None,
'NeedsAdmin' : True,
'OpsecSafe' : True,
@ -51,7 +51,7 @@ class Module:
'CredID' : {
'Description' : 'CredID from the store to use.',
'Required' : False,
'Value' : ''
'Value' : ''
},
'DomainName' : {
'Description' : 'The domain name of the user account.',
@ -92,7 +92,7 @@ class Module:
def generate(self):
# read in the common module source code
moduleSource = self.mainMenu.installPath + "/data/module_source/credentials/Invoke-CredentialInjection.ps1"
@ -116,7 +116,7 @@ class Module:
# if a credential ID is specified, try to parse
credID = self.options["CredID"]['Value']
if credID != "":
if not self.mainMenu.credentials.is_credential_valid(credID):
print helpers.color("[!] CredID is invalid!")
return ""
@ -145,6 +145,6 @@ class Module:
# if we're just adding a switch
script += " -" + str(option)
else:
script += " -" + str(option) + " " + str(values['Value'])
script += " -" + str(option) + " " + str(values['Value'])
return script