Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3631192
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T00:21:57+00:00 2026-05-19T00:21:57+00:00

PROBLEM: I have a program dummy.exe on windows. this program will bind to UDP

  • 0

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:

  1. using windbg to start dummy.exe, and set breakpoint on ws2_32!bind
  2. when the breakpoint hit, i changed the parameter (port value) with command ew
  3. 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

EDIT1:

Thanks very much @Cody Gray and @cdhowie

  1. This software do not provide functionality to change port.
  2. I need use this software to communicate with others who also use this software.
  3. For ‘simple’ debugger, i mean call CreateProcess with flag
    DEBUG_PROCESS to start dummy.exe, and WaitForDebugEvent, then hook the ws2_32!bind
    function to modify the port parameter, but i do not sure wheather it works
  4. i used UltraEdit to find the value 0x13C4 (5060), but after i changed the value,
    it does not works 🙁 , any suggestion?
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T00:21:58+00:00Added an answer on May 19, 2026 at 12:21 am

    I see two options here. First, along the lines of what you already mentioned, you can patch the parameters to the bind() call at runtime, using hooking. Popular libraries to do that are Detours or madCodeHook, or example. This would definitely work, I used to do that myself.

    The second option you also already mentioned, although I’d suggest not using a hex editor to simply search for those values, there might be multiple occurrences in the file and using only a hex editor, it might be hard to find the right one. What you can do, however, is use a debugger that is able to write a modified image back to disk. OllyDbg offers a very comfortable way to do that.

    I’d suggest going for the hooking method though, that way, you can inject code around the binding to read the port from a configuration file, or similar in order to avoid the need to patch the executable or recompile your code time and again.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Basically i have a problem with this timer program I am trying to put
I have this problem when trying to run hello world program using android SDK.
I have strange problem with run .exe program in my WebApplication. It works fine
I have a very simple program but this is giving me a seg fault.
So this might be an odd question, but I have a C# program that
Consider this problem: I have a program which should fetch (let's say) 100 records
Problem: Have made a small mail program which works perfectly on my developer pc
I have a problem with 2D transformation program I have the source code import
with my RCP program I have the problem that I want to have more
I've run into an rather irritating problem in java. I have a program that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.