CUMLSec / stateformer

MIT License
60 stars 6 forks source link

how to get the execution result of dynamic tracing for specific code? #2

Open iamawhalez opened 2 years ago

iamawhalez commented 2 years ago

in stateformer , i didn't see you release the Simulated execution code of statformer and i try the micro_trace(kadabra) in trex . but i couldn't change the format generate by kadabra to the data-raw format . Would you like to release the script

peikexin9 commented 2 years ago

@iamawhalez, thanks for your interest. You might find the script https://github.com/CUMLSec/stateformer/blob/main/command/finetune/prepare_finetune_complete.py useful. You just need to tokenize the static code and map the trace value to train/valid.byte1-4.

iamawhalez commented 2 years ago

when i run the script command/finetune/prepare_finetune_complete.py , i found that it rely on '_stacks' files which produced by command/finetune/get_var_loc_complete.py, but when i try to run command/finetune/get_var_loc_complete.py, i got NameError: name 'getScriptArgs' is not defined, and i didn't find command/ghidra/ds_test_dwarf either, i am not sure whether it is required