Register for your free account! | Forgot your password?

You last visited: Today at 18:04

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

Advertisement



Createing A Loader!

Discussion on Createing A Loader! within the CO2 Programming forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
Mr_PoP's Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 759
Received Thanks: 285
Createing A Loader!

so am working on MFC application VC++11 and am doing the following

Code:
::OnBnClickedButton1()
{
    STARTUPINFO si;
    PROCESS_INFORMATION pi;
    HMODULE hDll;
    FARPROC cbtProcAddr;
    memset(&si, 0, sizeof(si));
    memset(&pi, 0, sizeof(pi));
    si.cb = sizeof(si);
    char * procName = "D:\\Conquer Online 2.0\\Conquer.exe";
    char * procArg  = " blacknull";

    if(CreateProcess(procName,procArg,0,0,0,CREATE_DEFAULT_ERROR_MODE,0,"D:\\Conquer Online 2.0",&si,&pi)){
		hDll = GetModuleHandle("WS2_32.dll");
		cbtProcAddr = GetProcAddress(hDll, "inet_addr");

		sockaddr_in localaddr;
		localaddr.sin_addr.s_addr = inet_addr("5.230.189.19");
		localaddr.sin_port = htons(9959);
		localaddr.sin_family = AF_INET;

		WaitForInputIdle(pi.hProcess,INFINITE);
		WriteProcessMemory(pi.hProcess,cbtProcAddr,(sockaddr*)&localaddr,sizeof(localaddr),0);
	}
    
}
the game launches and when am trying to logging in the client crashes! any clue why?
Mr_PoP is offline  
Old 03/27/2012, 21:05   #2
 
×Holo's Avatar
 
elite*gold: 0
Join Date: Mar 2012
Posts: 286
Received Thanks: 71
This goes to CO2 Programming :]

OP:Glad that you got the crypto, keep it up~!
×Holo is offline  
Old 03/27/2012, 21:53   #3


 
KraHen's Avatar
 
elite*gold: 0
Join Date: Jul 2006
Posts: 2,216
Received Thanks: 793
MFC? Really?
KraHen is offline  
Thanks
1 User
Old 03/28/2012, 01:19   #4
 
Mr_PoP's Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 759
Received Thanks: 285
Quote:
Originally Posted by ×Holo View Post
This goes to CO2 Programming :]

OP:Glad that you got the crypto, keep it up~!
ah thnx

Quote:
Originally Posted by KraHen View Post
MFC? Really?
yeah what's wrong!?
Mr_PoP is offline  
Old 03/29/2012, 00:29   #5


 
CptSky's Avatar
 
elite*gold: 0
Join Date: Jan 2008
Posts: 1,434
Received Thanks: 1,147
Quote:
Originally Posted by Mr_PoP View Post
yeah what's wrong!?
Microsoft Foundation Class Library is a C++ wrapper of the Win32 C API. You can't make a MFC program... You're making a program that uses MFC.
CptSky is offline  
Old 03/29/2012, 01:15   #6
 
_DreadNought_'s Avatar
 
elite*gold: 28
Join Date: Jun 2010
Posts: 2,223
Received Thanks: 867
Try hooking the connect function instead, that's what my C++ and C# loaders do.

so
Code:
cbtProcAddr = GetProcAddress(hDll, "inet_addr");
to
Code:
cbtProcAddr = GetProcAddress(hDll, "connect");
_DreadNought_ is offline  
Thanks
1 User
Old 03/29/2012, 13:19   #7
 
Mr_PoP's Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 759
Received Thanks: 285
Quote:
Originally Posted by CptSky View Post
Microsoft Foundation Class Library is a C++ wrapper of the Win32 C API. You can't make a MFC program... You're making a program that uses MFC.
dude come on is not that obvious? should I say " am making a program that uses MFC!?" lol , what I said is that am creating an MFC application in VC++ hence it's uses MFC lol

Quote:
Originally Posted by _DreadNought_ View Post
Try hooking the connect function instead, that's what my C++ and C# loaders do.

so
Code:
cbtProcAddr = GetProcAddress(hDll, "inet_addr");
to
Code:
cbtProcAddr = GetProcAddress(hDll, "connect");
will try it thnx
Mr_PoP is offline  
Old 03/30/2012, 04:20   #8
 
_DreadNought_'s Avatar
 
elite*gold: 28
Join Date: Jun 2010
Posts: 2,223
Received Thanks: 867
Did it work?
_DreadNought_ is offline  
Old 03/30/2012, 08:11   #9
 
Nullable's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 390
Received Thanks: 321
It HAS to crash; you're pretty much overwriting inet_addr's bytecode with the representation of an IPv4 address, this is definitely not "hooking"/"patching".
Anyway,
Code:
MOV EAX, <IPAddress>
RETN 4
Try to build up from there. If you don't get what this is, time to research.

EDIT:
And, as previously pointed out by KraHen, MFC? Seriously?
Nullable is offline  
Thanks
1 User
Old 03/30/2012, 21:11   #10
 
Mr_PoP's Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 759
Received Thanks: 285
Quote:
Originally Posted by _DreadNought_ View Post
Did it work?
yeah hooked connect using Detours.

Quote:
Originally Posted by Nullable View Post
It HAS to crash; you're pretty much overwriting inet_addr's bytecode with the representation of an IPv4 address, this is definitely not "hooking"/"patching".
Anyway,
Code:
MOV EAX, <IPAddress>
RETN 4
Try to build up from there. If you don't get what this is, time to research.

EDIT:
And, as previously pointed out by KraHen, MFC? Seriously?
aha , I already got it working using Detours , and again MFC seriously rofl :P ("I have answered that question previously!!!")
Mr_PoP is offline  
Reply


Similar Threads Similar Threads
[1.11] CyberVeezy Hack-Loader *My newest Hacks are on this loader* [HOT;HOT]
03/19/2013 - WarRock Hacks, Bots, Cheats & Exploits - 18 Replies
Hallo liebe Hacker, da ich keine Lust mehr habe jedes mal wegen einem Hack einen neuen Thread aufmachen zu müssen habe ich hier ein kleines Tool programmiert das immer zeigt was mein neuester Hack ist. http://img4.fotos-hochladen.net/uploads/hackloade rptmbxvo014.png Das Tool macht nichts anderes, als Daten von meinem FTP auf dieses Programm zu downloaden und an alle kleinen Kiddy's die meine FTP Daten aus diesem Programm entnehmen wollen ihr habt keine Chance testet einfach warum ;) ...
[Release] ZSZC Loader (Edited From lolkop's loader)
10/28/2011 - SRO PServer Guides & Releases - 16 Replies
Hello , i have just Edited lolkop's loader for zszc Screen http://img825.imageshack.us/img825/4439/918201043 801am.jpg Download VirusTotal
need help createing an account on wow
07/23/2007 - World of Warcraft - 0 Replies
need help createing account on world of war craft i can`t even create the 10 day trial so some plz tell me a way to create one 10 day or even better a normal account



All times are GMT +2. The time now is 18:04.


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.