TCP Connect Port Scan

The portscan command can scan a given IP Address for open ports using a full connect TCP request. Multiple port numbers (80 443 22) or a range can be ports (8080-8085) can be specified to scan a target host. This tool, by no means is a replacement for NMap. It’s only used to check if a specific service port is open for lateral movement such as RDP/SMB/DCOM ports and so on.