Download tasks/codeql_python_benchmark51_v2/pyvul-d38a3c1956e86350a0c7/patch.diff from Benchanything/checkerbench: direct link, hf CLI and curl.
- Browser
- Download file 812 Bytes
-
https://huggingface.co/datasets/Benchanything/checkerbench/resolve/main/tasks/codeql_python_benchmark51_v2/pyvul-d38a3c1956e86350a0c7/patch.diff
- Command line
-
hf download hf://datasets/Benchanything/checkerbench/tasks/codeql_python_benchmark51_v2/pyvul-d38a3c1956e86350a0c7/patch.diff
-
curl -L -o patch.diff https://huggingface.co/datasets/Benchanything/checkerbench/resolve/main/tasks/codeql_python_benchmark51_v2/pyvul-d38a3c1956e86350a0c7/patch.diff
812 Bytes
| diff --git a/apkleaks/apkleaks.py b/apkleaks/apkleaks.py | |
| index c51c75e..e1e084f 100644 | |
| --- a/apkleaks/apkleaks.py | |
| +++ b/apkleaks/apkleaks.py | |
| from apkleaks.colors import clr | |
| from contextlib import closing | |
| from distutils.spawn import find_executable | |
| +from pipes import quote | |
| from pyaxmlparser import APK | |
| from urllib.request import urlopen | |
| from zipfile import ZipFile | |
| class APKLeaks: | |
| classes.write(zipped.read("classes.dex")) | |
| except Exception as e: | |
| sys.exit(self.writeln(str(e), clr.WARNING)) | |
| - dec = "%s %s -d %s --deobf" % (self.jadx, dex, self.tempdir) | |
| - os.system(dec) | |
| + args = [self.jadx, dex, "-d", self.tempdir, "--deobf"] | |
| + comm = "%s" % (" ".join(quote(arg) for arg in args)) | |
| + os.system(comm) | |
| return self.tempdir | |
| def unique(self, list): | |