Skip to content

Commit 6dc55e6

Browse files
authored
Merge pull request #191 from dsmouse/peri-1
Add option to call other python bin
2 parents 83a7898 + 1a81887 commit 6dc55e6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

loki.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1403,7 +1403,7 @@ def updateLoki(sigsOnly):
14031403
if os.path.exists(os.path.join(get_application_path(), 'loki-upgrader.exe')) and os_platform == "windows":
14041404
pArgs.append('loki-upgrader.exe')
14051405
elif os.path.exists(os.path.join(get_application_path(), 'loki-upgrader.py')):
1406-
pArgs.append('python')
1406+
pArgs.append(args.python)
14071407
pArgs.append('loki-upgrader.py')
14081408
else:
14091409
logger.log("ERROR", "Update", "Cannot find neither thor-upgrader.exe nor thor-upgrader.py in the current working directory.")
@@ -1471,6 +1471,7 @@ def main():
14711471
parser.add_argument('--logfolder', help='Folder to use for logging when log file is not specified', metavar='log-folder', default='')
14721472
parser.add_argument('--nopesieve', action='store_true', help='Do not perform pe-sieve scans', default=False)
14731473
parser.add_argument('--pesieveshellc', action='store_true', help='Perform pe-sieve shellcode scan', default=False)
1474+
parser.add_argument('--python', action='store', help='Override default python path', default='python')
14741475
parser.add_argument('--nolisten', action='store_true', help='Dot not show listening connections', default=False)
14751476
parser.add_argument('--excludeprocess', action='append', help='Specify an executable name to exclude from scans, can be used multiple times', default=[])
14761477
parser.add_argument('--force', action='store_true',

0 commit comments

Comments
 (0)