netcat Questions
2
Solved
I am trying to set up a web server using only windows batch scripting.
I have already come up with the following script:
@echo off
@setlocal enabledelayedexpansion
for /l %%a in (1,0,2) do (
ty...
Bluebeard asked 17/10, 2016 at 8:34
5
Solved
I'm trying to play around with netcat to learn more about how HTTP works. I'd like to script some of it in bash or Perl, but I've hit upon a stumbling block early on in my testing.
If I run netcat...
3
Solved
I'm using netcat as a backend to shovel data back and forth for a program I'm making. I tested my program on the local network, and once it worked I thought it would be a matter of simply forwardin...
Gallbladder asked 31/3, 2010 at 11:43
4
Solved
I had the impression sed wasn't blocking, because when I do say:
iostat | sed
sed processes the data as it arrives, but when I do
iostat | sed | netcat
Then sed blocks netcat.
Am I right?
2
I encountered a little issue while using the nc utility on Mac OS X, a utility i often use as a quick and dirty solution to check if a port is open and what version the daemon is running.
We deplo...
Hellespont asked 2/9, 2013 at 17:55
0
I want to understand how to fast-cgi unix sockets working, so i try to connect php5-fpm like:
sudo nc -U /var/run/php5-fpm.sock // it's working with nginx
i sent some raw php code, but socket re...
1
Solved
I am using Ubuntu 14.04 server (8 cores, 16 GB RAM) for hosting a PHP website, MySQL and Redis.
PHP web and MySQL has very low traffic (MySQL: Queries per second avg: 0.825). Redis processes 8011 c...
5
Solved
I am issuing the command:
netcat serveraddress myport < MY_FILE
The thing is, that netcat sends a message to close the connection once the file is sent. I need to write messages from the cons...
1
Solved
I'm using a python script to generate data using standard print() arguments. The output from the script should then be sent to localhost tcp socket 9999.
python script.py | nc -lk 9999
On the cl...
1
Solved
I am trying to use netcat to read a line in a file every few milliseconds, and send it to a port..
So far I know from netcat documentation that it can insert a time interval between each line sent...
5
We have a very simple tcp messaging script that cats some text to a server port which returns and displays a response.
The part of the script we care about looks something like this:
cat someFile...
1
Solved
How do I start a TCP server from the terminal on port 13370 using nc? I was following a tutorial that required starting up a TCP server on 13370 and send requests through it. The tut advised me to ...
3
Solved
The ways to reduce startup time of Java and Scala applications have been already discussed here and here. One of the solutions suggested there was to use client-server approach with either Nailgun ...
Padus asked 28/10, 2010 at 10:4
2
Solved
Using netcat, I need to create a simple server to respond with simple JSON data.
First I am trying with an HTML page:
while true ; do nc -l 8888 < index.html ; done
or even more simply:
net...
3
I'm trying to send an email with netcat, this is what i get:
****-MacBook-Pro:~ ***$ nc smtp.gmail.com 25
220 mx.google.com ESMTP h8sm66301168eew.16 - gsmtp
Helo gmail.com
250 mx.google.com at you...
1
Solved
I am trying to convert a curl command (post) to a netcat command.
I already figured out how to GET/DELETE things like
curl -v http://localhost:1234/232
in netcat:
nc localhost 1234
GET 232
HOST...
1
I'm attempting to do some basic TCP client communication by using strictly bash scripting. I have netcat at my disposal and so I've written this loop so far:
nc 10.0.0.104 4646 | while read line
d...
1
Solved
I am trying to expose a unix socket as a tcp socket using this command:
nc -lkv 44444 | nc -Uv /var/run/docker.sock
When I try to access localhost:44444/containers/json from a browser, it doesn'...
1
Solved
I'm using Flask on Windows 7. Flask and related versions are below:
Flask==0.10.1
Werkzeug==0.9.3
Accessing the app from the same computer is OK using http://127.0.0.1:5000
However from another ...
1
Solved
I am trying to write a webserver in bash using socat. I am having trouble serving image requests. I'm opening the socat listening connection like so:
socat -T 30 -d -d TCP-L:$LISTENIP,reuseaddr,fo...
1
Solved
I am sending text commands to a custom protocol TCP server. In the example below I send 2 commands and receive a response written back. It works as expected in telnet and netcat:
$ nc 192.168.1.18...
Divulge asked 15/1, 2014 at 6:45
0
I'm using Netcat for Windows but I get this error when I try to open a connection:
nc forward host lookup failed h_errno 11001 host_not_found
What's the problem?
Perm asked 26/2, 2014 at 14:25
1
Solved
I am trying to communicate through sockets a Java client and a C server
All seems to work fine if I try the server using nc on the command line to connect or if I use nc as a server and connect wit...
1
Solved
How can I send a byte (or bytes) to test a TCP socket that's listening on a port in my application? My application receives a single byte that tells it what to do. Some operations will receiv...
1
So I'm able to create a local socks proxy with sudo ssh -D 8080 user@server
and I can access it only from my machine:
nmap -p 8080 127.0.0.1
8080/tcp open http-proxy
However this proxy is not ac...
© 2022 - 2024 — McMap. All rights reserved.