How to inject lua code

06/13/2023 16:45 Acedia01#1
Hi there, so here's the source code for my project which generates a .dll to inject code into Elsrift x64.

You can easily improve it and make it work for other versions of Elsword.

Read the README file, it explains everything !


My Discord : Acedia#9192
VirusTotal : [Only registered and activated users can see links. Click Here To Register...]


UPDATE 23/07/2023 :

- Automatic address look-up for function hooking (no longer any need for IDA or similar)
- Possibility of loading Script.out during the game (by pressing 8), and not just at start-up.

Concerns :

- Still need to convert lua scripts to luajit x64 bytecode before loading the script.
- The dll console has display problems even though everything is working.
- Works on Elsrift and Elsword TW, but requires an injector to bypass anticheat on Elsword EU (game crash after loading)
06/17/2023 03:12 shedouzyy#2
Can u do a tutorial please , no one now How to use ida and The other tools you put
06/17/2023 09:31 Acedia01#3
Quote:
Originally Posted by shedouzyy View Post
Can u do a tutorial please , no one now How to use ida and The other tools you put
Well, if you don't know how to use IDA (or another one), you have 2 options:

- You can learn the basics from the thousands of tutorials on the internet, and then follow the instructions in the README (the links inside explain how to do it, step by step...).

- You wait for someone to make a more complete project that's easy to use. But they'll probably charge you for it, and that's normal because it takes time/knowledge to do.


And for those wondering why the few Lua functions (load, loadfile, loadstring ...) inside your LuaJit byecode injected script don't load scripts/code, it's because you have to compile them in Lua 5.1 first. But it's fairly easy to do so ...
06/17/2023 21:11 LOVE958185#4
good job.
06/20/2023 05:09 PlutoStrr#5
I have no experiences with lua or coding whatsoever but I'm gonna attempt to figure this out, trosh nest grind is way worse than this probably /hj :kappa:
06/25/2023 15:25 TheReifer#6
As the author of the g(old) project ELZLOADER, this is a very good code! I didn't test it actually very well but I hope somebody will get into it to make a new Lua Injector the x64 versions of Elsword.

Spoiler: maybe, when I have time, I will release a open-source Lua Injector for those, but I don't know, I need much time for it and I have to find that time xD.
06/26/2023 16:56 jjeancc#7
interesting haha
07/02/2023 19:12 Steck_Ihn_Rein!#8
the x64 version is already available lol :kappa:
maybe you are too outdated?
it works for x64 elsword europe and rift . im using it often and there is not much risk .
changing cp works too and farm el reso + eds [Only registered and activated users can see links. Click Here To Register...]
,
if you had questions note my discord :thinking:
LillyChan#5655
07/03/2023 02:46 Acedia01#9
Quote:
Originally Posted by Steck_Ihn_Rein! View Post
the x64 version is already available lol :kappa:
maybe you are too outdated?
it works for x64 elsword europe and rift . im using it often and there is not much risk .
changing cp works too and farm el reso + eds [Only registered and activated users can see links. Click Here To Register...]
,
if you had questions note my discord :thinking:
LillyChan#5655
This thread was created to make it easier for people to code their own injectors using my free source code as a basis.

So if you want to share free source code too, you're more than welcome to do so.

On the other hand, if you want to sell your stuff, go elsewhere.

Quote:
Originally Posted by TheReifer View Post
As the author of the g(old) project ELZLOADER, this is a very good code! I didn't test it actually very well but I hope somebody will get into it to make a new Lua Injector the x64 versions of Elsword.

Spoiler: maybe, when I have time, I will release a open-source Lua Injector for those, but I don't know, I need much time for it and I have to find that time xD.
Oh nice, I had used ELZLOADER for a while and the tool was great, we even managed to add the dungeon auto restart function towards the end.

If you need help, you can contact me on my Discord: Acedia#9192

I've since made scripts to modify buffs in depth (stack limit, duration, effects...) and it obviously works in raids/pvp. So if you want to add the script to your future injector, just let me know.
07/23/2023 17:26 Acedia01#10
#UPDATE
08/26/2023 00:57 tranzcend595#11
Is this still working
01/31/2024 20:15 soniguale#12
Quote:
Originally Posted by Acedia01 View Post
Hi there, so here's the source code for my project which generates a .dll to inject code into Elsrift x64.

You can easily improve it and make it work for other versions of Elsword.

Read the README file, it explains everything !


My Discord : Acedia#9192
VirusTotal : [Only registered and activated users can see links. Click Here To Register...]


UPDATE 23/07/2023 :

- Automatic address look-up for function hooking (no longer any need for IDA or similar)
- Possibility of loading Script.out during the game (by pressing 8), and not just at start-up.

Concerns :

- Still need to convert lua scripts to luajit x64 bytecode before loading the script.
- The dll console has display problems even though everything is working.
- Works on Elsrift and Elsword TW, but requires an injector to bypass anticheat on Elsword EU (game crash after loading)
i add u on discord
10/10/2024 11:37 BiteZgeg#13
Hi hi, may you accept my friend request on discord ? «baran*»