Questions tagged [netcat]

netcat is a command for performing read/write operations on TCP or UDP network connections.

From the official GNU netcat project page:

It is designed to be a reliable "back-end" tool that can be used directly or easily driven by other programs and scripts. At the same time, it is a feature-rich network debugging and exploration tool, since it can create almost any kind of connection you would need and has several interesting built-in capabilities.

It provides access to the following main 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.

SANS has produced a netcat cheat sheet (PDF) with various tips on usage.

911 questions
-2
votes
1 answer

Sending raw data using TCP/IP in Linux

i have to send byte array using TCP/IP in Linux. Which program should i use? I couldn't use netcat because program gives me an error about authorization. I can send data through telnet but i can't use telnet to send raw data.
sanchop22
  • 2,729
  • 12
  • 43
  • 66
-2
votes
2 answers

Ncat reverse shell, No connection

I'm facing a problem establishing a reverse shell using the Ncat (Nmap's tool). At first it worked properly, but when I swap the target and attacking machine it doesn't. Case 1: I set up a Ubuntu virtual private server (IP Address: 172.105.253.156),…
-2
votes
2 answers

Windows not accepting Socket Connections when running as service

I´m writing a small application on Windows 10 in Python. It should listen on TCP socket connections and receive some data. No Responses are required from the application. Application must be runned as a windows service. When running in Debug Mode it…
dietWall
  • 9
  • 1
-2
votes
1 answer

How to make netcat try to connect to host until response in windows

Hello I am new to the forum so sorry if i am not very precise. My question is : is it possible to make netcat try again and again to connect to a host until it gets a response in windows? Exemple : nc - (option to retry connection until response)…
kiddi3
  • 1
  • 2
-3
votes
1 answer

NMap (client on Mac) port scan on Ubuntu server

I have to scan a Ubuntu server (installed as a virtual machine on my Mac) for open ports. I used the netcat utility and it shows a nice list of all the open ports on my virtual machine. However, when I use NMap, it is giving me some strange…
Neo
  • 1,554
  • 2
  • 15
  • 28
-3
votes
1 answer

Why netcat -k doesn't work and doesn't keep alive the connection?

The -k parameter doesn't work neither with nc (netcat) nor with ncat nor with nmap.
-3
votes
1 answer

How to print TCP Message from netcat in Go?

So I need to write a server in Go that prints messages from the following command: echo "MESSAGE" | nc localhost 8080 It just has to print "MESSAGE" as a string on stdout. I can not use something else, it has to be this command. This is what I…
maverigz
  • 1
  • 1
  • 3
-3
votes
3 answers

Is there a netcat alternative on Linux using Python?

netcat is not available in our Linux prod environment for security reasons. I'm trying to write/read short text messages into a port for logging. Write to port on worker nodes read on logger node. netcat would do the job Is there a way to do the…
olekb
  • 638
  • 1
  • 9
  • 28
-4
votes
1 answer

UNIX UDP Data Transfer with Java

I want to create a UDP OUTPUT=UPLOAD stream using java. I will get my INPUT=SOURCE data from a named pipe or contiguous file opened as a file input stream. My problem is, ALL of the UDP examples i can find on the internet, only demonstrate console…
-4
votes
1 answer

What is the netcat or nc command works based on network protocol or port?

I just want to know what is the network protocol or port used by nc command,anyone answer is much appreciate ^^
welrod
  • 1
  • 4
1 2 3
60
61