Skip to content

Commit 62bc59e

Browse files
committed
Fix rule logic for get-ntoskrnl-base-address-via-x86-assembly.yml
1 parent a87eb3e commit 62bc59e

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

nursery/get-ntoskrnl-base-address-via-x86-assembly.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ rule:
44
namespace: linking/runtime-linking
55
authors:
66
- "@mr-tz"
7+
- "@akh7177"
78
scopes:
89
static: function
910
dynamic: unsupported # requires offset features
@@ -15,13 +16,13 @@ rule:
1516
features:
1617
- and:
1718
- basic block:
19+
- description: returns RTL_PROCESS_MODULES structure
20+
- number: 0xB = SystemModuleInformation
21+
- match: get system information on Windows
22+
- or:
1823
- and:
19-
- description: returns RTL_PROCESS_MODULES structure
20-
- number: 0xB = SystemModuleInformation
21-
- match: get system information on Windows
22-
- and:
23-
- arch: i386
24-
- offset: 0xC = RTL_PROCESS_MODULES.Modules[0].ImageBase
25-
- and:
26-
- arch: amd64
27-
- offset: 0x18 = RTL_PROCESS_MODULES.Modules[0].ImageBase
24+
- arch: i386
25+
- offset: 0xC = RTL_PROCESS_MODULES.Modules[0].ImageBase
26+
- and:
27+
- arch: amd64
28+
- offset: 0x18 = RTL_PROCESS_MODULES.Modules[0].ImageBase

0 commit comments

Comments
 (0)