Hey guys and gals. Quick question here. How the heck do I add a request body in netcat. I can make a POST request it burp suite, curl, and python but I can't quite figure out how to do it in netcat. I tried connecting to the server and everything was going smooth until I had to add the json payload after the headers since when you hit Return twice netcat doesnt add a blank line, it sends the request and to my understanding, there has to be a blank line between the header and the body. I also tried this `printf "POST / HTTP/1.1\r\nHost: 127.0.0.1\r\nContent-Type: application/json\r\nContent-Length: 38\r\n\r\n{"\a\":"\f1437c2f3906eb7c1d1b5323ec5e2c88\"}" | nc -v 127.0.0.1 80`
but It returned the same error as when I try to do it in netcat. Hoping someone more knowledgable than myself can help out
[link] [comments]
from hacking: security in practice https://ift.tt/zpJG7YW
Comments
Post a Comment