Hi poeple!
Is this detected by Warden?
Code:
public static void DoString(string command)
{
// Allocate memory
uint DoStringArg_Codecave = Memory.AllocateMemory(Encoding.UTF8.GetBytes(command).Length + 1);
// Write value:
Memory.WriteBytes(DoStringArg_Codecave, Encoding.UTF8.GetBytes(command));
// Write the asm stuff for Lua_DoString
String[] asm = new String[]
{
"mov eax, " + DoStringArg_Codecave,
"push 0",
"push eax",
"push eax",
"mov eax, " + ((uint)Memory.BaseAddress + (uint) Pointers.Lua_DoString), // Lua_DoString
"call eax",
"add esp, 0xC",
"retn",
};
// Inject
InjectAndExecute(asm);
// Free memory allocated
Memory.FreeMemory(DoStringArg_Codecave);
}
thanks in advance