Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Nostale > Nostale Hacks, Bots, Cheats & Exploits
You last visited: Today at 05:56

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

Advertisement



[SOURCE] Hook Connection To Any Server

Discussion on [SOURCE] Hook Connection To Any Server within the Nostale Hacks, Bots, Cheats & Exploits forum part of the Nostale category.

Reply
 
Old   #1
 
atom0s's Avatar
 
elite*gold: 0
Join Date: May 2013
Posts: 175
Received Thanks: 125
[SOURCE] Hook Connection To Any Server

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();
atom0s is offline  
Thanks
4 Users
Old 11/14/2016, 19:38   #2
 
Cryless~'s Avatar
 
elite*gold: 0
Join Date: Sep 2015
Posts: 482
Received Thanks: 532
Useless, you can just run client using EntwellNostaleClientLoadFromIni
Cryless~ is offline  
Thanks
1 User
Old 11/14/2016, 20:31   #3
 
Bejine's Avatar
 
elite*gold: 0
Join Date: Jul 2014
Posts: 283
Received Thanks: 317
Quote:
Originally Posted by SystemX64™ View Post
Useless, you can just run client using EntwellNostaleClientLoadFromIni
Yup, it doesn't really bug, so it works perfectly with any IP/Port.
Bejine is offline  
Thanks
1 User
Old 11/14/2016, 20:48   #4

 
FI0w's Avatar
 
elite*gold: 50
Join Date: Jul 2014
Posts: 1,700
Received Thanks: 1,165
Quote:
Originally Posted by SystemX64™ View Post
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:

[NosTale_Network]
IP=YOUR_IP
Port=YOUR_PORT
FI0w is offline  
Thanks
3 Users
Old 11/14/2016, 21:02   #5
 
Cryless~'s Avatar
 
elite*gold: 0
Join Date: Sep 2015
Posts: 482
Received Thanks: 532
Quote:
Originally Posted by xSensitivex View Post
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.
Cryless~ is offline  
Old 11/16/2016, 12:17   #6
 
ernilos's Avatar
 
elite*gold: 20
Join Date: Jan 2012
Posts: 766
Received Thanks: 645
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.
ernilos is offline  
Thanks
1 User
Old 04/18/2021, 04:05   #7
 
elite*gold: 0
Join Date: Apr 2021
Posts: 1
Received Thanks: 0
Bara 3asba
vicy11 is offline  
Reply


Similar Threads Similar Threads
[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.



All times are GMT +1. The time now is 05:57.


Powered by vBulletin®
Copyright ©2000 - 2026, 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 ©2026 elitepvpers All Rights Reserved.