I have a python script but I am not sure how I can use it. The script looks like this
def usage():
print "usage : ./ssl-patch <apk file>"
def unzip_apk(infile, output):
zfile = zipfile.ZipFile(infile, 'r')
zfile.extractall(output)
zfile.close()
def zip_to_apk(indir, output):
outapk = zipfile.ZipFile(output, 'w')
for (path, dirs, files) in os.walk(indir):
zipath = path[len("./" + output):]
for filename in files:
outapk.write(os.path.join(path, filename), os.path.join(zipath, filename), zipfile.ZIP_DEFLATED)
outapk.close()
def escape_dollar(string):
return(re.sub('\$','\\$',string))
I put all the files in one folder then located to it with cd and then wrote nameOfScript.py fileName.apk I have also tried many other ways to write it but cant figure it out.
but I get the error
print "usage : ./ssl-path <apk file>" ^
SyntaxError: invalid syntax
Thanks :)