Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > C/C++
You last visited: Today at 18:32

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

Advertisement



C++ MessageBoxA & While(true)

Discussion on C++ MessageBoxA & While(true) within the C/C++ forum part of the Coders Den category.

Reply
 
Old   #1
 
blackout617's Avatar
 
elite*gold: 68
Join Date: Feb 2011
Posts: 401
Received Thanks: 96
Question C++ MessageBoxA & While(true)

Hallo ich bin nicht so gut bei C++ ich wolte ein paar fragen stellen weil ich probleme habe ich benutze C++ 2010 Express bei meine DLL.

Code:
DWORD *MAIN_3 = (DWORD*)(*(DWORD*)ADDRRESS); 
MessageBoxA (NULL,"Readed",MAIN_3,MB_OK);
ich glaube es ist veil die variable MAIN_3 dword ist und MsgBoxA benutzt LPCSTR aber vie kan ich dword zu LPCSTR converten?.

Und die andere frage

Code:
void Start()
{	
	bool Delay;
	Delay=0;
	char * CAPTION = "DLL";

	while(true)
	{
		if (GetKeyState(VK_F3) < 0) 
		{
			if(Delay=0){
				Delay = 1;
				MessageBoxA (NULL,"Delay ON",CAPTION,MB_OK);
			}else{
				Delay = 0;
				MessageBoxA (NULL,"Delay OFF",CAPTION,MB_OK);
			}
		}
		if(Delay=1)
		{
		DELAYZ();
		}
	}
	
}
nach der dll injection ohne F3 zu drücken startet es direct die DELAYZ funktion
blackout617 is offline  
Old 02/12/2014, 17:13   #2
 
kissein's Avatar
 
elite*gold: 0
Join Date: Sep 2005
Posts: 427
Received Thanks: 87
Zuweisung ? Wikipedia
Vergleichsoperator
Code:
int i = 0;
if (i = 1)
{
   Dieser Block wird immer ausgeführt,
   weil die Zuweisung i = 1 immer das numerische Ergebnis 1 hat,
   was als der boolesche Wert "wahr" interpretiert wird.
}
Code:
int i = 0;
if (i == 1)
{
   Dieser Block wird nie ausgeführt,
   weil die Vergleichsoperation i == 1 immer das numerische Ergebnis 0 hat,
   was als der boolesche Wert "falsch" interpretiert wird.
}
kissein is offline  
Thanks
1 User
Old 02/12/2014, 17:59   #3
 
blackout617's Avatar
 
elite*gold: 68
Join Date: Feb 2011
Posts: 401
Received Thanks: 96
danke noch eine kleine frage .
crash
Code:
DWORD *MAIN_3 = (DWORD*)(*(DWORD*)0x400000 + ADDR_BASEZ); //0x40000 + base pointer
DWORD *MAIN_4 = (DWORD*)(*(DWORD*)MAIN_3 + DELAY_OFFSET); //MAIN3 + Offset1
*(DWORD*)(*(DWORD*)MAIN_4 + DELAY_OFFSETZ) = 256; // MAIN4 + Offset2
Ich denke es ist was falsch kan mir jemand weiter helfen ? bei auto it funkts es so und gibt keine probleme aber hier crasht das spiel.
Der autoit code(kein crash)
Code:
$phHandles = _MemoryOpen($dwProcessId)
$MemoryData = _MemoryRead(_MemoryRead($lpBaseAddress, $phHandles) + $pOffsets[0], $phHandles, 'dword')
_MemoryWrite($MemoryData+$pOffsets[1], $phHandles, "1",'byte')
Und ist es normal das wen ich meine dll injecte danach das spiel lagt/fps drop ?
blackout617 is offline  
Old 02/12/2014, 18:10   #4

 
snow's Avatar
 
elite*gold: 724
Join Date: Mar 2011
Posts: 10,479
Received Thanks: 3,318
Quote:
*(DWORD*)0x400000
Da kommt MZ als ASCII string raus, als Adresse kannst du das aber nicht verwenden.

Quote:
DWORD *MAIN_3 = (DWORD*)(*(DWORD*)ADDRRESS);
MessageBoxA (NULL,"Readed",MAIN_3,MB_OK);
sprintf, wenn du es eklig lösen willst, oder std::to_string() + std::string::c_str(), ansonsten versuchst du, den Inhalt der Adresse "MAIN_3" als String auszulesen.
snow is offline  
Reply


Similar Threads Similar Threads
[HELP]Hooking MessageBoxA
02/01/2014 - C/C++ - 17 Replies
---------------------
Cowarz, The true pvp legend comes true .
09/02/2013 - CO2 PServer Archive - 7 Replies
http://imageshack.com/a/img545/294/jzzc.png Welcome everyone to our private server CoWarz is a pvping server that is running on patch 5095. We have the best pvp system PFL ( Player First Login ). There are fair system cuz you will reward free 130 lev, full fixed gears, fixed skills of your class and your all of fixed webs prof. - Dedicated server, Germany ( Europe ) - DDos protected
True Classic - A True Co Classic PServer
12/23/2011 - CO2 PServer Archive - 53 Replies
Deleted. If you like communism and like being ruled by an unfair dictator. Please go here. www.trueclassic.net otherwise go here www.explicitintentions.net
************** true buddy true BOT for aion
10/09/2009 - Aion Hacks, Bots, Cheats & Exploits - 14 Replies
My friend has Aionbuddy Aion Bot &bull; Index page its the korean bot EVERYONE is talking about but No ONE has but he does its 15 usd a month its expensive yes but watch the short video he made I use this thing and WOWOWOW. Aionbuddy Aion Bot &bull; Index page and you can msn him and email him to buy it =)



All times are GMT +1. The time now is 18:32.


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.