Skip to content

Commit

Permalink
update cve_patch_android
Browse files Browse the repository at this point in the history
  • Loading branch information
firmianay committed Mar 8, 2024
1 parent ecb3c3a commit beb9bd5
Show file tree
Hide file tree
Showing 6 changed files with 432 additions and 108 deletions.
3 changes: 2 additions & 1 deletion apk_scan/apk_leaks.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def extract(results, name, matches):
results[name].append(secret)


def analysis(apk_path: Path):
def analysis(apk_path: Path, regexes: dict=regexes):
jadx_java = apk_path.parent.joinpath('jadx_java')
report_file = apk_path.parent.joinpath('SecScan/leaks.json')

Expand All @@ -136,6 +136,7 @@ def analysis(apk_path: Path):

with open(report_file, 'w+') as f:
json.dump(results, f, indent=4)
return results


def argument():
Expand Down
2 changes: 2 additions & 0 deletions cve_scan/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ $ python3 cve_patch_linux.py scan --repo ~/kernel --version 5.10

```sh
$ python3 cve_patch_android.py update --version 11 # 更新CVE补丁库
$ python3 cve_patch_android.py format --repo ~/hmi --manifest 2024-01-01 # 生成仓库补丁
$ python3 cve_patch_android.py format --repo ~/hmi --date 2024-01-01 # 生成仓库补丁
$ python3 cve_patch_android.py scan --repo ~/hmi --version 11
```

Expand Down
Loading

0 comments on commit beb9bd5

Please sign in to comment.