Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > C/C++
You last visited: Today at 21:43

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

Advertisement



memory hacking

Discussion on memory hacking within the C/C++ forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Apr 2012
Posts: 12
Received Thanks: 0
memory hacking

hallo ich komm einfach nicht weiter den eig. müsste der Code doch so richtig sein aber beim Debugen bekomme ich immer ein Fehler ich hoffe es kann jemand helfen

LG


CODE:

Code:
#include <iostream>
#include <Windows.h>
#include "stdafx.h"
using namespace System;
int main(array<System::String ^> ^args)
{
	char title[256];
	HWND hwndProcess;
	DWORD processId;
	HANDLE hProcess;
    unsigned int address = 0;
	int Value = 0;

	std::cout << "Memory Hack\n\n"
		<< "Fenstertitel:\n";
		std::cin.getline(title,256);
		hwndProcess = FindWindowA(0, title);
		if (!hwndProcess)
		{
			std::cout << "\n\nFehler\n\n";
			}
		else
		{ 
			GetWindowThreadProcessId(hwndProcess,&processId);
			
			hProcess = OpenProcess(PROCESS_ALL_ACCESS,false,processId);
			std::cout << "\n\nAddresse: ";
			std::cin >> std::hex >> address >> std::dec;
			std::cout << std::endl << "Wert: ";
			std::cin >> Value;


			WriteProcessMemory(hProcess,(LPVOID)address,&Value,sizeof(int),0);
			CloseHandle(hProcess);

		}
					
		std::cin.get();

    return 0;
}
blubi12334B is offline  
Old 04/22/2012, 17:37   #2
 
.SkyneT.'s Avatar
 
elite*gold: 273
Join Date: Sep 2010
Posts: 1,831
Received Thanks: 786
Verrätst du uns auch was für einen Fehler ?
.SkyneT. is offline  
Old 04/22/2012, 17:49   #3
 
elite*gold: 0
Join Date: Apr 2012
Posts: 12
Received Thanks: 0
Quote:
Originally Posted by .SkyneT. View Post
Verrätst du uns auch was für einen Fehler ?
das ist es ja gerade es steht kein fehler da auser halt doch wenn ich debug den kommt ein error mit dem speicher ort des Projektes also

C:/Desktop/test.exe oder waws weiß ich und dahinter wurde nicht gefunden

komisch ^^ eig. ist alles da wo es sein sollte XDD
blubi12334B is offline  
Old 04/22/2012, 18:11   #4
 
.SkyneT.'s Avatar
 
elite*gold: 273
Join Date: Sep 2010
Posts: 1,831
Received Thanks: 786
Code:
#include "stdafx.h"
#include <iostream>
#include <Windows.h>

int main()
{
	char title[256];
	HWND hwndProcess;
	DWORD processId;
	HANDLE hProcess;
    unsigned int address = 0;
	int Value = 0;

	std::cout << "Memory Hack\n\n"
		<< "Fenstertitel:\n";
		std::cin.getline(title,256);
		hwndProcess = FindWindowA(0, title);
		if (!hwndProcess)
		{
			std::cout << "\n\nFehler\n\n";
			}
		else
		{ 
			GetWindowThreadProcessId(hwndProcess,&processId);
			
			hProcess = OpenProcess(PROCESS_ALL_ACCESS,false,processId);
			std::cout << "\n\nAddresse: ";
			std::cin >> std::hex >> address >> std::dec;
			std::cout << std::endl << "Wert: ";
			std::cin >> Value;


			WriteProcessMemory(hProcess,(LPVOID)address,&Value,sizeof(int),0);
			CloseHandle(hProcess);

		}
					
		std::cin.get();

    return 0;
}
So gibts bei mir keinen Error mehr ...

Btw:
Für was sollte das gut gewesen sein:
Code:
using namespace System;
int main(array<System::String ^> ^args)
.SkyneT. is offline  
Old 04/22/2012, 18:32   #5
 
