#define ORIGINAL_DSETUP_NAME L"stfl32.dll" // The original DSETUP.dll File renamed.
#define NEW_AUTH_SERVER_IP "127.0.0.1" // New AuthServer ip
#define NEW_AUTH_SERVER_PORT 5330 // New AuthServer port
#define NEW_GAME_SERVER_PORT 5340 // New GameServer Port
/* ================================================== ====================== *\
|| DO NOT EDIT ANYTHING UNDER THIS LINE UNLESS YOU KNOW WHAT YOU ARE DOING! ||
\* ================================================== ====================== */
#define ORIGINAL_AUTH_SERVER_PORT 5330 // Original AuthServer port.
#define ORIGINAL_GAME_SERVER_PORT 5340 // Original GameServer port.
#include <Windows.h>
#include <winsock.h>
#pragma comment (lib, "ws2_32.lib")
// All the variables used.
#pragma region Variables
// DSETUP Spoofing
void* jumpPointer[16 * 4]; // Pointers to the originals location of the DSETUP calls.
// Detected a game server connection.
gameServerSocket = SOCKET(socket);
pSockAddr->sin_port = htons(NEW_GAME_SERVER_PORT); // Change port.
break;
default:
break;
}
_asm popad;
return pConnect(socket, name, namelen);
}
#pragma endregion
// Initialization functions.
#pragma region Initialize functions
// A function that will add the detours.
bool InitializeSpoofing()
{
// Find the original instance of the DSETUP.DLL and load it into memory if possible.
HINSTANCE hDll = LoadLibrary(ORIGINAL_DSETUP_NAME); // ORIGINAL DSETUP.DLL
if (hDll == NULL)
{
MessageBox(0, L"Couldn't load DirectX dependencies.", 0, 0);
ExitProcess(0);
return false;
}
// We assume it will never load.
MessageBox(0, L"Couldn't load WinSock dependencies.", 0, 0);
ExitProcess(0);
}
Sleep(100);
} while (!socketDLL);
// We found the WinSock dll, hook it.
// Hook the connect function of ws2_32.dll.
pConnect = *(oConnect)DetourFunction((PBYTE)GetProcAddress(so cketDLL, "connect"), (PBYTE)ConnectModification, 5);
return 0;
}
#pragma endregion
// Main function, this is called when the DLL is loaded.
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) {
switch (fdwReason)
{
case DLL_PROCESS_DETACH:
// The DLL was detached from the process.
break;
case DLL_PROCESS_ATTACH:
// The DLL was attached to a process.
DisableThreadLibraryCalls(hinstDLL);
// Start the spoofing of the original functions.
if (InitializeSpoofing()) {
// Create another thread that detects when the Winsock dll is loaded.
CreateThread(NULL, NULL, InitializeSocketSpoofing, NULL, NULL, NULL);
You will need more than this to have a complete proxy working / private server.
Quote:
// Credits CodeDragon & ToXiiC
// Configuration
#define ORIGINAL_DSETUP_NAME L"stfl32.dll" // The original DSETUP.dll File renamed.
#define NEW_AUTH_SERVER_IP "127.0.0.1" // New AuthServer ip
#define NEW_AUTH_SERVER_PORT 5330 // New AuthServer port
#define NEW_GAME_SERVER_PORT 5340 // New GameServer Port
/* ================================================== ====================== *\
|| DO NOT EDIT ANYTHING UNDER THIS LINE UNLESS YOU KNOW WHAT YOU ARE DOING! ||
\* ================================================== ====================== */
#define ORIGINAL_AUTH_SERVER_PORT 5330 // Original AuthServer port.
#define ORIGINAL_GAME_SERVER_PORT 5340 // Original GameServer port.
#include <Windows.h>
#include <winsock.h>
#pragma comment (lib, "ws2_32.lib")
// All the variables used.
#pragma region Variables
// DSETUP Spoofing
void* jumpPointer[16 * 4]; // Pointers to the originals location of the DSETUP calls.
// Initialization functions.
#pragma region Initialize functions
// A function that will add the detours.
bool InitializeSpoofing()
{
// Find the original instance of the DSETUP.DLL and load it into memory if possible.
HINSTANCE hDll = LoadLibraryW(ORIGINAL_DSETUP_NAME); // ORIGINAL DSETUP.DLL
if (hDll == NULL)
{
MessageBoxW(0, L"Couldn't load DirectX dependencies.", 0, 0);
ExitProcess(0);
return false;
}
DWORD WINAPI InitializeSocketSpoofing(LPVOID lpParam) {
int attempts = 0;
HMODULE socketDLL = NULL;
do {
socketDLL = GetModuleHandleW(L"ws2_32.dll");
if (++attempts >= 300) {
// We assume it will never load.
MessageBoxW(0, L"Couldn't load WinSock dependencies.", 0, 0);
ExitProcess(0);
}
Sleep(100);
} while (!socketDLL);
// We found the WinSock dll, hook it.
// Hook the connect function of ws2_32.dll.
pConnect = *(oConnect)DetourFunction((PBYTE)GetProcAddress(so cketDLL, "connect"), (PBYTE)ConnectModification, 5);
return 0;
}
#pragma endregion
// Main function, this is called when the DLL is loaded.
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) {
switch (fdwReason)
{
case DLL_PROCESS_DETACH:
// The DLL was detached from the process.
break;
case DLL_PROCESS_ATTACH:
// The DLL was attached to a process.
DisableThreadLibraryCalls(hinstDLL);
// Start the spoofing of the original functions.
if (InitializeSpoofing()) {
// Create another thread that detects when the Winsock dll is loaded.
CreateThread(NULL, NULL, InitializeSocketSpoofing, NULL, NULL, NULL);
yes we working chapter 2 server/chapter 3
problem is find xor keys chapter 2
and topic how create dsetup.dll step by step for chapter 3 client whit new ip
[P-SERVER TOOL]DSETUP.dll Generator 10/19/2016 - WarRock Hacks, Bots, Cheats & Exploits - 12 Replies This DSETUP.dll is modified to connect to a custom IP.
This small tool allows you to edit the DSETUP.dll file to connect to any ip address you want.
Just fill in an IP address and press Generate, the DSETUP.dll file will be saved in the patcher's directory.
DOWNLOAD
DSETUPGen.zip
Virustotal
Cannot find DSETUP.dll ! 10/21/2012 - WarRock - 4 Replies Hi Com,
wenn ich WarRock starte kommt cannot find dsetup.dll please reinstall this application. :confused:
Versucht hab ich schon:
-neuinstallieren / download
-ccleaner durchlaufen lassen / registry
-dsetup.dll / (komplettes warrock) von einem freund in den ordner geschoben
Bitte um Hilfe !