LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-12-2013, 03:29 AM   #1
cbider
LQ Newbie
 
Registered: May 2010
Posts: 20

Rep: Reputation: 2
nc -h command on netcat-0.7.1 does not show -e option


I downloaded and installed netcat-0.7.1 and when I use nc -h command to view the options I dont see the -e option as recommended in the book Netcat Power Tools. Has this option been deprecated for maybe being dangerous or unnecessary?
 
Old 08-12-2013, 03:40 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389
The -e option is considered a security risk and not present by default.

Have a look at this:
Quote:
If netcat is compiled with -DGAPING_SECURITY_HOLE, the -e argument specifies
a program to exec after making or receiving a successful connection.
In the
listening mode, this works similarly to "inetd" but only for a single instance.
Use with GREAT CARE. This piece of the code is normally not enabled; if you
know what you're doing, have fun. This hack also works in UDP mode. Note that
you can only supply -e with the name of the program, but no arguments. If you
want to launch something with an argument list, write a two-line wrapper script
or just use inetd like always.
Quote comes from this site: Netcat: the TCP/IP swiss army

Last edited by druuna; 08-12-2013 at 03:50 AM. Reason: fixed a typo
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Is there any builtin option to show title and searched option? mddnix Linux - Newbie 6 07-17-2013 07:29 AM
netcat -q option doesn't work -kc- Linux - Software 6 07-03-2007 04:43 PM
source routing hop points with netcat (-G option) crash88 Linux - Networking 0 05-11-2006 08:51 PM
Acidrip does not show xvid as an option nkoplm Linux - Software 2 02-26-2006 11:12 AM
netcat -e option Di0de Linux - Software 0 08-17-2003 12:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration