Netcat is a simple but powerful utility program that reads and writes data across network connections, using TCP or UDP protocol, IPv4 or IPv6, with a variety of functions.

learn more… | top users | synonyms

1
vote
2answers
351 views

netcat output into separate files using string delimiters

I want netcat to pipe the output of a tcp/ip connection to commands that examine the output and split it into distinct files separated by the strings "msg" and "/msg" from the output, something like ...
0
votes
2answers
217 views

Is it possible to push video out and usb over TCP/IP

I have a security camera system that is running Linux and is placed near the cameras (not in an office). It has a VGA out and uses a USB mouse. I'd love to redirect the VGA and USB to another ...
0
votes
2answers
780 views

How do I send and receive simultaneously with netcat?

I need to test a TCP server by connecting with netcat as a client sending a stream from /dev/random and at the same time pipe the output to /dev/null. Receiving: nc 127.0.0.1 3000 > /dev/null ...
3
votes
1answer
2k views

Unix : `nc` on Ubuntu vs Redhat (netcat)

nc -q -1 local host ${PORT} ${CMD} In Ubuntu, nc may be used as above, with the -q option. See manpage. -q after EOF on stdin, wait the specified number of seconds and then quit. If ...
1
vote
1answer
568 views

How to wait for a response on the inbound side of the socket using NC command under BusyBox?

I am having problems using the Netcat that comes with BusyBox 1.1.3 to make an HTTP request and then receive the response. The NC command seems to quit out as soon as it reaches the end of the request ...
1
vote
1answer
145 views

Netcat connection over dynamic IP

I was playing around with netcat on my lan , had PC1 configured as a netcat client and PC2 configured as a netcat server into a reverse netcat TCP connection.This whole reverse TCP connection works ...
1
vote
1answer
101 views

Two hop SSH with multiple user names

I am trying to set up an ssh proxycommand, where the user name at the final host is different from the user name at the original host. I am logged in on firstHost as username and want to effectively ...
1
vote
1answer
788 views

Cygwin netcat nc doesn't resolve hosts through /etc/hosts

I'm trying to use ssh to log into remote servers, and I have a ProxyCommand setup in ~/.ssh/config to use a proxy (setup through PuTTY to connect to a VPN). The ProxyCommand uses nc to connect ...
1
vote
1answer
607 views

Can I stop a netcat tar pipe and continue later without overriding existing files?

I'm trying to copy a lot of files from my NAS to my server, about 2TB. I found that using a netcat tar pipe to copy the directories goes pretty fast, about 40mb/s. It seems to work faster than rsync ...
1
vote
1answer
133 views

How to upload a file to windows through a netcat session

I have a netcat session and I want to upload a binary to the target windows machine. How can I do so? Is there a native "wget" in windows?
1
vote
1answer
817 views

Bash RTSP client with netcat - keep connection open while parsing sent data with sed?

I am trying to make a RTSP client in bash. Problem is that I must make only one connection to the server through which it will send video frames. I can keep it on one connection up to the point at ...
0
votes
1answer
189 views

Netcat: Should I use Ctrl+C to close the connection?

I've opened netcat, and I'm entering things from the keyboard. When I've finished and I want to close the connection, should I just hit "Ctrl+C"? I want the connection to be closed "normally", but I ...
0
votes
1answer
181 views

Keep Process Running after Quitting NetCat

I am using NetCat on Windows 7 Professional to connect to my linux machine at home. I need to run a process and make it keep running after I close NetCat (Cmd Console). However when I close and then ...
0
votes
1answer
508 views

TCP connection to my host's public IP address using Linux netcat

I need to make a TCP connection to my machine through an application that needs only the public IP address and port to connect. I have been able to do it in Windows, but I need to do it in Linux ...
0
votes
1answer
1k views

netcat and tee redirection via a bash script

Quick question that has been haunting me all day.. I have a bash script that includes this line: nc -l 8044 | tee nc-output & The output from netcat is never being written to nc-output. If I ...
2
votes
0answers
10 views

Using DJB's tcpclient or tcpcat bidirectionally

Can someone post an example on how to use DJB's tcpclient bidirectionally? We need to read from Tor's ControlPort as well as write to Tor's ControlPort. A "file" that is open for both, reading and ...
2
votes
0answers
69 views

DNS tunneling through an SSH connection looses connectivity

In the article 'UDP traffic through SSH tunnel', it is described how to tunnel DNS trough a SSH tunnel: client# ssh -N -L 6667:localhost:6667 user@server server# mkfifo /tmp/fifo server# nc -k -l ...
1
vote
0answers
10 views

Using netcat to connect to znc

I'm trying to send status updates to my IRC channel on irc.foo.com My limitations are.. The msg has to be sent to irc.foo.com from my ZNC account on znc.bar.com (znc is connected to irc.foo.com) ...
1
vote
0answers
88 views

Create duplex TCP tunnel in Windows with netcat

I need to create a TCP tunnel in Windows, I tried by chaining netcat: ncat -l 3333 | ncat 192.168.0.110 4015 This creates a single direction tunnel, though, as only the first netcat's STDOUT ...
1
vote
0answers
129 views

nc connection refused even on loopback

I'm working on an embedded linux system, which appears to be networked correctly and is running ssh (dropbear) and rpcbind. I'm setting up a server application on it, and every single thing I try ...
1
vote
0answers
2k views

how to bypass this error : “port range not valid”?

I have a port number that I want to connect to it via net-cat. previously I was working with windows and it was working perfect; but now in Ubuntu when I want to run the Net-Cat it's show me this ...
0
votes
0answers
9 views

Port bridge with iptables

is there a way to achieve the same thing than bidirectional socat functionality with nc mkfifo backpipe nc localhost 42042 0<backpipe | nc localhost 1042 1>backpipe But only by using iptables ...
0
votes
0answers
23 views

Netcat doesn't detect open port with ngrok

I'm using ngrok 5002 to open up a port on my computer. I then do netcat -z xxx.xxx.xx.xxx 1-65000 with xxx.xxx.xx.xxx being my external ip I found via some web service. However, I expected ...
0
votes
0answers
52 views

Netcat redirect remote console application

I have a windows interactive command line application ('pianobar', Pandora client) that I'm running on a Win2k8 server that I would like to control remotely, possibly using netcat. I need to be able ...
0
votes
0answers
159 views

netcat command is not working in bidirectional mode

I am using netcat in Linux to send and receive data (using udp protocol) from a serial port to another device through the network. The command is : nc -u 192.168.10.12 < /dev/ttyUSB0 > ...
0
votes
0answers
1k views

Server: Microsoft-HTTPAPI/2.0 running on port 10234 on my Windows 7 pc?

I've recently set up a home server and spent some time working on the security. One of the tools I've been using nmap which I pointed at my Windows 7 desktop. It showed an unknown service on port ...
0
votes
0answers
1k views

Port forwarding on D-link DIR-615 router

I'm attempting to configure my router to forward a port to my Linux machine. The Linux computer has a static IP (192.168.0.185) Right now I'm just experimenting to make sure I can forward a port, so ...