riccTheThicc How do I cheat?
Reputation: 0
Joined: 26 Mar 2021 Posts: 1
|
Posted: Fri Mar 26, 2021 9:29 am Post subject: Mono Dissect add static field address |
|
|
I'm trying to find the address of a static field, but when I right click the field I want in mono dissect and select "add static field address" the script created doesn't work. I did some looking into this and found out I may have needed to change mono in the script to something like monov2 because the mono.dll for my game might be a different version and be called monov2.dll. I looked at all my games .dll files using memory view and found out that the file is indeed just called mono.dll, so the script should work, but it doesn't. Does anyone know anything about this?
here's the script generated:
"[ENABLE]
label(classname)
label(namespace)
label(assemblyname)
label(fieldname)
label(status)
label(domain)
label(assembly)
label(field)
label(GameProgress.noLoadOnReset)
label(GameProgress.noLoadOnReset.threadexit)
alloc(GameProgress.noLoadOnReset.threadstart, 2048)
registersymbol(GameProgress.noLoadOnReset)
GameProgress.noLoadOnReset.threadstart:
mov [GameProgress.noLoadOnReset],0
call mono.mono_get_root_domain
cmp eax,0
je GameProgress.noLoadOnReset.threadexit
mov [domain],eax
push [domain]
call mono.mono_thread_attach
add esp,4
push status
push assemblyname
call mono.mono_assembly_load_with_partial_name
add esp,8
cmp eax,0
je GameProgress.noLoadOnReset.threadexit
push eax
call mono.mono_assembly_get_image
add esp,4
cmp eax,0
je GameProgress.noLoadOnReset.threadexit
mov [assembly], eax
push classname
push namespace
push eax
call mono.mono_class_from_name_case
add esp,C
cmp eax,0
je GameProgress.noLoadOnReset.threadexit
push fieldname
push eax
call mono.mono_class_get_field_from_name
add esp,8
cmp eax,0
je GameProgress.noLoadOnReset.threadexit
mov [field], eax
push eax
call mono.mono_field_get_parent
add esp,4
cmp eax,0
je GameProgress.noLoadOnReset.threadexit
push eax
push [domain]
call mono.mono_class_vtable
add esp,8
cmp eax,0
je GameProgress.noLoadOnReset.threadexit
push eax
call mono.mono_vtable_get_static_field_data
add esp,4
cmp eax,0
je GameProgress.noLoadOnReset.threadexit
push eax // save data on stack
push [field]
call mono.mono_field_get_offset
add esp,4
pop ebx // restore data
add eax,ebx
mov [GameProgress.noLoadOnReset],eax
jmp GameProgress.noLoadOnReset.threadexit
///////////////////////////////////////////////////////
// Data section
GameProgress.noLoadOnReset:
dd 0
assemblyname:
db 'Assembly-CSharp',0
namespace:
db '',0
classname:
db 'GameProgress',0
fieldname:
db 'noLoadOnReset',0
status:
dd 0
domain:
dd 0
assembly:
dd 0
field:
dd 0
GameProgress.noLoadOnReset.threadexit:
ret
createthread(GameProgress.noLoadOnReset.threadstart)
[DISABLE]
unregistersymbol(GameProgress.noLoadOnReset)
dealloc(GameProgress.noLoadOnReset.threadstart)"
and the pointer it creates just leads to ???
Description: |
A screenshot that might help you understand what I'm talking about, in case I got any terminology wrong |
|
Filesize: |
254.27 KB |
Viewed: |
2099 Time(s) |

|
|
|