netcat

HTTP Banner Grabbing with Python

Hi, everyone. I am interested in making an HTTP Banner Grabber, but when i connect to a server on port 80 and i send something (e.g. "HEAD / HTTP/1.1") recv doesn't return anything to me like when i do it in let's say netcat.. How would i go about this? Thanks! ...

Send POST request with netcat

Hi, I have found this little script in PHP that send a simple request to twitter for update your status, I have tried this: http://pratham.name/twitter-php-script-without-curl.html, and it work. Now, I want send this request with netcat, but this doesn't work, why? I send request in this way: echo -e $head | nc twitter.com 80 The $he...

GPS Info Sent to port 5556

Hi Everyone! I'm not sure if this is relevant to this site or not, if not I apologize. I have a GPS device that's transmitting its coordinates to my server on port 5556. I know that its succeeding at doing this because I installed netcat and its monitoring this port, it does return a string. How can I capture whats returning and utili...

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 truncated and in order to view it all you have to press space or enter to continue (like th...

How do I modify a datastream on the fly?

Possible Duplicate: modify a datastream on the fly I need to hijack and modify a datastream. The stream consists of fixed-width commands. Each command is a new line, and the documentation says that each command starts and ends with an STX/ETX (start and end of text) pair. The sending system is using serial, but is attacked to...

'Aborted' status in firebug Net panel with netcat proxy

Hi, For front-end debug purposes, I've set a netcat proxy in order to intercept HTTP requests, eg: $ mkfifo /tmp/backpipe $ while true; do nc -vv -l -k 12345 < /tmp/backpipe | tee -a requests.in | nc localhost 80 | tee -a requests.out > /tmp/backpipe; done It works great but, in firebug, when accessing my web application on port 1234...

Can I use netcat to run PHP CLI w/ arguments?

Hey all, I'm trying to create a debug listener that listens on a port for a data string and forwards it to a php script as an argument. How can I specify that the input to the port should be used as an argument? For example: The remote device send a string with comma separated values value1,value2,value3 and I'd like to run the command...

netcat does not work on glassfish

Hi all ... Maybe a simple explanation for this but it seems that glassfish (on port 8080) does not respond normally to netcat requests ... for example: nc localhost 8080 OPTIONS ... nothing is 'returned' and netcat exits. If you do a similar thing against www.google.com 80 you will get an expected error message returned from the ser...

What are the advantages and disadvantages of using Nailgun vs netcat to provide fast CLI to a Java application?

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 or a simple hand-written server communicating through a TCP socket with netcat. On the one hand, Nailgun is designed for this purpose. On the...