日韩av黄I国产麻豆传媒I国产91av视频在线观看I日韩一区二区三区在线看I美女国产在线I麻豆视频国产在线观看I成人黄色短片

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 >

linux netcat测试udp端口,使用nc(netcat)测试udp协议与端口连通性

發(fā)布時間:2025/3/11 43 豆豆
生活随笔 收集整理的這篇文章主要介紹了 linux netcat测试udp端口,使用nc(netcat)测试udp协议与端口连通性 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

[v1.10]

connect to somewhere: netcat [-options] hostname port[s] [ports] …

listen for inbound: netcat -l -p port [-options] [hostname] [port]

options:

-g gateway source-routing hop point[s], up to 8

-G num source-routing pointer: 4, 8, 12, …

-h this cruft

-i secs delay interval for lines sent, ports scanned

-l listen mode, for inbound connects

-n numeric-only IP addresses, no DNS

-o file hex dump of traffic

-p port local port number

-r randomize local and remote ports

-s addr local source address

-t answer TELNET negotiation

-u UDP mode

-v verbose [use twice to be more verbose]

-w secs timeout for connects and final net reads

-z zero-I/O mode [used for scanning]

port numbers can be individual or ranges: lo-hi [inclusive]

基本格式:nc [-options] hostname port[s] [ports] …

nc -l -p port [options] [hostname] [port]

-d 后臺模式

-e prog 程序重定向,一旦連接,就執(zhí)行 [危險!!]

-g gateway source-routing hop point[s], up to 8

-G num source-routing pointer: 4, 8, 12, …

-h 幫助信息

-i secs 延時的間隔

-l 監(jiān)聽模式,用于入站連接

-L 連接關閉后,仍然繼續(xù)監(jiān)聽

-n 指定數(shù)字的IP地址,不能用hostname

-o file 記錄16進制的傳輸

-p port 本地端口號

-r 隨機本地及遠程端口

-s addr 本地源地址

-t 使用TELNET交互方式

-u UDP模式

-v 詳細輸出–用兩個-v可得到更詳細的內(nèi)容

-w secs timeout的時間

-z 將輸入輸出關掉–用于掃描時

端口的表示方法可寫為M-N的范圍格式。

總結

以上是生活随笔為你收集整理的linux netcat测试udp端口,使用nc(netcat)测试udp协议与端口连通性的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。