|
You last visited: Today at 18:04
Advertisement
Createing A Loader!
Discussion on Createing A Loader! within the CO2 Programming forum part of the Conquer Online 2 category.
03/27/2012, 18:05
|
#1
|
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?
|
|
|
03/27/2012, 21:05
|
#2
|
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~!
|
|
|
03/27/2012, 21:53
|
#3
|
elite*gold: 0
Join Date: Jul 2006
Posts: 2,216
Received Thanks: 793
|
MFC? Really?
|
|
|
03/28/2012, 01:19
|
#4
|
elite*gold: 0
Join Date: Apr 2008
Posts: 759
Received Thanks: 285
|
Quote:
Originally Posted by ×Holo
This goes to CO2 Programming :]
OP:Glad that you got the crypto, keep it up~!
|
ah thnx
Quote:
Originally Posted by KraHen
MFC? Really?
|
yeah what's wrong!?
|
|
|
03/29/2012, 00:29
|
#5
|
elite*gold: 0
Join Date: Jan 2008
Posts: 1,434
Received Thanks: 1,147
|
Quote:
Originally Posted by Mr_PoP
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.
|
|
|
03/29/2012, 01:15
|
#6
|
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");
|
|
|
03/29/2012, 13:19
|
#7
|
elite*gold: 0
Join Date: Apr 2008
Posts: 759
Received Thanks: 285
|
Quote:
Originally Posted by CptSky
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_
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
|
|
|
03/30/2012, 04:20
|
#8
|
elite*gold: 28
Join Date: Jun 2010
Posts: 2,223
Received Thanks: 867
|
Did it work?
|
|
|
03/30/2012, 08:11
|
#9
|
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?
|
|
|
03/30/2012, 21:11
|
#10
|
elite*gold: 0
Join Date: Apr 2008
Posts: 759
Received Thanks: 285
|
Quote:
Originally Posted by _DreadNought_
Did it work?
|
yeah hooked connect using Detours.
Quote:
Originally Posted by Nullable
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!!!")
|
|
|
|
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.
|
|