Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 06:57

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

Advertisement



Cheat Engine aobscan in Autoit

Discussion on Cheat Engine aobscan in Autoit within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
EthnicX's Avatar
 
elite*gold: 301
Join Date: Mar 2010
Posts: 1,227
Received Thanks: 170
Cheat Engine aobscan in Autoit

Moin Leute, ich wollte mal nachfragen ob es in Autoit möglich ist, eine Cheat Engine aob script zu injecten.

Hier ist der Script den ich gerne injecten würde:
Code:
[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048) //2kb should be enough
label(returnhere)
label(originalcode)
label(exit)
label(whatever)
registersymbol(whatever)
aobscan(aob1,D9 5F 34 D9 47 30 D9 47 24 DE C1 D9 5F 30 D9 47 34 D9 47 10 83 EC 08 83 EC 04 D9 1C 24 83 EC 04)

newmem: //this is allocated memory, you have read,write,execute access
//place your code here

originalcode:


exit:
jmp returnhere

aob1:
whatever:
jmp newmem
nop
nop
nop
returnhere:




[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
whatever:
db D9 5F 34 D9 47 30 D9 47 24 DE C1 D9 5F 30 D9 47 34 D9 47 10 83 EC 08 83 EC 04 D9 1C 24 83 EC 04
unregistersymbol(whatever)
Wie könnte man das realisieren?
EthnicX is offline  
Old 11/27/2013, 19:26   #2
 
elite*gold: 15
Join Date: Aug 2012
Posts: 3,041
Received Thanks: 6,397
Code:
#include <NomadMemory.au3>

$MemOpen = _MemoryOpen(ProcessExists("targetprocess.exe"))
$aob = _AOBScan($MemOpen, "D9 5F 34 D9 47 30 D9 47 24 DE C1 D9 5F 30 D9 47 34 D9 47 10 83 EC 08 83 EC 04 D9 1C 24 83 EC 04")
_MemoryClose($MemOpen)
MsgBox(0, "", $aob)

Func _AOBScan($handle, $sig)
	$sig = StringRegExpReplace($sig, "[^0123456789ABCDEFabcdef.]", "")
	$start_addr = 0x00400000
	$end_Addr = 0x0FFFFFFF
	For $addr = $start_addr To $end_Addr Step 51200 - (StringLen($sig) / 2)
		StringRegExp(_MemoryRead($addr, $handle, "byte[51200]"), $sig, 1, 2)
		If Not @error Then
			Return StringFormat("0x%.8X", $addr + ((@extended - StringLen($sig) - 2) / 2))
		EndIf
	Next
	Return 0
EndFunc   ;==>_AOBScan
berkay2578 is offline  
Thanks
2 Users
Old 05/23/2017, 22:50   #3
 
elite*gold: 0
Join Date: Mar 2017
Posts: 4
Received Thanks: 0
Talking

Uraltthread, aber vielleicht weiß es ja jemand: Wie mache ich das mit 64 Bit? Z.B. mit der KDMemory oder KryMemory? Nomad ist ja 32 Bit only glaube ich...

Ich beantworte mir das mal selbst.

Code:
#AutoIt3Wrapper_UseX64=y ; 64 Bit application
#RequireAdmin
#include "Functions\KDMemory.au3"
Const $processName = "Tutorial-x86_64.exe"
Const $moduleName = $processName
$processId = ProcessExists($processName)
$handles = _KDMemory_OpenProcess($processId)
ConsoleWrite("Opened " & $ProcessName & " with PID " & $handles[0] & @CRLF)
$modbase = _KDMemory_GetModuleBaseAddress ( $handles, $moduleName)
ConsoleWrite("Base address of module: "& $modbase & @CRLF)
$pattern = '29 93 90 07 00 00'
$startAddress = $modbase 
$endAddress   = "0x7FFFFFFFFFFFFFFF"
$err = "none"
$s2codeadd = _KDMemory_FindAddress($handles, $pattern, $startAddress, $endAddress, $err)
ConsoleWrite("Address of step 2 code: 0x" & Hex($modbase + $s2codeadd[1] - $modbase) & @CRLF)
$s2codeadd[1] = "0x" & Hex($modbase + $s2codeadd[1] - $modbase)
$memoryData = _KDMemory_ReadProcessMemory($handles, $s2codeadd[1], 'BYTE[' & 8 & ']')
ConsoleWrite(Hex($s2codeadd[1]) & " : " & $memoryData[1] & @CRLF)
Jetzt muss ich nur noch Speicher mit meinen Opcodes bestücken und bei $s2codeadd den Jump injecten.

Hat hierfür eventuell jemand einen Tipp?
Crowmer is offline  
Old 08/21/2022, 04:43   #4
 
elite*gold: 0
Join Date: Sep 2017
Posts: 7
Received Thanks: 0
hello, in case you skip some houses ? how would it work? for example ?? 00 11 22 ?9 44 bd, could you make it work?
Fernando_Liro is offline  
Reply


Similar Threads Similar Threads
Cheat Engine aobscan in Autoit
11/27/2013 - General Coding - 3 Replies
Moin Leute, ich wollte mal nachfragen ob es in Autoit möglich ist, eine Cheat Engine aob script zu injecten. Hier ist der Script den ich gerne injecten würde: //code from here to '' will be used to enable the cheat alloc(newmem,2048) //2kb should be enough label(returnhere) label(originalcode) label(exit) label(whatever)
Cheat Engine adresse in Autoit ??
07/18/2011 - AutoIt - 4 Replies
Hallo alle zusammen :) Was ihr vorher wissen solltet : -kommt mir nicht mit sowas wie "Google doch selbst". Ich google und stöber alle Foren seit genau 11 Stunden durch. Bin auf einige Tutorials gekommen, doch bin nicht sehr weiter gekommen. Ich habe ein kleines Problem. Ich würde gerne einen kleinen Hack schreiben.
Cod 4 Hack mit Cheat Engine und Autoit
08/05/2010 - General Coding - 26 Replies
Hallo Ich versuche mit Autoit und Cheat Engine ein Box ESP für Cod4 zu machen. Leider finde ich die Werte nicht und versteh auch nihct ganz wie ich die exakte Position im Bild herrausfinden soll. Wenn mir wer helfen könnte wäre es super.:)
kan man bei autoit cheat engine ??
01/09/2010 - AutoIt - 3 Replies
so kan man bei autoit cheat engine value einbinden?? das zb ein knopf wen drauf geklikt wird waffe +9 sind??moklich?? lg gael1509
cheat engine / autoit
04/12/2009 - AutoIt - 4 Replies
hey leute ich hab bei cheat engine jetzt 10 verschiedene werte. ich möchte jetzt mit autoit ein programm schreiben, dass so lange alle 2 sekunden auf einen button klickt, (pixel: 655, 425) bis irgendeiner der werte auf 12 ist. dann soll er einfach aufhören zu klicken. wie geht das? kann mir einer helfen bitte?



All times are GMT +1. The time now is 06:57.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.