spiderfoot: remove, unmaintained

This commit is contained in:
Rick Farina (Zero_Chaos) 2023-09-06 09:21:38 -04:00
parent 692158d151
commit e24fb23ea1
No known key found for this signature in database
GPG key ID: A29433C0AA431DDC
19 changed files with 0 additions and 516 deletions

View file

@ -1,8 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>unknown@pentoo.ch</email>
<name>Author Unknown</name>
</maintainer>
</pkgmetadata>

View file

@ -1,9 +0,0 @@
# Copyright 2019-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit acct-group
DESCRIPTION="Group for SpiderFoot"
ACCT_GROUP_ID=-1

View file

@ -1,8 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>unknown@pentoo.ch</email>
<name>Author Unknown</name>
</maintainer>
</pkgmetadata>

View file

@ -1,13 +0,0 @@
# Copyright 2019-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit acct-user
DESCRIPTION="User for SpiderFoot"
ACCT_USER_ID=-1
ACCT_USER_HOME=/var/lib/spiderfoot
ACCT_USER_GROUPS=( ${PN} )
acct-user_add_deps

View file

@ -1,2 +0,0 @@
DIST spiderfoot-3.0.tar.gz 3478605 BLAKE2B dbf6e058f01e768dfef85ddcb059ce5c5e5070adf96dbecdf40ef5e6bbbc99e0f25820ee67d68f59aa55d35d867c8648d70b99981840f07f36ed76db58f284b6 SHA512 abf64b6b819f8535f87237649be677af27aaddc729897eff8d4c27bd441e32862a42f8b84cf61ad3a0b9e1fc940fddf9d2e47d7decfcb62812239c5a9e01850a
DIST spiderfoot-3.5.tar.gz 3416175 BLAKE2B 16939bd69dca73de4796e7415a03684a2159b7f8e73ac4d6e8f075cbbe56b34f2c62b6c833bb5cf1597504e72b7237a61fb704ccf774521bd6588868d5bfc3b4 SHA512 9c9c1e1c22d95cccac0a2fcbd41db8ecb2a7807864fe67be0c5d2f56fa9a09aefb7b8c9d4cd2778b8bf8bd9f22a4efc9836a34398903b4464c38c49861765539

View file

@ -1,39 +0,0 @@
diff -ur a/sfdb.py b/sfdb.py
--- a/sfdb.py 2018-03-02 20:31:37.000000000 +0300
+++ b/sfdb.py 2019-04-21 12:02:21.092534120 +0300
@@ -13,6 +13,7 @@
import sqlite3
import re
import time
+import os
from sflib import SpiderFoot
# SQLite doesn't support regex queries, so we create
@@ -218,10 +219,14 @@
def __init__(self, opts):
self.sf = SpiderFoot(opts)
+ DBPATH = str(os.path.expanduser('~') + '/.spiderfoot')
+ if not os.path.exists(DBPATH):
+ os.makedirs(os.path.join(DBPATH))
+
# connect() will create the database file if it doesn't exist, but
# at least we can use this opportunity to ensure we have permissions to
# read and write to such a file.
- dbh = sqlite3.connect(self.sf.myPath() + "/" + opts['__database'], timeout=10)
+ dbh = sqlite3.connect(DBPATH + "/" + opts['__database'], timeout=10)
if dbh is None:
self.sf.fatal("Could not connect to internal database, and couldn't create " + opts['__database'])
dbh.text_factory = str
diff -ur a/sflib.py b/sflib.py
--- a/sflib.py 2018-03-02 20:31:37.000000000 +0300
+++ b/sflib.py 2019-04-21 12:02:50.957411169 +0300
@@ -382,7 +382,7 @@
# Return the cache path
def cachePath(self):
- path = self.myPath() + '/cache'
+ path = str(os.path.expanduser('~') + '/.spiderfoot' + '/cache')
if not os.path.isdir(path):
os.mkdir(path)
return path

View file

