mirror of
https://github.com/pentoo/pentoo-overlay
synced 2025-12-06 08:25:01 +01:00
sherlock: drop, unmaintained
This commit is contained in:
parent
43c6f835fe
commit
7fff606fdd
8 changed files with 0 additions and 303 deletions
|
|
@ -1 +0,0 @@
|
|||
DIST sherlock-0.12.9.tar.gz 2523164 BLAKE2B 5b717212d82d3194e99e4aacddb9f9c97df56209286ba0ec983da8a16a094d98bb4bc646be9c79cd5712b88e9f97e82cf68640574f3025f06f447f4a1e1a46f9 SHA512 d459541991b292e360385693c891803e1bfc87991e9f2c6e002b51aea3977fe42f1a6798f8bfb16df7c0d55a0faa19323314918da985061766506445a560ce4e
|
||||
|
|
@ -1,64 +0,0 @@
|
|||
diff -ur a/site_list.py b/site_list.py
|
||||
--- a/site_list.py 2019-08-25 03:35:01.000000000 +0300
|
||||
+++ b/site_list.py 2019-08-25 17:08:46.958552165 +0300
|
||||
@@ -1,8 +1,13 @@
|
||||
+#!/usr/bin/env python3
|
||||
+
|
||||
"""Sherlock: Supported Site Listing
|
||||
This module generates the listing of supported sites.
|
||||
"""
|
||||
+
|
||||
+import os
|
||||
import json
|
||||
import sys
|
||||
+import shutil
|
||||
import requests
|
||||
import threading
|
||||
import xml.etree.ElementTree as ET
|
||||
@@ -11,6 +16,8 @@
|
||||
|
||||
pool = list()
|
||||
|
||||
+DEFAULT_DATA_JSON_FILE = '/usr/share/sherlock/data.json'
|
||||
+
|
||||
def get_rank(domain_to_query, dest):
|
||||
result = -1
|
||||
|
||||
@@ -36,12 +43,12 @@
|
||||
)
|
||||
args = parser.parse_args()
|
||||
|
||||
-with open("data.json", "r", encoding="utf-8") as data_file:
|
||||
- data = json.load(data_file)
|
||||
+if os.path.exists(DEFAULT_DATA_JSON_FILE):
|
||||
+ shutil.copyfile(DEFAULT_DATA_JSON_FILE, 'data.json')
|
||||
|
||||
-with open("sites.md", "w") as site_file:
|
||||
+with open('data.json', "r", encoding="utf-8") as data_file:
|
||||
+ data = json.load(data_file)
|
||||
data_length = len(data)
|
||||
- site_file.write(f'## List Of Supported Sites ({data_length} Sites In Total!)\n')
|
||||
|
||||
for social_network in data:
|
||||
url_main = data.get(social_network).get("urlMain")
|
||||
@@ -58,17 +65,14 @@
|
||||
for social_network, url_main, th in pool:
|
||||
if args.rank:
|
||||
th.join()
|
||||
- site_file.write(f'{index}. [{social_network}]({url_main})\n')
|
||||
sys.stdout.write("\r{0}".format(f"Updated {index} out of {data_length} entries"))
|
||||
sys.stdout.flush()
|
||||
index = index + 1
|
||||
|
||||
- if args.rank:
|
||||
- site_file.write(f'\nAlexa.com rank data fetched at ({datetime.utcnow()} UTC)\n')
|
||||
-
|
||||
sorted_json_data = json.dumps(data, indent=2, sort_keys=True)
|
||||
|
||||
-with open("data.json", "w") as data_file:
|
||||
+with open('data.json', "w") as data_file:
|
||||
data_file.write(sorted_json_data)
|
||||
|
||||
-print("\nFinished updating supported site listing!")
|
||||
+print("\nFinished updating supported site listing in: " + os.path.abspath('data.json'))
|
||||
+print("\nUsage: sherlock --json " + os.path.abspath('data.json') + ' USERNAMES [USERNAMES ...]')
|
||||
|
|
@ -1,64 +0,0 @@
|
|||
diff -ur a/site_list.py b/site_list.py
|
||||
--- a/site_list.py 2020-05-09 07:42:00.000000000 +0300
|
||||
+++ b/site_list.py 2020-05-10 18:59:39.334304839 +0300
|
||||
@@ -1,8 +1,13 @@
|
||||
+#!/usr/bin/env python3
|
||||
+
|
||||
"""Sherlock: Supported Site Listing
|
||||
This module generates the listing of supported sites.
|
||||
"""
|
||||
+
|
||||
+import os
|
||||
import json
|
||||
import sys
|
||||
+import shutil
|
||||
import requests
|
||||
import threading
|
||||
import xml.etree.ElementTree as ET
|
||||
@@ -11,6 +16,8 @@
|
||||
|
||||
pool = list()
|
||||
|
||||
+DEFAULT_DATA_JSON_FILE = '/usr/share/sherlock/resources/data.json'
|
||||
+
|
||||
def get_rank(domain_to_query, dest):
|
||||
|
||||
#Retrieve ranking data via alexa API
|
||||
@@ -35,12 +42,12 @@
|
||||
)
|
||||
args = parser.parse_args()
|
||||
|
||||
-with open("sherlock/resources/data.json", "r", encoding="utf-8") as data_file:
|
||||
- data = json.load(data_file)
|
||||
+if os.path.exists(DEFAULT_DATA_JSON_FILE):
|
||||
+ shutil.copyfile(DEFAULT_DATA_JSON_FILE, 'data.json')
|
||||
|
||||
-with open("sites.md", "w") as site_file:
|
||||
+with open("data.json", "r", encoding="utf-8") as data_file:
|
||||
+ data = json.load(data_file)
|
||||
data_length = len(data)
|
||||
- site_file.write(f'## List Of Supported Sites ({data_length} Sites In Total!)\n')
|
||||
|
||||
for social_network in data:
|
||||
url_main = data.get(social_network).get("urlMain")
|
||||
@@ -57,17 +64,14 @@
|
||||
for social_network, url_main, th in pool:
|
||||
if args.rank:
|
||||
th.join()
|
||||
- site_file.write(f'{index}. [{social_network}]({url_main})\n')
|
||||
sys.stdout.write("\r{0}".format(f"Updated {index} out of {data_length} entries"))
|
||||
sys.stdout.flush()
|
||||
index = index + 1
|
||||
|
||||
- if args.rank:
|
||||
- site_file.write(f'\nAlexa.com rank data fetched at ({datetime.utcnow()} UTC)\n')
|
||||
-
|
||||
sorted_json_data = json.dumps(data, indent=2, sort_keys=True)
|
||||
|
||||
-with open("sherlock/resources/data.json", "w") as data_file:
|
||||
+with open("data.json", "w") as data_file:
|
||||
data_file.write(sorted_json_data)
|
||||
|
||||
-print("\nFinished updating supported site listing!")
|
||||
+print("\nFinished updating supported site listing in: " + os.path.abspath('data.json'))
|
||||
+print("\nUsage: sherlock --json " + os.path.abspath("data.json") + " USERNAME [USERNAMES ...]")
|
||||
|
|
@ -1,11 +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>
|
||||
<upstream>
|
||||
<remote-id type="github">sherlock-project/sherlock</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
|
|
@ -1,80 +0,0 @@
|
|||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
|
||||
inherit python-single-r1 wrapper
|
||||
|
||||
DESCRIPTION="Find usernames across social networks"
|
||||
HOMEPAGE="https://github.com/sherlock-project/sherlock"
|
||||
|
||||
if [[ ${PV} == *9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/sherlock-project/sherlock"
|
||||
else
|
||||
# snapshot: 20200907
|
||||
COMMIT="bf2daa39ea26075f916e009a4b22566526c96c8a"
|
||||
|
||||
SRC_URI="https://github.com/sherlock-project/sherlock/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~arm ~mips ~x86"
|
||||
S="${WORKDIR}/${PN}-${COMMIT}"
|
||||
fi
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT=0
|
||||
IUSE="test"
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="${PYTHON_DEPS}
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/beautifulsoup4[${PYTHON_USEDEP}]
|
||||
dev-python/certifi[${PYTHON_USEDEP}]
|
||||
dev-python/chardet[${PYTHON_USEDEP}]
|
||||
dev-python/colorama[${PYTHON_USEDEP}]
|
||||
dev-python/idna[${PYTHON_USEDEP}]
|
||||
dev-python/lxml[${PYTHON_USEDEP}]
|
||||
dev-python/PySocks[${PYTHON_USEDEP}]
|
||||
dev-python/requests[${PYTHON_USEDEP}]
|
||||
dev-python/requests-futures[${PYTHON_USEDEP}]
|
||||
dev-python/soupsieve[${PYTHON_USEDEP}]
|
||||
dev-python/torrequest[${PYTHON_USEDEP}]
|
||||
dev-python/urllib3[${PYTHON_USEDEP}]
|
||||
>=net-libs/stem-1.8.0[${PYTHON_USEDEP}]
|
||||
')"
|
||||
|
||||
pkg_setup() {
|
||||
python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
python_fix_shebang "${S}"
|
||||
|
||||
if [[ ${PV} != *9999 ]]; then
|
||||
sed -e "s/__version__ = \"\(.*\)\"/__version__ = \"${PV}\"/" \
|
||||
-i sherlock/sherlock.py || die
|
||||
fi
|
||||
|
||||
if ! use test; then
|
||||
rm -rf sherlock/tests || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
"${EPYTHON}" -m unittest discover -v || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto "/usr/share/${PN}"
|
||||
doins -r *.py sherlock/*
|
||||
|
||||
python_optimize "${D}/usr/share/${PN}"
|
||||
|
||||
make_wrapper ${PN} "${EPYTHON} /usr/share/${PN}/sherlock.py"
|
||||
|
||||
dodoc *.md Dockerfile
|
||||
}
|
||||
|
|
@ -1,81 +0,0 @@
|
|||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
|
||||
inherit python-single-r1 wrapper
|
||||
|
||||
DESCRIPTION="Find usernames across social networks"
|
||||
HOMEPAGE="https://github.com/sherlock-project/sherlock"
|
||||
|
||||
if [[ ${PV} == *9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/sherlock-project/sherlock"
|
||||
else
|
||||
# snapshot: 20200907
|
||||
COMMIT="bf2daa39ea26075f916e009a4b22566526c96c8a"
|
||||
|
||||
SRC_URI="https://github.com/sherlock-project/sherlock/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~arm ~mips ~x86"
|
||||
S="${WORKDIR}/${PN}-${COMMIT}"
|
||||
fi
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT=0
|
||||
IUSE="test"
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="${PYTHON_DEPS}
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/beautifulsoup4[${PYTHON_USEDEP}]
|
||||
dev-python/certifi[${PYTHON_USEDEP}]
|
||||
dev-python/chardet[${PYTHON_USEDEP}]
|
||||
dev-python/colorama[${PYTHON_USEDEP}]
|
||||
dev-python/idna[${PYTHON_USEDEP}]
|
||||
dev-python/lxml[${PYTHON_USEDEP}]
|
||||
dev-python/pandas[${PYTHON_USEDEP}]
|
||||
dev-python/PySocks[${PYTHON_USEDEP}]
|
||||
dev-python/requests[${PYTHON_USEDEP}]
|
||||
dev-python/requests-futures[${PYTHON_USEDEP}]
|
||||
dev-python/soupsieve[${PYTHON_USEDEP}]
|
||||
dev-python/torrequest[${PYTHON_USEDEP}]
|
||||
dev-python/urllib3[${PYTHON_USEDEP}]
|
||||
>=net-libs/stem-1.8.0[${PYTHON_USEDEP}]
|
||||
')"
|
||||
|
||||
pkg_setup() {
|
||||
python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
python_fix_shebang "${S}"
|
||||
|
||||
if [[ ${PV} != *9999 ]]; then
|
||||
sed -e "s/__version__ = \"\(.*\)\"/__version__ = \"${PV}\"/" \
|
||||
-i sherlock/sherlock.py || die
|
||||
fi
|
||||
|
||||
if ! use test; then
|
||||
rm -rf sherlock/tests || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
"${EPYTHON}" -m unittest discover -v || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto "/usr/share/${PN}"
|
||||
doins -r *.py sherlock/*
|
||||
|
||||
python_optimize "${D}/usr/share/${PN}"
|
||||
|
||||
make_wrapper ${PN} "${EPYTHON} /usr/share/${PN}/sherlock.py"
|
||||
|
||||
dodoc *.md Dockerfile
|
||||
}
|
||||
|
|
@ -2,4 +2,3 @@ move dev-python/lief dev-util/lief-bin
|
|||
move dev-python/androguard dev-util/androguard
|
||||
move app-misc/ROPgadget app-exploits/ROPgadget
|
||||
move net-misc/getsploit app-exploits/getsploit
|
||||
move net-misc/sherlock www-apps/sherlock
|
||||
|
|
|
|||
|
|
@ -1,2 +1 @@
|
|||
move www-apps/sherlock net-misc/sherlock
|
||||
move net-analyzer/sublert net-dns/sublert
|
||||
|
|
|
|||
Loading…
Reference in a new issue