Skip to content

Commit

Permalink
Address missing signature db files in windows
Browse files Browse the repository at this point in the history
  • Loading branch information
ajinabraham committed Oct 27, 2024
1 parent a98faa0 commit dcfc8f9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mobsf/DynamicAnalyzer/views/android/analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ def generate_download(apk_dir, md5_hash, download_dir, package):
if is_file_exists(fd_logs):
shutil.copyfile(fd_logs, dfd_logs)
try:
shutil.copytree(sshot, dsshot)
shutil.copytree(sshot, dsshot, dirs_exist_ok=True)

Check failure

Code scanning / CodeQL

Uncontrolled data used in path expression High

This path depends on a
user-provided value
.
This path depends on a
user-provided value
.

Check failure

Code scanning / CodeQL

Uncontrolled data used in path expression High

This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
except Exception:
pass
if is_file_exists(web):
Expand Down
2 changes: 1 addition & 1 deletion mobsf/MobSF/init.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def get_mobsf_home(use_home, base_dir):
if use_home:
src = os.path.join(base_dir, 'signatures/')
try:
shutil.copytree(src, sig_dir)
shutil.copytree(src, sig_dir, dirs_exist_ok=True)
except Exception:
pass
elif not os.path.exists(sig_dir):
Expand Down
2 changes: 1 addition & 1 deletion mobsf/StaticAnalyzer/views/android/icon_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ def get_icon_apk(apk, app_dic):
# piggyback on apktool decompiled resources
try:
apk_tool_res = app_dir / 'apktool_out' / 'res'
copytree(apk_tool_res, res_path)
copytree(apk_tool_res, res_path, dirs_exist_ok=True)

Check failure

Code scanning / CodeQL

Uncontrolled data used in path expression High

This path depends on a
user-provided value
.
This path depends on a
user-provided value
.

Check failure

Code scanning / CodeQL

Uncontrolled data used in path expression High

This path depends on a
user-provided value
.
This path depends on a
user-provided value
.
except Exception:
pass
if res_path.exists():
Expand Down

0 comments on commit dcfc8f9

Please sign in to comment.