forked from p34709852/monkey
Fix bug running from path with spaces
This commit is contained in:
parent
1f571503ad
commit
c4f9f774af
|
@ -36,9 +36,11 @@ def run_local_monkey():
|
||||||
|
|
||||||
# run the monkey
|
# run the monkey
|
||||||
try:
|
try:
|
||||||
args = ["%s m0nk3y -s %s:%s" % (target_path, local_ip_addresses()[0], ISLAND_PORT)]
|
|
||||||
if sys.platform == "win32":
|
if sys.platform == "win32":
|
||||||
|
args = ['"%s" m0nk3y -s %s:%s' % (target_path, local_ip_addresses()[0], ISLAND_PORT)]
|
||||||
args = "".join(args)
|
args = "".join(args)
|
||||||
|
else:
|
||||||
|
args = ['%s m0nk3y -s %s:%s' % (target_path, local_ip_addresses()[0], ISLAND_PORT)]
|
||||||
pid = subprocess.Popen(args, shell=True).pid
|
pid = subprocess.Popen(args, shell=True).pid
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
return False, "popen failed: %s" % exc
|
return False, "popen failed: %s" % exc
|
||||||
|
|
Loading…
Reference in New Issue