home / skills / aidotnet / moyucode / port-scanner
This skill helps you quickly assess network ports, identify open services, and verify availability across hosts.
npx playbooks add skill aidotnet/moyucode --skill port-scannerReview the files below or copy the command above to add this skill to your agents.
---
name: port-scanner
description: 扫描网络端口以检查可用性和检测运行的服务。
metadata:
short-description: 扫描网络端口
source:
repository: https://github.com/python/cpython
license: PSF
---
# Port Scanner Tool
## Description
Scan network ports to check availability, detect running services, and find open ports.
## Trigger
- `/port` command
- User needs to check ports
- User wants to scan network
## Usage
```bash
# Check single port
python scripts/port_scanner.py localhost 8080
# Scan port range
python scripts/port_scanner.py 192.168.1.1 --range 80-443
# Scan common ports
python scripts/port_scanner.py example.com --common
# Check if port is available
python scripts/port_scanner.py localhost 3000 --available
```
## Tags
`port`, `network`, `scan`, `tcp`, `security`
## Compatibility
- Codex: ✅
- Claude Code: ✅
This skill scans network ports to check availability, detect running services, and identify open TCP endpoints. It provides single-port checks, ranged scans, common-port presets, and availability queries to help troubleshoot connectivity and surface potential security issues.
The scanner attempts TCP connections to target hosts and ports, reporting success, timeout, or refusal for each attempt. It supports scanning a single port, a numeric range, or a curated set of common ports, and can flag ports that appear available for binding. Results include basic service detection by observing banner responses when available.
Is this a TCP-only scanner?
Yes, it focuses on TCP connection attempts and banner observation; UDP probing is not included.
Will scanning a host without permission cause problems?
Scanning can trigger security alerts or violate policies—always get authorization before scanning hosts you do not control.