How to change socket bind port of program? without source code.
- by hunmr
Hello everyone,
PROBLEM:
I have a program dummy.exe on windows.
this program will bind to UDP port 5060, after started.
but another program also want to bind port 5060.
WHAT I HAVE DONE:
using windbg to start dummy.exe, and set breakpoint on ws2_32!bind
when the breakpoint hit, i changed the parameter (port value) with command ew
this dummy.exe will bind to the new port, and worked well.
QUESTION:
How can i do that easily? write a simple windows debugger?
Maybe i can hacking or modify the dummy.exe file, but how to do that?
what's your way to achieve this?
thanks