wesng: new tool

This commit is contained in:
Guido Kroon 2019-04-08 18:03:50 +02:00
parent bd366cd000
commit 761863e1e7
No known key found for this signature in database
GPG key ID: 394C398C531EFAB0
3 changed files with 42 additions and 0 deletions

View file

@ -0,0 +1 @@
DIST wesng-20190408.tar.gz 2301201 BLAKE2B d3eaa77c2dc7bb1e61a403541cf47d6d8f12cefddebbfe9fa71b5e89950dbb13a8aa4ced62733e4fec3158760838c27e7dd93dce4e5f516bef7a290d01a87d89 SHA512 f0543e034b6eb4bbcd0c5f7c1706f84074eaf73d5b86c2025a05a2ab7523b5e8965c668538b95485fc58d2347ad37f129da21357cf9b4df1b4da82f6e4711a2f

View file

@ -0,0 +1,3 @@
#!/usr/bin/env bash
cd /usr/share/wesng
exec ./wes.py "$@"

View file

@ -0,0 +1,38 @@
# Copyright 1999-2019 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python{3_5,3_6,3_7} )
inherit python-single-r1
if [[ ${PV} = *9999* ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/bitsadmin/wesng.git"
KEYWORDS=""
else
KEYWORDS="~amd64 ~x86"
EGIT_COMMIT="802dc10fd6ec7ada1aab44f31906fedc96b8fb22"
SRC_URI="https://github.com/bitsadmin/wesng/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
fi
DESCRIPTION="Windows Exploit Suggester - Next Generation"
HOMEPAGE="https://github.com/bitsadmin/wesng"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND=""
DEPEND="${RDEPEND}"
S="${WORKDIR}/${PN}-${EGIT_COMMIT}"
src_install() {
python_fix_shebang wes.py
insinto "/usr/share/${PN}"
doins -r collector validation CVEs.zip definitions.zip wes.py
fperms 0700 "/usr/share/${PN}/wes.py"
newsbin "${FILESDIR}/wes.sh" wes
}