@ -1,39 +0,0 @@
diff -ur a/sfdb.py b/sfdb.py
--- a/sfdb.py 2020-01-26 12:07:43.000000000 +0300
+++ b/sfdb.py 2020-02-09 12:29:45.798455148 +0300
@@ -13,6 +13,7 @@
import sqlite3
import re
import time
+import os
from sflib import SpiderFoot
# SQLite doesn't support regex queries, so we create
@@ -236,10 +237,14 @@
def __init__(self, opts, init=False):
self.sf = SpiderFoot(opts)
+ DBPATH = str(os.path.expanduser('~') + '/.spiderfoot')
+ if not os.path.exists(DBPATH):
+ os.makedirs(os.path.join(DBPATH))
+
# connect() will create the database file if it doesn't exist, but
# at least we can use this opportunity to ensure we have permissions to
# read and write to such a file.
- dbh = sqlite3.connect(self.sf.myPath() + "/" + opts['__database'], timeout=10)
+ dbh = sqlite3.connect(DBPATH + "/" + opts['__database'], timeout=10)
if dbh is None:
self.sf.fatal("Could not connect to internal database, and couldn't create " + opts['__database'])
dbh.text_factory = str
diff -ur a/sflib.py b/sflib.py
--- a/sflib.py 2020-01-26 12:07:43.000000000 +0300
+++ b/sflib.py 2020-02-09 13:13:14.245760579 +0300
@@ -414,7 +414,7 @@
# Return the cache path
def cachePath(self):
- path = self.myPath() + '/cache'
+ path = str(os.path.expanduser('~') + '/.spiderfoot' + '/cache')
if not os.path.isdir(path):
os.mkdir(path)
return path

View file

@ -1,36 +0,0 @@
From 7388d4cd0d271134f3d4c1fe83baa63d533a7de8 Mon Sep 17 00:00:00 2001
From: smicallef <steve@binarypool.com>
Date: Sun, 2 Feb 2020 09:20:16 +0100
Subject: [PATCH] Bug fix.
---
modules/sfp_hackertarget.py | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/modules/sfp_hackertarget.py b/modules/sfp_hackertarget.py
index 4dfe7896..ab003177 100644
--- a/modules/sfp_hackertarget.py
+++ b/modules/sfp_hackertarget.py
@@ -319,14 +319,16 @@ def handleEvent(self, event):
if self.opts.get('udp_portscan', True):
udp_ports = self.portScanUDP(ip)
- for port in udp_ports:
- e = SpiderFootEvent("UDP_PORT_OPEN", ip + ":" + port, self.__name__, event)
- self.notifyListeners(e)
+ if udp_ports:
+ for port in udp_ports:
+ e = SpiderFootEvent("UDP_PORT_OPEN", ip + ":" + port, self.__name__, event)
+ self.notifyListeners(e)
if self.opts.get('tcp_portscan', True):
tcp_ports = self.portScanTCP(ip)
- for port in tcp_ports:
- e = SpiderFootEvent("TCP_PORT_OPEN", ip + ":" + port, self.__name__, event)
- self.notifyListeners(e)
+ if tcp_ports:
+ for port in tcp_ports:
+ e = SpiderFootEvent("TCP_PORT_OPEN", ip + ":" + port, self.__name__, event)
+ self.notifyListeners(e)
# End of sfp_hackertarget class

View file

