All Projects → ba0f3 → subhook.nim

ba0f3 / subhook.nim

Licence: BSD-2-Clause license
subhook wrapper for Nim https://github.com/Zeex/subhook

Programming Languages

nim
578 projects

Projects that are alternatives of or similar to subhook.nim

RedditVanced
Reddit Android app mod inspired by Aliucord
Stars: ✭ 41 (+173.33%)
Mutual labels:  hook, hooking
Dexcalibur
[Official] Android reverse engineering tool focused on dynamic instrumentation automation. Powered by Frida. It disassembles dex, analyzes it statically, generates hooks, discovers reflected methods, stores intercepted data and does new things from it. Its aim is to be an all-in-one Android reverse engineering platform.
Stars: ✭ 512 (+3313.33%)
Mutual labels:  hook, hooking
hookey
Enables all the DLCs. Like Creamapi but just for linux and a subset of Paradox games.
Stars: ✭ 87 (+480%)
Mutual labels:  hook, hooking
Pine
Dynamic java method hook framework on ART.
Stars: ✭ 171 (+1040%)
Mutual labels:  hook, hooking
Plthook
Hook function calls by replacing PLT(Procedure Linkage Table) entries.
Stars: ✭ 351 (+2240%)
Mutual labels:  hook, hooking
Funchook
Hook function calls by inserting jump instructions at runtime
Stars: ✭ 253 (+1586.67%)
Mutual labels:  hook, hooking
iosHookViewId
A solution for ios hook view id(给iOS应用自动生成控件id)
Stars: ✭ 44 (+193.33%)
Mutual labels:  hook
react-eyedrop
Seamlessly integrate a static typed, fully-tested color-picking React component/hook!
Stars: ✭ 17 (+13.33%)
Mutual labels:  hook
bac-genomics-scripts
Collection of scripts for bacterial genomics
Stars: ✭ 39 (+160%)
Mutual labels:  unix
godzilla
a powerful go web framework
Stars: ✭ 22 (+46.67%)
Mutual labels:  unix
.config
⚙️ Bootstrappable user environment for macOS & Ubuntu
Stars: ✭ 31 (+106.67%)
Mutual labels:  unix
bonomen
BONOMEN - Hunt for Malware Critical Process Impersonation
Stars: ✭ 42 (+180%)
Mutual labels:  unix
riru MPH
Hook android system prop function to add properties
Stars: ✭ 23 (+53.33%)
Mutual labels:  hook
rust-font-loader
A font loading utility written in rust.
Stars: ✭ 44 (+193.33%)
Mutual labels:  unix
onionjuggler
Manage your Onion Services via CLI or TUI on Unix-like operating system with a POSIX compliant shell.
Stars: ✭ 31 (+106.67%)
Mutual labels:  unix
AiliceOS
AiliceOS: Build an x86_64 and UEFI OS using Rust
Stars: ✭ 59 (+293.33%)
Mutual labels:  unix
objects-hooks-remover
Package to remove WordPress hook callbacks that uses object methods or closures.
Stars: ✭ 44 (+193.33%)
Mutual labels:  hook
FindTheStupidWindow
Windows API hooking project to log all the windows / UIs with the exact timestamp when they are opened.
Stars: ✭ 13 (-13.33%)
Mutual labels:  hooking
InitWare
The InitWare Suite of Middleware allows you to manage services and system resources as logical entities called units. Its main component is a service management ("init") system.
Stars: ✭ 164 (+993.33%)
Mutual labels:  unix
usehooks-ts
React hook library, ready to use, written in Typescript.
Stars: ✭ 2,873 (+19053.33%)
Mutual labels:  hook

subhook.nim

subhook wrapper for Nim https://github.com/Zeex/subhook

Usage

import subhook, subhook/helpers


proc recv(s: SOCKET, buf: cstring, len: int32, flags: int32): int32 {.fptr.} = 0x123456

proc MY_recv(s: SOCKET, buf: cstring, len: int32, flags: int32): int32 {.stdcall.} =
  discard

let hook = initHook(recv, MY_recv)
if hook.install() != 0:
  quit "Unable to install revc hook"

Trampoline example:

import subhook

proc add2(a, b: int): int =
  result = a + b
  echo "add2 result = ", result

var addHook: Hook
proc double_add2(a, b: int): int =
  echo "add called"
  result = cast[typeof(add2)](addHook.getTrampoline())(a, b) * 2


addHook = initHook(add2, double_add2, true)

assert add2(1, 3) == 8
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].