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
2 answers

Netcat output pipe, json parsing

What I want is this: netcat to the server, which streams json formatted loglines. pipe the output of nc to "something" that will format the json as plaintext, in a customizable format (thinking something like perl or python here). allow "something"…
c0dem4gnetic
  • 165
  • 1
  • 7
0
votes
1 answer

netcat and file transfer

How do I actualy use netcat to transfer files over network? IIRC something like that nc -l -p 12345 > destfile(on the receiving end) + dd if=/dev/sourcedevice| nc ipaddress 12345(on the sending end) used to work. That is when the transfer was…
0
votes
2 answers

Using rsyslogd on only 1 of 2 systems

I have two systems. One is a laptop and has rsyslog. The other is embedded system that doesn't have rsyslog. What I'd like to do is log messages from the embedded system on the laptop. I've configured the laptop /etc/rsyslog.conf to listen on TCP…
user800133
  • 35
  • 6
0
votes
1 answer

Banner Grabbing DNS?

How does one banner grab DNS? I'm able to banner grab other services such as HTTP/FTP/SMTP but for DNS it's not immediately obvious. Typically for HTTP I use nc with HEAD / HTTP/1.1 {ENTER}{ENTER}. I had assumed that it'd be possible with DNS if…
user101130
0
votes
1 answer

Communication problems on secondary interface tap0

I am using UDP over ipv6 as communication stack. I have network client running on secondary virtual interface tap0. It generates messages for server which is supposed to run on the same interface but different link-scope ipv6 address. I can see…
Amit S
  • 153
  • 1
  • 6
0
votes
3 answers

apache vhost not working consistently

I have a vhost on my webserver whose sole and unique goal is to return the client IP adress: petrus@bzn:~$ cat /home/vhosts/domain.org/index.php This helps me troubleshoot networking issues,…
petrus
  • 5,297
  • 26
  • 42
0
votes
1 answer

Netcat to automate SpeedTouch administration

I figured out how to enable/disable my wireless connection with telnet, but I want to automate it. I read telnet is not suitable for this, and one should use netcat instead. This is what I have: nc 192.168.1.254 23 << EOF username password :wireless…
Pepijn
  • 133
  • 6
0
votes
3 answers

shell record UDP stream from a specific address

I'm trying to record an incoming UDP stream (stream the sense that it's a stream of consecutive datagrams). I tried netcat but unfortunately multiple sources send data on the same port address and nc doesn't let you specify the source or the target…
Karoly Horvath
  • 334
  • 1
  • 4
  • 14
0
votes
2 answers

Having trouble with SSH remote port forwarding

all. My college network somehow disallows incoming connections. (I can SSH out of the network, but not into it.) I'm trying to set up an SSH tunnel from my school computer ("school") to a VPS "computer" ("outside") which is outside the school…
Joe
0
votes
3 answers

Run netcat in background on Ubuntu Lucid 10.04

I am trying to do a pg_dump from one server and simultaneously restore at the other server. The command on source server (192.168.3.94): pg_dumpall -v | nc 192.168.3.95 4000 The command on the target server (192.168.3.95): nc -l 4000 | psql…
sayeed
  • 1
  • 1
  • 1
0
votes
1 answer

How to diagnose / fix an OpenVPN setup which works from inside of LAN but doesn not work from WAN side of router

The firm I work for has decided to go with OpenVPN to replace heavy ssh usage ( The right vpn to replace heavy ssh usage ) I have attempted to setup OpenVPN for bridging connections. I can connect via machines on the same network as the VPN server.…
Sindhudweep
  • 175
  • 1
  • 7
0
votes
1 answer

Different behaviour of netcat from telnet when connecting to public route server

I have observed a different behaviour between netcat and telnet when connecting to the public route server bgp-view.tvnetwork.hu and issuing the command show ip bgp. Using Telnet the output (which is normally some tens of thousands lines long) is…
Vasilis
  • 293
  • 1
  • 4
  • 13
0
votes
1 answer

Localhost service accessible from remote address

I have on my home Windows box - Cassini server with localhost:10000. And I want it be accessible in internet by my static IP. Tried netcat, "nc -l -p 10001 localhost 10000". But it results in "invalid connection to [IP] from [IP] 16074" Also…
Igor Golodnitsky
  • 287
  • 1
  • 2
  • 13
0
votes
1 answer

Logging network activity of LAMP server using BASH

I've got a Fedora LAMP server on Amazon EC2 functioning as a HTTP pseudo-proxy (Sorry, don't know the terminology- It's not a true proxy where requests are relayed through apache, rather client requests are being translated by a PHP script, which…
Yarin
  • 1,366
  • 8
  • 19
  • 31
0
votes
0 answers

Can't see udp packets with nc command, works with tcpdump

I'm trying to capture UDP data using the nc (netcat) command but it doesn't output anything. What options/parameters do I need to pass to the nc command to get the output? tcpdump does show the UDP data. The reason I'm trying nc is that when I know…
Martijn de Munnik
  • 123
  • 1
  • 1
  • 4