Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 09:05

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



AOB Scan Autoit

Discussion on AOB Scan Autoit within the AutoIt forum part of the Coders Den category.

Reply
 
Old 04/07/2014, 13:04   #16
 
alpines's Avatar
 
elite*gold: 60
Join Date: Aug 2009
Posts: 2,256
Received Thanks: 815
Probier es mal mit _MemoryScanEx, das kann unter Umständen andere Resultate liefern.
alpines is offline  
Old 04/07/2014, 15:33   #17
 
golle12's Avatar
 
elite*gold: 29
Join Date: Aug 2011
Posts: 640
Received Thanks: 493
So ich bah dies mal mit _MemoryScanEx mal ausprobiert aber ich bekomme als rückgabe wert -4 was heit gas die länge der maske und des patterns ungleich ist aber was mache ich falsch :/ Hier das script:

PHP Code:
#include <NomadMemory.au3>
#RequireAdmin
SetPrivilege("SeDebugPrivilege"1)
$MemOpen _MemoryOpen(ProcessExists("S4Client.exe"))
$aob _MemoryScanEx($MemOpe","xxx????x?xx")
_MemoryClose(
$MemOpen)
MsgBox(0, "", 
$aob)

Func _MemoryScanEx(
$ah_Handle$pattern$mask , $after = False, $iv_addrStart = 0x00400000, $iv_addrEnd = 0xFFFFFFFF, $step = 51200)
If Not IsArray(
$ah_Handle) Then
SetError(1)
Return -1
EndIf
$pattern = StringRegExpReplace($pattern, "[^0123456789ABCDEFabcdef.]", "xxx????x?xx")
If StringLen(
$pattern) = 0 Then
SetError(2)
Return -2
EndIf
If Stringlen(
$pattern)/2 <> Stringlen($mask) Then
SetError(4)
Return -4
EndIf
Local 
$formatedpattern=""
Local 
$BufferPattern
Local 
$BufferMask
for 
$i = 0 to stringlen($mask)-1
$BufferPattern = StringLeft($pattern,2)
$pattern = StringRight($pattern,StringLen($pattern)-2)
$BufferMask = StringLeft($mask,1)
$mask = StringRight($mask,StringLen($mask)-1)
if 
$BufferMask = "?" then $BufferPattern = ".."
$formatedpattern = $formatedpattern&$BufferPattern
Next
$pattern = $formatedpattern
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 
golle12 is offline  
Reply


Similar Threads Similar Threads
[Tutorial] AutoIt Pattern Scan
08/21/2022 - Coding Tutorials - 4 Replies
Hallo, dies ist mein kleines Pattern Tutorial. groß was zu erzählen gibt es nicht, ist alles im video. alles was ihr braucht findet ihr hier im threat VideoTutorial MemoryScan by Luzifer42 Extended by me Func _MemoryScanEx($ah_Handle, $pattern, $mask , $after = False, $iv_addrStart = 0x00400000, $iv_addrEnd = 0x00FFFFFF, $step = 51200) If Not IsArray($ah_Handle) Then



All times are GMT +2. The time now is 09:05.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.