Re: netcat udp to two IP addresses?

2016-10-01 Thread Thomas Schmitt
Hi, i wrote: > >   mknod ~/fifo p > >   netcat -u PORT1 <~/fifo > >   data_producer | tee -i ~/fifo |  netcat -u PORT2 Paul Duncan wrote: > I shall give that a go I forgot to mention that i ran my test mockup of the last two commands concurrently in t

Re: netcat udp to two IP addresses?

2016-10-01 Thread Thomas Schmitt
Hi, Paul Duncan wrote: > what the best way is to send it to two IP addresses? If it must happen without much time to study the web, i'd use tee(1) to feed a named pipe from the unnamed one. Then netcat can consume both. mknod ~/fifo p netcat -u PORT1 <~/fifo data_producer | te

netcat udp to two IP addresses?

2016-10-01 Thread Paul Duncan
Hi All, Not strictly speaking an OS dependent question, but I figured someone on this list would probably have an answer :-) I have a program generating output to standard out, which I am then piping to netcat -u IP Port This works fine, but I'm wondering what the best way is to send it t

Re: netcat usage.

2014-02-24 Thread Jonathan Dowland
On 24/02/2014 10:21, Brian wrote: > the OP could consider doing (as root) > >setcap cap_net_bind_service=+ep /usr/bin/ncat > > as a solution to his problem. If they do, they should be aware that would essentially permit any user on the machine to bind to any port; since nc is a redirection s

Re: netcat usage.

2014-02-24 Thread Brian
little different, but there are also netsed, netrw etc. > > And the excellent crypcat - but I just counted the ones with netcat in > their name (in case the OP was, um, fussy about it), not necessarily > their functionality. I don't know what the actual criteria for being > "net

Re: netcat usage.

2014-02-24 Thread Scott Ferguson
cat - but I just counted the ones with netcat in their name (in case the OP was, um, fussy about it), not necessarily their functionality. I don't know what the actual criteria for being "netcat" is, for me if it does the job and is in /etc/alternatives I'm happy. Kind regards

Re: netcat usage.

2014-02-24 Thread Zenaan Harkness
I'd include socat in the list, but perhaps it's command line options are different? socat is my preferred network swiss army knife. A little different, but there are also netsed, netrw etc. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Troubl

Re: netcat usage.

2014-02-24 Thread Scott Ferguson
On 24/02/14 15:44, Peter Easthope wrote: > References: > <530a9882.4040...@gmail.com> > > From: Scott Ferguson > Date: Mon, 24 Feb 2014 11:55:30 +1100 >> NOTE: there four different "netcats" available in Wheezy. > > I found three. > netca

Re: netcat usage.

2014-02-23 Thread Peter Easthope
References: <530a9882.4040...@gmail.com> From: Scott Ferguson Date: Mon, 24 Feb 2014 11:55:30 +1100 > NOTE: there four different "netcats" available in Wheezy. I found three. netcat-openbsd, netcat-traditional, netcat6. netcat-openbsd pleads ignorance. peter@dalton:~$ n

Re: netcat usage.

