Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to find address of a value ? #18

Open
ISmileYouCryYouSmileIDie opened this issue Sep 27, 2018 · 4 comments
Open

How to find address of a value ? #18

ISmileYouCryYouSmileIDie opened this issue Sep 27, 2018 · 4 comments

Comments

@ISmileYouCryYouSmileIDie

https://stackoverflow.com/questions/52531996/find-address-of-a-specified-value-in-another-process

Is it possible in memorysharp ?

@zcanann
Copy link

zcanann commented Sep 27, 2018

This is called an "Array of Byte scan". Just google for how to do that. Not sure if MemorySharp has that.

[deleted my original post, misunderstood the question]

@ISmileYouCryYouSmileIDie
Copy link
Author

nothing found dude , it seems it's really hard to do :\

@lolp1
Copy link

lolp1 commented Sep 28, 2018

https://github.com/lolp1/Process.NET/tree/master/src/Process.NET/Patterns

     public class TestClass
    {
        public readonly IMemoryPattern DataAddressPattern =
            new DwordPattern("48 8B 05 ?? ?? ?? ?? 48 85 C0 48 0F 44 05 ?? ?? ?? ?? C3", 0x40);

        public readonly IMemoryPattern FuncOffsetPattern =
            new DwordPattern("48 8B 05 ?? ?? ?? ?? 48 85 C0 48 0F 44 05 ?? ?? ?? ?? C3");

        public PatternScanResult Find(string moduleName,IMemoryPattern pattern)
        {
            var process = new ProcessSharp(System.Diagnostics.Process.GetCurrentProcess());
            process.Memory = new ExternalProcessMemory(process.Handle);
            var scanner = new PatternScanner(process[moduleName]);
            return scanner.Find(pattern);
        }
    }

@lolp1
Copy link

lolp1 commented Sep 28, 2018

#6

If I miss-understand let me know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants