LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 06-17-2004, 09:07 AM   #1
igor8
LQ Newbie
 
Registered: Jul 2003
Posts: 12

Rep: Reputation: 0
Netcat question


Hi,

How can I enable e-option of netcat 1.10 ?

i have redhat 9.

Thanx in advance

Igor
 
Old 06-18-2004, 06:06 PM   #2
TheSpork
Member
 
Registered: May 2003
Location: Norway
Distribution: Ubuntu / Debian
Posts: 40

Rep: Reputation: 15
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?
 
Old 06-21-2004, 02:01 AM   #3
Ohnodoctor
LQ Newbie
 
Registered: Feb 2004
Distribution: Slack Gentoo
Posts: 5

Rep: Reputation: 0
You have to comple with GAPING_SECURITY_HOLE set in DFLAGS, I think.
 
Old 06-21-2004, 12:55 PM   #4
igor8
LQ Newbie
 
Registered: Jul 2003
Posts: 12

Original Poster
Rep: Reputation: 0
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]$

Last edited by igor8; 06-23-2004 at 04:26 AM.
 
  


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
netcat question overbored Linux - Software 13 10-30-2004 04:26 PM
building netcat fowlerlfc Linux - Newbie 0 09-28-2004 08:50 PM
netcat install? Di0de Linux - Software 4 11-04-2003 10:52 AM
Anyone Familiar With Netcat ? Santorres Linux - Software 0 07-10-2003 06:27 PM
Anyone Familiar With Netcat ? Santorres Linux - Software 0 07-10-2003 06:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 04:40 PM.

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
Open Source Consulting | Domain Registration