Advertisement
sunbeam906

Untitled

Nov 11th, 2019
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.62 KB | None | 0 0
  1. {$lua}
  2.  
  3. if syntaxcheck then return end
  4.  
  5. [ENABLE]
  6.  
  7. function debugger_onBreakpoint()
  8.  
  9.     local rip = RIP
  10.  
  11.     if rip == addr_00 then
  12.         Brand = readString( readQword( RAX ), 60000, true )
  13.     elseif rip == addr_01 then
  14.         Temp = readString( RCX, 60000, true )
  15.         if Stat == '' or Stat == nil then
  16.            Stat = Temp
  17.         else
  18.            Stat = Stat .. " | " .. Temp
  19.         end
  20.         Stat = Stat:gsub( "\r\n", " | " )
  21.     elseif rip == addr_02 then
  22.         Name = readString( readQword( RAX ), 60000, true )
  23.         FName = readInteger( RDI + 0x18 )
  24.     elseif rip == addr_03 then
  25.         if readQword( RAX ) ~= 0 then
  26.            Desc_1 = readString( readQword( RAX ), 80000, true )
  27.            Desc_1 = Desc_1:gsub( "\n", " | " )
  28.         else
  29.            Desc_1 = " "
  30.         end
  31.     elseif rip == addr_04 then
  32.         if readQword( RAX ) ~= 0 then
  33.            Desc_2 = readString( readQword( RAX ), 60000, true )
  34.            Desc_2 = Desc_2:gsub( "\n", " | " )
  35.         else
  36.            Desc_2 = " "
  37.         end
  38.     elseif rip == addr_05 then
  39.         Weight = readFloatLocal( debug_getXMMPointer(0) )
  40.     elseif rip == addr_06 then
  41.         Price = readFloatLocal( debug_getXMMPointer(0) )
  42.     elseif rip == addr_07 then
  43.         print( string.format( "%08X\t%s\t%s\t%s\t%s\t%s\t%s\t%s", FName, Name, Brand, Desc_1, Stat, Desc_2, Price, Weight ) )
  44.         --outputDebugString( string.format( "%08X\t%s\t%s\t%s\t%s\t%s\t%s\t%s", FName, Name, Brand, Desc_1, Stat, Desc_2, Price, Weight ) )
  45.         Stat = ''
  46.         Temp = ''
  47.     end
  48.  
  49.   debug_continueFromBreakpoint( co_run )
  50.   return 1
  51.  
  52. end
  53.  
  54. debugProcess()
  55. gameModule = getAddressSafe( "IndianaEpicGameStore-Win64-Shipping.exe" )
  56.  
  57. Stat = ''
  58. Temp = ''
  59.  
  60. addr_00 = gameModule + 0x8647E5 -- GetBrand
  61. addr_01 = gameModule + 0x864448 -- GetStats
  62. addr_02 = gameModule + 0x8647C4 -- GetName
  63. addr_03 = gameModule + 0x864826 -- Desc_A
  64. addr_04 = gameModule + 0x864888 -- Desc_B
  65. addr_05 = gameModule + 0x8648E0 -- Weight
  66. addr_06 = gameModule + 0x864B59 -- Price
  67. addr_07 = gameModule + 0x8DC507 -- stop
  68.  
  69. debug_setBreakpoint( addr_00 )
  70. debug_setBreakpoint( addr_01 )
  71. debug_setBreakpoint( addr_02 )
  72. debug_setBreakpoint( addr_03 )
  73. debug_setBreakpoint( addr_04 )
  74. debug_setBreakpoint( addr_05 )
  75. debug_setBreakpoint( addr_06 )
  76. debug_setBreakpoint( addr_07 )
  77.  
  78. [DISABLE]
  79.  
  80. debugger_onBreakpoint = nil
  81. debug_removeBreakpoint( addr_07 )
  82. debug_removeBreakpoint( addr_06 )
  83. debug_removeBreakpoint( addr_05 )
  84. debug_removeBreakpoint( addr_04 )
  85. debug_removeBreakpoint( addr_03 )
  86. debug_removeBreakpoint( addr_02 )
  87. debug_removeBreakpoint( addr_01 )
  88. debug_removeBreakpoint( addr_00 )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement