If I want to transfer a binary file \"binary.bin\" (located in the same directory as NetCat) to IP address 127.开发者_如何学运维0.0.1 port 1200 using TCP, how do I specify this using NetCat for window
I found this and am using it as my base, but it wasn\'t working right out of the box. My goal is also to treat it as a package instead of a command line utility, so my code changes will reflect that.
I have a service running on localhost:port. In a bash script I want to connect开发者_如何学编程 to this port, send a request, and read back the response - essentially automating a telnet session. What
I want to send the following via netcat: 99||0x00 (4 ASCII characters and a zero) How is this开发者_C百科 done? I\'m using Windows XP.
I\'m trying to get a value from a netcat connection started at a php file, but it dies with: localhost [127.0.0.1] 2000 (?) : Connection refused