From 81c5e231cd4a40ac763dedaba75a631404aeaf6e Mon Sep 17 00:00:00 2001 From: blshkv Date: Mon, 30 Mar 2020 09:09:33 +0800 Subject: [PATCH] objection: 1.9.0 bump with frida 7.2.0, https://github.com/sensepost/objection/issues/321 --- dev-python/frida-python/Manifest | 3 + .../frida-python/frida-python-12.8.19.ebuild | 56 +++++++++++++++++++ dev-util/frida-tools/Manifest | 1 + dev-util/frida-tools/frida-tools-7.2.0.ebuild | 24 ++++++++ dev-util/objection/Manifest | 1 + dev-util/objection/objection-1.9.0.ebuild | 44 +++++++++++++++ .../base/package.accept_keywords/dev-python | 5 +- .../base/package.accept_keywords/dev-util | 2 +- 8 files changed, 132 insertions(+), 4 deletions(-) create mode 100644 dev-python/frida-python/frida-python-12.8.19.ebuild create mode 100644 dev-util/frida-tools/frida-tools-7.2.0.ebuild create mode 100644 dev-util/objection/objection-1.9.0.ebuild diff --git a/dev-python/frida-python/Manifest b/dev-python/frida-python/Manifest index bb37fceee..b5d42eb0c 100644 --- a/dev-python/frida-python/Manifest +++ b/dev-python/frida-python/Manifest @@ -1,6 +1,9 @@ DIST frida-12.8.0-py3.6-linux-i686.egg 25141227 BLAKE2B d5077287271c976d1d3386254b45d9c992209d5e4e331e0a779e251a35efc7e210dcee41c49484a5cd1eb0d2df216a265dd09110a2523aa2cdc5b382eb3c1661 SHA512 150ec090ca00bee9601b0e181eaeffbc8ca77ffa884dc2b3345efa4d0521ca2cdb433ded675866a292f46c9f4c4a8901c4018ee22795f593ef0feb868d4d49e2 DIST frida-12.8.0-py3.6-linux-x86_64.egg 23561104 BLAKE2B a831d3be144c8e8cef1c2a54c0df297632bd14868fc34c7c2fcb1e612c1afd0c0842818a9d04f6ca6f99c8587369c7d3baa715d521601b04c98acc9c25ee667f SHA512 1831754911da78b8cd3930f13e4a053f10ce5d2457def8e45f930dc0795eba764b7e9cb53e97e18fd04e281e03da8c730a09ce1f082ca27af9d6d031f4e66bd1 DIST frida-12.8.0.tar.gz 6930 BLAKE2B abc9194d2705fe55a84d0cf74317c1dc3fec75484853572df636efcda8f11c5805913a73db3c5533eca740fca5f92b3a68e89e02e6ab0f4e3d3f193b0c7c5c13 SHA512 91de7208552b007de4c7dc9123e306f4cd4736a68983c67c424417bdea0f983d45616b17d59df98eacceb3ee5e9b88165230dd6e6be9298eb5e04b13d3b4c343 +DIST frida-12.8.19-py3.6-linux-i686.egg 25102361 BLAKE2B 326721d019c25727c6e28253aa6152585e7ac77dd9190a66028cf50d1b4e38224efc0ed7a02c225caaf496d12ece6493d2d1d5a67f4574ad50f796ff50c73ff3 SHA512 db5e4abfced7b365a34da5c2b35d032cc62c5c08646e79af27284a2af10e7b86cfb82e77d6c813eff9c6236ced7a90feaf472c764809fee535c86dcf6c98feb2 +DIST frida-12.8.19-py3.6-linux-x86_64.egg 23525177 BLAKE2B ec205531584eb2fd9f861c97c68b123a65865a773fe7c0d4c3eb518c8a8e45b6b5fb1dced871d555e707143e2463ae5918a4ad850ae972d21bcd828b13f7e085 SHA512 c3c9ffe832047f0ff7060e7344bcec66da7455c179e96084bc27ae218836e3dd9c1e2f11b8446b6f97e62964dd09ba14bd2f2238124a2e588ba309e02bb687bc +DIST frida-12.8.19.tar.gz 7167 BLAKE2B 6dae3ee8f63a8335c8a4a79eb8b92cbf471aee711956695e12f8f5a72b4ce10628ab89663e430da0cb9bf9911b941e1b32dc28e561ac58334f6afaf5015a9eb4 SHA512 b434024927fd6a8fb7bcdaf19f8c473314c6892eb513ec25287a09344ddbb85ef57b49287991407043fc6154344a49d82be001768278ebc568a2a7f0873850d8 DIST frida-12.8.6-py3.6-linux-i686.egg 25152970 BLAKE2B 0c31dadbeb1d672288c57d386b48a62f2d8628b3774938ea24d0074eccfc0b23f7a238d3da679443b198c3e81e7aef40147aae263050f6c6ce2912566308f37e SHA512 6dc63baa185b742a8e4db7a19a46f4eee8470d3f3ab1fcdb59631f62819d309c3033ac3c546d170c054a74cba527efdb586e2dcc6abfbcb8cfd807b2422bf5b1 DIST frida-12.8.6-py3.6-linux-x86_64.egg 23581190 BLAKE2B e3cd6a5230017e5c3a7c8b9ee0d0e02389fa6fe4bd7a2710b571cd9247236ae16560c8205eb157d5878ff491e41c417dffb9b943df1757b5f758a868451d3cc0 SHA512 f40f9b13d4eac5e14f9040b0b362767b87a31161ab139a0da38b47edb654190d41816fa8440838a489daf86280ebae8b2b7ae10cfa0574879a780c330b0a4303 DIST frida-12.8.6.tar.gz 6931 BLAKE2B f9e549135201c5c3fb96198b30e6fd0c30eb0bed0569b294abd3e4c51d1250f10f7279a453b90fccd4ad093ad54b1f3e69b9a6996b5351912f7ca322bf55b5e0 SHA512 0802d13f8f8284641f05b6d793264a12e12731d399effe63030205fb9580a65dea67ae812b7916268457acdec66e031130f1940d70b6fbc203c5d29837fad872 diff --git a/dev-python/frida-python/frida-python-12.8.19.ebuild b/dev-python/frida-python/frida-python-12.8.19.ebuild new file mode 100644 index 000000000..5bd2eb860 --- /dev/null +++ b/dev-python/frida-python/frida-python-12.8.19.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7} ) + +inherit distutils-r1 + +MY_PN="frida" + +DESCRIPTION="Dynamic instrumentation toolkit for reverse-engineers and security researchers" +HOMEPAGE="https://github.com/frida/frida" + +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_PN}-${PV}.tar.gz + x86? ( + https://files.pythonhosted.org/packages/3.6/f/frida/frida-${PV}-py3.6-linux-i686.egg + ) + amd64? ( + https://files.pythonhosted.org/packages/3.6/f/frida/frida-${PV}-py3.6-linux-x86_64.egg + )" +# arm64? ( +# https://files.pythonhosted.org/packages/2.7/f/frida/frida-${PV}-py2.7-linux-aarch64.egg +# https://files.pythonhosted.org/packages/3.5/f/frida/frida-${PV}-py3.5-linux-aarch64.egg +# ) + +LICENSE="wxWinLL-3.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND="" +DEPEND="${PYTHON_DEPS}" + +S="${WORKDIR}/${MY_PN}-${PV}" + +QA_FLAGS_IGNORED="usr/lib.*/python.*/site-packages/_frida.*\.so" + +#PATCHES=( "${FILESDIR}/frida-offline.patch" ) + +src_prepare(){ + #copy symlinks to homedir for offline installation + if use amd64; then + cp -s "${DISTDIR}"/frida-${PV}-py3.6-linux-x86_64.egg "${HOME}" + cp -s "${DISTDIR}"/frida-${PV}-py3.6-linux-x86_64.egg "${HOME}"/frida-${PV}-py3.7-linux-x86_64.egg +# elif use arm64; then +# cp -s "${DISTDIR}"/frida-${PV}-py2.7-linux-aarch64.egg "${HOME}" +# cp -s "${DISTDIR}"/frida-${PV}-py3.5-linux-aarch64.egg "${HOME}" +# cp -s "${DISTDIR}"/frida-${PV}-py3.5-linux-aarch64.egg "${HOME}"/frida-${PV}-py3.6-linux-aarch64.egg +# cp -s "${DISTDIR}"/frida-${PV}-py3.5-linux-aarch64.egg "${HOME}"/frida-${PV}-py3.7-linux-aarch64.egg + elif use x86; then + cp -s "${DISTDIR}"/frida-${PV}-py3.6-linux-i686.egg "${HOME}" + cp -s "${DISTDIR}"/frida-${PV}-py3.6-linux-i686.egg "${HOME}"/frida-${PV}-py3.7-linux-i686.egg + fi + + default +} diff --git a/dev-util/frida-tools/Manifest b/dev-util/frida-tools/Manifest index 3b813f8c6..99e824966 100644 --- a/dev-util/frida-tools/Manifest +++ b/dev-util/frida-tools/Manifest @@ -1,3 +1,4 @@ DIST frida-tools-5.3.0.tar.gz 27220 BLAKE2B bb0f3ae950461763be6ab0a965d839825f3eb380fa5bc903f5de44656a7f2e13cf91bd640b696c689738231e6d75fa1f4e2b89c00392e6a3b7f19f82e7b7edce SHA512 f738b88396241bf93b90dc95aa7f78eac77cda7091405c88995dc63a0aefdf7e4af0a11373ca654e9967b9be148455c986d6c07c2e5cbd779bd451cc89c3f24c DIST frida-tools-6.0.0.tar.gz 28207 BLAKE2B cf5bf94b2bce065d2f88e3a6d7bdd889af2003e6ce552ba174e330c7f2021effe0b93fb437ee704ec13f6e192751749e4079d4f65ab1df7671f7d6b68102fc24 SHA512 d92cc46200e810827c4cf02ff02ff172365f7a4a7f0113650b67856591a00c1a7d4f72221021357d4fd1e67ae9b3ff7c3fb72e7ac05113542a9d0e50511cdecd DIST frida-tools-6.0.1.tar.gz 28213 BLAKE2B 34b3d1c7f6de717c892d2427e3f254a3d2a82c5c2e915ec73053740452b728c8233b16a5dd1807274a760ffbda4d0f2ccae4c75def62ef7ab095e24fc8261093 SHA512 f543c041c799a76104149d5f3bc72663151d370a384957368f19a2f6c553f22320638c8130d0b52a7d7bc75493597c8c7cfc533bf7e9c75edad15f4a7c7b7713 +DIST frida-tools-7.2.0.tar.gz 28849 BLAKE2B abf25dd15445bd2ecbe06072b4e39ca6f0f0b2d8d28de826c65f228a3ac84accb02097a7d0ed24322b31962010b842d01572d59e7794b12500d0ebdd0a390959 SHA512 ecea9d8de9498ecfeb9eb435aceaf7e4ec8663f75d2a7b7ca926732a24fcab34ea0e96d53707c87266300eb7a0fbe6ab911733cc2d633d76cf6258f9aca701e6 diff --git a/dev-util/frida-tools/frida-tools-7.2.0.ebuild b/dev-util/frida-tools/frida-tools-7.2.0.ebuild new file mode 100644 index 000000000..56393d432 --- /dev/null +++ b/dev-util/frida-tools/frida-tools-7.2.0.ebuild @@ -0,0 +1,24 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7} ) + +inherit distutils-r1 + +DESCRIPTION="Frida CLI tools" +HOMEPAGE="https://github.com/frida/frida-tools" + +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${PN}-${PV}.tar.gz" + +LICENSE="wxWinLL-3.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +DEPEND="${PYTHON_DEPS}" +RDEPEND="${DEPEND} + dev-python/colorama[${PYTHON_USEDEP}] + >=dev-python/frida-python-12.8.12[${PYTHON_USEDEP}] + >=dev-python/prompt_toolkit-3.0.3[${PYTHON_USEDEP}] =dev-python/pygments-2.0.2[${PYTHON_USEDEP}]" diff --git a/dev-util/objection/Manifest b/dev-util/objection/Manifest index b2c231f0f..b3251bd53 100644 --- a/dev-util/objection/Manifest +++ b/dev-util/objection/Manifest @@ -1,3 +1,4 @@ DIST objection-1.7.0-node_modules.tar.gz 15801482 BLAKE2B 55008cdde77c06488148f9e093271c729ae9a17779aa9bc0163789294fea92460e22c4e5ea02c5b7a702030fa85e450bcad67d03b5249cd4fbb47fa1668992df SHA512 97b3fadc85b92183cd0057ca0b6108b0f210a8d0ea729cdba9fda5e343629a4390daac9b06da3a4fca27504a70882ee00b819d7b9df04d64202c1d25e0615f88 DIST objection-1.8.3.tar.gz 1680243 BLAKE2B fda478557a53359a6505de47a1832b9a9c2c3d7c93521112ad2a6c07b8ed77a87485db790966d37208dc5b162fe57020f61372df46309146e55de160657f0ab8 SHA512 7338edf7ac08abe040c467b187262b6cda59220ab175ea4e334d6c51a9e70fa59031373c136798dd727e893dc5bf5481950fa2350e4eacee076eea587f8b54ac DIST objection-1.8.4.tar.gz 1680315 BLAKE2B 694b75c6128f3e2e43a1581cc26794903304751237a4ca24429146f1226da40a59e5a84511130cecd8cdf43227f088ba10e3a77bc8f8db0aa91dfba0549fb122 SHA512 4dacae6c50b3f7c48373aacb849833170339a2e8e897245a633738495f998f21fa132141755d4c43106cc9940f3c9f3449e03f62fc62e45143d2ac58471c4691 +DIST objection-1.9.0.tar.gz 1674124 BLAKE2B 98aecf7c587522fb655077bacfebf74d3b05e99cc0d201cecd323b2e9eaea1ca81c201f74722d59fef6e4f3826d038d1cb157bba56653f75226e6792ea66b406 SHA512 97bdeef578e16544f7922fdd868c4c3d38e46ad253cd9c389141c57584cbbb64fb5841e0048fe17ab4f62d1649bb64b63ba656290109582168d8cb23074f046c diff --git a/dev-util/objection/objection-1.9.0.ebuild b/dev-util/objection/objection-1.9.0.ebuild new file mode 100644 index 000000000..9cc8d56c5 --- /dev/null +++ b/dev-util/objection/objection-1.9.0.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7} ) +inherit distutils-r1 + +DESCRIPTION="Runtime mobile exploration" +HOMEPAGE="https://github.com/sensepost/objection" +SRC_URI="https://github.com/sensepost/objection/archive/${PV}.tar.gz -> ${P}.tar.gz + https://dev.pentoo.ch/~blshkv/distfiles/objection-1.7.0-node_modules.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND=">=dev-util/frida-tools-7.0.0[${PYTHON_USEDEP}] + dev-python/frida-python[${PYTHON_USEDEP}] + >=dev-python/prompt_toolkit-3.0.3[${PYTHON_USEDEP}] =dev-python/litecli-1.3.0[${PYTHON_USEDEP}] + net-libs/nodejs[npm]" + +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}]" + +src_prepare() { + rm -r tests + mv "${WORKDIR}/node_modules" "${S}/agent/" || die "unable to move node_modules" + eapply_user +} + +python_compile() { + addpredict /etc/npm + emake frida-agent + distutils-r1_python_compile +} diff --git a/profiles/pentoo/base/package.accept_keywords/dev-python b/profiles/pentoo/base/package.accept_keywords/dev-python index 1fe8c4a74..855575687 100644 --- a/profiles/pentoo/base/package.accept_keywords/dev-python +++ b/profiles/pentoo/base/package.accept_keywords/dev-python @@ -296,9 +296,8 @@ dev-python/PyVirtualDisplay # required by dev-util/objection ~dev-python/delegator-0.1.1 dev-python/htmlentities - -#prompt_toolkit conflicts, stay on v1 -=dev-python/litecli-1.1* +=dev-python/prompt_toolkit-3.0* +=dev-python/litecli-1.3* =dev-python/cli_helpers-1.2* =dev-python/pygments-2.4* diff --git a/profiles/pentoo/base/package.accept_keywords/dev-util b/profiles/pentoo/base/package.accept_keywords/dev-util index d6f23022c..7263d4904 100644 --- a/profiles/pentoo/base/package.accept_keywords/dev-util +++ b/profiles/pentoo/base/package.accept_keywords/dev-util @@ -9,7 +9,7 @@ dev-util/dependency-check-bin dev-util/dwarf-debugger =dev-util/electron-packager-14* =dev-util/emilpro-3* -~dev-util/frida-tools-6.0.0 +=dev-util/frida-tools-7.2* dev-util/ghidra dev-util/jd-gui =dev-util/lief-0.10*