sharkit 1.0.0.dev5__tar.gz → 1.0.1.dev1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/PKG-INFO +1 -1
- {sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/pyproject.toml +1 -1
- sharkit-1.0.0.dev5/src/sharkit/tools/flatten_tools.sh +0 -107
- {sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/.gitignore +0 -0
- {sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/LICENSE +0 -0
- {sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/README.md +0 -0
- {sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/__init__.py +0 -0
- {sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/__main__.py +0 -0
- {sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/app.py +0 -0
- {sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/commands/__init__.py +0 -0
- {sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/commands/base.py +0 -0
- {sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/commands/builtins.py +0 -0
- {sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/commands/registry.py +0 -0
- {sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/config/__init__.py +0 -0
- {sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/config/manager.py +0 -0
- {sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/config/paths.py +0 -0
- {sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/console/__init__.py +0 -0
- {sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/console/completion.py +0 -0
- {sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/console/prompt.py +0 -0
- {sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/console/repl.py +0 -0
- {sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/exceptions.py +0 -0
- {sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/history/__init__.py +0 -0
- {sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/history/manager.py +0 -0
- {sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/network/__init__.py +0 -0
- {sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/network/client.py +0 -0
- {sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/output/__init__.py +0 -0
- {sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/output/renderer.py +0 -0
- {sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/output/theme.py +0 -0
- {sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/tools/__init__.py +0 -0
- {sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/tools/base.py +0 -0
- {sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/tools/geoint/recon/wifi/mylnikov.py +0 -0
- {sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/tools/humint/__init__.py +0 -0
- {sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/tools/humint/factcheck/truthcheck.py +0 -0
- {sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/tools/humint/factcheck/verifact.py +0 -0
- {sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/tools/loader.py +0 -0
- {sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/tools/manager.py +0 -0
- {sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/tools/osint/analytics/crypto/mempool.py +0 -0
- {sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/tools/osint/analytics/hashes/hash_decrypt.py +0 -0
- {sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/tools/osint/analytics/hashes/hash_lookup.py +0 -0
- {sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/tools/osint/analytics/images/exif_reader.py +0 -0
- {sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/tools/osint/analytics/text/base64_tool.py +0 -0
- {sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/tools/osint/analytics/text/text_entropy.py +0 -0
- {sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/tools/osint/gather/scraperx.py +0 -0
- {sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/tools/osint/gather/scweet.py +0 -0
- {sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/tools/osint/recon/darkweb/ahmia_search.py +0 -0
- {sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/tools/osint/recon/darkweb/pyahmia.py +0 -0
- {sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/tools/osint/recon/domains/cve_search.py +0 -0
- {sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/tools/osint/recon/domains/dns_lookup.py +0 -0
- {sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/tools/osint/recon/domains/otx_query.py +0 -0
- {sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/tools/osint/recon/domains/urlhaus_check.py +0 -0
- {sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/tools/osint/recon/domains/whois_lookup.py +0 -0
- {sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/tools/osint/recon/emails/email_reputation.py +0 -0
- {sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/tools/osint/recon/emails/email_security.py +0 -0
- {sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/tools/osint/recon/emails/holehe.py +0 -0
- {sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/tools/osint/recon/emails/mailaccess.py +0 -0
- {sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/tools/osint/recon/emails/theharvester.py +0 -0
- {sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/tools/osint/recon/hybrid/blackbird.py +0 -0
- {sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/tools/osint/recon/leaks/circl_hashlookup.py +0 -0
- {sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/tools/osint/recon/leaks/hibp_passwords.py +0 -0
- {sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/tools/osint/recon/leaks/leak_check.py +0 -0
- {sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/tools/osint/recon/leaks/psbdmp.py +0 -0
- {sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/tools/osint/recon/leaks/xposed_or_not.py +0 -0
- {sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/tools/osint/recon/network/bgpv6.py +0 -0
- {sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/tools/osint/recon/network/http_headers.py +0 -0
- {sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/tools/osint/recon/network/ip_geolocate.py +0 -0
- {sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/tools/osint/recon/network/ip_info.py +0 -0
- {sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/tools/osint/recon/network/port_scanner.py +0 -0
- {sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/tools/osint/recon/network/robtex.py +0 -0
- {sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/tools/osint/recon/network/shodan_internetdb.py +0 -0
- {sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/tools/osint/recon/network/ssl_check.py +0 -0
- {sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/tools/osint/recon/phones/phoneinfoga.py +0 -0
- {sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/tools/osint/recon/usernames/maigret.py +0 -0
- {sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/tools/osint/recon/usernames/sherlock.py +0 -0
- {sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/tools/osint/recon/usernames/social_analyzer.py +0 -0
- {sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/tools/osint/recon/usernames/socialscan.py +0 -0
- {sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/tools/osint/recon/usernames/socid_extractor.py +0 -0
- {sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/tools/osint/recon/web/robots_check.py +0 -0
- {sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/tools/osint/recon/web/wayback_check.py +0 -0
- {sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/tools/registry.py +0 -0
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
# flatten_tools.sh
|
|
3
|
-
# Sube cada herramienta un nivel: cat/subcat/esp/tool/tool.py -> cat/subcat/esp/tool.py
|
|
4
|
-
# Borra las carpetas propias vacías resultantes.
|
|
5
|
-
#
|
|
6
|
-
# Uso:
|
|
7
|
-
# ./flatten_tools.sh # dry-run
|
|
8
|
-
# ./flatten_tools.sh --apply # ejecuta de verdad
|
|
9
|
-
# ./flatten_tools.sh --force # sobrescribe destinos existentes
|
|
10
|
-
|
|
11
|
-
set -euo pipefail
|
|
12
|
-
|
|
13
|
-
ROOT="$(pwd)"
|
|
14
|
-
APPLY=false
|
|
15
|
-
FORCE=false
|
|
16
|
-
|
|
17
|
-
for arg in "$@"; do
|
|
18
|
-
case "$arg" in
|
|
19
|
-
--apply) APPLY=true ;;
|
|
20
|
-
--force) FORCE=true ;;
|
|
21
|
-
-h|--help)
|
|
22
|
-
sed -n '2,9p' "$0"; exit 0 ;;
|
|
23
|
-
*) echo "Argumento desconocido: $arg" >&2; exit 2 ;;
|
|
24
|
-
esac
|
|
25
|
-
done
|
|
26
|
-
|
|
27
|
-
log() { printf '\033[1;34m[info]\033[0m %s\n' "$*"; }
|
|
28
|
-
warn() { printf '\033[1;33m[warn]\033[0m %s\n' "$*" >&2; }
|
|
29
|
-
err() { printf '\033[1;31m[err ]\033[0m %s\n' "$*" >&2; }
|
|
30
|
-
|
|
31
|
-
if [[ ! -d "$ROOT" ]]; then
|
|
32
|
-
err "El directorio actual no existe"; exit 1
|
|
33
|
-
fi
|
|
34
|
-
|
|
35
|
-
# Detectar automáticamente todos los cat/subcat/esp/tool/tool.py
|
|
36
|
-
# (estructura de 4 segmentos + archivo con mismo nombre que la carpeta)
|
|
37
|
-
moves_count=0
|
|
38
|
-
declare -a MOVES=()
|
|
39
|
-
|
|
40
|
-
while IFS= read -r -d '' py; do
|
|
41
|
-
# py = .../cat/subcat/esp/tool/tool.py
|
|
42
|
-
dir="$(dirname "$py")"
|
|
43
|
-
tool_name="$(basename "$dir")"
|
|
44
|
-
parent="$(dirname "$dir")"
|
|
45
|
-
dst="${parent}/${tool_name}.py"
|
|
46
|
-
|
|
47
|
-
# Ignora si por algún motivo no coincide el nombre
|
|
48
|
-
if [[ "$(basename "$py" .py)" != "$tool_name" ]]; then
|
|
49
|
-
warn "nombre inconsistente, salto: $py"; continue
|
|
50
|
-
fi
|
|
51
|
-
|
|
52
|
-
# Seguridad: no subir si ya hay un archivo en el destino (a menos que --force)
|
|
53
|
-
if [[ -e "$dst" && "$FORCE" != true ]]; then
|
|
54
|
-
err "destino ya existe, salto: $dst (usa --force)"
|
|
55
|
-
continue
|
|
56
|
-
fi
|
|
57
|
-
|
|
58
|
-
MOVES+=("$py|$dst")
|
|
59
|
-
moves_count=$((moves_count + 1))
|
|
60
|
-
done < <(find "$ROOT" -mindepth 5 -maxdepth 5 -name "*.py" -not -name "__init__.py" -print0)
|
|
61
|
-
|
|
62
|
-
log "Detectadas $moves_count herramientas a aplanar."
|
|
63
|
-
log "MODO = $([[ "$APPLY" == true ]] && echo 'APPLY' || echo 'DRY-RUN')"
|
|
64
|
-
log "FORCE = $FORCE"
|
|
65
|
-
|
|
66
|
-
for entry in "${MOVES[@]}"; do
|
|
67
|
-
src="${entry%|*}"
|
|
68
|
-
dst="${entry#*|}"
|
|
69
|
-
|
|
70
|
-
if [[ "$APPLY" == true ]]; then
|
|
71
|
-
mv "$src" "$dst"
|
|
72
|
-
log "movido: $src -> $dst"
|
|
73
|
-
else
|
|
74
|
-
printf 'DRY-RUN mv %s -> %s\n' "$src" "$dst"
|
|
75
|
-
fi
|
|
76
|
-
done
|
|
77
|
-
|
|
78
|
-
# Borrar carpetas propias (cat/subcat/esp/tool/) que hayan quedado vacías
|
|
79
|
-
# Recorremos las mismas que acabamos de mover
|
|
80
|
-
log "Borrando carpetas propias vacías…"
|
|
81
|
-
|
|
82
|
-
clean_dirs=()
|
|
83
|
-
for entry in "${MOVES[@]}"; do
|
|
84
|
-
src="${entry%|*}"
|
|
85
|
-
d="$(dirname "$src")"
|
|
86
|
-
clean_dirs+=("$d")
|
|
87
|
-
done
|
|
88
|
-
|
|
89
|
-
# Borrar __pycache__ que pueda haber dentroif [[ "$APPLY" == true ]]; then
|
|
90
|
-
find "$ROOT" -type d -name __pycache__ -prune -exec rm -rf {} +
|
|
91
|
-
else
|
|
92
|
-
find "$ROOT" -type d -name __pycache__ -printf 'DRY-RUN rm -rf %p\n'
|
|
93
|
-
fi
|
|
94
|
-
|
|
95
|
-
for d in "${clean_dirs[@]}"; do
|
|
96
|
-
[[ -d "$d" ]] || continue
|
|
97
|
-
if [[ -n "$(ls -A "$d" 2>/dev/null)" ]]; then
|
|
98
|
-
warn "no vacía, no borro: $d"; continue
|
|
99
|
-
fi
|
|
100
|
-
if [[ "$APPLY" == true ]]; then
|
|
101
|
-
rmdir "$d" && log "borrada: $d"
|
|
102
|
-
else
|
|
103
|
-
printf 'DRY-RUN rmdir %s\n' "$d"
|
|
104
|
-
fi
|
|
105
|
-
done
|
|
106
|
-
|
|
107
|
-
log "Listo."
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/tools/osint/analytics/crypto/mempool.py
RENAMED
|
File without changes
|
{sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/tools/osint/analytics/hashes/hash_decrypt.py
RENAMED
|
File without changes
|
{sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/tools/osint/analytics/hashes/hash_lookup.py
RENAMED
|
File without changes
|
{sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/tools/osint/analytics/images/exif_reader.py
RENAMED
|
File without changes
|
{sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/tools/osint/analytics/text/base64_tool.py
RENAMED
|
File without changes
|
{sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/tools/osint/analytics/text/text_entropy.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/tools/osint/recon/darkweb/ahmia_search.py
RENAMED
|
File without changes
|
|
File without changes
|
{sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/tools/osint/recon/domains/cve_search.py
RENAMED
|
File without changes
|
{sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/tools/osint/recon/domains/dns_lookup.py
RENAMED
|
File without changes
|
{sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/tools/osint/recon/domains/otx_query.py
RENAMED
|
File without changes
|
{sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/tools/osint/recon/domains/urlhaus_check.py
RENAMED
|
File without changes
|
{sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/tools/osint/recon/domains/whois_lookup.py
RENAMED
|
File without changes
|
{sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/tools/osint/recon/emails/email_reputation.py
RENAMED
|
File without changes
|
{sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/tools/osint/recon/emails/email_security.py
RENAMED
|
File without changes
|
|
File without changes
|
{sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/tools/osint/recon/emails/mailaccess.py
RENAMED
|
File without changes
|
{sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/tools/osint/recon/emails/theharvester.py
RENAMED
|
File without changes
|
|
File without changes
|
{sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/tools/osint/recon/leaks/circl_hashlookup.py
RENAMED
|
File without changes
|
{sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/tools/osint/recon/leaks/hibp_passwords.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/tools/osint/recon/leaks/xposed_or_not.py
RENAMED
|
File without changes
|
|
File without changes
|
{sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/tools/osint/recon/network/http_headers.py
RENAMED
|
File without changes
|
{sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/tools/osint/recon/network/ip_geolocate.py
RENAMED
|
File without changes
|
|
File without changes
|
{sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/tools/osint/recon/network/port_scanner.py
RENAMED
|
File without changes
|
|
File without changes
|
{sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/tools/osint/recon/network/shodan_internetdb.py
RENAMED
|
File without changes
|
{sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/tools/osint/recon/network/ssl_check.py
RENAMED
|
File without changes
|
{sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/tools/osint/recon/phones/phoneinfoga.py
RENAMED
|
File without changes
|
{sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/tools/osint/recon/usernames/maigret.py
RENAMED
|
File without changes
|
{sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/tools/osint/recon/usernames/sherlock.py
RENAMED
|
File without changes
|
{sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/tools/osint/recon/usernames/social_analyzer.py
RENAMED
|
File without changes
|
{sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/tools/osint/recon/usernames/socialscan.py
RENAMED
|
File without changes
|
{sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/tools/osint/recon/usernames/socid_extractor.py
RENAMED
|
File without changes
|
|
File without changes
|
{sharkit-1.0.0.dev5 → sharkit-1.0.1.dev1}/src/sharkit/tools/osint/recon/web/wayback_check.py
RENAMED
|
File without changes
|
|
File without changes
|