Register for your free account! | Forgot your password?

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

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

Advertisement



NomadMemory, undefined function, Error

Discussion on NomadMemory, undefined function, Error within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
grecostyler's Avatar
 
elite*gold: 0
Join Date: Nov 2010
Posts: 16
Received Thanks: 0
NomadMemory, undefined function, Error

Bei [CODE$ModuleBaseAddress = _MemoryModuleGetBaseAddress($iv_Pid, "OrcsMustDie2.exe")[/CODE] sagt AutoIt mir ERROR: _MemoryModuleGetBaseAddress(): undefined function.

kann mir wer helfen? D:


ganzer Code
grecostyler is offline  
Old 12/19/2013, 10:34   #2
 
alpines's Avatar
 
elite*gold: 60
Join Date: Aug 2009
Posts: 2,256
Received Thanks: 815
Du hast die Funktion _MemoryModuleGetBaseAddress() nicht in der Pointer.au3 sowie nicht in der Nomadmemory.au3.
Kopier dir das in deinen Source und es sollte klappen.
Code:
Func _MemoryModuleGetBaseAddress($iPID, $sModule)
    If Not ProcessExists($iPID) Then Return SetError(1, 0, 0)

    If Not IsString($sModule) Then Return SetError(2, 0, 0)

    Local   $PSAPI = DllOpen("psapi.dll")

    ;Get Process Handle
    Local   $hProcess
    Local   $PERMISSION = BitOR(0x0002, 0x0400, 0x0008, 0x0010, 0x0020) ; CREATE_THREAD, QUERY_INFORMATION, VM_OPERATION, VM_READ, VM_WRITE

    If $iPID > 0 Then
        Local $hProcess = DllCall("kernel32.dll", "ptr", "OpenProcess", "dword", $PERMISSION, "int", 0, "dword", $iPID)
        If $hProcess[0] Then
            $hProcess = $hProcess[0]
        EndIf
    EndIf

    ;EnumProcessModules
    Local   $Modules = DllStructCreate("ptr[1024]")
    Local   $aCall = DllCall($PSAPI, "int", "EnumProcessModules", "ptr", $hProcess, "ptr", DllStructGetPtr($Modules), "dword", DllStructGetSize($Modules), "dword*", 0)
    If $aCall[4] > 0 Then
        Local   $iModnum = $aCall[4] / 4
        Local   $aTemp
        For $i = 1 To $iModnum
            $aTemp =  DllCall($PSAPI, "dword", "GetModuleBaseNameW", "ptr", $hProcess, "ptr", Ptr(DllStructGetData($Modules, 1, $i)), "wstr", "", "dword", 260)
            If $aTemp[3] = $sModule Then
                DllClose($PSAPI)
                Return Ptr(DllStructGetData($Modules, 1, $i))
            EndIf
        Next
    EndIf

    DllClose($PSAPI)
    Return SetError(-1, 0, 0)

EndFunc
alpines is offline  
Thanks
1 User
Old 12/19/2013, 13:50   #3
 
grecostyler's Avatar
 
elite*gold: 0
Join Date: Nov 2010
Posts: 16
Received Thanks: 0
oke schonmal danke dafür. Jetzt öffnet sich endlich das fenster. aber er überschreibt nicht mehr die Adress, glaube ich... Es tut sich einfach garnichts, habe auch schon den Hotkey geändert. (nochmal entschuldigung für das versehen des 2. postes)
grecostyler is offline  
Old 12/19/2013, 14:25   #4
 
elite*gold: 0
Join Date: Mar 2009
Posts: 7,260
Received Thanks: 33,147
Machen wir es gleich richtig:
Sollte das Script nicht funktionieren wäre ein Screenshot deines Pointers in CE hilfreich. Beachte, dass das erste Offset in CE das unterste Offset ist. Bist du dir außerdem sicher, dass das erste Offset im Script nicht auch eine Hexadezimalzahl ist?
KDeluxe is offline  
Old 12/19/2013, 15:54   #5
 
grecostyler's Avatar
 
elite*gold: 0
Join Date: Nov 2010
Posts: 16
Received Thanks: 0
Oke also es kommt immer noch ein fehler: "Schreiben des Speichers nicht möglich (@error: 20)!"
Hier der screenshot vom Pointer.
(das sind neue pointer, weil ich die alten gelöscht habe und neue auprobiert habe, vergeblich)
grecostyler is offline  
Old 12/19/2013, 17:30   #6

 
BladeTiger12's Avatar
 
elite*gold: 64
Join Date: May 2011
Posts: 1,228
Received Thanks: 847
Was ist denn das...?
Deine Offsets stimmen nicht mal 1:1 überein.
woher nimmst du bitte das "124" oder "1EC" das steht garnicht dabei.


Sieht für mich so aus als könntest du nicht richtig raus schreiben.
Und du auch keine Ahnung hast wie so etwas funktioniert.
BladeTiger12 is offline  
Thanks
1 User
Old 12/19/2013, 17:44   #7
 
grecostyler's Avatar
 
elite*gold: 0
Join Date: Nov 2010
Posts: 16
Received Thanks: 0
das sind die werte die bei meinem pointer raus kamen...
das ist mein aktueller script:
grecostyler is offline  
Old 12/19/2013, 21:36   #8
 
elite*gold: 0
Join Date: Mar 2009
Posts: 7,260
Received Thanks: 33,147
Du hättest einfach das angepasste Script von BladeTiger12 kopieren müssen. Du gibst das erste Offset in Dezimalschreibweise an, müsstest es aber in Hexadezimalschreibweise angeben. Natürlich kannst du die Offsets auch in Dezimalschreibweise angeben, "0x124" entspricht aber nicht "124" sondern "292".
KDeluxe is offline  
Thanks
1 User
Old 12/19/2013, 21:48   #9
 
grecostyler's Avatar
 
elite*gold: 0
Join Date: Nov 2010
Posts: 16
Received Thanks: 0
Oke danke hab jetzt nochmal den Script von BladeTiger12 kopiert und es hat wieder funktioniert ^-^ viel vielen dank mit der info von hexdeximal und so *-*
Thanks to all <3
grecostyler is offline  
Reply


Similar Threads Similar Threads
Fatal Error: Call to undefined function result()
08/14/2013 - Web Development - 2 Replies
Hi everyone... i am going to advance learning in php..its about bmi so in the code area.. i will not put the code in some area because it is a currently activity and i dont want my classmates to search and find this page out.. <?php if isset($_POST) // if the button is submitted if ... // if the height field area is empty ...//statement of it saying it is an error elseif .... //if the weight field area is empty ...//statement of it saying it is an error else //if the height and weight is...
Fatal error: Call to undefined function session_start() in /usr/local/www/apache22/d
04/03/2010 - Metin2 Private Server - 3 Replies
Fehler kann mir jmd. da helfen? Fatal error: Call to undefined function session_start() in /usr/local/www/apache22/data/regist_yes.php on line 50
Fatal error: Call to undefined function mysql_connect()
02/16/2010 - Metin2 Private Server - 3 Replies
hi elitepvpers da ich bei einem problem einfach nicht weiterkomme, hoffe ich hier hilfe zu finden. Ich habe auf FreeBsd Apache Mysql und Php installiert nun möchte ich eine page damit online stellen, die z.b. ein registrierungsformular besitzt und diese daten dann in ne mysql datenbank eingibt. ist zum accounts machen für ein game. wenn ich nun jedoch auf absenden gehe kommt folgender error:



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


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.