Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update HandleChange signature #114

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dankmolot
Copy link
Contributor

@dankmolot dankmolot commented Dec 7, 2024

Example how to find signature

Open server dynamic library in SRE software like IDA or Ghidra

Search for mat_reloadmaterial "%s" string and walk by references until HandleChange function is found

image
example of searching string in Ghidra

image
mat_reloadmaterial "%s" is referenced in HandleChange_VMT function

image
HandleChange_VMT is referenced in HandleChange

image
signatures are taken until jump instruction

NB! On Windows HandleChange_VMT is inlined, so the string points directly to HandleChange

Examples are from server_srv.so linux dev branch (07.12.2024)

Pointers to functions inside signatures are replaced with wildcard symbol \x2A aka *


These signatures also are used in gm_moonloader

@danielga danielga self-requested a review December 8, 2024 16:41
@danielga danielga self-assigned this Dec 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants