From bfe6fd7a59cd8574236739a2e49e681ac2003de4 Mon Sep 17 00:00:00 2001 From: Anton Bolshakov Date: Sun, 13 Mar 2022 10:28:54 +0800 Subject: [PATCH] traitor-0.0.14.ebuild --- app-exploits/traitor/Manifest | 1 + app-exploits/traitor/traitor-0.0.14.ebuild | 38 ++++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 app-exploits/traitor/traitor-0.0.14.ebuild diff --git a/app-exploits/traitor/Manifest b/app-exploits/traitor/Manifest index 771e42816..7147c2c3e 100644 --- a/app-exploits/traitor/Manifest +++ b/app-exploits/traitor/Manifest @@ -1 +1,2 @@ +DIST traitor-0.0.14.tar.gz 1731197 BLAKE2B 0a7ee3e5af203d7fbd8e99ca8665503777f13d35744b4c0d5a8d9e056a10bc0a6871c638e4af6809bc6721017ff90aa221b6e71bdff82e8899db232247169b81 SHA512 d507a4a7aad40a57b38917923411d599895fc40483f30b08955f8536f055aa793ae5e7144303f2df128ff1e8311592913303c69b40eb933a865566900ba9530f DIST traitor-0.0.3.tar.gz 2117288 BLAKE2B 6449f650e3505bb4435d9b570516032e4d48a83b9175144e78273a1bdbf0c93b76d9370ac178b0e4556eb7f5c3c52f71e535b5ebea804ed73ba9b4e90a34b3b4 SHA512 71a5f0d7d19cbe94c0f4903768f4979f4e0cafb80c3027880a83c5335f5969868c6d9f883dfe512da1a6f8f735da70fecdffd6fdfdaeaa379dfc64e02f2cada5 diff --git a/app-exploits/traitor/traitor-0.0.14.ebuild b/app-exploits/traitor/traitor-0.0.14.ebuild new file mode 100644 index 000000000..6933c08d5 --- /dev/null +++ b/app-exploits/traitor/traitor-0.0.14.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +# go mod vendor && grep "# g" ./vendor/modules.txt | sort +EGO_PN="github.com/liamg/traitor" +#EGO_VENDOR=( +# "github.com/sirupsen/logrus v1.4.2" +#) + +inherit golang-vcs-snapshot + +DESCRIPTION="Automatically exploit low-hanging fruit to pop a root shell" +HOMEPAGE="https://github.com/liamg/traitor" + +SRC_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz + ${EGO_VENDOR_URI}" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 ~arm64 x86" + +BDEPEND=">=dev-lang/go-1.13" + +src_compile() { + GOPATH="${S}:$(get_golibdir_gopath)" \ + GOCACHE="${T}/go-cache" \ + go build -v -work -x -ldflags="-w" ./... || die +} + +src_install(){ + GOPATH="${S}:$(get_golibdir_gopath)" \ + GOCACHE="${T}/go-cache" \ + go install -v -work -x -ldflags="-w" ./... || die + + dobin bin/traitor +}