mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-05-04 18:40:19 +02:00
exploitdb: fix issue #306
This commit is contained in:
parent
7653415081
commit
398185b96b
3 changed files with 54 additions and 6 deletions
|
|
@ -1,14 +1,12 @@
|
|||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="5"
|
||||
EAPI=6
|
||||
|
||||
inherit git-r3
|
||||
inherit eutils git-r3
|
||||
|
||||
DESCRIPTION="All exploits from exploit-db.com"
|
||||
HOMEPAGE="http://www.exploit-db.com/"
|
||||
SRC_URI=""
|
||||
EGIT_REPO_URI="https://github.com/offensive-security/exploit-database"
|
||||
|
||||
LICENSE="public-domain"
|
||||
|
|
@ -19,10 +17,18 @@ IUSE=""
|
|||
DEPEND=""
|
||||
RDEPEND=""
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}/disable-update.patch"
|
||||
eapply_user
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto /etc
|
||||
doins "${FILESDIR}/searchsploit_rc"
|
||||
|
||||
insinto /usr/share/${PN}
|
||||
doins -r *
|
||||
|
||||
fperms +x /usr/share/${PN}/searchsploit
|
||||
dosym /usr/share/${PN}/searchsploit /usr/bin/searchsploit
|
||||
dosym "${EPREFIX}"/usr/share/${PN}/searchsploit /usr/bin/searchsploit
|
||||
}
|
||||
|
|
|
|||
16
app-exploits/exploitdb/files/disable-update.patch
Normal file
16
app-exploits/exploitdb/files/disable-update.patch
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
--- searchsploit.orig 2018-08-04 07:52:12.380881696 +0800
|
||||
+++ searchsploit 2018-08-04 08:10:02.619869667 +0800
|
||||
@@ -108,6 +108,13 @@
|
||||
## Update database check
|
||||
function update()
|
||||
{
|
||||
+ echo -e "\nWarning: the build-in update (-u) is disabled in Pentoo \n "
|
||||
+ echo -e "Instead, you should update it using one of the following commands:"
|
||||
+ echo -e " emerge -1 app-exploits/exploitdb"
|
||||
+ echo -e " smart-live-rebuild\n"
|
||||
+ #something went wrong
|
||||
+ exit 1
|
||||
+
|
||||
arraylength="${#files_array[@]}"
|
||||
for (( i=0; i<${arraylength}; i++ )); do
|
||||
## Check to see if we already have the value
|
||||
26
app-exploits/exploitdb/files/searchsploit_rc
Normal file
26
app-exploits/exploitdb/files/searchsploit_rc
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
##-- Program Settings
|
||||
progname="$( basename "$0" )"
|
||||
|
||||
|
||||
##-- Exploits
|
||||
files_array+=("files_exploits.csv")
|
||||
path_array+=("/usr/share/exploitdb")
|
||||
name_array+=("Exploit")
|
||||
#git_array+=("https://github.com/offensive-security/exploit-database.git")
|
||||
package_array+=("exploitdb")
|
||||
|
||||
|
||||
##-- Shellcodes
|
||||
files_array+=("files_shellcodes.csv")
|
||||
path_array+=("/usr/share/exploitdb")
|
||||
name_array+=("Shellcode")
|
||||
#git_array+=("https://github.com/offensive-security/exploit-database.git")
|
||||
package_array+=("exploitdb")
|
||||
|
||||
|
||||
##-- Papers
|
||||
files_array+=("files_papers.csv")
|
||||
path_array+=("/usr/share/exploitdb-papers")
|
||||
name_array+=("Paper")
|
||||
#git_array+=("https://github.com/offensive-security/exploit-database-papers.git")
|
||||
package_array+=("exploitdb-papers")
|
||||
Loading…
Reference in a new issue