Questions tagged [netcat]

Netcat is a featured networking utility which reads and writes data across network connections, using the TCP/IP protocol.

features:

  • Outbound and inbound connections, TCP or UDP, to or from any ports.
  • Featured tunneling mode which allows also special tunneling such as UDP to TCP, with the possibility of specifying all network parameters (source port/interface, listening port/interface, and the remote host allowed to connect to the tunnel.
  • Built-in port-scanning capabilities, with randomizer.
  • Advanced usage options, such as buffered send-mode (one line every N seconds), and hexdump (to stderr or to a specified file) of trasmitted and received data.
  • Optional RFC854 telnet codes parser and responder.
186 questions
0
votes
1 answer

Proxy to add CORS headers with netcat

I'm looking for a little script using nc which will be used to add CORS headers (at least Access-Control-Allow-Origin: *) in order for my local ionic dev application to access a remote webservice.
Anthony O.
  • 674
  • 1
  • 5
  • 14
0
votes
1 answer

Netcat - socket in time_wait when echoing and piping, but not when invoked directly

I'm testing an application using netcat (nc) and I'm getting very low throughput on network connections. When I ran netstat -tnpo I see numerous TCP sessions in TIME_WAIT. I'm sending data to my application via a bash script as indicated…
AnthonyK
  • 240
  • 2
  • 6
0
votes
2 answers

Netcat UDP transfer never stop until terminated via CTRL+C

I'm trying to send data across machine using Netcat using UDP instead of TCP. Now, unlike TCP(Netcat over TCP) which used to mark the completion of the file transfer by exiting the nc process, the UDP(Netcat over UDP) process never seem to exit,…
Viren
  • 171
  • 1
  • 2
  • 10
0
votes
1 answer

2012R2 Hyper-v host CentOS7 guest slow network speed over external network

I have a Hyper-V host on win2012R2 (Version 6.3.9600) with two gigabit network adapters, one of them connecting to a gigabit router (the another one is currently out of use because lack of a gigabit switch near to the server yet). I'm running a…
0
votes
1 answer

Sending file with netcat over UDP: Unusual Wireshark output

For the purposes of demonstrating differences between TCP and UDP, I'm piping the contents of a file across a network connection, and recording the interaction with Wireshark. Everything looks normal in TCP, but in UDP things get a little weird. I'm…
Ryan
  • 123
  • 1
  • 7
0
votes
2 answers

Running ssh/netcat in the background

I'm trying to run a network throughput test between an OS X and a Linux host. I'd like to be able to measure the sustained throughput from the Linux host to the OS X host over time. I'd like to wrap this up into a single script so that I can easily…
Brian John
  • 161
  • 1
  • 4
0
votes
2 answers

Why my netcat connection doesn't send the file correctly?

I wrote this script to send a file using netcat. My intention is to open the netcat port in the destination server from the origin, this way I do everything with just one script instead of having one on the dest and one on the…
Nocturn
  • 133
  • 1
  • 10
0
votes
0 answers

Piping device file over UDP with netcat

Hopefully this is the best Stack Exchange site for this - I think it's primarily a netcat question. I'm developing a custom data acquisition device. It can probably be best thought of as a fancy sound card. It's currently running on Ubuntu 14.04.…
Katie
  • 101
  • 3
0
votes
0 answers

Send apache ssl access log to syslog

I'm having an issue piping apache ssl access logs to my syslog server. I've added the following line to my apache config: CustomLog "|/usr/bin/nc -u 514" "<134>%{%b %d %X}t web1 apache %h %l %u %t \"%r\"%>s %b \"%{Referer}i\"…
Dave Holland
  • 1,898
  • 1
  • 13
  • 18
0
votes
1 answer

When copying VM filesystem over netcat, dd copies double the disk size

I'm attempting to copy the disk of a working headless virtualbox VM (VM1) on one server to a new VM (VM2) on a vCloud server. I don't have access to the host of VM2. The OS is Windows Server 2003 (32-bit) I start both VMs with a live Knoppix…
JivanAmara
  • 171
  • 1
  • 6
0
votes
1 answer

How to query a munin plugin via netcat?

I want to query a present Munin plugin from Nagios. As I would like to do some calculations and aggregations (the plugin reports data over a period of time) and not just look at the last values, the available plugins querying Munin data like…
the-wabbit
  • 40,737
  • 13
  • 111
  • 174
0
votes
1 answer

Netcat: connection lost before transfer is complete

Interesting thing with Netcat (nc) in CentOS 5 or 6 (nc-1.84-10.fc6 or nc-1.84-22.el6.x86_64). How can I work it around? I can't find a bug about this, but It models a file transfer to a remote host, where the file is transformed, then the result…
user77376
  • 193
  • 1
  • 5
0
votes
1 answer

Why isn't nc -vv -l -n -p 8080 working?

I can't get the command working, it should listen to 8080 I am out of idea's with this, any support on this matter?
Marco
  • 307
  • 1
  • 2
  • 14
0
votes
1 answer

Redirect telnet "interactivity" from host 3 to host 1 through host 2 (proxy?)

My network configuration: host 1 [h1] - User machine connected via VPN to the main host (host 2). (Win 7) host 2 [h2] - The gate through other machines of my network. No firewall, no ip rules. (Win XP) host 3 [h3] - The target machine. (Win…
0
votes
2 answers

SSH and port forward socks proxy

I would like to setup an ssh tunnel that includes 3 machines. One machine I want to make http requests from but can only connect to a central server and outbound port 80 requests. The server is a linux box that I have full root access to. The third…
Brandon