Jump to content

Memory R/W


Recommended Posts

Hi..

FileReading to Array Trimming the Array Variables then want to write each array variable on the press of a key

Im trying to Write a memory address with a different value from an array each time i press a key, i want it going in a loop..

Here's my script up2 now..

#include <nomadmemory.au3>
#include <file.au3>
#include <misc.au3>
#RequireAdmin

$dll = DllOpen("user32.dll")


Dim $key

$message = "Please Select Your txt file"

$select = FileOpenDialog($message, @DesktopDir & "\", "Txt Files (*.txt)", 1)

$fo = FileOpen($select, 0)

$pid = _MemoryOpen(ProcessExists("IW3MP.exe"))

_memoryopen($pid, 0x1F0FFF, 1)

If Not _FileReadToArray($select,$key) Then
   MsgBox(4096,"Error", " Error reading keyfile to Array     error:" & @error)
   Exit
EndIf
For $x = 1 to $key[0]
$tk = StringTrimRight($key[$x], 4)
$tk1 = StringTrimLeft($key[$x], 16)
Next

; Check if file opened for reading OK
If $fo = -1 Then
    MsgBox(0, "Error", "Unable to open file.")
    Exit
EndIf


If @error Then
    MsgBox(0, "Error!", "Error Code:" & @error)
EndIf

$read = _memoryread(0x00724B84, $pid, 'char[17]')
$read1 = _memoryread(0x00724B88, $pid, 'char[17]')
$read2 = _memoryread(0x00724B8C, $pid, 'char[17]')
$read3 = _memoryread(0x00724B90, $pid, 'char[17]')
$read4 = _memoryread(0x00724BA8, $pid, 'char[17]')

MsgBox(0,"Your shizzle(s) is:",$read & @CRLF & $read1 & @CRLF & $read2 & @CRLF & $read3 & @CRLF & $read4)


_memorywrite(0x00724B84, $pid, $tk, "char[17]")
_memorywrite(0x00724BA8, $pid, $tk1, "char[5]")

_memoryclose($pid)

FileClose($fo)
Edited by exotics
Link to comment
Share on other sites

Read the annonucement on top from Valik about Game Bots.

TCP server and client - Learning about TCP servers and clients connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)



460px-Thief-4-temp-banner.jpg
There are those that believe that the perfect heist lies in the preparation.
Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost.

 
Link to comment
Share on other sites

Because people pick the IW3MP.exe and google it, related to call of duty and so its game bot.

People are kinda strange about it here, just cut out any hints about games in your code before posting, safes a load of discussion and doesnt distract from the point.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...