Register for your free account! | Forgot your password?

You last visited: Today at 03:45

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

Advertisement



[Source Code] AutoInjection

Discussion on [Source Code] AutoInjection within the Nostale Hacks, Bots, Cheats & Exploits forum part of the Nostale category.

Reply
 
Old   #1
 
Cryless~'s Avatar
 
elite*gold: 0
Join Date: Sep 2015
Posts: 482
Received Thanks: 532
[Source Code] AutoInjection

There is not much to say, this trick allows you to inject code at Run-time.


Guide:
- Close NosTale /!\ JUST DO IT /!\
- Open NosTale folder and rename EWSF.EWS to EWSF.dll (or no SplashScreen will appear anymore) [optional]
- Compile your code as EWSF.EWS and move it into NosTale folder

Code:
/*
*	A proof-of-concept tool for forcing the client to self inject malicious code at Run-time
*
*	Cryless Domore (@crylessdomore)
*	July 10, 2017
*	https://github.com/crylessdomore/
*/

#include <Windows.h>
#include <detours.h>

BOOL(WINAPI *oFreeLibrary)(HMODULE hLibModule);

FARPROC WINAPI oShowNostaleSplash = NULL;
FARPROC WINAPI oFreeNostaleSplash = NULL;

extern "C" __declspec(dllexport) void __declspec(naked) ShowNostaleSplash()
{
	__asm jmp oShowNostaleSplash
}

extern "C" __declspec(dllexport) void __declspec(naked) FreeNostaleSplash()
{
	__asm jmp oFreeNostaleSplash
}

BOOL WINAPI FreeLibrary_HOOK(HMODULE hLibModule)
{
	char aLibFileName[MAX_PATH];
	GetModuleFileNameA(hLibModule, aLibFileName, sizeof(aLibFileName));

	if (strstr(aLibFileName, "EWSF.EWS")) {
		hLibModule = GetModuleHandleA("EWSF.dll");
	}

	return oFreeLibrary(hLibModule);
}

void OnAttach()
{
	// Write your code here...
	MessageBoxA(NULL, "Hacking involves a different way of looking at problems that no one's thought of.", "Walter O'Brien", MB_OK);
}

BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpvReserved)
{
	switch (dwReason)
	{
	case DLL_PROCESS_ATTACH:
		HMODULE hLibModule = LoadLibraryA("EWSF.dll");
		oShowNostaleSplash = GetProcAddress(hLibModule, "ShowNostaleSplash");
		oFreeNostaleSplash = GetProcAddress(hLibModule, "FreeNostaleSplash");

		oFreeLibrary = FreeLibrary;

		DetourTransactionBegin();
		DetourUpdateThread(GetCurrentThread());
		DetourAttach(&(PVOID&)oFreeLibrary, FreeLibrary_HOOK);
		DetourTransactionCommit();

		DisableThreadLibraryCalls(hInstance);
		CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)OnAttach, NULL, NULL, NULL);
	}

	return TRUE;
}
Cryless~ is offline  
Thanks
12 Users
Old 07/10/2017, 05:17   #2
 
Cryless~'s Avatar
 
elite*gold: 0
Join Date: Sep 2015
Posts: 482
Received Thanks: 532
I did not expect to receive so much attention, thank you very much.

ChangeLog:
- NosMall is now working (bugfix)
- Code optimization
Cryless~ is offline  
Old 07/11/2017, 09:49   #3
 
atom0s's Avatar
 
elite*gold: 0
Join Date: May 2013
Posts: 175
Received Thanks: 125
"no one's thought of" lol.. this is nothing new and is commonly done with dinput.dll for various games for the same purpose.
atom0s is offline  
Old 07/11/2017, 12:51   #4
 
DarkyZShadow's Avatar
 
elite*gold: 0
Join Date: Nov 2015
Posts: 211
Received Thanks: 141
Quote:
Originally Posted by atom0s View Post
"no one's thought of" lol.. this is nothing new and is commonly done with dinput.dll for various games for the same purpose.
Of course, that's a basic technique (the proxy DLL) but to my knowledge, nobody has released this method on the Nostale forum.

