Fix harcoded path, should resolv #465

mdns
ThePirateWhoSmellsOfSunflowers 2017-04-06 20:02:00 +02:00
parent 85e28b2757
commit 51082a66fc
1 changed files with 2 additions and 2 deletions

View File

@ -73,7 +73,7 @@ class Module:
script = """
# take a screenshot using screencapture
run_command('screencapture -x /tmp/out.png')
run_command('screencapture -x %s')
# base64 up resulting file, delete the file, return the base64 of the png output
# mocked from the Empire screenshot module
f = open('%s', 'rb')
@ -81,6 +81,6 @@ data = f.read()
f.close()
run_command('rm -f %s')
print data
""" % (savePath, savePath)
""" % (savePath, savePath, savePath)
return script