cfdf515228
- .claude/CLAUDE.md - .claude/commands/subagentes.md - .claude/rules/INDEX.md - .mcp.json - bash/functions/cybersecurity/analyze_dns.md - bash/functions/cybersecurity/audit_http_headers.md - bash/functions/cybersecurity/audit_ssh_config.md - bash/functions/cybersecurity/check_firewall.md - bash/functions/cybersecurity/detect_suspicious_users.md - bash/functions/cybersecurity/encrypt_file.md - ... Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
965 B
965 B
name, kind, lang, domain, version, purity, signature, description, tags, uses_functions, uses_types, returns, returns_optional, error_type, imports, params, output, tested, tests, test_file_path, file_path
| name | kind | lang | domain | version | purity | signature | description | tags | uses_functions | uses_types | returns | returns_optional | error_type | imports | params | output | tested | tests | test_file_path | file_path | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| is_hex | function | py | cybersecurity | 1.0.0 | pure | def is_hex(s: str) -> bool | Verifica si un string es hexadecimal valido. Acepta con o sin prefijo 0x. Requiere minimo 2 caracteres. |
|
false |
|
|
booleano indicando si el string es hexadecimal valido con o sin prefijo 0x (minimo 2 caracteres) | false | python/functions/cybersecurity/cybersecurity.py |
Ejemplo
is_hex("4a6f686e")
# True
is_hex("0x4a6f686e")
# True
is_hex("xyz")
# False
is_hex("a")
# False (menos de 2 caracteres)
Notas
Util para validar hashes, direcciones de memoria, shellcode y otros datos hexadecimales en contexto de seguridad.