Psykotikism / L4D1-2_Signatures

A repository for hosting several L4D1&2 signatures.
45 stars 6 forks source link

[L4D2]Signature addition/support request #2

Closed umlka closed 2 years ago

umlka commented 2 years ago

/ ForEachTerrorPlayer(SpawnablePZScan &) / "ForEachTerrorPlayer" { "library" "server" "linux" "@Z19ForEachTerrorPlayerI15SpawnablePZScanEbRT" }

sub_10356A50 The Windows signature is in this function, makesig reports me an error Ran out of bytes to create unique signature.

Psykotikism commented 2 years ago

I tried, but unfortunately, the function's bytes are not unique enough for wildcards. I could only get the raw bytes.

Signature for calling sub_10356A50:
"\x55\x8B\xEC\xA1\x90\x35\x7F\x10\x53\x56\x57\xBF\x01\x00\x00\x00\x39\x78\x14\x7C\x5A\x8B\x5D\x08\x57\xE8\x32\xFE"
/* 55 8B EC A1 90 35 7F 10 53 56 57 BF 01 00 00 00 39 78 14 7C 5A 8B 5D 08 57 E8 32 FE */

This will most likely break in a future update.

umlka commented 2 years ago

I tried, but unfortunately, the function's bytes are not unique enough for wildcards. I could only get the raw bytes.

Signature for calling sub_10356A50:
"\x55\x8B\xEC\xA1\x90\x35\x7F\x10\x53\x56\x57\xBF\x01\x00\x00\x00\x39\x78\x14\x7C\x5A\x8B\x5D\x08\x57\xE8\x32\xFE"
/* 55 8B EC A1 90 35 7F 10 53 56 57 BF 01 00 00 00 39 78 14 7C 5A 8B 5D 08 57 E8 32 FE */

This will most likely break in a future update.

Thank you so much, the Psykotikism. signature is valid

Psykotikism commented 2 years ago

Awesome, I'll add it to the repository soon.

umlka commented 2 years ago

emmm... Yesterday, the signature was valid when I tested it with escsig_search.idc, but it could not be loaded when I tested it on the Windows server just now.

Psykotikism commented 2 years ago

Do you have a sample plugin I can test with?

umlka commented 2 years ago

Do you have a sample plugin I can test with?

https://github.com/umlka/l4d2/tree/main/control_zombies

Psykotikism commented 2 years ago

https://github.com/umlka/l4d2/tree/main/control_zombies

~~You're not using the same signature I provided. https://github.com/umlka/l4d2/blob/main/control_zombies/control_zombies.txt#L127-L128~~

I tried the plugin with my signature. It fails to detour the function. I'm not sure why since I even tried changing the detour's setup.

umlka commented 2 years ago

Yes, So I am now trying to detour all the functions that call it, but ZSpawnCore seems to be unable to detour it. I have now detour Script_ZSpawn, z_spawn_old and z_spawn. According to the current test, it can achieve the function I want.

Psykotikism commented 2 years ago

Yes, So I am now trying to detour all the functions that call it, but ZSpawnCore seems to be unable to detour it. I have now detour Script_ZSpawn, z_spawn_old and z_spawn. According to the current test, it can achieve the function I want.

I'll work on adding/supporting signatures for those functions.

umlka commented 2 years ago

Yes, So I am now trying to detour all the functions that call it, but ZSpawnCore seems to be unable to detour it. I have now detour Script_ZSpawn, z_spawn_old and z_spawn. According to the current test, it can achieve the function I want.

I'll work on adding/supporting signatures for those functions.

Thanks, Psykotikism

Psykotikism commented 2 years ago

Just added support for several functions, including all the ones mentioned above.

umlka commented 2 years ago

Just added support for several functions, including all the ones mentioned above.

Thank you, I have updated all my plugins that use these signatures