Skip to content
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

How can i use with multiple ip tracing #227

Open
5angjun opened this issue Sep 10, 2023 · 1 comment
Open

How can i use with multiple ip tracing #227

5angjun opened this issue Sep 10, 2023 · 1 comment
Labels
documentation Improvements or additions to documentation

Comments

@5angjun
Copy link

5angjun commented Sep 10, 2023

Hello

I am really lover of kAFL

however, I want trace multiple device driver with ip0 ip1 ip2 ip3...

How can I set this multiple IP Filtering value?

I need some friendly documentation about this.

thanks

@Wenzel
Copy link
Collaborator

Wenzel commented Sep 12, 2023

Hi @5angjun ,

thanks for reporting this issue.

The best way to set these IP filters is by using the kAFL_HYPERCALL_RANGE_SUBMIT to inform the host of the low-high ranges of your drivers.

This is achieved here in the Windows driver fuzzing example:
https://github.com/IntelLabs/kafl.targets/blob/master/windows_x86_64/src/driver/vuln_test.c#L189

buffer[0] = (UINT64)drivers[i]; // low range
buffer[1] = (UINT64)drivers[i] + ModuleInfo->Modules[i].ImageSize; // high range
buffer[2] = 0; // IP0

I agreed that this isn't documented enough, i'll open an issue to track this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants