mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-18 21:00:56 +02:00
veil-evasion: get settings file back, capstone: sync with gentoo
This commit is contained in:
parent
00772f8918
commit
dd65e8931c
8 changed files with 147 additions and 135 deletions
|
|
@ -0,0 +1,96 @@
|
|||
#!/usr/bin/python
|
||||
|
||||
import errno
|
||||
import os
|
||||
from os.path import expanduser
|
||||
|
||||
def mkdir_p(path):
|
||||
try:
|
||||
os.makedirs(path)
|
||||
except OSError as exc: # Python >2.5
|
||||
if exc.errno == errno.EEXIST and os.path.isdir(path):
|
||||
pass
|
||||
else:
|
||||
raise
|
||||
|
||||
HOME_PATH = expanduser("~")
|
||||
|
||||
##################################################################################################
|
||||
#
|
||||
# Veil-Framework configuration file
|
||||
#
|
||||
# Run update.py to automatically set all these options to their defaults.
|
||||
#
|
||||
##################################################################################################
|
||||
|
||||
|
||||
|
||||
#################################################
|
||||
#
|
||||
# General system options
|
||||
#
|
||||
#################################################
|
||||
|
||||
# OS to use (Kali/Backtrack/Debian/Windows)
|
||||
OPERATING_SYSTEM="Linux"
|
||||
|
||||
# Terminal clearing method to use (use "false" to disable it)
|
||||
TERMINAL_CLEAR="clear"
|
||||
|
||||
# Path to temporary directory
|
||||
TEMP_DIR="/tmp/"
|
||||
|
||||
# Default options to pass to msfvenom for shellcode creation
|
||||
MSFVENOM_OPTIONS=""
|
||||
|
||||
# The path to the metasploit framework, for example: /usr/share/metasploit-framework/
|
||||
METASPLOIT_PATH="/usr/lib/metasploit"
|
||||
|
||||
# The path to msfvenom for shellcode generation purposes
|
||||
MSFVENOM_PATH="/usr/bin/"
|
||||
|
||||
# The path to pyinstaller, for example: /opt/pyinstaller-2.0/
|
||||
PYINSTALLER_PATH="/opt/pyinstaller-2.0/"
|
||||
|
||||
|
||||
#################################################
|
||||
#
|
||||
# Veil-Evasion specific options
|
||||
#
|
||||
#################################################
|
||||
|
||||
VEIL_RESULTS_PATH=HOME_PATH+"/.veil-evasion"
|
||||
|
||||
# Veil-Evasion install path
|
||||
VEIL_EVASION_PATH="/usr/lib/veil-evasion"
|
||||
|
||||
# Path to output the source of payloads
|
||||
PAYLOAD_SOURCE_PATH=VEIL_RESULTS_PATH+"/source/"
|
||||
|
||||
# Path to output compiled payloads
|
||||
PAYLOAD_COMPILED_PATH=VEIL_RESULTS_PATH+"/compiled/"
|
||||
|
||||
# Whether to generate a msf handler script and where to place it
|
||||
GENERATE_HANDLER_SCRIPT="True"
|
||||
HANDLER_PATH=VEIL_RESULTS_PATH+"/handlers/"
|
||||
|
||||
# Running hash list of all payloads generated
|
||||
HASH_LIST=VEIL_RESULTS_PATH+"/hashes.txt"
|
||||
|
||||
|
||||
#################################################
|
||||
#
|
||||
# Veil-Catapult specific options
|
||||
#
|
||||
#################################################
|
||||
|
||||
# Veil-Catapult install path
|
||||
VEIL_CATAPULT_PATH=VEIL_EVASION_PATH+"/veil-catapult/"
|
||||
|
||||
# Path to output Veil-Catapult resource/cleanup files
|
||||
CATAPULT_RESOURCE_PATH=VEIL_RESULTS_PATH+"/catapult/"
|
||||
|
||||
mkdir_p(PAYLOAD_SOURCE_PATH)
|
||||
mkdir_p(PAYLOAD_COMPILED_PATH)
|
||||
mkdir_p(HANDLER_PATH)
|
||||
mkdir_p(CATAPULT_RESOURCE_PATH)
|
||||
|
|
@ -1,4 +1 @@
|
|||
DIST capstone-3.0.1.tar.gz 2782421 SHA256 f6de496ced7b4fd667e7ce97223f17a15e3d29d68abedd466f73690655cc4e2f SHA512 440cdca263a018b22acbd24298aee7be0f094bda507d4d930ac6994c3b9e3fd9fcac18011c3ae74b4aba75f921f0c497de5ac9749f41325ba78dd54e38dee65f WHIRLPOOL 99ecbe7fdb008a6076f4270569b167380400ac483e7b4661c791120da024cceb142bf61a9dc8e962d33e738fbadcaf966ac6b25c3e809738eb0a1a7042bebf8b
|
||||
DIST capstone-3.0.2.tar.gz 2789288 SHA256 4505a33a04f5172e3ad667ab6bf045e2aa16d7fdb990483b08ce0a9599bae18b SHA512 931259ef9d2972f175a8594c0bca2788e6f0b792b415b3dffce6357dd0c7720c67df933994c26236a52d47845e39af1d99c5e2384a5da0d224c94bda523e92bd WHIRLPOOL 51ad8e312109d801ac6d66f832bd63cac4c9b2d97d4417451ba6eab9efb15963576cf488f90da25ce61ed15c4e2bc4c2ac2beeb877f14135c1af4063b7afefce
|
||||
DIST capstone-3.0.3.tar.gz 2795817 SHA256 e81aad5e98d940cb21515dd7b7b2f878a048f4bfa08485549808973e5a52af7f SHA512 5847d89efe2d139d1dacff73547bfe682def6c23310da89dc8b84686e2a718dd361da242417a895bb0fc425401b9baf15348f1994da052a05c2f64a238659c54 WHIRLPOOL 8b3a2e23c92fffa4cceb2a837fba4b88507f82cefe793a907514da759485735381ab5f6c3adc4ca094255b73e1783c348a90d4984987c76a93a05e169e154dbf
|
||||
DIST capstone-3.0.4.tar.gz 2800818 SHA256 5d6dadf5864c56f8de66c66088fa68e849d0bff6577865a4f81b6f23112b14f2 SHA512 a5c29e7c559b5391d6a4ec9a7f766699ea6d321aa2f1fc57fdcec893107fa3ef2f5f6323629971c1129f1ca087df4f3ad03d0a8234d2eae368c8ccfec04dbf4d WHIRLPOOL 24aa002e215ee2a74c06a9be40218c78258a853028c74e1cdf95a5e2ea484471cf084cc8f5cc9db1aaefc16cf80a0b37480d4af60ca9119730334cbe2a02b906
|
||||
|
|
|
|||
|
|
@ -1,33 +0,0 @@
|
|||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: blshkv$
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils multilib
|
||||
|
||||
#MY_PV=${PV//_/-}
|
||||
DESCRIPTION="A lightweight multi-platform, multi-architecture disassembly framework"
|
||||
HOMEPAGE="http://www.capstone-engine.org/"
|
||||
SRC_URI="https://github.com/aquynh/capstone/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0/3"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
#IUSE="python"
|
||||
|
||||
#RDEPEND="python? ( >=dev-python/capstone-python-${PV} )"
|
||||
RDEPEND=""
|
||||
DEPEND=""
|
||||
#TODO: add java and ocaml bindings
|
||||
|
||||
#S=${WORKDIR}/${PN}-${MY_PV}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${ED}" LIBDIRARCH=$(get_libdir) install
|
||||
# if use !test; then
|
||||
# dodir /usr/share/"${PN}"/
|
||||
# cp -R "${S}"/tests "${D}/usr/share/${PN}/" || die "Install failed!"
|
||||
# fi
|
||||
dodoc README
|
||||
}
|
||||
|
|
@ -1,33 +0,0 @@
|
|||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: blshkv$
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils multilib
|
||||
|
||||
#MY_PV=${PV//_/-}
|
||||
DESCRIPTION="A lightweight multi-platform, multi-architecture disassembly framework"
|
||||
HOMEPAGE="http://www.capstone-engine.org/"
|
||||
SRC_URI="https://github.com/aquynh/capstone/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0/3"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
#IUSE="python"
|
||||
|
||||
#RDEPEND="python? ( >=dev-python/capstone-python-${PV} )"
|
||||
RDEPEND=""
|
||||
DEPEND=""
|
||||
#TODO: add java and ocaml bindings
|
||||
|
||||
#S=${WORKDIR}/${PN}-${MY_PV}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${ED}" LIBDIRARCH=$(get_libdir) install
|
||||
# if use !test; then
|
||||
# dodir /usr/share/"${PN}"/
|
||||
# cp -R "${S}"/tests "${D}/usr/share/${PN}/" || die "Install failed!"
|
||||
# fi
|
||||
dodoc README
|
||||
}
|
||||
|
|
@ -1,33 +0,0 @@
|
|||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: blshkv$
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils multilib
|
||||
|
||||
#MY_PV=${PV//_/-}
|
||||
DESCRIPTION="A lightweight multi-platform, multi-architecture disassembly framework"
|
||||
HOMEPAGE="http://www.capstone-engine.org/"
|
||||
SRC_URI="https://github.com/aquynh/capstone/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0/3"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
#IUSE="python"
|
||||
|
||||
#RDEPEND="python? ( >=dev-python/capstone-python-${PV} )"
|
||||
RDEPEND=""
|
||||
DEPEND=""
|
||||
#TODO: add java and ocaml bindings
|
||||
|
||||
#S=${WORKDIR}/${PN}-${MY_PV}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${ED}" LIBDIRARCH=$(get_libdir) install
|
||||
# if use !test; then
|
||||
# dodir /usr/share/"${PN}"/
|
||||
# cp -R "${S}"/tests "${D}/usr/share/${PN}/" || die "Install failed!"
|
||||
# fi
|
||||
dodoc README
|
||||
}
|
||||
51
dev-libs/capstone/capstone-3.0.4-r2.ebuild
Normal file
51
dev-libs/capstone/capstone-3.0.4-r2.ebuild
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit multilib toolchain-funcs
|
||||
|
||||
DESCRIPTION="disassembly/disassembler framework + bindings"
|
||||
HOMEPAGE="http://www.capstone-engine.org/"
|
||||
SRC_URI="https://github.com/aquynh/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0/3" # libcapstone.so.3
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
IUSE="python"
|
||||
|
||||
RDEPEND="python? ( >=dev-python/capstone-python-${PV} )"
|
||||
RDEPEND=""
|
||||
DEPEND="${RDEPEND}"
|
||||
#TODO: add java and ocaml bindings
|
||||
|
||||
src_configure() {
|
||||
{
|
||||
cat <<-EOF
|
||||
# Gentoo overrides:
|
||||
# verbose build
|
||||
V = 1
|
||||
# toolchain
|
||||
AR = $(tc-getAR)
|
||||
CC = $(tc-getCC)
|
||||
RANLIB = $(tc-getRANLIB)
|
||||
# toolchain flags
|
||||
CFLAGS = ${CFLAGS}
|
||||
LDFLAGS = ${LDFLAGS}
|
||||
# libs
|
||||
LIBDIRARCH = $(get_libdir)
|
||||
EOF
|
||||
} >> config.mk || die
|
||||
|
||||
}
|
||||
|
||||
#the old style
|
||||
#src_install() {
|
||||
# emake DESTDIR="${ED}" LIBDIRARCH=$(get_libdir) install
|
||||
# if use !test; then
|
||||
# dodir /usr/share/"${PN}"/
|
||||
# cp -R "${S}"/tests "${D}/usr/share/${PN}/" || die "Install failed!"
|
||||
# fi
|
||||
# dodoc README
|
||||
#}
|
||||
|
|
@ -1,33 +0,0 @@
|
|||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: blshkv$
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils multilib
|
||||
|
||||
#MY_PV=${PV//_/-}
|
||||
DESCRIPTION="A lightweight multi-platform, multi-architecture disassembly framework"
|
||||
HOMEPAGE="http://www.capstone-engine.org/"
|
||||
SRC_URI="https://github.com/aquynh/capstone/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0/3"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
IUSE="python"
|
||||
|
||||
RDEPEND="python? ( >=dev-python/capstone-python-${PV} )"
|
||||
RDEPEND=""
|
||||
DEPEND=""
|
||||
#TODO: add java and ocaml bindings
|
||||
|
||||
#S=${WORKDIR}/${PN}-${MY_PV}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${ED}" LIBDIRARCH=$(get_libdir) install
|
||||
# if use !test; then
|
||||
# dodir /usr/share/"${PN}"/
|
||||
# cp -R "${S}"/tests "${D}/usr/share/${PN}/" || die "Install failed!"
|
||||
# fi
|
||||
dodoc README
|
||||
}
|
||||
Loading…
Reference in a new issue