Best regards,
A random developer
DarkyZShadow is offline  
Thanks
3 Users
Old 07/12/2017, 20:37   #5
 
Cryless~'s Avatar
 
elite*gold: 0
Join Date: Sep 2015
Posts: 482
Received Thanks: 532
Quote:
Originally Posted by atom0s View Post
"no one's thought of" lol.. this is nothing new and is commonly done with dinput.dll for various games for the same purpose.
With what courage do you say that after you did post a generic hook for the 'connect' function in this section?

At least you know who you are, a brainless just like an atom.
Cryless~ is offline  
Thanks
1 User
Old 10/04/2017, 23:05   #6
 
elite*gold: 0
Join Date: Mar 2015
Posts: 12
Received Thanks: 0
What can i do with this hack?
ivanolo7 is offline  
Old 10/04/2017, 23:37   #7
 
Pumba98's Avatar
 
elite*gold: 55
Join Date: Jan 2011
Posts: 1,240
Received Thanks: 1,187
Quote:
Originally Posted by ivanolo7 View Post
What can i do with this hack?
inject code at runtime
You can do with it whatever you can do with code
Pumba98 is offline  
Old 10/05/2017, 05:35   #8
 
elite*gold: 0
Join Date: Sep 2017
Posts: 49
Received Thanks: 2
Someone Willing to explain or make a video of benifits u can get off injecting on a runtime ?
i can pay if your lazy to reply or explain XD
aliazanoor is offline  
Old 10/05/2017, 07:55   #9
 
Pumba98's Avatar
 
elite*gold: 55
Join Date: Jan 2011
Posts: 1,240
Received Thanks: 1,187
Quote:
Originally Posted by aliazanoor View Post
Someone Willing to explain or make a video of benifits u can get off injecting on a runtime ?
i can pay if your lazy to reply or explain XD
You can load any hacks on every startup without needing to inject it or you could for example steal account data unseen
Pumba98 is offline  
Old 10/05/2017, 13:31   #10
 
elite*gold: 0
Join Date: Mar 2015
Posts: 12
Received Thanks: 0
Quote:
Originally Posted by Pumba98 View Post
inject code at runtime
You can do with it whatever you can do with code
For expample you can dupe items or increase your gold?
ivanolo7 is offline  
Old 10/05/2017, 13:33   #11
 
Pumba98's Avatar
 
elite*gold: 55
Join Date: Jan 2011
Posts: 1,240
Received Thanks: 1,187
Quote:
Originally Posted by ivanolo7 View Post
For expample you can dupe items or increase your gold?
If you know any dupes
Pumba98 is offline  
Old 10/05/2017, 14:16   #12
 
elite*gold: 0
Join Date: Mar 2015
Posts: 12
Received Thanks: 0
Quote:
Originally Posted by Pumba98 View Post
If you know any dupes
No one is going to tell me? xDDD
ivanolo7 is offline  
Old 10/05/2017, 14:23   #13
 
Pumba98's Avatar
 
elite*gold: 55
Join Date: Jan 2011
Posts: 1,240
Received Thanks: 1,187
Quote:
Originally Posted by ivanolo7 View Post
No one is going to tell me? xDDD
There is no public
Pumba98 is offline  
Old 10/06/2017, 05:50   #14
 
elite*gold: 0
Join Date: Sep 2017
Posts: 49
Received Thanks: 2
Any private to buy ?!
aliazanoor is offline  
Old 10/08/2017, 11:53   #15
 
Cryless~'s Avatar
 
elite*gold: 0
Join Date: Sep 2015
Posts: 482
Received Thanks: 532
Quote:
Originally Posted by aliazanoor View Post
Any private to buy ?!
Just open a thread somewhere else and stop spamming!
Cryless~ is offline  
Thanks
2 Users
Reply


Similar Threads Similar Threads
[Source Code] Simple Injector Source Code ...
06/05/2013 - S4 League Hacks, Bots, Cheats & Exploits - 7 Replies
Hi there today i have found some source code for a simple injector and i want to share it with you :) translated to English ( I know It's nothing , but i want to do something ) :) Code here #RequireAdmin #include <GUIConstants.au3>



All times are GMT +1. The time now is 03:45.


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