~ruther/NosSmooth.Local

ref: 7535dd93e52f60b543f328685a6e6333a37649eb NosSmooth.Local/src/Core/NosSmooth.LocalBinding/Options/NetworkBindingOptions.cs -rw-r--r-- 1.3 KiB
7535dd93 — Rutherther feat(bindings): add periodic binding and thread synchronizer 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
//
//  NetworkBindingOptions.cs
//
//  Copyright (c) František Boháček. All rights reserved.
//  Licensed under the MIT license. See LICENSE file in the project root for full license information.

using NosSmooth.LocalBinding.Objects;

namespace NosSmooth.LocalBinding.Options;

/// <summary>
/// Options for <see cref="NetworkBinding"/>.
/// </summary>
public class NetworkBindingOptions
{
    /// <summary>
    /// Gets or sets the configuration for packet receive function hook.
    /// </summary>
    public HookOptions PacketReceiveHook { get; set; }
        = new HookOptions(true, "55 8B EC 83 C4 ?? 53 56 57 33 C9 89 4D ?? 89 4D ?? 89 55 ?? 8B D8 8B 45 ??", 0);

    /// <summary>
    /// Gets or sets the configuration for packet send function hook.
    /// </summary>
    public HookOptions PacketSendHook { get; set; }
        = new HookOptions(true, "53 56 8B F2 8B D8 EB 04", 0);

    /// <summary>
    /// Gets or sets the pattern to find the network object at.
    /// </summary>
    /// <remarks>
    /// The address of the object is "three pointers down" from address found on this pattern.
    /// </remarks>
    public string NetworkObjectPattern { get; set; }
        = "A1 ?? ?? ?? ?? 8B 00 BA ?? ?? ?? ?? E8 ?? ?? ?? ?? E9 ?? ?? ?? ?? A1 ?? ?? ?? ?? 8B 00 8B 40 40";
}
Do not follow this link