Skip to main content

Questions tagged [netcat]

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

netcat
-3 votes
0 answers
15 views

Can netcat (or some other tool) show when a connection is closed?

I have a server which is supposedly configured to close incoming connections that have been idle for 10 minutes, but I'm not sure it's actually doing that and want to test it. My first thought was to ...
Roy Smith's user avatar
  • 2,119
0 votes
0 answers
35 views

Why is nodemon specifically causing this "read error: 0: Resource temporarily unavailable" in my bash script when using netcat?

I have written a network client in bash using netcat which streams the stdout of a nodemon process to a remote server. This is my most complicated bash script I have written to date and the past ...
MrBroccoli's user avatar
1 vote
2 answers
64 views

Why doesn't sed work with my netcat input?

netcat -k -l 10080 | grep --line-buffered "GET /" \ | cut -b6- | sed "s/HTTP.*//" It works fine if I feed it a log file but when given the real thing it won't output. So I tried ...
Neonit's user avatar
  • 13
0 votes
0 answers
32 views

timeout with netcat connection and established connection with netstat

I would like to check if there is a open port in remote machine, so I always use: nc -zv 10.4.2.4 2760 Ncat: Version 7.92 ( https://nmap.org/ncat ) Ncat: TIMEOUT. Like you see it gives me timeout. ...
absolute333's user avatar
0 votes
1 answer
37 views

connect_to localhost error while testing remote SSH connection with netcat from bash script

I'm writing a bash script that needs to maintain a SSH connection (SSH tunnel) to a remote host alive. I am checking whether connection on the remote IP exists with netcat -z, and if it doesn't, then ...
ismooth's user avatar
  • 21
0 votes
0 answers
14 views

How do I automate "ncat -nvlp 81" using nodejs?

What I'm trying to achieve here is to listen to a port for incoming data through a ngrok tcp tunnel. I'm a tester and have very little knowledge on networking. Can this be achieved using any npm ...
pranesh da's user avatar
0 votes
0 answers
24 views

Troubleshooting Connection Refused Errors Across Nodes in Cluster Setup

I have three nodes bound to a virtual IP, with each node connecting using port 2892. I initiate connections from node1 to node2 and from node2 to node3, both using port 2892. Below are the relevant ...
manasa's user avatar
  • 1
1 vote
1 answer
48 views

Redirect the stderr of a socat fork to separate process

I have a python program that is accessed via socat, so that stdin and stdout are provided and displayed on a client. I use: socat TCP4-LISTEN:12345,reuseaddr,fork EXEC:"python prompt.py" ...
Michael's user avatar
  • 1,377
0 votes
0 answers
16 views

Force https, non-www, and turn queries into paths

I posted a fairly incoherent request for help, which has been received. I have now gotten something that seems to work. It forces the use of "https://" in place of "http://; forces &...
MungersMike's user avatar
0 votes
0 answers
21 views

How do I add line breaks in netcat server mode?

I am using netcat server mode. The client sends "Hello World!! 232733". There is no line feed code at the end. It will be displayed as below. $ nc -lp 8080 Hello World!! 252733Hello World!! ...
nopnop2002's user avatar
0 votes
0 answers
50 views

Cannot interact with netcat server over distance

My friend and I have ran netcat servers with the following commands nc -nlvp 4444 nc -lvp 4444 We have also set it up so that any connections on port 4444 can go through the firewall. We have tested ...
TheSkullOfDoom's user avatar
0 votes
0 answers
52 views

Run commands from another terminal over netcat connection (reverse shell)

I am currently trying to automate some privilege escalation tasks from CTFs. The goal is to write a python script that can execute commands on a target machine and then process them locally. It should ...
SameX's user avatar
  • 7
0 votes
0 answers
47 views

im stuck trying to guess a password to a server im accessing through netcat for a ctf

im doing a ctf and given this server to netcat into but it requires a password and im given no info besides i have to guess the password? Any solutions guys? i tried the netcat username then username ...
user23718946's user avatar
1 vote
1 answer
20 views

After converting multiple dataframes into respective nc files how to save those nc files with the original names and a word in windows using python

I have some nc files.Their names are File1.nc, File2.nc, File3.nc, etc. I have extracted data for every nc file, and I have made dataframe for each nc file after doing some calculation. Now after ...
PaulDeba's user avatar
0 votes
0 answers
83 views

Connect to netcat listener from inside of the QEMU system

I have .cpio file containing a filesystem that is loaded as initrd for a QEMU emulation. Here's the run.sh script: #!/bin/sh qemu-system-arm \ -m 1024 \ -M virt,highmem=off \ -kernel ...
Jacopo Bracaloni's user avatar

15 30 50 per page
1
2 3 4 5
61