Skip to content
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

setup problem #2256

Closed
rushbruh opened this issue Sep 2, 2023 · 3 comments
Closed

setup problem #2256

rushbruh opened this issue Sep 2, 2023 · 3 comments

Comments

@rushbruh
Copy link

rushbruh commented Sep 2, 2023

=======================MobSF Clean Script for Unix=======================
Running this script will delete the Scan database, all files uploaded and generated.

Deleting all uploads
Deleting all downloads
Deleting Static Analyzer migrations
Deleting Dynamic Analyzer migrations
Deleting MobSF migrations
Deleting Python byte code files
Deleting temp and log files
Deleting Scan database
Deleting Secret file
Deleting MobSF data directory: /root/.MobSF
Done
[INSTALL] Migrating Database
Traceback (most recent call last):
File "/home/nazmul/Tools/Android Pentest Tools/Mobile-Security-Framework-MobSF/mobsf/../manage.py", line 18, in
execute_from_command_line(sys.argv)
File "/root/.cache/pypoetry/virtualenvs/mobsf-wttquxP3-py3.11/lib/python3.11/site-packages/django/core/management/init.py", line 446, in execute_from_command_line
utility.execute()
File "/root/.cache/pypoetry/virtualenvs/mobsf-wttquxP3-py3.11/lib/python3.11/site-packages/django/core/management/init.py", line 440, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/root/.cache/pypoetry/virtualenvs/mobsf-wttquxP3-py3.11/lib/python3.11/site-packages/django/core/management/base.py", line 402, in run_from_argv
self.execute(*args, **cmd_options)
File "/root/.cache/pypoetry/virtualenvs/mobsf-wttquxP3-py3.11/lib/python3.11/site-packages/django/core/management/base.py", line 443, in execute
self.check()
File "/root/.cache/pypoetry/virtualenvs/mobsf-wttquxP3-py3.11/lib/python3.11/site-packages/django/core/management/base.py", line 475, in check
all_issues = checks.run_checks(
^^^^^^^^^^^^^^^^^^
File "/root/.cache/pypoetry/virtualenvs/mobsf-wttquxP3-py3.11/lib/python3.11/site-packages/django/core/checks/registry.py", line 88, in run_checks
new_errors = check(app_configs=app_configs, databases=databases)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/.cache/pypoetry/virtualenvs/mobsf-wttquxP3-py3.11/lib/python3.11/site-packages/django/core/checks/urls.py", line 14, in check_url_config
return check_resolver(resolver)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/.cache/pypoetry/virtualenvs/mobsf-wttquxP3-py3.11/lib/python3.11/site-packages/django/core/checks/urls.py", line 24, in check_resolver
return check_method()
^^^^^^^^^^^^^^
File "/root/.cache/pypoetry/virtualenvs/mobsf-wttquxP3-py3.11/lib/python3.11/site-packages/django/urls/resolvers.py", line 494, in check
for pattern in self.url_patterns:
^^^^^^^^^^^^^^^^^
File "/root/.cache/pypoetry/virtualenvs/mobsf-wttquxP3-py3.11/lib/python3.11/site-packages/django/utils/functional.py", line 57, in get
res = instance.dict[self.name] = self.func(instance)
^^^^^^^^^^^^^^^^^^^
File "/root/.cache/pypoetry/virtualenvs/mobsf-wttquxP3-py3.11/lib/python3.11/site-packages/django/urls/resolvers.py", line 715, in url_patterns
patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
^^^^^^^^^^^^^^^^^^^
File "/root/.cache/pypoetry/virtualenvs/mobsf-wttquxP3-py3.11/lib/python3.11/site-packages/django/utils/functional.py", line 57, in get
res = instance.dict[self.name] = self.func(instance)
^^^^^^^^^^^^^^^^^^^
File "/root/.cache/pypoetry/virtualenvs/mobsf-wttquxP3-py3.11/lib/python3.11/site-packages/django/urls/resolvers.py", line 708, in urlconf_module
return import_module(self.urlconf_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1204, in _gcd_import
File "", line 1176, in _find_and_load
File "", line 1147, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "/home/nazmul/Tools/Android Pentest Tools/Mobile-Security-Framework-MobSF/mobsf/MobSF/urls.py", line 12, in
from mobsf.MobSF.views.api import api_static_analysis as api_sz
File "/home/nazmul/Tools/Android Pentest Tools/Mobile-Security-Framework-MobSF/mobsf/MobSF/views/api/api_static_analysis.py", line 11, in
from mobsf.StaticAnalyzer.views.android.static_analyzer import static_analyzer
File "/home/nazmul/Tools/Android Pentest Tools/Mobile-Security-Framework-MobSF/mobsf/StaticAnalyzer/views/android/static_analyzer.py", line 40, in
from mobsf.StaticAnalyzer.views.android.cert_analysis import (
File "/home/nazmul/Tools/Android Pentest Tools/Mobile-Security-Framework-MobSF/mobsf/StaticAnalyzer/views/android/cert_analysis.py", line 16, in
from oscrypto import asymmetric
File "/root/.cache/pypoetry/virtualenvs/mobsf-wttquxP3-py3.11/lib/python3.11/site-packages/oscrypto/asymmetric.py", line 19, in
from ._asymmetric import _unwrap_private_key_info
File "/root/.cache/pypoetry/virtualenvs/mobsf-wttquxP3-py3.11/lib/python3.11/site-packages/oscrypto/_asymmetric.py", line 27, in
from .kdf import pbkdf1, pbkdf2, pkcs12_kdf
File "/root/.cache/pypoetry/virtualenvs/mobsf-wttquxP3-py3.11/lib/python3.11/site-packages/oscrypto/kdf.py", line 9, in
from .util import rand_bytes
File "/root/.cache/pypoetry/virtualenvs/mobsf-wttquxP3-py3.11/lib/python3.11/site-packages/oscrypto/util.py", line 14, in
from ._openssl.util import rand_bytes
File "/root/.cache/pypoetry/virtualenvs/mobsf-wttquxP3-py3.11/lib/python3.11/site-packages/oscrypto/_openssl/util.py", line 6, in
from ._libcrypto import libcrypto, libcrypto_version_info, handle_openssl_error
File "/root/.cache/pypoetry/virtualenvs/mobsf-wttquxP3-py3.11/lib/python3.11/site-packages/oscrypto/_openssl/_libcrypto.py", line 9, in
from ._libcrypto_cffi import (
File "/root/.cache/pypoetry/virtualenvs/mobsf-wttquxP3-py3.11/lib/python3.11/site-packages/oscrypto/_openssl/_libcrypto_cffi.py", line 44, in
raise LibraryNotFoundError('Error detecting the version of libcrypto')
oscrypto.errors.LibraryNotFoundError: Error detecting the version of libcrypto
Traceback (most recent call last):
File "/home/nazmul/Tools/Android Pentest Tools/Mobile-Security-Framework-MobSF/mobsf/../manage.py", line 18, in
execute_from_command_line(sys.argv)
File "/root/.cache/pypoetry/virtualenvs/mobsf-wttquxP3-py3.11/lib/python3.11/site-packages/django/core/management/init.py", line 446, in execute_from_command_line
utility.execute()
File "/root/.cache/pypoetry/virtualenvs/mobsf-wttquxP3-py3.11/lib/python3.11/site-packages/django/core/management/init.py", line 440, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/root/.cache/pypoetry/virtualenvs/mobsf-wttquxP3-py3.11/lib/python3.11/site-packages/django/core/management/base.py", line 402, in run_from_argv
self.execute(*args, **cmd_options)
File "/root/.cache/pypoetry/virtualenvs/mobsf-wttquxP3-py3.11/lib/python3.11/site-packages/django/core/management/base.py", line 443, in execute
self.check()
File "/root/.cache/pypoetry/virtualenvs/mobsf-wttquxP3-py3.11/lib/python3.11/site-packages/django/core/management/base.py", line 475, in check
all_issues = checks.run_checks(
^^^^^^^^^^^^^^^^^^
File "/root/.cache/pypoetry/virtualenvs/mobsf-wttquxP3-py3.11/lib/python3.11/site-packages/django/core/checks/registry.py", line 88, in run_checks
new_errors = check(app_configs=app_configs, databases=databases)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/.cache/pypoetry/virtualenvs/mobsf-wttquxP3-py3.11/lib/python3.11/site-packages/django/core/checks/urls.py", line 14, in check_url_config
return check_resolver(resolver)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/.cache/pypoetry/virtualenvs/mobsf-wttquxP3-py3.11/lib/python3.11/site-packages/django/core/checks/urls.py", line 24, in check_resolver
return check_method()
^^^^^^^^^^^^^^
File "/root/.cache/pypoetry/virtualenvs/mobsf-wttquxP3-py3.11/lib/python3.11/site-packages/django/urls/resolvers.py", line 494, in check
for pattern in self.url_patterns:
^^^^^^^^^^^^^^^^^
File "/root/.cache/pypoetry/virtualenvs/mobsf-wttquxP3-py3.11/lib/python3.11/site-packages/django/utils/functional.py", line 57, in get
res = instance.dict[self.name] = self.func(instance)
^^^^^^^^^^^^^^^^^^^
File "/root/.cache/pypoetry/virtualenvs/mobsf-wttquxP3-py3.11/lib/python3.11/site-packages/django/urls/resolvers.py", line 715, in url_patterns
patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
^^^^^^^^^^^^^^^^^^^
File "/root/.cache/pypoetry/virtualenvs/mobsf-wttquxP3-py3.11/lib/python3.11/site-packages/django/utils/functional.py", line 57, in get
res = instance.dict[self.name] = self.func(instance)
^^^^^^^^^^^^^^^^^^^
File "/root/.cache/pypoetry/virtualenvs/mobsf-wttquxP3-py3.11/lib/python3.11/site-packages/django/urls/resolvers.py", line 708, in urlconf_module
return import_module(self.urlconf_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1204, in _gcd_import
File "", line 1176, in _find_and_load
File "", line 1147, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "/home/nazmul/Tools/Android Pentest Tools/Mobile-Security-Framework-MobSF/mobsf/MobSF/urls.py", line 12, in
from mobsf.MobSF.views.api import api_static_analysis as api_sz
File "/home/nazmul/Tools/Android Pentest Tools/Mobile-Security-Framework-MobSF/mobsf/MobSF/views/api/api_static_analysis.py", line 11, in
from mobsf.StaticAnalyzer.views.android.static_analyzer import static_analyzer
File "/home/nazmul/Tools/Android Pentest Tools/Mobile-Security-Framework-MobSF/mobsf/StaticAnalyzer/views/android/static_analyzer.py", line 40, in
from mobsf.StaticAnalyzer.views.android.cert_analysis import (
File "/home/nazmul/Tools/Android Pentest Tools/Mobile-Security-Framework-MobSF/mobsf/StaticAnalyzer/views/android/cert_analysis.py", line 16, in
from oscrypto import asymmetric
File "/root/.cache/pypoetry/virtualenvs/mobsf-wttquxP3-py3.11/lib/python3.11/site-packages/oscrypto/asymmetric.py", line 19, in
from ._asymmetric import _unwrap_private_key_info
File "/root/.cache/pypoetry/virtualenvs/mobsf-wttquxP3-py3.11/lib/python3.11/site-packages/oscrypto/_asymmetric.py", line 27, in
from .kdf import pbkdf1, pbkdf2, pkcs12_kdf
File "/root/.cache/pypoetry/virtualenvs/mobsf-wttquxP3-py3.11/lib/python3.11/site-packages/oscrypto/kdf.py", line 9, in
from .util import rand_bytes
File "/root/.cache/pypoetry/virtualenvs/mobsf-wttquxP3-py3.11/lib/python3.11/site-packages/oscrypto/util.py", line 14, in
from ._openssl.util import rand_bytes
File "/root/.cache/pypoetry/virtualenvs/mobsf-wttquxP3-py3.11/lib/python3.11/site-packages/oscrypto/_openssl/util.py", line 6, in
from ._libcrypto import libcrypto, libcrypto_version_info, handle_openssl_error
File "/root/.cache/pypoetry/virtualenvs/mobsf-wttquxP3-py3.11/lib/python3.11/site-packages/oscrypto/_openssl/_libcrypto.py", line 9, in
from ._libcrypto_cffi import (
File "/root/.cache/pypoetry/virtualenvs/mobsf-wttquxP3-py3.11/lib/python3.11/site-packages/oscrypto/_openssl/_libcrypto_cffi.py", line 44, in
raise LibraryNotFoundError('Error detecting the version of libcrypto')
oscrypto.errors.LibraryNotFoundError: Error detecting the version of libcrypto
Traceback (most recent call last):
File "/home/nazmul/Tools/Android Pentest Tools/Mobile-Security-Framework-MobSF/mobsf/../manage.py", line 18, in
execute_from_command_line(sys.argv)
File "/root/.cache/pypoetry/virtualenvs/mobsf-wttquxP3-py3.11/lib/python3.11/site-packages/django/core/management/init.py", line 446, in execute_from_command_line
utility.execute()
File "/root/.cache/pypoetry/virtualenvs/mobsf-wttquxP3-py3.11/lib/python3.11/site-packages/django/core/management/init.py", line 440, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/root/.cache/pypoetry/virtualenvs/mobsf-wttquxP3-py3.11/lib/python3.11/site-packages/django/core/management/base.py", line 402, in run_from_argv
self.execute(*args, **cmd_options)
File "/root/.cache/pypoetry/virtualenvs/mobsf-wttquxP3-py3.11/lib/python3.11/site-packages/django/core/management/base.py", line 448, in execute
output = self.handle(*args, **options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/.cache/pypoetry/virtualenvs/mobsf-wttquxP3-py3.11/lib/python3.11/site-packages/django/core/management/base.py", line 96, in wrapped
res = handle_func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/.cache/pypoetry/virtualenvs/mobsf-wttquxP3-py3.11/lib/python3.11/site-packages/django/core/management/commands/migrate.py", line 97, in handle
self.check(databases=[database])
File "/root/.cache/pypoetry/virtualenvs/mobsf-wttquxP3-py3.11/lib/python3.11/site-packages/django/core/management/base.py", line 475, in check
all_issues = checks.run_checks(
^^^^^^^^^^^^^^^^^^
File "/root/.cache/pypoetry/virtualenvs/mobsf-wttquxP3-py3.11/lib/python3.11/site-packages/django/core/checks/registry.py", line 88, in run_checks
new_errors = check(app_configs=app_configs, databases=databases)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/.cache/pypoetry/virtualenvs/mobsf-wttquxP3-py3.11/lib/python3.11/site-packages/django/core/checks/urls.py", line 14, in check_url_config
return check_resolver(resolver)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/.cache/pypoetry/virtualenvs/mobsf-wttquxP3-py3.11/lib/python3.11/site-packages/django/core/checks/urls.py", line 24, in check_resolver
return check_method()
^^^^^^^^^^^^^^
File "/root/.cache/pypoetry/virtualenvs/mobsf-wttquxP3-py3.11/lib/python3.11/site-packages/django/urls/resolvers.py", line 494, in check
for pattern in self.url_patterns:
^^^^^^^^^^^^^^^^^
File "/root/.cache/pypoetry/virtualenvs/mobsf-wttquxP3-py3.11/lib/python3.11/site-packages/django/utils/functional.py", line 57, in get
res = instance.dict[self.name] = self.func(instance)
^^^^^^^^^^^^^^^^^^^
File "/root/.cache/pypoetry/virtualenvs/mobsf-wttquxP3-py3.11/lib/python3.11/site-packages/django/urls/resolvers.py", line 715, in url_patterns
patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
^^^^^^^^^^^^^^^^^^^
File "/root/.cache/pypoetry/virtualenvs/mobsf-wttquxP3-py3.11/lib/python3.11/site-packages/django/utils/functional.py", line 57, in get
res = instance.dict[self.name] = self.func(instance)
^^^^^^^^^^^^^^^^^^^
File "/root/.cache/pypoetry/virtualenvs/mobsf-wttquxP3-py3.11/lib/python3.11/site-packages/django/urls/resolvers.py", line 708, in urlconf_module
return import_module(self.urlconf_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1204, in _gcd_import
File "", line 1176, in _find_and_load
File "", line 1147, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "/home/nazmul/Tools/Android Pentest Tools/Mobile-Security-Framework-MobSF/mobsf/MobSF/urls.py", line 12, in
from mobsf.MobSF.views.api import api_static_analysis as api_sz
File "/home/nazmul/Tools/Android Pentest Tools/Mobile-Security-Framework-MobSF/mobsf/MobSF/views/api/api_static_analysis.py", line 11, in
from mobsf.StaticAnalyzer.views.android.static_analyzer import static_analyzer
File "/home/nazmul/Tools/Android Pentest Tools/Mobile-Security-Framework-MobSF/mobsf/StaticAnalyzer/views/android/static_analyzer.py", line 40, in
from mobsf.StaticAnalyzer.views.android.cert_analysis import (
File "/home/nazmul/Tools/Android Pentest Tools/Mobile-Security-Framework-MobSF/mobsf/StaticAnalyzer/views/android/cert_analysis.py", line 16, in
from oscrypto import asymmetric
File "/root/.cache/pypoetry/virtualenvs/mobsf-wttquxP3-py3.11/lib/python3.11/site-packages/oscrypto/asymmetric.py", line 19, in
from ._asymmetric import _unwrap_private_key_info
File "/root/.cache/pypoetry/virtualenvs/mobsf-wttquxP3-py3.11/lib/python3.11/site-packages/oscrypto/_asymmetric.py", line 27, in
from .kdf import pbkdf1, pbkdf2, pkcs12_kdf
File "/root/.cache/pypoetry/virtualenvs/mobsf-wttquxP3-py3.11/lib/python3.11/site-packages/oscrypto/kdf.py", line 9, in
from .util import rand_bytes
File "/root/.cache/pypoetry/virtualenvs/mobsf-wttquxP3-py3.11/lib/python3.11/site-packages/oscrypto/util.py", line 14, in
from ._openssl.util import rand_bytes
File "/root/.cache/pypoetry/virtualenvs/mobsf-wttquxP3-py3.11/lib/python3.11/site-packages/oscrypto/_openssl/util.py", line 6, in
from ._libcrypto import libcrypto, libcrypto_version_info, handle_openssl_error
File "/root/.cache/pypoetry/virtualenvs/mobsf-wttquxP3-py3.11/lib/python3.11/site-packages/oscrypto/_openssl/_libcrypto.py", line 9, in
from ._libcrypto_cffi import (
File "/root/.cache/pypoetry/virtualenvs/mobsf-wttquxP3-py3.11/lib/python3.11/site-packages/oscrypto/_openssl/_libcrypto_cffi.py", line 44, in
raise LibraryNotFoundError('Error detecting the version of libcrypto')
oscrypto.errors.LibraryNotFoundError: Error detecting the version of libcrypto
Traceback (most recent call last):
File "/home/nazmul/Tools/Android Pentest Tools/Mobile-Security-Framework-MobSF/mobsf/../manage.py", line 18, in
execute_from_command_line(sys.argv)
File "/root/.cache/pypoetry/virtualenvs/mobsf-wttquxP3-py3.11/lib/python3.11/site-packages/django/core/management/init.py", line 446, in execute_from_command_line
utility.execute()
File "/root/.cache/pypoetry/virtualenvs/mobsf-wttquxP3-py3.11/lib/python3.11/site-packages/django/core/management/init.py", line 440, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/root/.cache/pypoetry/virtualenvs/mobsf-wttquxP3-py3.11/lib/python3.11/site-packages/django/core/management/base.py", line 402, in run_from_argv
self.execute(*args, **cmd_options)
File "/root/.cache/pypoetry/virtualenvs/mobsf-wttquxP3-py3.11/lib/python3.11/site-packages/django/core/management/base.py", line 448, in execute
output = self.handle(*args, **options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/.cache/pypoetry/virtualenvs/mobsf-wttquxP3-py3.11/lib/python3.11/site-packages/django/core/management/base.py", line 96, in wrapped
res = handle_func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/.cache/pypoetry/virtualenvs/mobsf-wttquxP3-py3.11/lib/python3.11/site-packages/django/core/management/commands/m

@github-actions
Copy link

github-actions bot commented Sep 2, 2023

👋 @Nazmul8091
Issues is only for reporting a bug/feature request. For limited support, questions, and discussions, please join MobSF Slack channel
Please include all the requested and relevant information when opening a bug report. Improper reports will be closed without any response.

@ajinabraham
Copy link
Member

Please use slack for support

@baptx
Copy link

baptx commented Mar 14, 2024

@rushbruh Please share the Slack link to your comment if you got your issue fixed, for future reference if people have the same issue.
Anyway, I got the issue fixed with this solution: #2286
So it looks like GitHub was more appropriate than Slack to talk about this since it was more a bug than support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants