Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Any plans on a Mobile Verification Toolkit package?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
iromeister
n00b
n00b


Joined: 04 Feb 2017
Posts: 31
Location: Berlin

PostPosted: Thu Jul 22, 2021 1:10 pm    Post subject: Any plans on a Mobile Verification Toolkit package? Reply with quote

In the wake of the Pegasus disclosures Amnesty International created the Mobile Verification Toolkit (MVT). Does anyone plan to make a Gentoo package of it? I'm not able to do that, before anyone asks...
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30985
Location: here

PostPosted: Thu Jul 22, 2021 1:49 pm    Post subject: Reply with quote

Initial ebuild for mvt-1.0.11 but are missing the biplist, iOSbackup, adb-shell and libusb1 python dependencies where you should create the ebuilds
app-forensics/mvt-1.0.11.ebuild:
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

PYTHON_COMPAT=( python3_{8..9} )

if [[ ${PV} == "9999" ]] ; then
        inherit git-r3 distutils-r1
        EGIT_REPO_URI="https://github.com/mvt-project/${PN}.git"
else
        inherit distutils-r1
        SRC_URI="https://github.com/mvt-project/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
        KEYWORDS="~amd64 ~x86"
fi

DESCRIPTION="Forensic traces to identify a potential compromise of Android and iOS devices"
HOMEPAGE="https://github.com/mvt-project/mvt"

LICENSE="MIT"
SLOT="0"

RDEPEND="
        dev-python/adb-shell[${PYTHON_USEDEP}]
        dev-python/biplist[${PYTHON_USEDEP}]
        dev-python/click[${PYTHON_USEDEP}]
        dev-python/iOSbackup[${PYTHON_USEDEP}]
        dev-python/libusb1[${PYTHON_USEDEP}]
        dev-python/requests[${PYTHON_USEDEP}]
        dev-python/rich[${PYTHON_USEDEP}]
        dev-python/simplejson[${PYTHON_USEDEP}]
        dev-python/tld[${PYTHON_USEDEP}]
        dev-python/tqdm[${PYTHON_USEDEP}]
"
BDEPEND="
        dev-python/setuptools[${PYTHON_USEDEP}]
"

You should download some ebuilds from gpo

and finally iOSbackup-0.9.912.ebuild
dev-python/iOSbackup-0.9.912.ebuild:
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

PYTHON_COMPAT=( python3_{8..9} )

inherit distutils-r1

DESCRIPTION="Reads and extracts files from a password-encrypted iOS backup"
HOMEPAGE="https://pypi.org/project/iOSbackup/ https://github.com/avibrazil/iOSbackup"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
KEYWORDS="~amd64"

LICENSE="GPL-2"
SLOT="0"

RDEPEND="dev-python/biplist[${PYTHON_USEDEP}]
        dev-python/pycryptodome[${PYTHON_USEDEP}]"
BDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"

_________________
Questions are guaranteed in life; Answers aren't.


Last edited by fedeliallalinea on Thu Jul 22, 2021 6:20 pm; edited 1 time in total
Back to top
View user's profile Send private message
iromeister
n00b
n00b


Joined: 04 Feb 2017
Posts: 31
Location: Berlin

PostPosted: Thu Jul 22, 2021 2:52 pm    Post subject: Reply with quote

Cool, thanks @fedeliallalinea, that was quick!
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30985
Location: here

PostPosted: Thu Jul 22, 2021 8:07 pm    Post subject: Reply with quote

Moved from Networking & Security to Unsupported Software.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Waterdevil
Apprentice
Apprentice


Joined: 15 Aug 2017
Posts: 172
Location: LaniakeaHypercluster VirgoSupercluster MilkomedaGroup OrionArm Sector001 GouldBelt SolSystem Austria

PostPosted: Fri Apr 14, 2023 9:18 am    Post subject: issues with emerge mvt Reply with quote

Hello World,

I tried like your suggestions, but since then python hast changed to 3.10. So I get an error message:
Code:
emerge biplist mvt
Calculating dependencies... done!
Dependency resolution took 4.31 s.


emerge: there are no ebuilds built with USE flags to satisfy "dev-python/biplist[python_targets_python3_9(-)?]".
!!! One of the following packages is required to complete your request:
- app-forensics/mvt-1.0.11::my_repository (Change USE: -python_targets_python3_9, this change violates use flag constraints defined by app-forensics/mvt-1.0.11: 'any-of ( python_targets_python3_9 )')
(dependency required by "app-forensics/mvt-1.0.11::my_repository" [ebuild])
(dependency required by "mvt" [argument])


I added
Code:
/etc/portage/package.use
=dev-python/biplist-1.0.3 python_targets_python3_9
=app-forensics/mvt-1.0.11::my_repository python_targets_python3_9

but it doesn't help.

How can I solve this?

Many thanks
and best regards
_________________
_____________________
Aut semper aut numquam

Main-Sys: LianLi modded Big Cube 8000,X11DPG-QT,MEM:64G,LSI 9305,HDD:102TB(16x3T,8x6T,4x1T,1x0,5Tm.2,4x0,5TSSD),nVidia GTX1060,NIC:2x10GbSFP+,Fans:20,PSU:1200W+500W,UPS:APC1500VA,FibreChannel,Tandberg LTO-6
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30985
Location: here

PostPosted: Fri Apr 14, 2023 9:25 am    Post subject: Reply with quote

Try to change from PYTHON_COMPAT=( python3_{8..9} ) to PYTHON_COMPAT=( python3_{9..11} ).
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
vitaly-zdanevich
n00b
n00b


Joined: 01 Dec 2019
Posts: 71
Location: Belarus

PostPosted: Sun Aug 13, 2023 10:26 am    Post subject: Reply with quote

`pkgcheck scan` returns

> DistutilsNonPEP517Build: version 2.4.1: uses deprecated non-PEP517 build mode, please switch to DISTUTILS_USE_PEP517=...
Back to top
View user's profile Send private message
vitaly-zdanevich
n00b
n00b


Joined: 01 Dec 2019
Posts: 71
Location: Belarus

PostPosted: Sun Aug 13, 2023 11:46 am    Post subject: Reply with quote

I added this overlay http://gpo.zugaina.org/Overlays/homeassistantrepository/dev-python/adb-shell but `adb scan` returns:

> NonsolvableDepsInStable: version 2.4.1: nonsolvable depset(rdepend) keyword(~amd64) stable profile (default/linux/amd64/17.1) (62 total): solutions: [ dev-python/adb-shell[python_targets_python3_10(-),python_targets_python3_11(-),python_targets_python3_12(-)], dev-python/biplist[python_targets_python3_10(-),python_targets_python3_11(-),python_targets_python3_12(-)], dev-python/iOSbackup[python_targets_python3_10(-),python_targets_python3_11(-),python_targets_python3_12(-)], dev-python/libusb1[python_targets_python3_10(-),python_targets_python3_11(-),python_targets_python3_12(-)] ]

but as you see in the first link - dev-python/adb-shell is exists on that overlay
Back to top
View user's profile Send private message
vitaly-zdanevich
n00b
n00b


Joined: 01 Dec 2019
Posts: 71
Location: Belarus

PostPosted: Sun Aug 13, 2023 12:20 pm    Post subject: Reply with quote

fedeliallalinea wrote:

and finally iOSbackup-0.9.912.ebuild


I got this error on emerge:

Code:
>>> Emerging (1 of 2) dev-python/iOSbackup-0.9.925::guru
 * Fetching files in the background.
 * To view fetch progress, run in another terminal:
 * tail -f /var/log/emerge-fetch.log
 * iOSbackup-0.9.925.tar.gz BLAKE2B SHA512 size ;-) ...                                                                                                                                                                                                                    [ ok ]
>>> Unpacking source...
>>> Unpacking iOSbackup-0.9.925.tar.gz to /var/tmp/portage/dev-python/iOSbackup-0.9.925/work
>>> Source unpacked in /var/tmp/portage/dev-python/iOSbackup-0.9.925/work
>>> Preparing source in /var/tmp/portage/dev-python/iOSbackup-0.9.925/work/iOSbackup-0.9.925 ...
 * Build system packages:
 *   dev-python/setuptools         : 67.8.0-r1
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-python/iOSbackup-0.9.925/work/iOSbackup-0.9.925 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-python/iOSbackup-0.9.925/work/iOSbackup-0.9.925 ...
 * python3_11: running distutils-r1_run_phase distutils-r1_python_compile
python3.11 setup.py build -j 32
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/iOSbackup-0.9.925/work/iOSbackup-0.9.925/setup.py", line 2, in <module>
    from iOSbackup import __version__
  File "/var/tmp/portage/dev-python/iOSbackup-0.9.925/work/iOSbackup-0.9.925/iOSbackup/__init__.py", line 18, in <module>
    import NSKeyedUnArchiver
ModuleNotFoundError: No module named 'NSKeyedUnArchiver'
Back to top
View user's profile Send private message
vitaly-zdanevich
n00b
n00b


Joined: 01 Dec 2019
Posts: 71
Location: Belarus

PostPosted: Sun Aug 13, 2023 12:30 pm    Post subject: Reply with quote

Added NSKeyedUnArchiver, another error:
Quote:
Installing mvt-ios script to /var/tmp/portage/app-forensics/mvt-2.4.1/image/_python3.11/usr/lib/python-exec/python3.11
* The following unexpected files/directories were found top-level
* in the site-packages directory:
*
* /usr/lib/python3.11/site-packages/tests
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum