Somehow can't load a module that's inside an executeable.
I may be doing something wrong... or simply dumb tbh.
It may be loading but simply can't find the pattern at all.
Here's the steps I did
Code above is just a check to see if the process exists
intneededid=System.Diagnostics.Process.GetProcessesByName("Process name here")[0].Id;ProcessSharp=newProcessSharp(neededid,MemoryType.Local);ProcessSharp.Memory=newExternalProcessMemory(ProcessSharp.Handle);IMemoryPatternFuncOffsetPattern=newDwordPattern("02 7B ?? ?? ?? 04 39 AE ?? ?? ??");// 02 ?? ?? ?? ?? ?? 39 ?? ?? ?? ?? OR 02 7B D1 07 00 04 39 AE 00 00 00 (pattern does exist in .exe itself within an module(dll) inside of it)varscanner=newPatternScanner(ProcessSharp.ModuleFactory.MainModule);varResult=scanner.Find(FuncOffsetPattern);if(Result.Found){byte[]managedArray=newbyte[0];managedArray=ProcessSharp.Memory.Read(Result.BaseAddress,FuncOffsetPattern.GetBytes().Count);managedArray[6]=0x3A;ProcessSharp.Memory.Write(Result.BaseAddress,managedArray);}else{// bla bla here}Any guidance would be really helpful!
Edit:
The file is named as such:
Thefile.exe and there's a Thefile.dll inside of it. Which I somehow can't seem to find and/or match a pattern from it.
Somehow can't load a module that's inside an executeable.
I may be doing something wrong... or simply dumb tbh.
It may be loading but simply can't find the pattern at all.
Here's the steps I did
Code above is just a check to see if the process exists
Any guidance would be really helpful!
Edit:
The file is named as such:
Thefile.exe and there's a Thefile.dll inside of it. Which I somehow can't seem to find and/or match a pattern from it.