Monday, August 17, 2009

IP spoofing and bind failed

I'm experimenting a little with netcat - I want to test a bit of ip spoofing.

Because I need to bind the spoofed IP to my interface, using the ifconfig command, I try to run netcat command in linux at one terminal:
nc -l -u 2000

I open another terminal to run as follow:
nc -zu -s 192.168.36.xyz localhost 2000

But i get " nc: bind failed: Cannot assign requested address " message. How i can bind to spoof an ip address.

You can try to type man 2 bind in a shell.

No comments:

Post a Comment