Created
May 17, 2012 08:29
-
-
Save xcvd/2717387 to your computer and use it in GitHub Desktop.
DLL Injection
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
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