Skip to content

Instantly share code, notes, and snippets.

@xcvd
Created May 17, 2012 08:29
Show Gist options
  • Save xcvd/2717387 to your computer and use it in GitHub Desktop.
Save xcvd/2717387 to your computer and use it in GitHub Desktop.
DLL Injection
open Syringe
open System.Diagnostics
printfn "Trying to inject dll into MapleStory.exe"
try
let syringe = new Injector(Process.GetProcessesByName("MapleStory").[0])
syringe.InjectLibrary("PacketLogger.dll")
printfn "PacketLogger.dll injected into MapleStory, trying to call Start() with no parameters"
ignore (syringe.CallExport("PacketLogger.dll", "Start"))
with
| ex -> printfn "Exception: %s" (ex.ToString())
let wait = System.Console.Read()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment