diff --git a/dump.js b/dump.js index 4c48062..767dacf 100644 --- a/dump.js +++ b/dump.js @@ -207,7 +207,7 @@ function dumpModule(name) { var modbase = modules[i].base; var modsize = modules[i].size; var newmodname = modules[i].name; - var newmodpath = getDocumentDir() + "/" + newmodname; + var newmodpath = getDocumentDir() + "/" + newmodname + ".fid"; var oldmodpath = modules[i].path; diff --git a/dump.py b/dump.py index 33d7cc7..8bc0bbf 100755 --- a/dump.py +++ b/dump.py @@ -98,7 +98,7 @@ def on_message(message, data): origin_path = payload['path'] dump_path = payload['dump'] - scp_from = dump_path.replace(' ', '\ ') + scp_from = dump_path scp_to = PAYLOAD_PATH + u'/' with SCPClient(ssh.get_transport()) as scp: @@ -117,7 +117,7 @@ def on_message(message, data): if 'app' in payload: app_path = payload['app'] - scp_from = app_path.replace(' ', '\ ') + scp_from = app_path scp_to = PAYLOAD_PATH + u'/' with SCPClient(ssh.get_transport()) as scp: scp.get(scp_from, scp_to, recursive=True) @@ -229,7 +229,6 @@ def create_dir(path): path = path.strip() path = path.rstrip('\\') if os.path.exists(path): - print 'Removing {}'.format(path) shutil.rmtree(path) try: os.makedirs(path) @@ -285,7 +284,6 @@ if __name__ == '__main__': if args.list_applications: list_applications(device) else: - print "Device {}".format(device) name_or_bundleid = args.target output_ipa = args.output_ipa @@ -299,7 +297,8 @@ if __name__ == '__main__': if output_ipa is None: output_ipa = display_name output_ipa = re.sub('\.ipa$', '', output_ipa) - start_dump(device, pid, output_ipa) + if pid > 0: + start_dump(device, pid, output_ipa) except paramiko.AuthenticationException as e: print e @@ -313,7 +312,6 @@ if __name__ == '__main__': ssh.close() if os.path.exists(PAYLOAD_PATH): - print 'Deleting ' + PAYLOAD_PATH shutil.rmtree(PAYLOAD_PATH) - sys.exit(exit_code) + sys.exit(exit_code) \ No newline at end of file