Skip to content
/ bitfix Public
forked from trumank/bitfix

Simple Lua-scriptable runtime binary patcher

License

Notifications You must be signed in to change notification settings

Dorasan/bitfix

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bitfix

Simple Lua-scriptable runtime binary patcher

building

$ cargo build --release

usage

Copy target/release/bitfix.dll next to the exe to be patched and name it something that will get loaded, such as d3d9.dll or x3daudio1_7.dll. Lua patches will be loaded from a bitfix/ directory.

example

Increasing MaxAttackers to 200 in DRG:

-- bitfix/max_attackers.lua
return {
  {
    --- UPlayerAttackPositionComponent::GetScore
    pattern = '48 89 5C 24 08 48 89 6C 24 10 48 89 74 24 18 57 48 83 EC 30 48 8B 01 41 0F',
    match = function(ctx)
      ctx[ctx:address() + 89] = 200
      ctx[ctx:address() + 187] = 200
    end
  },
  {
    --- UAttackerPositioningComponent::UAttackerPositioningComponent
    pattern = '48 89 5C 24 08 48 89 6C 24 10 48 89 74 24 18 48 89 7C 24 20 41 56 48 81 EC D0 00 00 00 48 8B F9 E8 ?? ?? ?? ?? 48 8B D0 48 8B CF E8 ?? ?? ?? ?? 33 DB',
    match = function(ctx)
      ctx[ctx:address() + 56] = 200
    end
  }
}

About

Simple Lua-scriptable runtime binary patcher

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%