OldSchoolHack

Register / Login English

Lua Script Engine


icon Lua Script Engine #1

Join Date: Aug 2007

Posts: 1959

Kategorie: Tools
Entwickler: reactiioN'

Beschreibung:
Standalone application which allows you to write (external based) hacks in lua and execute them. There will come an overlay with drawing functions and dynamic font wrapper when I have some more free time.

Installation:
  • Download the repo
  • Extract the lua531_windows_files archive and follow the introductions from readme
  • Move the lua5.X.X.dll into your executable path


Github: Only registered and activated users can see links.

List of supported API's:
TEXT Code:
  1. /*
  2.    - Base API
  3.    - Type: UserAPI Wrapper
  4. */
  5. + RegisterCallbackFunction
  6. + int BitBand( Bit, Flag )
  7. + int GetKeyState( Key )
  8. + Include( pfad )
  9. + Sleep( Time )
  10.  
  11. /*
  12.    - Class: CVarSystem
  13.    - Type: Wrapper
  14. */
  15. + bool CVar.RegisterCVar( Name, value )
  16. + bool CVar.GetBool( Name )
  17. + float CVar.GetFloat( Name )
  18. + int CVar.GetInt( Name )
  19. + bool CVar.SetValue( Name, value as bool or number )
  20.  
  21. /*
  22.    - Class: File
  23.    - Type: UserAPI Wrapper
  24. */
  25. + bool File.GetBool( AppName, KeyName, File, optional default_value )
  26. + float File.GetFloat( AppName, KeyName, File, optional default_value )
  27. + int File.GetInt( AppName, KeyName, File, optional default_value )
  28. + bool File.WriteBool( AppName, KeyName, File, value )
  29. + bool File.WriteFloat( AppName, KeyName, File, value )
  30. + bool File.WriteInt( AppName, KeyName, File, value )
  31.  
  32. /*
  33.    - Class: RemoteProcess
  34.    - Type: Wrapper
  35. */
  36. + bool Process.RegisterModule( ModuleName )
  37. + int Process.FindSignature( ModuleName, Signature, ExtraOffset )
  38. + int, int Process.GetModuleData( ModuleName )
  39. + bool Process.SendMessage( Msg, WPARAM, LPARAM )
  40. + bool Process.ReadBool( Address )
  41. + int Process.ReadByte( Address )
  42. + float Process.ReadFloat( Address )
  43. + int Process.ReadInteger( Address )
  44. + bool Process.WriteBool( Address, value )
  45. + bool Process.WriteByte( Address, value )
  46. + bool Process.WriteFloat( Address, value )
  47. + bool Process.WriteInt( Address, value )

Example (for source engine, base module init):
TEXT Code:
  1. local firsttick = true
  2. function MainCallbackFunction( )
  3.    
  4.    if( firsttick == true ) then
  5.        print( "print from MainCallbackFunction" )
  6.        firsttick = false
  7.    end
  8. end
  9.  
  10. if( Process.RegisterModule( "client.dll" ) == true and Process.RegisterModule( "engine.dll" ) == true ) then
  11.    
  12.    local ClientBase, ClientSize = Process.GetModuleData( "client.dll" )
  13.    print( string.format( "found client.dll at 0x%X, size: 0x%X", ClientBase, ClientSize ) )
  14.    
  15.    local EngineBase, EngineSize = Process.GetModuleData( "engine.dll" )
  16.    print( string.format( "found engine.dll at 0x%X, size: 0x%X", EngineBase, EngineSize ) )
  17.    
  18.    if( ClientBase ~= 0 and EngineBase ~= 0 ) then
  19.        RegisterCallbackFunction( "MainCallbackFunction" )
  20.    end
  21. end

Important: for usage you need the lua5.X.X.dll



Download:
Lua Script Engine