|
You last visited: Today at 05:56
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.
11/14/2016, 19:34
|
#1
|
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();
|
|
|
11/14/2016, 19:38
|
#2
|
elite*gold: 0
Join Date: Sep 2015
Posts: 482
Received Thanks: 532
|
Useless, you can just run client using EntwellNostaleClientLoadFromIni
|
|
|
11/14/2016, 20:31
|
#3
|
elite*gold: 0
Join Date: Jul 2014
Posts: 283
Received Thanks: 317
|
Quote:
Originally Posted by SystemX64™
Useless, you can just run client using EntwellNostaleClientLoadFromIni
|
Yup, it doesn't really bug, so it works perfectly with any IP/Port.
|
|
|
11/14/2016, 20:48
|
#4
|
elite*gold: 50
Join Date: Jul 2014
Posts: 1,700
Received Thanks: 1,165
|
Quote:
Originally Posted by SystemX64™
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
|
|
|
11/14/2016, 21:02
|
#5
|
elite*gold: 0
Join Date: Sep 2015
Posts: 482
Received Thanks: 532
|
Quote:
Originally Posted by xSensitivex
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.
|
|
|
11/16/2016, 12:17
|
#6
|
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.
|
|
|
04/18/2021, 04:05
|
#7
|
elite*gold: 0
Join Date: Apr 2021
Posts: 1
Received Thanks: 0
|
Bara 3asba
|
|
|
 |
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.
|
|