当前位置: 首页 > news >正文

Telnet 测试 UDP 端口?

Telnet 并不支持 UDP 端口的测试,可以使用 nc 命令来进行测试。nc 命令两种都支持:

TCP

# nc -z -v -u [hostname/IP address] [port number] # nc -z -v 192.168.10.12 22 Connection to 192.118.20.95 22 port [tcp/ssh] succeeded!

UDP

# nc -z -v [hostname/IP address] [port number] # nc -z -v -u 192.168.10.12 123 Connection to 192.118.20.95 123 port [udp/ntp] succeeded!

下面是一些 nc 的简单用例:

- Start a listener on the specified TCP port and send a file into it:nc -l -p port < filename- Connect to a target listener on the specified port and receive a file from it:nc host port > received_filename- Scan the open TCP ports of a specified host:nc -v -z -w timeout_in_seconds host start_port-end_port- Start a listener on the specified TCP port and provide your local shell access to the connected party (this is dangerous and can be abused):nc -l -p port -e shell_executable- Connect to a target listener and provide your local shell access to the remote party (this is dangerous and can be abused):nc host port -e shell_executable- Act as a proxy and forward data from a local TCP port to the given remote host:nc -l -p local_port | nc host remote_port- Send an HTTP GET request:echo -e "GET / HTTP/1.1\nHost: host\n\n" | nc host 80

http://www.lryc.cn/news/230176.html

相关文章:

  • 【论文复现】常见问题
  • Uniapp开发 购物商城源码 在线电商商城源码 适配移动终端项目及各小程序
  • xml schema中的sequence的含义
  • 详解 KEIL C51 软件的使用·建立工程
  • 2023年03月 Python(五级)真题解析#中国电子学会#全国青少年软件编程等级考试
  • nginx 代理服务时遇到的问题
  • 利用共享台球室小程序系统提升用户体验
  • U-Mail海外邮件中继帮您解决企业邮件退信难题
  • ImageJ灰度值量化分析 实用技巧——免疫组化分析(定量分析篇)
  • 了解STM32看门狗定时器的工作原理和原则
  • 【2014年数据结构真题】
  • PostgreSQL基本操作
  • hadoop 大数据环境配置 ssh免密登录 centos配置免密登录 hadoop(四)
  • Django 的国际化与本地化详解
  • Java19新增特性
  • [文件读取]metinfo_6.0.0 任意文件读取漏洞复现
  • [量化投资-学习笔记015]Python+TDengine从零开始搭建量化分析平台-量化知识点汇总
  • VSCode 好用的插件分享
  • C++虚基类详解
  • Mac M2/M3 芯片环境配置以及常用软件安装-前端
  • Karmada更高效地实现故障转移
  • 前端AJAX入门到实战,学习前端框架前必会的(ajax+node.js+webpack+git)(四)
  • ​TechSmith Camtasia 2024破解版功能介绍及使用教程
  • 【无线网络技术】——无线传输技术基础(学习笔记)
  • 【Liunx】部署WEB服务:Apache
  • 数字媒体技术基础之:常见图片文件格式
  • 2023-2024-2 高级语言程序设计-二维数组
  • 【uniapp】确认弹出框,选择确定和取消
  • 阿里云容器镜像服务的运维总结
  • 修炼k8s+flink+hdfs+dlink(七:flinkcdc)