You're viewing a comment by langagemachine and its responses.

langagemachine Permalink
November 09, 2010, 16:48

The -e switch does not seem to work here (Ubuntu 10.4) ?

nc -l -p 12345 -e /bin/bash
nc: 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]]

Comment Responses

alex Permalink
March 16, 2011, 14:32

It is a variant of NC. The '-e' can be considered a security issue so some vendors do not include it in their distro.

Jonatan Jönsson Permalink
May 11, 2016, 08:52

You can use nc -l 1337 | /bin/bash instead!

Reply To This Comment

(why do I need your e-mail?)

(Your twitter handle, if you have one.)

Type the word "antispam_132": (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.