refactor: project.show_command_output to def:ShowCommandOutput

This commit is contained in:
Dobin
2024-02-19 19:32:21 +00:00
parent 3654d8cfda
commit f915b253a7
3 changed files with 3 additions and 2 deletions
+1
View File
@@ -7,6 +7,7 @@ class FilePath(str):
# with shellcodes/createfile.bin
VerifyFilename: FilePath = r'C:\Temp\a'
ShowCommandOutput: bool = False
# Correlated with real template files
# in plugins/
+1 -1
View File
@@ -54,7 +54,7 @@ def run_process_checkret(args, check=True):
if ret.stderr != None:
logger.info(ret.stderr.decode('utf-8'))
raise Exception("Command failed: " + " ".join(args))
if project.show_command_output:
if ShowCommandOutput:
logger.info("> " + " ".join(args))
if ret.stdout != None:
logger.info(ret.stdout.decode('utf-8'))
+1 -1
View File
@@ -40,7 +40,7 @@ def main():
args = parser.parse_args()
if args.show:
project.show_command_output = True
ShowCommandOutput = True
if args.verify:
project.payload_path = "shellcodes/createfile.bin"