Search string in RAM

Help on how to use HxD.
Post Reply
semura
Posts: 3
Joined: 28 Nov 2012 14:11

Search string in RAM

Post by semura »

Hello,

for a check tool i will need to verify existency of a string in RAM.
This is due the fact that it is a programm which i don't have access to through Windows API.

If the string exists in the RAM, alll OK, else something is wrong.

With HxD i can search pattern in RAM and find the string.
I would like to do it through command line. Is that possible?
If not, any suggestions to other Windows command line tools are appreciated .

thanks
kind regards
Semura

================================================================================
Can i change my silly username afterwards?
================================================================================
Maël
Site Admin
Posts: 1455
Joined: 12 Mar 2005 14:15

Re: Search string in RAM

Post by Maël »

HxD does not support command line operations or scripting.

But you can use the Windows API, ReadProcessMemory http://msdn.microsoft.com/en-us/library ... 85%29.aspx
and use OpenProcess to access the right program.

There should be example code on the net.

@user name: not manually as far as I know, what user name do you want?
semura
Posts: 3
Joined: 28 Nov 2012 14:11

Re: Search string in RAM

Post by semura »

Hello,

thanks for your reply and the link. Unfortunately I am not that familiar with C++ programming and also not at that level.
Maybe i will search for some code in VB .NET. Also i am not sure if it will be able to grab text within for Java
GUI objects where HxD is able to.

I am just searching a kind of "find" but for RAM where i can define the process and the search string to find
at commandline and returns me either the found adress or an errorlevel 0 or 1

Well, the username should be only semura. But thats not really important.

thanks and a good day!
Semura
Maël
Site Admin
Posts: 1455
Joined: 12 Mar 2005 14:15

Re: Search string in RAM

Post by Maël »

I made a search but couldnt find anything that wouldn't require some knowledge in C++ or otherwise understanding some API functions. Just found other GUI based tools that won't help here.

You can ask on superuser.com or stackoverflow.com for a command-line based tool for searching process memory, or something similar.
semura
Posts: 3
Joined: 28 Nov 2012 14:11

Re: Search string in RAM

Post by semura »

thank you, i try that.
Anyway, could be a nice feature in future HxD version :mrgreen:

regards
Post Reply