Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > World of Warcraft
You last visited: Today at 19:21

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

Advertisement



[Hilfe] String aus Memory lesen

Discussion on [Hilfe] String aus Memory lesen within the World of Warcraft forum part of the Popular Games category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jun 2008
Posts: 109
Received Thanks: 154
[Hilfe] String aus Memory lesen

Hi, ich würd gern nen String ausm Speicher lesen. Die Länge soll dabei selbstständig berechnet werden.. Sprich es soll so lange gelesen werden bis das Byte 0x00 kommt. Dazu hab ich mir folgende Schleife geschrieben:

Code:
// ReadString
string ReadString(UINT_PTR Offset)
{
	int size;
	BYTE strbyte = {0x20}; // Hack.. musste strbyte ja mit irgendwas initiieren was nicht null ist.
	for (size=0;strbyte!=0;size++) // so lange lesen bis das byte 0x00 und damit das Ende des Strings gefunden wurde.
		ReadProcessMemory(hProcess, (LPCVOID)(Offset+size), &strbyte, 1, NULL);
	char Value[256] = "\0"; // das hier würde ich gerne durch char Value[size] = "\0" ersetzen.. jedoch sagt er mir die länge muss eine Konstante sein?!..
	if (ReadProcessMemory(hProcess, (LPCVOID)Offset, &Value, size-1, NULL))
		return (string)Value;
	else
		return NULL;
}
Kann mir jemand eine bessere Methode zeigen?
Master674 is offline  
Reply


Similar Threads Similar Threads
[Release] String/Memory Liste
10/23/2010 - S4 League Hacks, Bots, Cheats & Exploits - 7 Replies
Hier Hab ich mal ein Theard gemacht, für die String/Memory Adressen. Have Fun ;) Inf Sp Skill Memory Values:
[Video Tut]CE Tutorial/String,Memory Hack erstellen (Nooblike)
10/21/2010 - S4 League Hacks, Bots, Cheats & Exploits - 120 Replies
Hi, In diesem Tutorial werde ich ihnen zeigen wie man Strings Findet und sie in einen Trainer packt.Das Tutorial ist so gemacht das es selber die nooooobigsten nooobs verstehen :).Also los gehts. Was braucht man alles? - Cheat Engine - Suspender (Meinen oder andere/Process Explorer) - AutoIT - SciTE - Nomadmemor.au3
C++ String aus Memory auslesen
05/08/2010 - C/C++ - 1 Replies
Hallo zusammen ;) Ich probiere mich derzeit ein wenig mit dem auslesen des Memory in C++. Hab mir da auch schon ne DLL gebastelt und injected... usw. Nun habe ich ein Problem: Ich möchte gerne den Namen meines Charakters auslesen. Mit Cheatengine klappt das ja wunderbar und wird auch richtig angezeigt, nur wenn ich mittels der DLL versuche aus der Addresse meinen Namen auszulesen bekomm ich immer nur 1 Zeichen und das stimmt nicht einmal mit dem 1. Buchstaben meines Namens überein. Hier...
[Help]C# How to convert memory value to string?
05/04/2010 - CO2 Programming - 2 Replies
How to convert value to string :confused: this is my code Is this code right or is it wrong? thanks in advance!:handsdown: note: I know that CloseHandle is missing :) using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq;
String memory addres
10/28/2005 - Lineage 2 - 0 Replies
Does anyone have any ideea how i can find a desired string in the memory address??? I am trying to make a new code but i have to come up with a way to find certain string so i can edit it. please post your ideas and progs, im sure working together is more efficient then working alone.



All times are GMT +2. The time now is 19:21.


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.