Update appcmd.py

Change context.log.error for context.log.fail
main
Shad0wC0ntr0ller 2023-08-18 14:00:11 -04:00 committed by GitHub
parent 0821a8d99d
commit 0142a68cb3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ class CMEModule:
connection.conn.listPath('C$', '\\Windows\\System32\\inetsrv\\appcmd.exe')
self.execute_appcmd(context, connection)
except:
context.log.error("appcmd.exe not found, this module is not applicable.")
context.log.fail("appcmd.exe not found, this module is not applicable.")
return
def execute_appcmd(self, context, connection):
@ -80,4 +80,4 @@ class CMEModule:
apppool_name = ""
if not credentials_set:
context.log.error("No credentials found :( ")
context.log.fail("No credentials found :( ")