mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-24 15:51:03 +02:00
wpscan: cleanup old and add rdep on addressable
This commit is contained in:
parent
d4a7f0959d
commit
cc1493c8e5
4 changed files with 1 additions and 78 deletions
|
|
@ -1,2 +1 @@
|
|||
DIST wpscan-2.7.tar.gz 683598 SHA256 036bd19c92991fad4c8c783c4879653dee823697999dee66e5987a01b04b73c3 SHA512 465b8bdc3a5bf437615d632233a01e5769852f930d7c6b13659c223ef24b596e83dfa24efef21b17512eaf1854625d7df24d196fc24935976a491d4ecb9dfe5d WHIRLPOOL 0fe14a12238660f8688b8ac7aec5a9a53e90dfdd1f71311333880f70460c9842d5234068ff6d1a0c5f9e13defdbc4fc36bd8affe9b4ba1eaf1004e8f75564027
|
||||
DIST wpscan-2.8.tar.gz 697808 SHA256 bb1d1d5b775e6670eb7911b70ec65e415425823709e3b9f769946a6c6408bd15 SHA512 c4643af02d5e95cf5fe2797f74c40699ff0af835e4390121c663122f8e76feda5612d4e88132d308e580bddbcff6ff7d0d41296b86e3bbe72d6191935d1c1417 WHIRLPOOL 18b961cec7b72e37b7172a7614c17b86404a98e5cb159ccea65dd0673a9403aa330d7aa5263b2b4b7f27f0c034173f57d11c6a95210808d21b0c44fdf53318c9
|
||||
|
|
|
|||
|
|
@ -1,23 +0,0 @@
|
|||
From bcef4b2de7045a92e70f59d19f4eeaf1906141ac Mon Sep 17 00:00:00 2001
|
||||
From: erwanlr <erwan.lr@gmail.com>
|
||||
Date: Wed, 1 Apr 2015 13:09:10 +0100
|
||||
Subject: [PATCH] Fixes #791 - Rogue character causing the scan of
|
||||
non-wordpress site to crash
|
||||
|
||||
---
|
||||
lib/wpscan/wp_target.rb | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/lib/wpscan/wp_target.rb b/lib/wpscan/wp_target.rb
|
||||
index 4949a6c..8fbb9ba 100644
|
||||
--- a/lib/wpscan/wp_target.rb
|
||||
+++ b/lib/wpscan/wp_target.rb
|
||||
@@ -47,7 +47,7 @@ def wordpress?
|
||||
if wp_content_dir
|
||||
dir = wp_content_dir
|
||||
else
|
||||
- dir = 'wp-content'
|
||||
+ dir = 'wp-content'
|
||||
end
|
||||
|
||||
if response.body =~ /["'][^"']*\/#{Regexp.escape(dir)}\/[^"']*["']/i
|
||||
|
|
@ -1,53 +0,0 @@
|
|||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
EAPI="5"
|
||||
|
||||
inherit eutils
|
||||
|
||||
DESCRIPTION="Wordpress security scanner"
|
||||
HOMEPAGE="http://wpscan.org/"
|
||||
SRC_URI="https://github.com/wpscanteam/wpscan/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
IUSE="hardened test"
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="dev-lang/ruby
|
||||
dev-ruby/rubygems
|
||||
>=dev-ruby/typhoeus-0.6.8
|
||||
dev-ruby/nokogiri
|
||||
dev-ruby/json
|
||||
dev-ruby/terminal-table
|
||||
>=dev-ruby/ruby-progressbar-1.1.0
|
||||
|
||||
test? (
|
||||
>=dev-ruby/webmock-1.9.3
|
||||
dev-ruby/simplecov
|
||||
dev-ruby/rspec
|
||||
)"
|
||||
|
||||
src_prepare() {
|
||||
#https://github.com/wpscanteam/wpscan/issues/706
|
||||
epatch "${FILESDIR}/${PN}"-2.5.1_regular_user.patch
|
||||
#https://github.com/wpscanteam/wpscan/issues/791
|
||||
epatch "${FILESDIR}/${P}"_bug791.patch
|
||||
rm -r README.md
|
||||
sed -i "/require 'bundler\/setup'/d" lib/environment.rb
|
||||
#dev-lang/ruby might need the "hardened" flag to enforce the following:
|
||||
if use hardened; then
|
||||
paxctl -v /usr/bin/ruby19 2>/dev/null | grep MPROTECT | grep disabled || ewarn '!!! Some dependencies such as typhoeus may only work if ruby19 has MPROTECT flag disabled\n You can disable it running paxctl -m /usr/bin/ruby19'
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dodoc CHANGELOG.md CREDITS
|
||||
rm CHANGELOG.md CREDITS
|
||||
insinto /usr/$(get_libdir)/${PN}
|
||||
doins -r *
|
||||
dobin "${FILESDIR}"/wpscan
|
||||
dobin "${FILESDIR}"/wpstools
|
||||
}
|
||||
|
|
@ -23,7 +23,7 @@ RDEPEND="dev-lang/ruby
|
|||
dev-ruby/json
|
||||
dev-ruby/terminal-table
|
||||
>=dev-ruby/ruby-progressbar-1.1.0
|
||||
|
||||
dev-ruby/addressable
|
||||
test? (
|
||||
>=dev-ruby/webmock-1.9.3
|
||||
dev-ruby/simplecov
|
||||
Loading…
Reference in a new issue