Categories > Coding > C++ >

[HELP] ANYONE KNOW HOW TO FIND SETFIELD?

heckerdude

heckerdude

Posts: 129

Threads: 16

Joined: Aug, 2022

Reputation: 6

Posted

So I am working on some lua C functions but I need setfield I need like the string of in IDA.

 

Can anyone help?/

  • 0

hecker dude ngl i hecked 5 ips in 1 second also luaU_loadbiglongjuicythingy(rL);

Haruka

STD Testing Center

Posts: 58

Threads: 3

Joined: Feb, 2023

Reputation: 5

Replied

If you're looking for the IDA Pro equivalent of lua_setfield, the equivalent function is set_member_name

 

struct my_struct
{
    int my_field;
};

my_struct s;
s.my_field = 42;

set_member_name(get_struc_id("my_struct"), offsetof(my_struct, my_field), "my_ida_field");

 

  • 0

https://media.discordapp.net/attachments/979069297374671018/1078367228593971362/VelvetSiggy.png

 

 

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )