Jump to content

Recommended Posts

Well as stated I am trying to get memory to work. I am using the cheat engine tutorial just trying to read a memory values. I am using NomadMemory and Nomadmemory2 which I will link for you all and anyone else that is having the same problem. At this point I am thinking my OS and Autoit are too new for it. Can anyone help with getting this to work?

NomadMemory.au3

NomadMemory2.au3

Share this post


Link to post
Share on other sites
45 minutes ago, ronmage said:

Well as stated I am trying to get memory to work.

No you never.

45 minutes ago, ronmage said:

I am using NomadMemory and Nomadmemory2 which I will link for you all and anyone else that is having the same problem.

What problem?

46 minutes ago, ronmage said:

Can anyone help with getting this to work?

Get what to work?

 

Give some explanation, you only wrote a bunch of meaningless words.

Share this post


Link to post
Share on other sites

Fair.

#1 - I am trying to get memory to work in autoit. :)

#2 I am linking the nomads includes so that anyone that follows me having a problem with memory reading can follow what I did and fixed it using this post. 

#3-

Here is some code to only read a memory location using the tutorial in cheat engine and output

#include <NomadMemory2.au3>
#include <Array.au3>

Global $mainwindow = "Tutorial-i386"
Global $pid = WinGetProcess($mainwindow)
Global $iHD = 0
Global $address = "0x0014B2B0" ;This is the addres found in step 2 for the tutorial in cheat

$MemArray = _Memoryopen($pid)
_ArrayDisplay($MemArray) ;this is not outputing correctly
$out = _MemoryRead($address, $MemArray)
MsgBox(0,"test",$out)
_Memoryclose($pid)

 

Share this post


Link to post
Share on other sites

Maybe.

Did you know which app he want's to cheat? I not, also don't knowing yours, so i can't knowing you need #RequireAdmin or not.

Share this post


Link to post
Share on other sites

well I did get it to work using #requireadmin that was the missing part.

So I am going to like at the end here the code, thank you everyone for the help. 

#include <NomadMemory2.au3>
#include <Array.au3>
#requireadmin

Global $mainwindow = "Tutorial-i386"
Global $pid = WinGetProcess($mainwindow)
Global $iHD = 0
Global $address = "0x0174B328" ;This is the addres found in step 2 for the tutorial in cheat

$MemArray = _Memoryopen($pid)
_ArrayDisplay($MemArray) ;this is not outputing correctly
$out = _MemoryRead($address, $MemArray)
MsgBox(0,"test",$out)
_Memoryclose($pid)

 

Share this post


Link to post
Share on other sites

There is a simpilar way. 

 

#include <KryMemory.au3>

$PROCESS = _Process_Open("Example.exe", $PROCESS_ALL_ACCESS, False)

$VAR1 = _Process_ReadMemory($PROCESS, 0x008015D0, "type")) ; type = ( byte, float, dword, char[], byte[] ... etc )

$VAR2_OFFSET[2] = [0x01, 0x02]
$VAR2 = _Process_ReadMemoryPointer($PROCESS, 0x008015D0, $VAR2_OFFSET, "type")) ; type = ( byte, float, dword, char[], byte[] ... etc )

$VAR3 = _Process_WriteMemory($PROCESS, 0x008015D0, $Value, "type")) ; $Value = the value you want to write to memory.

$VAR4_OFFSET[10] = [0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09]
$VAR4 = _Process_WriteMemoryPointer($PROCESS, 0x008015D0, $VAR4_OFFSET, $Value, "type"))

_Process_Close($PROCESS)

 

KryMemory.au3

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Similar Content

    • By ManualIT
      Guys, i need help on creating a script that restarts a program once it starts using more than 1GB of memory.
      No idea how to start on the script, i don't know which functions i should use for process memory reading.
       
      My mind is in total blank at the moment, so i need a kick start
    • By Pricehacker
      Hello!
      Im wondering if it is possible to 'empty' the variable value to save memory, for example i often use variable as a onetime use thing and would prefer to 'forget' it after is is used
      Maybe it is just as easy as to setting $vVar = Null, but i wanted to make sure that this is the case
    • By CarlD
      Is there a reliable way to ensure that data assigned to variables in a script is overwritten or deleted when the script exits? I have scripts that encrypt/decrypt data and would like to ensure, if possible, that the encryption keys and decrypted data do not stay in memory after the script exits. Thanks.
    • By Tersion
      Here test example of a dummy program with random added controls to the main form:
      If #include <GuiListView.au3> is commented out, then this simple program uses around 3,5 MB of RAM. When #include <GuiListView.au3> NOT commented out - RAM usage is around 13-14 MB.
      How can I reduce memory usage? Even if I'm not using GuiListView.au3 - 3,5 MB quite a bit for a such dummy program!
      I found out that using this DLLCall in main loop:
      DllCall("psapi.dll", "int", "EmptyWorkingSet", "long", -1) Significantly reduces RAM usage (even with GuiListView.au3 included, from 13-14 MB to 600 KB !!! ) but I'm not sure if it's doesn't have any impact to common workflow of a program...
      So, give me any advice about that, please.
    • By DynamicRookie
      Hey there!
       
      I've been developing a artificial intelligence.

      My first hard task was letting the A.I know when a sentence is found in memory with different words
      What i tried to do here is simply, get all the words in user sentence that could be used
      as a identifier
              
              example: Steve Jobs
              
              then identify the sentence purpose with the words we found in the past "for" loop
              
              example: Do/Know/You/Who/Steve/Jobs
              
              Compare the example in the following matching sentences in memory.
              
              1-Steve jobs was a known person
              2-Do you know who barack obama is?
              3-Do you know Steve jobs?
              4-Do you know who steve jobs is?
              5-How much money steve jobs had
              
              Then find the sentence that has way more matches than the other ones, remember that if the identifier words were not found
              (Steve jobs) then the sentence is invalid.
              
              Every sentence has a different answer and is important that the right one is chosen.
              
      If there's no more than the half of words in matches, then assign a variable the result of function, such as a return but for a global var.
      I couldn't figure out how to do that with StringRegExp.
       
      I honestly need help with detecting identifiers on memory sentences.
      I would also like to let the AI know typos, meaning that moeny and money means the same thing.
      Any help is hugely appreciated.

       
×
×
  • Create New...