2014-02-23 Thread Scott Ferguson
n, 23 Feb 2014 19:43:12 + >> Which netcat are you using? > > [user@computer ~]$ nc --version > Ncat: Version 6.40 ( http://nmap.org/ncat ) > >> Mine (which I will not reveal :) ) does does not offer -e as an option. > > -e is a contentious option? Contentious

Re: netcat usage.

2014-02-23 Thread Pascal Hambourg
David Glover-Aoki a écrit : > > Only the superuser can bind to ports below 1024. Actually not. It just requires that the process has the CAP_NET_BIND_SERVICE capability. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas.

Re: Re(2): netcat usage.

2014-02-23 Thread Brian
Brian > Date: Sun, 23 Feb 2014 19:43:12 + > > Which netcat are you using? I asked a question - which you didn't answer. I'll ask another one after answering the two you ask. > [user@computer ~]$ nc --version > Ncat: Version 6.40 ( http://nmap.org/ncat ) > >

Re(2): netcat usage.

2014-02-23 Thread Peter Easthope
References: <9802e1a04541ccc2a9d2c5d8b89c6c0f.squir...@easthope.ca> <23022014193900.3e6e4cc30...@desktop.copernicus.demon.co.uk> I'll be putting References in the header again soon. From: Brian Date: Sun, 23 Feb 2014 19:43:12 +0000 > Which netcat are you using? [user@comput

Re: netcat usage.

2014-02-23 Thread David Glover-Aoki
On Sun, 23 Feb 2014 09:15:59 -0800 "Peter Easthope" wrote: > Ncat: bind to :::25: Permission denied. QUITTING. Only the superuser can bind to ports below 1024. -- David Glover-Aoki http://david.gloveraoki.net/contact signature.asc Description: PGP signature

Re: netcat usage.

2014-02-23 Thread Brian
On Sun 23 Feb 2014 at 09:15:59 -0800, Peter Easthope wrote: > Can anyone offer a solution for this? > > [user@computer ~]$ nc -l 25 -e /usr/sbin/ssmtp > Ncat: bind to :::25: Permission denied. QUITTING. Which netcat are you using? Mine (which I will not reveal :) ) does does not of

Re: netcat usage.

2014-02-23 Thread Mark Carroll
"Peter Easthope" writes: > Can anyone offer a solution for this? > > [user@computer ~]$ nc -l 25 -e /usr/sbin/ssmtp > Ncat: bind to :::25: Permission denied. QUITTING. Maybe you need to be root? I doubt regular users can bind to ports below 1024. -- Mark -- To UNSUBSCRIBE, email to debian-us

netcat usage.

2014-02-23 Thread Peter Easthope
Can anyone offer a solution for this? [user@computer ~]$ nc -l 25 -e /usr/sbin/ssmtp Ncat: bind to :::25: Permission denied. QUITTING. Thanks,... Peter E. -- Telephone 1 360 639 0202. Bcc: peter at easthope.ca "http://carnot.yi.org/ " -- To UNSUBSCRIBE, email to deb

RE: More on port forwarding(ssh, netcat and amule!)

2012-10-11 Thread Pietro Paolini
Hello, A port number identifies a process running in your machine, then is implicit that a process must be running and listening on that port. When your netcat try to connect it will probably receives an ICMP packet advertising the "Connection Refused" or an TCP segment with the fla

Re: More on port forwarding(ssh, netcat and amule!)

2012-10-11 Thread Tom Grace
On 11/10/12 09:53, houkensjtu wrote: > It seems that, not only on the router, but also I should open a specific port > on my laptop, otherwise netcat will not be able to connect from outside my > home. > > I wonder why this happens and what is the mechanism behind it. > Is it

More on port forwarding(ssh, netcat and amule!)

2012-10-11 Thread houkensjtu
on my laptop. Now I can access my laptop from office by ssh USER@my_home_external_ip. Also, scan port by using netcat from office: nc -vz my_home_external_ip 22 gives me: Connection to my_home_external_ip port [tcp/ssh] succeeded! Today, I tried to open another port on my router, let me call it

Re: newbie question on port forwarding(and ssh, netcat)

2012-10-10 Thread Valery Mamonov
2012/10/11 houkensjtu > Thanks Joe, Brian, Murphy > > As I post above, I forgot to say all these experiments were done in my > home on my laptop... > Now I am in my office and re-do all this experiment. > To be short, now all experiment which is done with ip address works well, > while if I do ss

Re: newbie question on port forwarding(and ssh, netcat)

2012-10-10 Thread houkensjtu
Thanks Joe, Brian, Murphy As I post above, I forgot to say all these experiments were done in my home on my laptop... Now I am in my office and re-do all this experiment. To be short, now all experiment which is done with ip address works well, while if I do ssh USER@DEBIAN, it will say: ssh: C

Re: newbie question on port forwarding(and ssh, netcat)

2012-10-10 Thread Neal Murphy
On Wednesday, October 10, 2012 08:19:25 PM houkensjtu wrote: > Thanks for great reply!! > I have to apologize for sth... I forgot to say that all these experiments > were done in home on my laptop...omg So, now I solved the problem with > echo "1">/proc/sys/net/ipv4/ip_forward > > What is this fil

Re: newbie question on port forwarding(and ssh, netcat)

2012-10-10 Thread houkensjtu
Brian於 2012年10月11日星期四UTC+9上午8時00分04秒寫道: > On Wed 10 Oct 2012 at 08:35:13 -0700, houkensjtu wrote: > > > > > I am a newbie both of debian and networking... Recently I am trying > > > to connect my home laptop(I have a router in my home) from office. I > > > read several articles on port forwar

Re: newbie question on port forwarding(and ssh, netcat)

2012-10-10 Thread houkensjtu
Hi Joe! Thank you for detailed reply! Actually I found a switch which solved my problem and now all my experiments works perfectly. The command is: echo "1">/proc/sys/net/ipv4/ip_forward but...What is it?! Is there any other way to check and configure my laptop's status without writing directly

Re: newbie question on port forwarding(and ssh, netcat)

2012-10-10 Thread Brian
On Wed 10 Oct 2012 at 19:44:27 +0100, Joe wrote: [Some good advice snipped] > However you resolve the initial problem, the ssh server is very heavily > targeted by the bad guys, using password checking bots. A quick and > dirty security measure is to forward a non-standard high numbered > externa

Re: newbie question on port forwarding(and ssh, netcat)

2012-10-10 Thread Brian
On Wed 10 Oct 2012 at 08:35:13 -0700, houkensjtu wrote: > I am a newbie both of debian and networking... Recently I am trying > to connect my home laptop(I have a router in my home) from office. I > read several articles on port forwarding. And I succeeded in opening > an 22 port on my router, al

Re: newbie question on port forwarding(and ssh, netcat)

2012-10-10 Thread Joe
On Wed, 10 Oct 2012 08:35:13 -0700 (PDT) houkensjtu wrote: > Hi debianer! > I am a newbie both of debian and networking... > Recently I am trying to connect my home laptop(I have a router in my > home) from office. I read several articles on port forwarding. And I > succeeded in opening an 22 por

Re: newbie question on port forwarding(and ssh, netcat)

2012-10-10 Thread Nuno Magalhães
http://www.catb.org/esr/faqs/smart-questions.html A bit of searching the net on port-forwarding oughta give you the answer. You probably forgot to forward port 22 on the router to whichever ip adress your DEBIAN has. Search around for stuff on your router/ISP combo as they're almost always blocked

newbie question on port forwarding(and ssh, netcat)

2012-10-10 Thread houkensjtu
Hi debianer! I am a newbie both of debian and networking... Recently I am trying to connect my home laptop(I have a router in my home) from office. I read several articles on port forwarding. And I succeeded in opening an 22 port on my router, also I started ssh server on my home laptop. (suppos

Re: testing a udp socket with netcat

2012-03-14 Thread Chris Davies
listening simply by connecting to the port. This is documented in the netcat man page: CAVEATS UDP port scans will always succeed (i.e. report the port as open), rendering the -uz combination of flags relatively useless. Chris -- To UNSUBSCRIBE, email to debian-user-requ...

Re: testing a udp socket with netcat

2012-03-14 Thread Jon Dowland
g udp datagram : $nc -uvvz -z zero-I/O mode [used for scanning] it does not output any thing. i have straced the udp daemon. which does not returns from recv() call. my goal is to put arbitrary data on the udp socket by netcat. i do not have any experience regarding netcat so i

testing a udp socket with netcat

2012-03-14 Thread Arif Hossain
t any thing. i have straced the udp daemon. which does not returns from recv() call. my goal is to put arbitrary data on the udp socket by netcat. i do not have any experience regarding netcat so i'm asking if anyone can help me out with this. thanks in advance. -- "Y

Re: native support in netcat for multitasking TCP server ?

2011-08-24 Thread Brian
On Wed 24 Aug 2011 at 10:24:55 +0100, Joao Ferreira Gmail wrote: > Does anyone know if there is any kind of support in netcat to implement > multiclient with a multitasking/multithreading server...(several clients > being accepted and served concurrently) > > or any other simila

Re: native support in netcat for multitasking TCP server ?

2011-08-24 Thread Scott Ferguson
On 24/08/11 19:24, Joao Ferreira Gmail wrote: > Hello all, > > Does anyone know if there is any kind of support in netcat to implement > multiclient with a multitasking/multithreading server...(several clients > being accepted and served concurrently) > > or any other

Re: netcat in listen mode don't exit

2009-02-13 Thread Eric Gerlach
> > > Nice tip, Tod. But the idea was keeping a connection open, to get client > informed by server that something happened. > > Anyway, looking in netcat sources yesterday I found the reason of that > behavior. It uses the "execl" system call to run -e program (the vers

Re: netcat in listen mode don't exit

2009-02-13 Thread Paulo Brito
xit when it's done dumping /var/log/syslog and the > next time someone connects it should pick up where it left off. > > Regards, > Tod Detre > > Nice tip, Tod. But the idea was keeping a connection open, to get client informed by server that something happened. Anyway, lookin

Re: netcat in listen mode don't exit

2009-02-12 Thread Tod Detre
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Paulo Brito wrote: > Thanks for de tips about top posting. I"ll remember > > Michael, -w option dont make nc returns if a conection is already > stablished. > > I've tried this: nc -l -p 5558 -c bash. And it works! I think the big > probleam is that

Re: netcat in listen mode don't exit

2009-02-11 Thread Paulo Brito
2009/2/11 Michael Iatrou > When the date was Wednesday 11 February 2009, Paulo Brito wrote: > > > 2009/2/11 Michael Iatrou > > > > > When the date was Wednesday 11 February 2009, Paulo Brito wrote: > > > > I"m trying to setup netcat so it serves

Re: netcat in listen mode don't exit

2009-02-11 Thread Michael Iatrou
When the date was Wednesday 11 February 2009, Paulo Brito wrote: > 2009/2/11 Michael Iatrou > > > When the date was Wednesday 11 February 2009, Paulo Brito wrote: > > > I"m trying to setup netcat so it serves logs to other systems. When > > > a client conne

Re: netcat in listen mode don't exit

2009-02-11 Thread Paulo Brito
u'll > see > > that the problem is netcat NOT exiting after disconnect. So, your script > > will not solve the problem, because the nc never exits. > > > > Will -w option work? > > -- > Regards, > Sudev Barar > Read http://blog.sudev.in for topics rangi

Re: netcat in listen mode don't exit

2009-02-11 Thread Paulo Brito
Michael, thanks for your reply. But if you read my entire email, you'll see that the problem is netcat NOT exiting after disconnect. So, your script will not solve the problem, because the nc never exits. Thanks anyway. 2009/2/11 Michael Iatrou > When the date was Wednesday 11 Febru

Re: netcat in listen mode don't exit

2009-02-11 Thread Michael Iatrou
When the date was Wednesday 11 February 2009, Paulo Brito wrote: > I"m trying to setup netcat so it serves logs to other systems. When a > client connects, the server starts to send some logs. > > I run netcat in listem mode like this: > > # nc -l -p 5558 -c "tai

netcat in listen mode don't exit

2009-02-11 Thread Paulo Brito
I"m trying to setup netcat so it serves logs to other systems. When a client connects, the server starts to send some logs. I run netcat in listem mode like this: # nc -l -p 5558 -c "tail -f /var/log/syslog" the client I run like this: # nc 5558 The problem is that the serve

Using Netcat

2006-10-08 Thread Joseph L. Casale
  Hi, I am using netcat to help me send backups to and from machines with different operating systems.   I am using: To Backup... dd if=/dev/"Device" | gzip -9 | nc "Destination" "Port" Assumes nc -l -p "Port" >"Image File Name"

Using Netcat

2006-10-08 Thread Joseph L. Casale
Hi, I am using netcat to help me send backups to and from machines with different operating systems.   I am using: To Backup... dd if=/dev/"Device" | gzip -9 | nc "Destination" "Port" Assumes nc -l -p "Port" >"Image File Name" is

netcat on windows [WAS: copying a 12GB file]

2006-03-11 Thread Andreas Rippl
ncryption might > > > slow down the transfer as well, so the transfer speed might depend on > > > the speed of your CPUs. > > > > additional comment - iirc, it's possible to choose weak encryption for > > ssh that might actually speed it up a bit. > > to

difference between netcat and telnet when talking to inn2

2001-08-20 Thread glynis
o 119, but netcat exhibits the same behavior as my broken java program. why does netcat localhost 119 give me the 500 error when trying to issue commands to inn2 and telnet doesn't? this is an up-to-date debian unstable box on an i386. thanks. -- }J

source routing with nc (netcat)

2000-11-30 Thread Luis Gustavo Madrigal Salazar
Has anyone use nc (netcat) to check connectivity using nc's -g option to specify loose source routed path??? I think I need the kernel not to drop ip packets with source route options (which is the default I think), but if that's true, how do I disable this kernel feature???

RE: How secure is netcat?

1997-10-15 Thread George Bonser
I ment, of course, nc On 15-Oct-97 George Bonser wrote: >If I wanted to use tcp wrappers to do something like: > >in.smtpd: .cyberpromo.com: twist netcat %a 25 > >would it represent a great security hazard? > > >-- >TO UNSUBSCRIBE FROM THIS MA

How secure is netcat?

1997-10-15 Thread George Bonser
If I wanted to use tcp wrappers to do something like: in.smtpd: .cyberpromo.com:twist netcat %a 25 would it represent a great security hazard? -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .

Re: netcat

1997-10-12 Thread Mirek Kwasniak
> Could someone help me with netcat. I use the debian package installation > method. Grab the package off the debian ftp site. It verified that it was > installed. I try running it by typing netcat and file was not found. I did > man -k netcat and no man pages were located. I can'

Re: netcat

1997-10-09 Thread Tommy Lakofski
the binary is /usr/bin/nc On Thu, 9 Oct 1997, Chi Wong wrote: > From: Chi Wong <[EMAIL PROTECTED]> > To: debian-user@lists.debian.org > Date: Thu, 09 Oct 1997 13:13:05 -0400 > Subject: netcat > > Could someone help me with netcat. I use the debian package installation &g

Re: netcat

1997-10-09 Thread Jens B. Jorgensen
Chi Wong wrote: > > Could someone help me with netcat. I use the debian package installation > method. Grab the package off the debian ftp site. It verified that it was > installed. I try running it by typing netcat and file was not found. I did > man -k netcat and no man pages

netcat

1997-10-09 Thread Chi Wong
Could someone help me with netcat. I use the debian package installation method. Grab the package off the debian ftp site. It verified that it was installed. I try running it by typing netcat and file was not found. I did man -k netcat and no man pages were located. I can't find the binary to