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

mobsf installation errors #13

Open
oxr463 opened this issue Nov 9, 2021 · 11 comments
Open

mobsf installation errors #13

oxr463 opened this issue Nov 9, 2021 · 11 comments
Labels
bug Something isn't working
Milestone

Comments

@oxr463
Copy link
Contributor

oxr463 commented Nov 9, 2021

default: ERROR: Could not find a version that satisfies the requirement yara-python-dex>=1.0.0 (from apkid==2.1.2->-r requirements.txt (line 24)) (from versions: none)
default: ERROR: No matching distribution found for yara-python-dex>=1.0.0 (from apkid==2.1.2->-r requirements.txt (line 24))
    default: [INSTALL] Migrating Database
    default: Traceback (most recent call last):
    default:   File "manage.py", line 12, in <module>
    default:     from django.core.management import execute_from_command_line
    default: ModuleNotFoundError: No module named 'django'
    default: Traceback (most recent call last):
    default:   File "manage.py", line 12, in <module>
    default:     from django.core.management import execute_from_command_line
    default: ModuleNotFoundError: No module named 'django'
    default: Traceback (most recent call last):
    default:   File "manage.py", line 12, in <module>
    default:     from django.core.management import execute_from_command_line
    default: ModuleNotFoundError: No module named 'django'
    default: ./setup.sh: line 71: wkhtmltopdf: command not found
@oxr463 oxr463 added the bug Something isn't working label Nov 9, 2021
@oxr463 oxr463 added this to the v2022.05.0.alpha milestone Apr 25, 2022
@outzhu
Copy link
Contributor

outzhu commented May 19, 2022

What version is python3? Python3.10 breaks the setup.

Also might need to change apkid==2.1.2 to apkid==2.1.1 in requirements.txt

And add dependencies

  • python3-venv
  • python3-pip? (py3-pip?)
  • build-essential
  • libssl-dev
  • libxslt1-dev
  • libjpeg8-dev
  • zlib1g-dev
  • wkhtmltopdf

@oxr463
Copy link
Contributor Author

oxr463 commented May 19, 2022

@oxr463
Copy link
Contributor Author

oxr463 commented May 19, 2022

Also might need to change apkid==2.1.2 to apkid==2.1.1 in requirements.txt

That would need to be a PR upstream.

@outzhu
Copy link
Contributor

outzhu commented Jun 2, 2022

I couldn't find the alternative packages for Alpine
Is there an alternative solution for mobsf?

@oxr463
Copy link
Contributor Author

oxr463 commented Jun 2, 2022

I couldn't find the alternative packages for Alpine

The names wouldn't be the same. Here is what I found.

Debian Alpine
python3-venv py3-virtualenv
python3-pip py3-pip
build-essential alpine-sdk
libssl-dev openssl3-dev
libxslt1-dev libxslt-dev
libjpeg8-dev jpeg-dev
zlib1g-dev zlib-dev
wkhtmltopdf wkhtmltopdf*

*looks like this was dropped in https://gitlab.alpinelinux.org/alpine/aports/-/issues/12888

Is there an alternative solution for mobsf?

No, we need this tool for mobile app testing.

@outzhu
Copy link
Contributor

outzhu commented Jun 3, 2022

I've hit a block due to the packages requirements.

==> pentesting-vagrant.vagrant.alpine: ./setup.sh: line 72: wkhtmltopdf: command not found

package required:

  • wkhtmltopdf
==> pentesting-vagrant.vagrant.alpine: ERROR: unable to select packages:
    pentesting-vagrant.vagrant.alpine:   openssl3-dev (no such package):

unable to fetch packages:

  • openssl3-dev

@oxr463
Copy link
Contributor Author

oxr463 commented Jun 3, 2022

We might be blocked on mobsf for now due to that dependency issue. Maybe for now we can comment it out to get our packer build to succeeded.

Reference(s):

@oxr463 oxr463 removed this from the v2022.05.0.alpha milestone Jun 3, 2022
@outzhu
Copy link
Contributor

outzhu commented Jul 1, 2022

Do you have any resources that I can study to repackage wkhtmltopdf for Alpine?

Reading through this https://wiki.alpinelinux.org/wiki/APKBUILD_Reference.

@oxr463
Copy link
Contributor Author

oxr463 commented Jul 1, 2022

Do you have any resources that I can study to repackage wkhtmltopdf for Alpine?

Reading through this https://wiki.alpinelinux.org/wiki/APKBUILD_Reference.

Alpine dropped the package due to security issues... We might be able to just build it from source as part of our Packer builds.

Also, looks like MobSF might replace that dependency per MobSF/Mobile-Security-Framework-MobSF#1982.

@oxr463
Copy link
Contributor Author

oxr463 commented Jul 1, 2022

@outzhu
Copy link
Contributor

outzhu commented Jul 4, 2022

See also: https://github.com/wkhtmltopdf/packaging

They don't seem to have Alpine.

  • docker almalinux8-aarch64
  • docker almalinux8-ppc64le
  • docker almalinux8-x86_64
  • docker almalinux9-aarch64
  • docker almalinux9-ppc64le
  • docker almalinux9-x86_64
  • docker amazonlinux2-aarch64
  • docker amazonlinux2-x86_64
  • docker amazonlinux2022-aarch64
  • docker amazonlinux2022-x86_64
  • docker amazonlinux2_lambda
  • docker archlinux-amd64
  • docker bionic-amd64
  • docker bionic-arm64
  • docker bionic-armhf
  • docker bionic-i386
  • docker bionic-ppc64el
  • docker bullseye-amd64
  • docker bullseye-arm64
  • docker bullseye-armel
  • docker bullseye-armhf
  • docker bullseye-i386
  • docker bullseye-ppc64el
  • docker buster-amd64
  • docker buster-arm64
  • docker buster-armel
  • docker buster-armhf
  • docker buster-i386
  • docker buster-ppc64el
  • docker centos7-aarch64
  • docker centos7-i686
  • docker centos7-ppc64le
  • docker centos7-x86_64
  • docker focal-amd64
  • docker focal-arm64
  • docker focal-armhf
  • docker focal-ppc64el
  • docker jammy-amd64
  • docker jammy-arm64
  • docker jammy-armhf
  • docker jammy-ppc64el
  • docker mxe-cross-win32
  • docker mxe-cross-win64
  • docker opensuse.leap15-aarch64
  • docker opensuse.leap15-ppc64le
  • docker opensuse.leap15-x86_64
  • docker raspberrypi.bullseye-armhf
  • docker raspberrypi.buster-armhf
  • vagrant macos-cocoa
  • vagrant msvc2015-win32
  • vagrant msvc2015-win64

@outzhu outzhu removed their assignment Nov 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants