---
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]
params:
  - name: host
    desc: "hostname o direccion IP del host a escanear"
  - name: port
    desc: "numero de puerto TCP a escanear"
  - name: timeoutMs
    desc: "timeout en milisegundos para la conexion"
output: "tupla (status, banner, err) con estado del puerto (open/closed/filtered), banner si esta abierto, y error si aplica"
tested: false
tests: []
test_file_path: ""
file_path: "functions/cybersecurity/scan_port_tcp.go"
---
