Open oxr463 opened 2 years ago
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
What version is python3? Python3.10 https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/1854#issuecomment-1115731963 the setup.
For Vagrant, we're using Python 3.9 on Alpine 3.14
Reference(s):
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.
I couldn't find the alternative packages for Alpine Is there an alternative solution for mobsf?
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.
I've hit a block due to the packages requirements.
==> pentesting-vagrant.vagrant.alpine: ./setup.sh: line 72: wkhtmltopdf: command not found
package required:
==> pentesting-vagrant.vagrant.alpine: ERROR: unable to select packages:
pentesting-vagrant.vagrant.alpine: openssl3-dev (no such package):
unable to fetch packages:
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):
Do you have any resources that I can study to repackage wkhtmltopdf for Alpine?
Reading through this https://wiki.alpinelinux.org/wiki/APKBUILD_Reference.
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 https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/1982.
See also: https://github.com/wkhtmltopdf/packaging
See also: https://github.com/wkhtmltopdf/packaging
They don't seem to have Alpine.