Here is how to connect to any server without altering the client exe at all. This can be done via DLL injection using the Detours library from Microsoft:
Code:
/**
* Detour Prototypes
*/
extern "C"
{
int /**/(WINAPI *Real_connect)(SOCKET, const struct sockaddr*, int) = connect;
};
/**
* winsock2!connect Detour Callback
*/
int __stdcall Mine_connect(SOCKET s, const struct sockaddr* name, int namelen)
{
auto saddr = (sockaddr_in*)name;
// Check if this is a login attempt..
if (saddr->sin_port >= htons(4000) && saddr->sin_port <= htons(4013))
{
auto naddr = HookCore::instance().m_ConfigurationManager->GetConfigString("noshook", "override_server_addr");
auto nport = HookCore::instance().m_ConfigurationManager->GetConfigInt("noshook", "override_server_port", 4001);
saddr->sin_addr.s_addr = inet_addr(naddr);
saddr->sin_port = htons(nport);
}
return Real_connect(s, name, namelen);
}
// Apply the mutex detour:
::DetourTransactionBegin();
::DetourUpdateThread(::GetCurrentThread());
::DetourAttach(&(PVOID&)Real_connect, Mine_connect);
::DetourTransactionCommit();
Useless, you can just run client using EntwellNostaleClientLoadFromIni
As you know because i gave you it looooong time ago it works good and in this case your right :P the Argument is better as the Code of the Thread Creator
For People who want to use the Argument Create a file called Config.ini and inside the file you write:
As you know because i gave you it looooong time ago it works good and in this case your right :P the Argument is better as the Code of the Thread Creator
For People who want to use the Argument Create a file called Config.ini and inside the file you write:
[NosTale_Network]
IP=YOUR_IP
Port=YOUR_PORT
It is still too difficult to understand for some people on this forum.
Then I step to the bad guy because I know it better. Knowledge is a double-edged sword.
Actually the code snippet it's pretty usefull (talking beyond NosTale), I've used connect detour countless times to redirect client connections whenever I'm not able/or lazy to found out how IP is given or anything.
[Source - VB.Net] Connection to Darkorbit 03/27/2013 - DarkOrbit - 6 Replies For this we need:
* Webbrowser
* 2 Textbox
* 1 Button
===============================================
VB.NET
01. Dim didWeNavigated? As Boolean = False
02. Dim gottheserver? As Boolean = False
Connection Closed [Snake's Source] 01/02/2013 - CO2 Private Server - 5 Replies I'am using snake's source and I did all the changes of the ips and those stuff and then I clicked on CONQUER_ONLINE_SERVER.EXE
and that appeared :
Connection Closed. Load server configuration! !
and after it nothing appears "Connection closed" means there is something wrong I guess...
[DLL / Source] Zoomhack using a Hook 08/18/2011 - GW Exploits, Hacks, Bots, Tools & Macros - 3 Replies Hi all.
This is another very simple Zoomhack made by me.
Since my others don't work anymore (used static memories :facepalm:), i made this one.
I'm 99.99% certain that this one won't stop working.
Sourcecode and DLL are attached to this post, so you can easiely download it.
I recommend my Injector from the Sticky posts.
I made it so it doesn't use any libs or additional functions to make it as most understandable as possible.
[Request] a Simple Connection/setup Guide for 4267 Source 03/05/2010 - CO2 Private Server - 3 Replies Okay, So I'm asking if someone could post a simple guide how to get 4267 running. I used search button, and didn't see any guides. Well, I saw one, but I'm having some errors while i'm trying to Pu that dot sql file in Navicat or phpMyAdmin.. some errors about Classes like mm 'Archer', '1', 0'. 5', <--- something like that, but gives me a plenty of errors for some reason. But Yeah, If someone could post a easy and simple guide, I'd appreciate.