Gentoo Archives: gentoo-user

From: Pandu Poluan <pandu@××××××.info>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] netcat - which?
Date: Wed, 07 Mar 2012 16:49:36
Message-Id: CAA2qdGVcU-yTsXbOfiXei1dHfpsanKB8GS0Mk58myMRiXFVXrQ@mail.gmail.com
In Reply to: Re: [gentoo-user] netcat - which? by Joshua Murphy
1 On Mar 7, 2012 10:39 PM, "Joshua Murphy" <poisonbl@×××××.com> wrote:
2 >
3 > On Wed, Mar 7, 2012 at 2:03 AM, Pandu Poluan <pandu@××××××.info> wrote:
4 > > eix netcat returned net-analyzer/gnu-netcat and net-analyzer/netcat
5 > >
6 > > What's the difference? Which one should I emerge?
7 > >
8 > > Rgds,
9 > > --
10 > > FdS Pandu E Poluan
11 > > ~ IT Optimizer ~
12 > >
13 > > • LOPSA Member #15248
14 > > • Blog : http://pepoluan.tumblr.com
15 > > • Linked-In : http://id.linkedin.com/in/pepoluan
16 > >
17 >
18 > For a third, unasked, option... if you're not using any of the more
19 > extravagant features, you practically always have busybox on hand
20 > already...
21 >
22 > $ busybox nc
23 > BusyBox v1.19.3 (2012-02-21 22:48:14 EST) multi-call binary.
24 >
25 > Usage: nc [OPTIONS] HOST PORT - connect
26 > nc [OPTIONS] -l -p PORT [HOST] [PORT] - listen
27 >
28 > -e PROG Run PROG after connect (must be last)
29 > -l Listen mode, for inbound connects
30 > -p PORT Local port
31 > -s ADDR Local address
32 > -w SEC Timeout for connects and final net reads
33 > -i SEC Delay interval for lines sent
34 > -n Don't do DNS resolution
35 > -u UDP mode
36 > -v Verbose
37 > -o FILE Hex dump traffic
38 > -z Zero-I/O mode (scanning)
39 >
40
41 Thank You! For what I'm using netcat for (testing a single open port by
42 sending / receiving certain messages), busybox apparently fits the bill
43 nicely.
44
45 Much appreciated!
46
47 Rgds,