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

Start trace with size > 1MB fails (err=87) #13

Open
m4b4 opened this issue Dec 6, 2021 · 1 comment
Open

Start trace with size > 1MB fails (err=87) #13

m4b4 opened this issue Dec 6, 2021 · 1 comment

Comments

@m4b4
Copy link

m4b4 commented Dec 6, 2021

Hi Alex,

I was wondering why starting a trace with size > 1MB fails on my machine (Windows 10 Pro, Build 10.0.19043):

PS C:\Users\ipt\Desktop\Masterthesis\ipt> ./ipttool.exe --start 11488 3200000 0x0
/------------------------------------------\
|=== Windows 10 RS5 1809+ IPT Test Tool ===|
|===  Copyright (c) 2018 Alex Ionescu   ===|
|===    http://github.com/ionescu007    ===|
|===  http://www.windows-internals.com  ===|
\------------------------------------------/

[*] Size will be aligned to a power of 2
[+] Using size: 2097152 bytes 
[+] Tracing Options:
           Match by: Any process
         Trace mode: User-mode only
     Timing packets: No  Packets
[-] Failed to start a trace (err=87)

However, specifying a size <= 1MB works:

PS C:\Users\ipt\Desktop\Masterthesis\ipt> ./ipttool.exe --start 11488 1600000 0x0
/------------------------------------------\
|=== Windows 10 RS5 1809+ IPT Test Tool ===|
|===  Copyright (c) 2018 Alex Ionescu   ===|
|===    http://github.com/ionescu007    ===|
|===  http://www.windows-internals.com  ===|
\------------------------------------------/

[*] Size will be aligned to a power of 2
[+] Using size: 1048576 bytes
[+] Tracing Options:
           Match by: Any process
         Trace mode: User-mode only
     Timing packets: No  Packets
[+] Trace for PID 11488 started

Regarding your soure code ( ipttool.c , libipt.h ) it should be possible to specifiy a range between 4KB and 128MB. I also checked CheckOption in ìpt.sys and it seems like specifying a range between 4KB - 128MB should be valid. Unfortunately, I do not have the time to debug the kernel driver.

Are you aware of this bug or do you have any idea what could be the reason for this?

@ionescu007
Copy link
Owner

ionescu007 commented Dec 6, 2021 via email

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

No branches or pull requests

2 participants