elite*gold: 0
Join Date: Apr 2012
Posts: 12
Received Thanks: 0
Quote:
Originally Posted by .SkyneT. View Post
Code:
#include "stdafx.h"
#include <iostream>
#include <Windows.h>

int main()
{
	char title[256];
	HWND hwndProcess;
	DWORD processId;
	HANDLE hProcess;
    unsigned int address = 0;
	int Value = 0;

	std::cout << "Memory Hack\n\n"
		<< "Fenstertitel:\n";
		std::cin.getline(title,256);
		hwndProcess = FindWindowA(0, title);
		if (!hwndProcess)
		{
			std::cout << "\n\nFehler\n\n";
			}
		else
		{ 
			GetWindowThreadProcessId(hwndProcess,&processId);
			
			hProcess = OpenProcess(PROCESS_ALL_ACCESS,false,processId);
			std::cout << "\n\nAddresse: ";
			std::cin >> std::hex >> address >> std::dec;
			std::cout << std::endl << "Wert: ";
			std::cin >> Value;


			WriteProcessMemory(hProcess,(LPVOID)address,&Value,sizeof(int),0);
			CloseHandle(hProcess);

		}
					
		std::cin.get();

    return 0;
}
So gibts bei mir keinen Error mehr ...

Btw:
Für was sollte das gut gewesen sein:
Code:
using namespace System;
int main(array<System::String ^> ^args)


meinste das using namespace das hat visual c++ selber compliert warum auch immer XDD oder was haste geändert ?

so habe ich das jetz auch gemacht

using namespace System;
int main(array<System::String ^> ^args)


aber immer noch der selbe fehler XD
blubi12334B is offline  
Old 04/22/2012, 18:38   #6
 
elite*gold: 5
Join Date: Sep 2006
Posts: 385
Received Thanks: 218
Finger weg von C++/CLI!
Nightblizard is offline  
Thanks
1 User
Old 04/22/2012, 18:42   #7
 
elite*gold: 0
Join Date: Apr 2012
Posts: 12
Received Thanks: 0
Quote:
Originally Posted by Nightblizard View Post
Finger weg von C++/CLI!
lol warum ich habe das doch behoben ist mir erst garnicht aufgefallen aber der fehler bleibt gleich , naja in visualbasic habe ich es geschafft aber wohl möglich hast du recht und mir fehlen die kentnisse in c++

LG
blubi12334B is offline  
Old 04/22/2012, 18:47   #8
 
.SkyneT.'s Avatar
 
elite*gold: 273
Join Date: Sep 2010
Posts: 1,831
Received Thanks: 786
Quote:
Originally Posted by Nightblizard View Post
Finger weg von C++/CLI!
Ach dieser Blödsinn schon wieder

Quote:
meinste das using namespace das hat visual c++ selber compliert warum auch immer XDD oder was haste geändert ?

so habe ich das jetz auch gemacht

using namespace System;
int main(array<System::String ^> ^args)


aber immer noch der selbe fehler XD
Wenn du den Code aus meiner Ersten Codebox C&Pstest geht es ...

Ahja das ganze ist ne Win32-Konsolenanwendung (vllt liegt dort der fehler)
.SkyneT. is offline  
Old 04/22/2012, 18:50   #9


 
MrSm!th's Avatar
 
elite*gold: 7110
Join Date: Jun 2009
Posts: 28,902
Received Thanks: 25,407
Natürlich liegt der Fehler dort. Wieder jemand, der sich nicht mit seiner IDE auseinandersetzt und wild drauflosklickt.
MrSm!th is offline  
Old 04/22/2012, 18:55   #10
 
elite*gold: 0
Join Date: Apr 2012
Posts: 12
Received Thanks: 0
Quote:
Originally Posted by .SkyneT. View Post
Ach dieser Blödsinn schon wieder


Wenn du den Code aus meiner Ersten Codebox C&Pstest geht es ...

Ahja das ganze ist ne Win32-Konsolenanwendung (vllt liegt dort der fehler)

Arbeite selten mit consolen Anwendungen tut mir leid warum was ist den an einer wondows consolen anwendung so falsch der Code sollte doch eig. gehen , oder verstehe ich euch jetz falsch

LG
blubi12334B is offline  
Old 04/22/2012, 19:02   #11
 
.SkyneT.'s Avatar
 
elite*gold: 273
Join Date: Sep 2010
Posts: 1,831
Received Thanks: 786
Quote:
Originally Posted by blubi12334B View Post
Arbeite selten mit consolen Anwendungen tut mir leid warum was ist den an einer wondows consolen anwendung so falsch der Code sollte doch eig. gehen , oder verstehe ich euch jetz falsch

LG
..... so komme ich mir schön langsam vor
.SkyneT. is offline  
Old 04/22/2012, 19:09   #12
 
elite*gold: 0
Join Date: Apr 2012
Posts: 12
Received Thanks: 0
also jetz kommt kein Fehler mit benutz win 32 Consolen Anwendung und der Code an sich geht aber wenn ich Debugge also starte passiert nichts es öffnet sich nichts passiert einfach garnichts ^^ komisch , einer ine Lösung ?

LG
blubi12334B is offline  
Reply


Similar Threads Similar Threads
[DLL] Memory Hacking
05/20/2010 - Coding Releases - 21 Replies
Ich hab für euch mal ein Class Library gemacht, mit dem ihr in VB, C# und in C++ Memorys lesen und verändern könnt. Download: ADrive.com &ndash; 50GB of Free Online Storage & Backup VT: http://www.virustotal.com/de/analisis/49b65a898f74 b370125484d43fca68a33ec2e682057c49dd7eb6ca4eba410b de-1262981077 Wichtigste Subs: Memory.Write(Process, Adress, Value, Bytes) Schreibt in die angegebene Memory Adresse.
memory hacking !!! using uce
01/09/2010 - CrossFire - 1 Replies
how about hacking crossfire by using uce engine !!! i m play crossfire and find alot of hacking for crossfire !!!! shall we discuss about this !!!
Quick Memory Editor - Alternative Memory Hacking Software
11/21/2009 - Cabal Hacks, Bots, Cheats, Exploits & Macros - 11 Replies
This might be detected or not by GameGuard, I have not tested this on Official servers however it worked perfectly fine on other private servers. http://imagenic.net/images/x0jxwzwpg2zxmkdtcf36.p ng This is just an alternative memory editing tool. Press thanks if this helps. Remember, scan before using this. Cause its 5.5MB.
C++ Memory Hacking
10/13/2009 - C/C++ - 6 Replies
Hallo Leute, ich habe mich vor einiger Zeit mit 'Memory Hacking' beschäftigt, und zwar mit AutoIt. Nun hab ich mir die Frage Gestellt ob bzw. wie man das in C++ machen kann, da man dort noch etliche andere Möglichkeiten als in AutoIt hätte. Mir geht es dabei darum Memory-Einträge zu verändern, so wie in bestimmten Hacks für z. B. Metin2 oder ähnlichen solchen Spielen. Oder, wenn mir das jemand sagen könnte wäre mir auch geholfen, weiß jemand ob man auf diese weiße auf die Systemuhr von...
Questoin on regards to memory hacking...
01/13/2007 - Planetside - 7 Replies
i have been noticing that people are gettings instabanned while using the UltimateHUD hack and well my question really is, if someone uses lets say TSearch to hack for the CoF value and nop it. Is that detectable on any level?!?. I have 100% certainty that i see a few TR players w/ it and i know they been using it for months and months i just never bothered but i never seen them get banned so maybe thought that Memory hack worked a lil different then you DX Injection hack. Thanks ahead of...



All times are GMT +1. The time now is 21:44.


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.