-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
38 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,24 @@ | ||
namespace Bypass; | ||
using System.Runtime.InteropServices; | ||
|
||
namespace Bypass; | ||
|
||
public class Injector | ||
{ | ||
[DllImport("bypass", EntryPoint = "injector_inject")] | ||
public static extern nint Inject(uint pid, string payloadPath); | ||
|
||
[DllImport("bypass", EntryPoint = "injector_eject")] | ||
public static extern void Eject(nint injection); | ||
|
||
[DllImport("bypass", EntryPoint = "injector_set_dns_hook_enabled")] | ||
public static extern void SetDnsHookEnabled(nint injection, bool enabled); | ||
|
||
[DllImport("bypass", EntryPoint = "injector_set_ssl_hook_enabled")] | ||
public static extern void SetSchannelSslHookEnabled(nint injection, bool enabled); | ||
|
||
[DllImport("bypass", EntryPoint = "injector_set_chrome_hook_enabled")] | ||
public static extern void SetChromeHookEnabled(nint injection, bool enabled); | ||
|
||
[DllImport("bypass", EntryPoint = "injector_set_chrome_ssl_hook_enabled")] | ||
public static extern void SetChromeSllHookEnabled(nint injection, bool enabled); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters