Fixed an issue within generateRogueDotNet.py

This commit is contained in:
mgeeky 2021-01-20 11:51:06 -08:00
parent 01e2fa3643
commit 253fc4c561
1 changed files with 5 additions and 1 deletions

View File

@ -54,6 +54,10 @@ import subprocess
COMPILER_BASE = r'%WINDIR%\\Microsoft.NET\\Framework<ARCH>\\<VER>\\csc.exe' COMPILER_BASE = r'%WINDIR%\\Microsoft.NET\\Framework<ARCH>\\<VER>\\csc.exe'
TYPES_NOT_NEEDING_INPUT_FILE = (
'run-command'
)
COMPILERS = { COMPILERS = {
'v2' : r'v2.0.50727', 'v2' : r'v2.0.50727',
'v4' : r'v4.0.30319', 'v4' : r'v4.0.30319',
@ -714,7 +718,7 @@ def main(argv):
_format = 'powershell' _format = 'powershell'
if len(args.inputFile) > 0 and not os.path.isfile(args.inputFile): if len(args.inputFile) > 0 and not os.path.isfile(args.inputFile) and args.type not in TYPES_NOT_NEEDING_INPUT_FILE:
sys.stderr.write('[?] Input file does not exists.\n\n') sys.stderr.write('[?] Input file does not exists.\n\n')
return False return False