Skip to content

Commit 30d652c

Browse files
authored
[DOCS] Fix markdown links (#29)
1 parent 6745f6d commit 30d652c

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

Docs/TechWiki/Avoid Occupying System Reserved Region When Allocating Trampoline/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ ASLR only reserves a range of 640MB in size for 32-bit systems, which can be dir
4949

5050
`Ntdll.dll` is randomly loaded by ASLR to a memory address lower in the reserved range, and when the subsequent DLL layout bottoms out, it will wrap to the top of the reserved range and continue to be arranged, in which case the "1GB range after `Ntdll.dll`" is 2 discontinuous regions.
5151

52-
[SlimDetours](https://github.com/KNSoft/KNSoft.SlimDetours)' implementation details and circumvention range are different from the above PR, more thoughtful consideration has been given to different NT versions, e.g. in NT6.0 and NT6.1 ASLR can be turned off by the `MoveImages` value under `HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management` key in the registry. And calls `NtQuerySystemInformation` to obtain a more accurate user address space range than hardcoded to help constrain the location of trampolines, see also [KNSoft.SlimDetours/Source/SlimDetours/Memory.c at main · KNSoft/KNSoft.SlimDetours](../../../Source/SlimDetours/Memory.c).
52+
[SlimDetours](https://github.com/KNSoft/KNSoft.SlimDetours)' implementation details and circumvention range are different from the above PR, more thoughtful consideration has been given to different NT versions, e.g. in NT6.0 and NT6.1 ASLR can be turned off by the `MoveImages` value under `HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management` key in the registry. And calls `NtQuerySystemInformation` to obtain a more accurate user address space range than hardcoded to help constrain the location of trampolines, see also [KNSoft.SlimDetours/Source/KNSoft.SlimDetours/Memory.c at main · KNSoft/KNSoft.SlimDetours](../../../Source/KNSoft.SlimDetours/Memory.c).
5353

5454
<br>
5555
<hr>

Docs/TechWiki/Avoid Occupying System Reserved Region When Allocating Trampoline/README.zh-CN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ static PVOID s_pSystemRegionUpperBound = (PVOID)(ULONG_PTR)0x80000000;
4949

5050
`Ntdll.dll`被ASLR随机加载到保留范围内较低的内存地址,后续DLL随后排布触底时,将切换到保留范围顶部继续排布,在这个情况下“`Ntdll.dll`之后的1GB范围”便是2块不连续的区域。
5151

52-
[SlimDetours](https://github.com/KNSoft/KNSoft.SlimDetours)的具体实现与规避范围均有别于上述PR,为不同NT版本进行了更周到的考虑,比如在NT6.0及NT6.1中ASLR可以被注册表`HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management``MoveImages`键设置关闭。还调用`NtQuerySystemInformation`以获得比硬编码更确切的用户地址空间范围,协助约束Trampoline的选址,参考[KNSoft.SlimDetours/Source/SlimDetours/Memory.c于main · KNSoft/KNSoft.SlimDetours](../../../Source/SlimDetours/Memory.c)
52+
[SlimDetours](https://github.com/KNSoft/KNSoft.SlimDetours)的具体实现与规避范围均有别于上述PR,为不同NT版本进行了更周到的考虑,比如在NT6.0及NT6.1中ASLR可以被注册表`HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management``MoveImages`键设置关闭。还调用`NtQuerySystemInformation`以获得比硬编码更确切的用户地址空间范围,协助约束Trampoline的选址,参考[KNSoft.SlimDetours/Source/KNSoft.SlimDetours/Memory.c于main · KNSoft/KNSoft.SlimDetours](../../../Source/KNSoft.SlimDetours/Memory.c)
5353

5454
<br>
5555
<hr>

Docs/TechWiki/Update Threads Automatically When Applying Inline Hooks/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Key points:
6363
4. Update the threads that were successfully suspended
6464
5. Call `NtResumeThread` to resume the suspended threads
6565

66-
See [KNSoft.SlimDetours/Source/SlimDetours/Thread.c at main · KNSoft/KNSoft.SlimDetours](../../../Source/SlimDetours/Thread.c) for the full implementation.
66+
See [KNSoft.SlimDetours/Source/KNSoft.SlimDetours/Thread.c at main · KNSoft/KNSoft.SlimDetours](../../../Source/KNSoft.SlimDetours/Thread.c) for the full implementation.
6767

6868
<br>
6969
<hr>

Docs/TechWiki/Update Threads Automatically When Applying Inline Hooks/README.zh-CN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ while (GetThreadContext(hThread, &ctx))
6363
4. 更新被成功挂起的线程
6464
5. 调用`NtResumeThread`恢复挂起的线程
6565

66-
完整实现参考[KNSoft.SlimDetours/Source/SlimDetours/Thread.c于main · KNSoft/KNSoft.SlimDetours](../../../Source/SlimDetours/Thread.c)
66+
完整实现参考[KNSoft.SlimDetours/Source/KNSoft.SlimDetours/Thread.c于main · KNSoft/KNSoft.SlimDetours](../../../Source/KNSoft.SlimDetours/Thread.c)
6767

6868
<br>
6969
<hr>

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ And here is a [Todo List](https://github.com/KNSoft/KNSoft.SlimDetours/milestone
3030

3131
### TL;DR
3232

33-
[KNSoft.SlimDetours package](https://www.nuget.org/packages/KNSoft.SlimDetours) is out-of-the-box, contains both of [KNSoft.SlimDetours](https://github.com/KNSoft/KNSoft.SlimDetours) and the latest [Microsoft Detours](https://github.com/microsoft/Detours), include corresponding header ([SlimDetours.h](https://github.com/KNSoft/KNSoft.SlimDetours/blob/main/Source/SlimDetours/SlimDetours.h) or [detours.h](https://github.com/KNSoft/KNSoft.SlimDetours/blob/main/Source/Microsoft.Detours/src/detours.h)) and compiled static library to use them.
33+
[KNSoft.SlimDetours package](https://www.nuget.org/packages/KNSoft.SlimDetours) is out-of-the-box, contains both of [KNSoft.SlimDetours](https://github.com/KNSoft/KNSoft.SlimDetours) and the latest [Microsoft Detours](https://github.com/microsoft/Detours), include corresponding header ([SlimDetours.h](https://github.com/KNSoft/KNSoft.SlimDetours/blob/main/Source/KNSoft.SlimDetours/SlimDetours.h) or [detours.h](https://github.com/KNSoft/KNSoft.SlimDetours/blob/main/Source/Microsoft.Detours/src/detours.h)) and compiled static library to use them.
3434

3535
```C
3636
/* KNSoft.SlimDetours */
@@ -57,7 +57,7 @@ SlimDetoursInlineHook(TRUE, (PVOID*)&g_pfnXxx, Hooked_Xxx); // Hook
5757
...
5858
SlimDetoursInlineHook(FALSE, (PVOID*)&g_pfnXxx, Hooked_Xxx); // Unhook
5959
```
60-
For more simplified API see [InlineHook.c](https://github.com/KNSoft/KNSoft.SlimDetours/blob/main/Source/SlimDetours/InlineHook.c).
60+
For more simplified API see [InlineHook.c](https://github.com/KNSoft/KNSoft.SlimDetours/blob/main/Source/KNSoft.SlimDetours/InlineHook.c).
6161
6262
### Details
6363
@@ -83,7 +83,7 @@ return SlimDetoursTransactionCommit();
8383

8484
## Compatibility
8585

86-
Project building: support for the latest MSVC generation tools and SDKs is mainly considered. The code in this project is backwards compatible with the MSVC generation tool and GCC, but it depends on the NDK it depends on, see also [SlimDetours.NDK.inl](./Source/SlimDetours/SlimDetours.NDK.inl). Can be built with [ReactOS](https://github.com/reactos/reactos). The minimum target platform is NT6 by default, specifying the `_WIN32_WINNT` macro in compiling-time to build binaries that target to lower NT versions.
86+
Project building: support for the latest MSVC generation tools and SDKs is mainly considered. The code in this project is backwards compatible with the MSVC generation tool and GCC, but it depends on the NDK it depends on, see also [SlimDetours.NDK.inl](./Source/KNSoft.SlimDetours/SlimDetours.NDK.inl). Can be built with [ReactOS](https://github.com/reactos/reactos). The minimum target platform is NT6 by default, specifying the `_WIN32_WINNT` macro in compiling-time to build binaries that target to lower NT versions.
8787

8888
Artifact integration: widely compatible with MSVC generation tools (support for VS2015 is known), and different compilation configurations (e.g., `/MD`, `/MT`).
8989

README.zh-CN.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
### 提要
3232

33-
[KNSoft.SlimDetours NuGet包](https://www.nuget.org/packages/KNSoft.SlimDetours)是开箱即用的,同时含有[SlimDetours](https://github.com/KNSoft/KNSoft.SlimDetours)与最新的[Microsoft Detours](https://github.com/microsoft/Detours),包含对应的头文件([SlimDetours.h](https://github.com/KNSoft/KNSoft.SlimDetours/blob/main/Source/SlimDetours/SlimDetours.h) or [detours.h](https://github.com/KNSoft/KNSoft.SlimDetours/blob/main/Source/Microsoft.Detours/src/detours.h))和编译出的静态库以使用它们。
33+
[KNSoft.SlimDetours NuGet包](https://www.nuget.org/packages/KNSoft.SlimDetours)是开箱即用的,同时含有[SlimDetours](https://github.com/KNSoft/KNSoft.SlimDetours)与最新的[Microsoft Detours](https://github.com/microsoft/Detours),包含对应的头文件([SlimDetours.h](https://github.com/KNSoft/KNSoft.SlimDetours/blob/main/Source/KNSoft.SlimDetours/SlimDetours.h) or [detours.h](https://github.com/KNSoft/KNSoft.SlimDetours/blob/main/Source/Microsoft.Detours/src/detours.h))和编译出的静态库以使用它们。
3434

3535
```C
3636
/* KNSoft.SlimDetours */
@@ -57,7 +57,7 @@ SlimDetoursInlineHook(TRUE, (PVOID*)&g_pfnXxx, Hooked_Xxx); // 挂钩
5757
...
5858
SlimDetoursInlineHook(FALSE, (PVOID*)&g_pfnXxx, Hooked_Xxx); // 脱钩
5959
```
60-
更多简化的API参考[InlineHook.c](https://github.com/KNSoft/KNSoft.SlimDetours/blob/main/Source/SlimDetours/InlineHook.c)。
60+
更多简化的API参考[InlineHook.c](https://github.com/KNSoft/KNSoft.SlimDetours/blob/main/Source/KNSoft.SlimDetours/InlineHook.c)。
6161
6262
### 详细说明
6363
@@ -83,7 +83,7 @@ return SlimDetoursTransactionCommit();
8383

8484
## 兼容性
8585

86-
项目构建:主要考虑对最新MSVC生成工具和SDK的支持。本项目代码能向下兼容MSVC生成工具与GCC,但具体还要看其依赖的NDK,参考[SlimDetours.NDK.inl](./Source/SlimDetours/SlimDetours.NDK.inl)。支持随[ReactOS](https://github.com/reactos/reactos)一同构建。SlimDetours默认最低目标平台为NT6,编译时指定`_WIN32_WINNT`宏可以构建支持更低NT版本的二进制。
86+
项目构建:主要考虑对最新MSVC生成工具和SDK的支持。本项目代码能向下兼容MSVC生成工具与GCC,但具体还要看其依赖的NDK,参考[SlimDetours.NDK.inl](./Source/KNSoft.SlimDetours/SlimDetours.NDK.inl)。支持随[ReactOS](https://github.com/reactos/reactos)一同构建。SlimDetours默认最低目标平台为NT6,编译时指定`_WIN32_WINNT`宏可以构建支持更低NT版本的二进制。
8787

8888
制品集成:广泛地兼容MSVC生成工具(已知支持VS2015),以及不同编译配置(如`/MD``/MT`)。
8989

0 commit comments

Comments
 (0)