@ -1,40 +0,0 @@
diff -ur spiderfoot-3.3.orig/sflib.py spiderfoot-3.3/sflib.py
--- spiderfoot-3.3.orig/sflib.py 2021-01-25 04:38:26.000000000 +0800
+++ spiderfoot-3.3/sflib.py 2021-06-10 08:50:48.549810080 +0800
@@ -573,7 +573,7 @@
str: SpiderFoot cache file system path
"""
- path = self.myPath() + '/cache'
+ path = str(os.path.expanduser('~') + '/cache')
if not os.path.isdir(path):
os.mkdir(path)
return path
diff -ur spiderfoot-3.3.orig/spiderfoot/db.py spiderfoot-3.3/spiderfoot/db.py
--- spiderfoot-3.3.orig/spiderfoot/db.py 2021-01-25 04:38:26.000000000 +0800
+++ spiderfoot-3.3/spiderfoot/db.py 2021-06-10 08:50:00.226812752 +0800
@@ -13,6 +13,7 @@
import re
import sqlite3
import threading
+import os
import time
@@ -267,11 +268,15 @@
database_path = opts['__database']
+ DBPATH = str(os.path.expanduser('~') + '/.spiderfoot')
+ if not os.path.exists(DBPATH):
+ os.makedirs(os.path.join(DBPATH))
+
# connect() will create the database file if it doesn't exist, but
# at least we can use this opportunity to ensure we have permissions to
# read and write to such a file.
try:
- dbh = sqlite3.connect(database_path)
+ dbh = sqlite3.connect(DBPATH + "/" + database_path)
except Exception as e:
raise IOError(f"Error connecting to internal database {database_path}: {e}")

View file

@ -1,10 +0,0 @@
# /etc/conf.d/spiderfoot-daemon: config file for /etc/init.d/spiderfoot-daemon
# Address and port service will listen on
# Default: 127.0.0.1
#SF_HOST="127.0.0.1"
# Default: 5001
#SF_PORT="5001"
# Path to log file (needs to be absolute path)
#SF_LOGFILE=""

View file

@ -1,13 +0,0 @@
# /etc/conf.d/spiderfoot-daemon: config file for /etc/init.d/spiderfoot-daemon
# Address and port service will listen on
# Default: 127.0.0.1
#SF_HOST="127.0.0.1"
# Default: 5001
#SF_PORT="5001"
# Path to log file (needs to be absolute path)
#SF_LOGFILE="/var/log/spiderfoot-daemon.log"
# See more: sf --help
#SF_ARGS="-d"

View file

@ -1,37 +0,0 @@
#!/sbin/openrc-run
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
SF_LOGFILE="${SF_LOGFILE:-/var/log/${RC_SVCNAME}.log}"
USER="spiderfoot"
GROUP="spiderfoot"
description="The most complete OSINT collection and reconnaissance tool"
command="/usr/bin/sf"
command_background=true
command_user="${USER}:${GROUP}"
command_args="${SF_HOST:-127.0.0.1}:${SF_PORT:-5001}"
pidfile="/run/${RC_SVCNAME}.pid"
start_stop_daemon_args="--quiet -1 ${SF_LOGFILE}"
retry="${SF_TERMTIMEOUT:-"TERM/25/KILL/5"}"
extra_commands="checkconfig"
depend() {
after net
}
checkconfig() {
if ! [ -f "${SF_LOGFILE}" ]; then
touch "${SF_LOGFILE}" \
&& chmod 0660 "${SF_LOGFILE}" \
&& chown ${USER}:${GROUP} "${SF_LOGFILE}" > /dev/null 2>&1 \
|| eerror "Failed to create: ${SF_LOGFILE}"
fi
}
start_pre() {
checkconfig || return 1
}
# vim: set ft=gentoo-init-d ts=4 :

View file

@ -1,37 +0,0 @@
#!/sbin/openrc-run
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
SF_LOGFILE="${SF_LOGFILE:-/var/log/${RC_SVCNAME}.log}"
USER="spiderfoot"
GROUP="spiderfoot"
description="The most complete OSINT collection and reconnaissance tool"
command="/usr/bin/sf"
command_background=true
command_user="${USER}:${GROUP}"
command_args="-l ${SF_HOST:-127.0.0.1}:${SF_PORT:-5001} ${SF_ARGS}"
pidfile="/run/${RC_SVCNAME}.pid"
start_stop_daemon_args="--quiet -1 ${SF_LOGFILE}"
retry="${SF_TERMTIMEOUT:-"TERM/25/KILL/5"}"
extra_commands="checkconfig"
depend() {
after net
}
checkconfig() {
if ! [ -f "${SF_LOGFILE}" ]; then
touch "${SF_LOGFILE}" \
&& chmod 0660 "${SF_LOGFILE}" \
&& chown ${USER}:${GROUP} "${SF_LOGFILE}" > /dev/null 2>&1 \
|| eerror "Failed to create: ${SF_LOGFILE}"
fi
}
start_pre() {
checkconfig || return 1
}
# vim: set ft=gentoo-init-d ts=4 :

View file

@ -1,8 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>email@linxon.ru</email>
<name>Yury Martynov</name>
</maintainer>
</pkgmetadata>

View file

@ -1,97 +0,0 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{10..11} )
PYTHON_REQ_USE="sqlite,ssl,readline"
inherit eutils python-single-r1
DESCRIPTION="The most complete OSINT collection and reconnaissance tool"
HOMEPAGE="https://www.spiderfoot.net"
if [[ ${PV} == *9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/smicallef/spiderfoot"
else
SRC_URI="https://github.com/smicallef/spiderfoot/archive/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~x86"
fi
LICENSE="GPL-2"
SLOT="0"
DEPEND="${PYTHON_DEPS}"
RDEPEND="${DEPEND}
acct-group/spiderfoot
acct-user/spiderfoot
$(python_gen_cond_dep '
dev-python/adblockparser[${PYTHON_USEDEP}]
dev-python/beautifulsoup4[${PYTHON_USEDEP}]
>=dev-python/cherrypy-17.4.1[${PYTHON_USEDEP}]
dev-python/cryptography[${PYTHON_USEDEP}]
>=dev-python/dnspython-1.16.0[${PYTHON_USEDEP}]
dev-python/exifread[${PYTHON_USEDEP}]
dev-python/future[${PYTHON_USEDEP}]
>=dev-python/ipaddr-2.2.0[${PYTHON_USEDEP}]
dev-python/ipwhois[${PYTHON_USEDEP}]
dev-python/lxml[${PYTHON_USEDEP}]
dev-python/m2crypto[${PYTHON_USEDEP}]
dev-python/mako[${PYTHON_USEDEP}]
>=dev-python/netaddr-0.7.18[${PYTHON_USEDEP}]
dev-python/networkx[${PYTHON_USEDEP}]
>=dev-python/PySocks-1.7.1[${PYTHON_USEDEP}]
dev-python/requests[${PYTHON_USEDEP}]
dev-python/pyopenssl[${PYTHON_USEDEP}]
dev-python/phonenumbers[${PYTHON_USEDEP}]
dev-python/pygexf[${PYTHON_USEDEP}]
dev-python/PyPDF2[${PYTHON_USEDEP}]
dev-python/secure[${PYTHON_USEDEP}]
dev-python/python-whois[${PYTHON_USEDEP}]
dev-python/python-docx[${PYTHON_USEDEP}]
dev-python/python-pptx[${PYTHON_USEDEP}]
>=net-libs/stem-1.7.1[${PYTHON_USEDEP}]
')"
PATCHES=(
"${FILESDIR}/${P}_fix_module_bug_sfp_hackertarget.patch"
"${FILESDIR}/${P}_add_support_user_homedir.patch"
)
src_prepare() {
default
python_fix_shebang "${S}"
}
src_install() {
insinto /usr/share/${PN}
doins -r dicts/ dyn/ modules/ static/ *.py
for x in sf sfcli; do
make_wrapper $x \
"${EPYTHON} /usr/share/${PN}/${x}.py" \
"/usr/share/${PN}/"
done
dosym ./sf /usr/bin/${PN}
dosym ./sfcli /usr/bin/${PN}-cli
keepdir /var/lib/${PN}
fowners ${PN}:${PN} /var/lib/${PN}
newinitd "${FILESDIR}"/spiderfoot-daemon.initd-r1 spiderfoot-daemon
newconfd "${FILESDIR}"/spiderfoot-daemon.confd-r1 spiderfoot-daemon
dodoc *.md Dockerfile
python_optimize "${D}"/usr/share/${PN}
}
pkg_postinst() {
elog "\nJust run:"
elog " ~# rc-service spiderfoot-daemon start"
elog "and open in browser http://127.0.0.1:5001\n"
elog "See documentation: https://www.spiderfoot.net/documentation/\n"
}

View file

@ -1,100 +0,0 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{10..11} )
PYTHON_REQ_USE="sqlite,ssl,readline"
inherit eutils python-single-r1
DESCRIPTION="The most complete OSINT collection and reconnaissance tool"
HOMEPAGE="https://www.spiderfoot.net"
if [[ ${PV} == *9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/smicallef/spiderfoot"
else
SRC_URI="https://github.com/smicallef/spiderfoot/archive/v${PV}.tar.gz -> ${P}.tar.gz"
# https://github.com/smicallef/spiderfoot/issues/1602
# KEYWORDS="~amd64 ~x86"
fi
LICENSE="GPL-2"
SLOT="0"
DEPEND="${PYTHON_DEPS}"
RDEPEND="${DEPEND}
acct-group/spiderfoot
acct-user/spiderfoot
$(python_gen_cond_dep '
>=dev-python/adblockparser-0.7[${PYTHON_USEDEP}]
>=dev-python/dnspython-2.1.0[${PYTHON_USEDEP}]
>=dev-python/exifread-2.3.2[${PYTHON_USEDEP}]
>=dev-python/cherrypy-18.6.1[${PYTHON_USEDEP}]
>=dev-python/cherrypy-cors-1.6[${PYTHON_USEDEP}]
>=dev-python/mako-1.1.5[${PYTHON_USEDEP}]
dev-python/beautifulsoup4[${PYTHON_USEDEP}]
dev-python/lxml[${PYTHON_USEDEP}]
>=dev-python/netaddr-0.8.0[${PYTHON_USEDEP}]
>=dev-python/PySocks-1.7.1[${PYTHON_USEDEP}]
dev-python/requests[${PYTHON_USEDEP}]
>=dev-python/ipwhois-1.1.0[${PYTHON_USEDEP}]
>=dev-python/ipaddr-2.2.0[${PYTHON_USEDEP}]
dev-python/phonenumbers[${PYTHON_USEDEP}]
dev-python/pygexf[${PYTHON_USEDEP}]
dev-python/PyPDF2[${PYTHON_USEDEP}]
>=dev-python/python-whois-0.7.3[${PYTHON_USEDEP}]
>=dev-python/secure-0.3.0[${PYTHON_USEDEP}]
dev-python/pyopenssl[${PYTHON_USEDEP}]
dev-python/python-docx[${PYTHON_USEDEP}]
dev-python/python-pptx[${PYTHON_USEDEP}]
dev-python/networkx[${PYTHON_USEDEP}]
dev-python/cryptography[${PYTHON_USEDEP}]
dev-python/publicsuffixlist[${PYTHON_USEDEP}]
dev-python/openpyxl[${PYTHON_USEDEP}]
')"
#https://github.com/smicallef/spiderfoot/issues/1176
#PATCHES=(
# "${FILESDIR}/${PN}-3.0_fix_module_bug_sfp_hackertarget.patch"
# "${FILESDIR}/${P}_add_support_user_homedir.patch"
#)
src_prepare() {
default
python_fix_shebang "${S}"
}
src_install() {
insinto /usr/share/${PN}
doins -r modules/ spiderfoot/ *.py
for x in sf sfcli; do
make_wrapper $x \
"${EPYTHON} /usr/share/${PN}/${x}.py" \
"/usr/share/${PN}/"
done
dosym ./sf /usr/bin/${PN}
dosym ./sfcli /usr/bin/${PN}-cli
keepdir /var/lib/${PN}
fowners ${PN}:${PN} /var/lib/${PN}
newinitd "${FILESDIR}"/spiderfoot-daemon.initd-r1 spiderfoot-daemon
newconfd "${FILESDIR}"/spiderfoot-daemon.confd-r1 spiderfoot-daemon
dodoc *.md Dockerfile
python_optimize "${D}"/usr/share/${PN}
}
pkg_postinst() {
elog "\nJust run:"
elog " ~# rc-service spiderfoot-daemon start"
elog "and open in browser http://127.0.0.1:5001\n"
elog "See documentation: https://www.spiderfoot.net/documentation/\n"
}

View file

@ -12,7 +12,6 @@ app-forensics/pdf-parser
~app-forensics/reglookup-1.0.1
app-forensics/samhain
~app-forensics/scap-security-guide-0.1.46
app-forensics/spiderfoot
app-forensics/stegoveritas
app-forensics/thehive
app-forensics/volatility3

View file

@ -194,22 +194,6 @@ dev-python/aiodns amd64
~dev-python/texttable-1.6.2
dev-python/pycares amd64
#=app-forensics/spiderfoot-2.12.0
# required by app-forensics/spiderfoot
~dev-python/adblockparser-0.7
~dev-python/cheroot-6.5.4
~dev-python/cherrypy-17.4.1
~dev-python/jaraco-functools-1.20
~dev-python/phonenumbers-8.3.1
~dev-python/portend-2.2
~dev-python/pygexf-0.2.2
~dev-python/python-docx-0.8.10
~dev-python/python-pptx-0.6.18
~dev-python/python-whois-0.7.2
~dev-python/tempora-1.14.1
~dev-python/zc-lockfile-1.4
~net-libs/stem-1.7.1
#required by net-analyzer/GyoiThon
~dev-python/hyperlink-18.0.0
~dev-python/m2r-0.1.6

View file

@ -31,6 +31,3 @@ net-libs/libpfring
~net-libs/libevhtp-1.2.18
net-libs/libevhtp-haiwen
#spiderfoot
~net-libs/stem-1.8.0