|
You last visited: Today at 03:45
Advertisement
[Source Code] AutoInjection
Discussion on [Source Code] AutoInjection within the Nostale Hacks, Bots, Cheats & Exploits forum part of the Nostale category.
07/08/2017, 18:20
|
#1
|
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;
}
|
|
|
07/10/2017, 05:17
|
#2
|
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
|
|
|
07/11/2017, 09:49
|
#3
|
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.
|
|
|
07/11/2017, 12:51
|
#4
|
elite*gold: 0
Join Date: Nov 2015
Posts: 211
Received Thanks: 141
|
Quote:
Originally Posted by atom0s
"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
|
|
|
07/12/2017, 20:37
|
#5
|
elite*gold: 0
Join Date: Sep 2015
Posts: 482
Received Thanks: 532
|
Quote:
Originally Posted by atom0s
"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. 
|
|
|
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?
|
|
|
10/04/2017, 23:37
|
#7
|
elite*gold: 55
Join Date: Jan 2011
Posts: 1,240
Received Thanks: 1,187
|
Quote:
Originally Posted by ivanolo7
What can i do with this hack?
|
inject code at runtime 
You can do with it whatever you can do with code
|
|
|
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
|
|
|
10/05/2017, 07:55
|
#9
|
elite*gold: 55
Join Date: Jan 2011
Posts: 1,240
Received Thanks: 1,187
|
Quote:
Originally Posted by aliazanoor
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
|
|
|
10/05/2017, 13:31
|
#10
|
elite*gold: 0
Join Date: Mar 2015
Posts: 12
Received Thanks: 0
|
Quote:
Originally Posted by Pumba98
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?
|
|
|
10/05/2017, 13:33
|
#11
|
elite*gold: 55
Join Date: Jan 2011
Posts: 1,240
Received Thanks: 1,187
|
Quote:
Originally Posted by ivanolo7
For expample you can dupe items or increase your gold?
|
If you know any dupes
|
|
|
10/05/2017, 14:16
|
#12
|
elite*gold: 0
Join Date: Mar 2015
Posts: 12
Received Thanks: 0
|
Quote:
Originally Posted by Pumba98
If you know any dupes
|
No one is going to tell me? xDDD
|
|
|
10/05/2017, 14:23
|
#13
|
elite*gold: 55
Join Date: Jan 2011
Posts: 1,240
Received Thanks: 1,187
|
Quote:
Originally Posted by ivanolo7
No one is going to tell me? xDDD
|
There is no public
|
|
|
10/06/2017, 05:50
|
#14
|
elite*gold: 0
Join Date: Sep 2017
Posts: 49
Received Thanks: 2
|
Any private to buy ?!
|
|
|
10/08/2017, 11:53
|
#15
|
elite*gold: 0
Join Date: Sep 2015
Posts: 482
Received Thanks: 532
|
Quote:
Originally Posted by aliazanoor
Any private to buy ?!
|
Just open a thread somewhere else and stop spamming!
|
|
|
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.
|
|