LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   Netcat question (https://www.linuxquestions.org/questions/linux-security-4/netcat-question-194564/)

igor8 06-17-2004 09:07 AM

Netcat question
 
Hi,

How can I enable e-option of netcat 1.10 ?

i have redhat 9.

Thanx in advance

Igor

TheSpork 06-18-2004 06:06 PM

Re: Netcat question
 
Quote:

Originally posted by igor8
Hi,

How can I enable e-option of netcat 1.10 ?

i have redhat 9.

Thanx in advance

I think you need to explain this a little more.. Are you looking for how to use "nc -e <program>" or do you mean something else?

Ohnodoctor 06-21-2004 02:01 AM

You have to comple with GAPING_SECURITY_HOLE set in DFLAGS, I think.

igor8 06-21-2004 12:55 PM

Yes,
I have compiled nc110 with

GAPING_SECURITY_HOLE -DTELNET ,

but if I do nc -h , i still have no e-opion....

What can it be???????

(and yes i need nc -e <program>)

----------------------------------------------------

[natalijj@chello natalijj]$ mkdir nc
[natalijj@chello natalijj]$ cd nc
[natalijj@chello nc]$ tar zxf ../nc110.tgz
[natalijj@chello nc]$ make
Usage: make <systype> [options]
[natalijj@chello nc]$ make linux
make -e nc XFLAGS='-DLINUX' STATIC=-static
make[1]: Entering directory `/home/natalijj/nc'
cc -O -s -DGAPING_SECURITY_HOLE -DTELNET -DLINUX -static -o nc netcat.c
/tmp/ccLPcyw0.o(.text+0x15f7): In function `main':
: undefined reference to `res_init'
collect2: ld returned 1 exit status
make[1]: *** [nc] Error 1
make[1]: Leaving directory `/home/natalijj/nc'
make: *** [linux] Error 2
[natalijj@chello nc]$ make
Usage: make <systype> [options]
[natalijj@chello nc]$ make linux
make -e nc XFLAGS='-DLINUX' STATIC=-static
make[1]: Entering directory `/home/natalijj/nc'
cc -O -s -DGAPING_SECURITY_HOLE -DTELNET -DLINUX -static -o nc netcat.c
make[1]: Leaving directory `/home/natalijj/nc'
[natalijj@chello nc]$ nc -h
[v1.10]
connect to somewhere: nc [-options] hostname port[s] [ports] ...
listen for inbound: nc -l -p port [-options] [hostname] [port]
options:
-g gateway source-routing hop point[s], up to 8
-G num source-routing pointer: 4, 8, 12, ...
-h this cruft
-i secs delay interval for lines sent, ports scanned
-l listen mode, for inbound connects
-n numeric-only IP addresses, no DNS
-o file hex dump of traffic
-p port local port number
-r randomize local and remote ports
-s addr local source address
-u UDP mode
-v verbose [use twice to be more verbose]
-w secs timeout for connects and final net reads
-z zero-I/O mode [used for scanning]
port numbers can be individual or ranges: lo-hi [inclusive]
[natalijj@chello nc]$


All times are GMT -5. The time now is 02:29 AM.