-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What does sample_name mean? #40
Comments
For example, I run the following command. the contents of
Next, I run the following command, and I tried two options for $ python3 synthesizer.py harness -t drltrace.PID.log -d memdump -s "test" -sample "" case typedef int (__cdecl *_func_t)(int, int, int, int, int, int, int, int, int);
void fuzz_me(char* filename){
_func_t _func;
/* Harness function #0 */
LOAD_FUNC(dlllib, );
int _ret = _func(filename, filename, filename, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0);
dbg_printf(", ret = %d\n", _ret);
} case typedef int (__cdecl *_func_t)(int, int, int, int, int, int, int, int, int);
void fuzz_me(char* filename){
_func_t _func;
/* Harness function #0 */
LOAD_FUNC(dlllib, );
int _ret = _func(filename, *((int*)c0_a0[232]), 0x6c6c6548, 0x57202c6f, 0x646c726f, 0xa0d21, 0x0, 0x0, 0x0);
dbg_printf(", ret = %d\n", _ret);
}
p.s. |
I tried using their provided toy_sample. In this case, -sample needs to point to the built example_library.dll. Then in the CLI, it outputs the generated harness code. |
@LeoLiu-2020 @gonbbb I‘m also interesting in this problem. If you have figured it out, can you tell me more details? |
It's been a while since I answered this problem. But I think what I wanted to say is that I test the command for their provided sample called example_library.dll. And the parameter for the -sample flag should be the path of the example_library.dll. |
There is an argument -sample in synthether.py. If this argument is not included, the encoding below will result in a NoneType judgment and processing will stop when running synthesizer.py (this).
winnie/harnessgen/synthesizer.py
Lines 115 to 117 in b046bce
winnie/harnessgen/common.py
Lines 650 to 652 in b046bce
The text was updated successfully, but these errors were encountered: