Skip to content

Commit

Permalink
Revert "Check for internet before attempting to download APK (MobSF#2422
Browse files Browse the repository at this point in the history
)"

This reverts commit f6193dc.
  • Loading branch information
yiwan330445 authored Nov 20, 2024
1 parent d1c9cb1 commit a44c1f8
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions mobsf/MobSF/views/apk_downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
handle_uploaded_file,
)
from mobsf.MobSF.utils import (
is_internet_available,
is_path_traversal,
is_zip_magic,
strict_package_check,
Expand Down Expand Up @@ -136,9 +135,6 @@ def apk_download(package):
downloaded_file = None
data = None
try:
if not is_internet_available():
logger.warning('Internet Not Available. Unable to download APK')
return None
if not strict_package_check(package) or is_path_traversal(package):
return None
logger.info('Attempting to download: %s', package)
Expand Down

0 comments on commit a44c1f8

Please sign in to comment.