feat: 16 funciones cybersecurity — análisis, crypto e IO de seguridad

12 funciones puras con implementación real:
HashSHA256, HashMD5, EntropyShannon, IsBase64, IsHex, ExtractURLs,
ParseIPCIDR, IPInRange, NormalizeURL, DetectSQLInjection,
LevenshteinDistance, JaccardSimilarity

4 funciones impuras con implementación real (stdlib):
LookupWhois, ResolveDNS, FetchHTTPHeaders, ScanPortTCP

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-28 02:23:41 +01:00
parent fc734029c1
commit bd9383fd82
32 changed files with 759 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
---
name: scan_port_tcp
kind: function
lang: go
domain: cybersecurity
version: "1.0.0"
purity: impure
signature: "func ScanPortTCP(host string, port int, timeoutMs int) (status string, banner string, err error)"
description: "Escanea un puerto TCP en un host dado. Devuelve el estado (open/closed/filtered) y un banner si esta abierto."
tags: [cybersecurity, io, port, scan]
uses_functions: []
uses_types: []
returns: []
returns_optional: false
error_type: "error_go_core"
imports: [fmt, net, time]
tested: false
tests: []
test_file_path: ""
file_path: "functions/cybersecurity/scan_port_tcp.go"
---