Merge pull request #481 from ThePirateWhoSmellsOfSunflowers/fix-harcoded-path

Fix harcoded path, should resolv #465
mdns
Chris Ross 2017-04-06 17:53:06 -04:00 committed by GitHub
commit dd13b13604
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