mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-19 05:11:05 +02:00
dotdotpwn: directory traversal fuzzer, ebuild submitted by kyron and lovingly fixed by me
This commit is contained in:
parent
aec5b982de
commit
4e223e416c
2 changed files with 60 additions and 0 deletions
2
app-fuzz/dotdotpwn/Manifest
Normal file
2
app-fuzz/dotdotpwn/Manifest
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
DIST dotdotpwn-v2.1.tar.gz 27478 RMD160 4b0f913eabc5c43b4a6810261d3bc43784de48d0 SHA1 c245eb85d1fa76978130f1bf5d7326894fdcc54e SHA256 dc08b1efa2acdffd376cece72189cb8862611ee023be690fd9a155d4b30878b6
|
||||
EBUILD dotdotpwn-2.1.ebuild 1476 RMD160 811e592d068402c6696e4cc000c0c50a9140be44 SHA1 0038b10e3632d9e00448986fb2fa282fe0106ee4 SHA256 4e17e5f0cade9ff86dd42ef6ec7dbcba239a0fa9526c74a3d3bb398d49d14786
|
||||
58
app-fuzz/dotdotpwn/dotdotpwn-2.1.ebuild
Normal file
58
app-fuzz/dotdotpwn/dotdotpwn-2.1.ebuild
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
EAPI=4
|
||||
|
||||
DESCRIPTION="The Directory Traversal Fuzzer."
|
||||
HOMEPAGE="http://dotdotpwn.blogspot.com"
|
||||
SRC_URI="http://www.brainoverflow.org/code/${PN}-v${PV}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="os-detection"
|
||||
|
||||
RDEPEND="dev-lang/perl
|
||||
perl-core/Switch
|
||||
dev-libs/openssl dev-perl/Net-SSLeay
|
||||
perl-core/Time-HiRes
|
||||
app-portage/g-cpan
|
||||
os-detection? ( net-analyzer/nmap )"
|
||||
|
||||
S=${WORKDIR}/${PN}-v${PV}
|
||||
|
||||
src_prepare() {
|
||||
sed -i -e 's:retrieved_files:/etc/dotdotpwn/retrieved_files:' \
|
||||
DotDotPwn/FTP.pm || die
|
||||
|
||||
sed -i -e 's:retrieved_files:/etc/dotdotpwn/retrieved_files:' \
|
||||
DotDotPwn/TFTP.pm || die
|
||||
}
|
||||
|
||||
pkg_setup(){
|
||||
PERL_MM_USE_DEFAULT=1 cpan -i HTTP::Lite
|
||||
PERL_MM_USE_DEFAULT=1 cpan -i Net::FTP
|
||||
PERL_MM_USE_DEFAULT=1 cpan -i TFTP
|
||||
PERL_MM_USE_DEFAULT=1 cpan -i IO::Socket
|
||||
PERL_MM_USE_DEFAULT=1 cpan -i Getopt::Std
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
einfo "nothing to compile"
|
||||
true
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto `perl -e 'use strict; print map {"$INC{$_}"} keys %INC' | awk '{sub("strict.pm","") ; print }'`
|
||||
doins -r DotDotPwn || die "install DotDotPwn packages failed"
|
||||
|
||||
insinto /etc/dotdotpwn
|
||||
doins *.txt || die "install info and howto data failed"
|
||||
|
||||
insinto /etc/dotdotpwn
|
||||
doins -r retrieved_files || die "install retrieved_files dir failed"
|
||||
|
||||
dobin dotdotpwn.pl || die "install failed"
|
||||
dosym /usr/bin/dotdotpwn.pl /usr/bin/dotdotpwn || die
|
||||
}
|
||||
Loading…
Reference in a new issue