nc命令
1.掃描端口
nc -z -w2 127.0.0.1 1-40000|grep -v refused
2.udp掃描
nc -u -v -z -w2 127.0.0.1 1-1000
3.查看mencache
printf "get 25001937.users \r\n" | nc 192.168.41.126 11211
4. 文件傳輸
cat test.txt | nc -l -p 6666
或者nc -l -p 6666 < test.txt
6.mencache查看
watch "printf 'stats\r\n' | nc 127.0.0.1 11211"
nc -z -w2 127.0.0.1 1-40000|grep -v refused
2.udp掃描
nc -u -v -z -w2 127.0.0.1 1-1000
3.查看mencache
printf "get 25001937.users \r\n" | nc 192.168.41.126 11211
4. 文件傳輸
cat test.txt | nc -l -p 6666
或者nc -l -p 6666 < test.txt
6.mencache查看
watch "printf 'stats\r\n' | nc 127.0.0.1 11211"
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章
CentOS 安裝 SVN1.7.7
dreamZhf
2020-07-08 12:36:10
linux CentOS7 mysql 源碼安裝和rpm安裝
weixin_38081382
2020-07-08 12:31:47
No more authentication methods to try,Permission denied (publickey)
the5fire
2023-11-21 09:53:05
linux有磁盤空間卻顯示不足 linux中inode使用率過高處理辦法 linux中inode使用率過高處理辦法
故宮博物院
2022-12-25 14:18:39
Unixbench:簡介及使用【轉】
張昺華-sky
2022-06-30 14:35:50
linux下kill殺死進程的命令
K~hat
2020-11-10 13:34:45
基於tiny4412的Linux內核移植 -- 設備樹的展開【轉】
張昺華-sky
2020-10-22 13:20:25
增加FastDfs多文件存儲路徑
pengdayong77
2020-07-08 12:37:23
supervisor管理redis,mysql進程
pengdayong77
2020-07-08 12:37:23
linux下禁止用戶使用密碼方式登陸,而使用密鑰方式登陸
dreamZhf
2020-07-08 12:36:09
find的用法:find查找指定文件和文件夾,設置爲指定用戶和用戶組
sh2018
2020-07-08 12:35:54
centos創建應用快捷方式文件的語法
以下是在創建應用程序桌面快捷方式文件的內容要求: [Desktop Entry] 文件頭 Encoding 編碼格式 Name 應用名稱 Name[xx] 不同語言的應用名稱 Comment 描述 E
柘月十七
2020-07-08 12:33:16
關於IP地址與主機名映射的/etc/hosts文件配置
柘月十七
2020-07-08 12:33:16
阿里年薪破百架構師推薦:鳥哥的Linux私房菜,搭配面試題,真香
毛发旺盛的程序员
2020-07-08 12:27:30