I have 2 servers, and I want to relay any broadcast traffic ( through to

Here's what I'm doing to relay port 137 traffic, and it seems to work fine.


echo ncat.exe 1337 > relay.bat
ncat.exe -l -p 137 -e relay.bat


nc -lnvp 1337

I can only find how to forward ports with ncat. I can't bind to to listen of course. I hope that makes sense what I'm trying to do.

migrated from security.stackexchange.com Sep 24 '14 at 21:14

This question came from our site for information security professionals.

  • netcat requires a port to listen on and is probably not what you want. You are probably looking for a relay, such as a dhcp relay, or a bridge. What type of broadcast traffic are you hoping to bridge? – Phillip Nordwall Sep 22 '14 at 4:32
  • I want to relay NBNS protocol traffic that is sent on port 137. I'm conducting a penetration test in a lab, and want to conduct an NBNS spoof attack. – sybind Sep 22 '14 at 7:59
  • I think I'm gonna close this one and open a new one, removing ncat from the equation. – sybind Sep 23 '14 at 11:33

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.