From fd12ef7629b882c75bd2d3f67f1f96e3aa0ca7bf Mon Sep 17 00:00:00 2001 From: Yury Martynov Date: Mon, 6 May 2019 17:15:18 +0300 Subject: [PATCH] xsstracer: new tool --- net-misc/xsstracer/Manifest | 1 + net-misc/xsstracer/metadata.xml | 8 +++++ net-misc/xsstracer/xsstracer-20160123.ebuild | 1 + net-misc/xsstracer/xsstracer-99999999.ebuild | 38 ++++++++++++++++++++ 4 files changed, 48 insertions(+) create mode 100644 net-misc/xsstracer/Manifest create mode 100644 net-misc/xsstracer/metadata.xml create mode 120000 net-misc/xsstracer/xsstracer-20160123.ebuild create mode 100644 net-misc/xsstracer/xsstracer-99999999.ebuild diff --git a/net-misc/xsstracer/Manifest b/net-misc/xsstracer/Manifest new file mode 100644 index 000000000..ca29bf948 --- /dev/null +++ b/net-misc/xsstracer/Manifest @@ -0,0 +1 @@ +DIST xsstracer-20160123.tar.gz 2031 BLAKE2B cbe0eb53d235048ec35d99bf809f339448ab1b1012a028a5146c1cd367a1ae67028b951d59ca83badc66d457c6a9527625995c1d642593c080e3b3b5d49d50dd SHA512 778a10bbe476f1143e32d804cc292a9dee9d188631675965da602332454dc91e291153339fcf0a9ef34e62a6463e77568fa700c33bdc4f6aa1d6581166a4877e diff --git a/net-misc/xsstracer/metadata.xml b/net-misc/xsstracer/metadata.xml new file mode 100644 index 000000000..c4511c144 --- /dev/null +++ b/net-misc/xsstracer/metadata.xml @@ -0,0 +1,8 @@ + + + + + email@linxon.ru + Yury Martynov + + diff --git a/net-misc/xsstracer/xsstracer-20160123.ebuild b/net-misc/xsstracer/xsstracer-20160123.ebuild new file mode 120000 index 000000000..8a152b9aa --- /dev/null +++ b/net-misc/xsstracer/xsstracer-20160123.ebuild @@ -0,0 +1 @@ +xsstracer-99999999.ebuild \ No newline at end of file diff --git a/net-misc/xsstracer/xsstracer-99999999.ebuild b/net-misc/xsstracer/xsstracer-99999999.ebuild new file mode 100644 index 000000000..6eac35f87 --- /dev/null +++ b/net-misc/xsstracer/xsstracer-99999999.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python2_7 ) + +inherit eutils python-r1 + +DESCRIPTION="A small python script to check for Cross-Site Tracing (XST)" +HOMEPAGE="https://github.com/1N3/XSSTracer" + +if [[ ${PV} == *9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/1N3/XSSTracer" +else + # snapshot: 20160123 + HASH_COMMIT="f2ed21a50d5ee09c5cd2303ea309c2a1e4a2f524" + + SRC_URI="https://github.com/1N3/XSSTracer/archive/${HASH_COMMIT}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~arm ~arm64 ~mips ~x86" + S="${WORKDIR}/XSSTracer-${HASH_COMMIT}" +fi + +LICENSE="Unlicense" +SLOT="0" + +IUSE="" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" +RDEPEND="${PYTHON_DEPS}" + +src_install() { + dodoc README.md xsstracer_exploit.js + + python_foreach_impl python_doscript ${PN}.py + make_wrapper \ + "${PN}" \ + "python2 /usr/bin/${PN}.py" +}