-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Proxy fixes #2490
base: master
Are you sure you want to change the base?
Proxy fixes #2490
Conversation
…erify download, fix upstream proxy function
Saml group mapping
Fix proxy in Jadx download, fix proxy in app func, fix frida server v…
@@ -73,6 +73,12 @@ services: | |||
- POSTGRES_HOST=postgres | |||
- POSTGRES_PORT=5432 | |||
- MOBSF_ASYNC_ANALYSIS=1 | |||
#Proxy options - use it if you behind proxy |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: line indent.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you revert this rename?
opener = build_opener(proxy_handler, https_handler) | ||
install_opener(opener) | ||
try: | ||
with opener.open(Request(PLAYSTORE), timeout=5) as response: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably cleaner to replace this urllib
implementation with requests
as elsewhere.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use settings.PLAYSTORE
instead.
try: | ||
with opener.open(Request(PLAYSTORE), timeout=5) as response: | ||
if response.status == 200: | ||
det = app(package_id) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Add a comment that play store details is fetched only if playstore is reachable.
|
||
from django.conf import settings | ||
from mobsf.MobSF.settings import PLAYSTORE |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could use settings.PLAYSTORE
@@ -0,0 +1,68 @@ | |||
import os |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rename this file as upstream_proxy.py
Describe the Pull Request
Checklist for PR
tox -e lint,test
StaticAnalyzer/tests.py
)Additional Comments (if any)