Autoit Memory suchen lassen

09/30/2010 07:35 freehuntx#1
Hi Com,

habe mal in einem script von pingui gesehen, dass er eine Funktion namens _searmemory angewandt hat.

Nun wollte ich fragen ob jemand diese kennt, und mir diese geben könnte?

Leider antwortet er mir nicht.


Weil ich würde Probieren einen Autoupdate für meinen Trainer zu adden.

Danke.
10/04/2010 22:50 CroSSiie#2
mal ne doofe frage...
was willste mit memoryfunktionen wenn nen updater haben willst?
10/04/2010 23:32 lolkop#3
er will das die speicheradressen automatisch geupdated werden.
hierzu wäre es empfehlenswert das file nach binary snipets zu durchsuchen, und so die adressen relativ zur module base zu bestimmen.
10/05/2010 19:11 PenGuin :O#4
Code:
;==================================================================================
; Function:         _MemoryScan($ah_Handle, $pattern [, $after[, $iv_addrStart, [$iv_addrEnd]]])
; Description:      Finds the address of the first occurance of a pattern in a process.
; Parameter(s):     $ah_Handle - An array containing the Dll handle and the handle
;                                of the open process as returned by _MemoryOpen().
;                   $pattern - The pattern you want to find. Provide the pattern
;                              as a String of hex values. You may use the '.' as wildcard.
;                              Any other character as '0123456789ABCDEFabcdef.' is ignored.
;                              Example: "55 8B .. 83"
;                   $after - (optional) Set to FALSE by default.
;                            If set to TRUE, the method will return the address
;                            after the pattern, else the method returns the address
;                            of the pattern itself.
;                   $iv_addrStart - (optional) Set to 0x00400000 by default.
;                                   This is the address where the method begins to scan
;                                   for the pattern. It must be in hex format (0x00000000).
;                   $iv_addrEnd - (optional) Set to 0X00FFFFFF by default.
;                                 This is the address where the method stops to scan
;                                 for the pattern. It must be in hex format (0x00000000).
; Requirement(s):   None.
; Return Value(s):  On Success - Returns the address of the first occurance of the pattern
;                                ($after = FALSE) or the address after the first occurance
;                                of the pattern ($after = TRUE). The address is in
;                                hexadecimal format.
;                   On Failure - Returns -1
;                   @Error - 0 = No error.
;                            1 = Invalid $ah_Handle.
;                            2 = Invalid $pattern.
; Author(s):        Luzifer42
; Note(s):          The default scan range will be completed in less than one second.
;==================================================================================

Func _MemoryScan($ah_Handle, $pattern, $after=false, $iv_addrStart=0x00400000, $iv_addrEnd=0X00FFFFFF, $step=51200)
	If Not IsArray($ah_Handle) Then
		SetError(1)
        Return -1
	EndIf
	$pattern=StringRegExpReplace($pattern, "[^0123456789ABCDEFabcdef.]", "")
	IF StringLen($pattern)=0 Then
		SetError(2)
        Return -2
	EndIf
	For $addr=$iv_addrStart To $iv_addrEnd Step $step-(StringLen($pattern)/2)
		StringRegExp(_MemoryRead($addr, $ah_Handle, "byte[" & $step & "]"), $pattern, 1, 2)
		If Not @Error Then
			If $after Then
				return StringFormat("0x%.8X", $addr+((@Extended-2)/2))
			Else
				return StringFormat("0x%.8X", $addr+((@Extended-StringLen($pattern)-2)/2))
			EndIf
		EndIf
	Next
	Return -3
EndFunc
Bitte.

EDIT: Wann hast du mich mal angeschrieben? O.o
10/05/2010 19:18 Nico001#5
Mach deinen autoupdater mit
Visual basic
gib einfach bei youtube ein:
visual basic downloader

Was du dafür brauchst:
Visual basic
und eine eigene hompage
10/05/2010 19:22 lolkop#6
Quote:
Originally Posted by Nico001 View Post
Mach deinen autoupdater mit
Visual basic
gib einfach bei youtube ein:
visual basic downloader

Was du dafür brauchst:
Visual basic
und eine eigene hompage
sauber. es wird gefragt wie man in einer speziellen sprache den speicher von programmen durchsuchen kann, und du erzählst ihm was von ner anderen sprache und ner homepage.
10/05/2010 19:23 omer36#7
:D :D
10/07/2010 08:24 freehuntx#8
Oops ^^ danke euch allen.

Pinguin ich habe dich wie gesagt leider mit jemanden vertauscht in skype xD dachte du bist das ^^
10/07/2010 18:56 Al Kappaccino#9
Mit der Pattern Search Technik, könnte man auch eine art "Simple Cheat Engine" erstellen, wobei natürlich die Leistung fürn A**** ist ;)