mexicosint 2.2.5__py3-none-any.whl
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.
- mexicosint/__init__.py +5 -0
- mexicosint/__main__.py +7 -0
- mexicosint/cli.py +72 -0
- mexicosint/data/ift_pnn.db +0 -0
- mexicosint/data/pnn_Publico_18_06_2026.csv +178413 -0
- mexicosint/main.py +1427 -0
- mexicosint/modules/__init__.py +0 -0
- mexicosint/modules/ift_sns.py +155 -0
- mexicosint/modules/local_parser.py +179 -0
- mexicosint/modules/quienhabla.py +338 -0
- mexicosint/services/__init__.py +1 -0
- mexicosint/services/ip_geo.py +5 -0
- mexicosint/services/scanner.py +5 -0
- mexicosint/utils/__init__.py +1 -0
- mexicosint/utils/validation.py +17 -0
- mexicosint-2.2.5.dist-info/METADATA +243 -0
- mexicosint-2.2.5.dist-info/RECORD +21 -0
- mexicosint-2.2.5.dist-info/WHEEL +5 -0
- mexicosint-2.2.5.dist-info/entry_points.txt +2 -0
- mexicosint-2.2.5.dist-info/licenses/LICENSE +1 -0
- mexicosint-2.2.5.dist-info/top_level.txt +1 -0
mexicosint/__init__.py
ADDED
mexicosint/__main__.py
ADDED
mexicosint/cli.py
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"""Command-line interface for MeXiCOSINT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import argparse
|
|
6
|
+
|
|
7
|
+
from mexicosint import __version__
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
def build_parser() -> argparse.ArgumentParser:
|
|
11
|
+
parser = argparse.ArgumentParser(
|
|
12
|
+
prog="mexicosint",
|
|
13
|
+
description="OSINT para numeros telefonicos Mexicanos.",
|
|
14
|
+
)
|
|
15
|
+
parser.add_argument(
|
|
16
|
+
"number",
|
|
17
|
+
nargs="?",
|
|
18
|
+
help="Numero telefonico mexicano a escanear.",
|
|
19
|
+
)
|
|
20
|
+
parser.add_argument(
|
|
21
|
+
"--ip",
|
|
22
|
+
dest="ip",
|
|
23
|
+
metavar="ADDRESS",
|
|
24
|
+
help="Geolocaliza directamente una direccion IP.",
|
|
25
|
+
)
|
|
26
|
+
parser.add_argument(
|
|
27
|
+
"--dummy-test",
|
|
28
|
+
action="store_true",
|
|
29
|
+
help="Usa datos de prueba y evita llamadas reales a APIs.",
|
|
30
|
+
)
|
|
31
|
+
parser.add_argument(
|
|
32
|
+
"-b",
|
|
33
|
+
"--compact-banner",
|
|
34
|
+
"--small-banner",
|
|
35
|
+
dest="small_banner",
|
|
36
|
+
action="store_true",
|
|
37
|
+
help="Fuerza el banner compacto; alias: --small-banner.",
|
|
38
|
+
)
|
|
39
|
+
parser.add_argument(
|
|
40
|
+
"--version",
|
|
41
|
+
action="version",
|
|
42
|
+
version=f"%(prog)s {__version__}",
|
|
43
|
+
)
|
|
44
|
+
return parser
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
def _to_legacy_argv(args: argparse.Namespace) -> list[str]:
|
|
48
|
+
"""Translate argparse output to the existing scanner argument format."""
|
|
49
|
+
argv: list[str] = []
|
|
50
|
+
if args.dummy_test:
|
|
51
|
+
argv.append("--dummy-test")
|
|
52
|
+
if args.small_banner:
|
|
53
|
+
argv.append("--small-banner")
|
|
54
|
+
if args.ip:
|
|
55
|
+
argv.extend(["--ip", args.ip])
|
|
56
|
+
elif args.number:
|
|
57
|
+
argv.append(args.number)
|
|
58
|
+
return argv
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
def main(argv: list[str] | None = None) -> int:
|
|
62
|
+
parser = build_parser()
|
|
63
|
+
args = parser.parse_args(argv)
|
|
64
|
+
|
|
65
|
+
if not args.ip and not args.number:
|
|
66
|
+
parser.print_help()
|
|
67
|
+
return 1
|
|
68
|
+
|
|
69
|
+
from mexicosint import main as app
|
|
70
|
+
|
|
71
|
+
app.main(_to_legacy_argv(args))
|
|
72
|
+
return 0
|
|
Binary file
|