Hi guys, i have made an anticheat software that detect all the more used hacks, prevent the dualbox and will prevent for bots if any here can help me with a little code for the server side.
Well, my software ad the protection client side. The idea is that if you have not opened the game with the anticheat, the server will kick you, like a gameguard system, but with my custom gameguard.
My software will add all the protection. When you run the launcher (anticheat), it will take your ip address and will save it in a table of the server database, with a value that indicates that the user can play in the server. When the anticheat is closed, it will delete this value with the ip adress.
Now i need to code in the server side. I need that the server verify the ip of the player, and verify if it ip is in the allowed players table (players that have the anticheat open), and if this ip is not in the table the server kick this player, and if it is in the table it can play without being kicked.
I simply need this fragment of code, and how can i implement this. I will thank you very much if you can help me.
Player open anticheat >> anticheat detects user ip >> send ip to the table of allowed users >> the game is launched >> when you enter the world of lineage the server determines the ip of the player, and if it's on the allowed users table he can play, if not, it get kicked.
Other thing that i can do is that the anticheat ask the user to login with his game acount. The anticheat send this account (if its correct) to the allowed users table.
When you login, if the account that you are entering is in the table of allowed users, you can login. If not, you cant.
I need the code to verify if the account you are entering is in the table of allowed users. If its here, you can login, if not, you cant.
Other thing that i need is that the server delete this value by a period of time. Like every 5 minutes the server deletes the value, so the anticheat delete and rewrite it every 4 minutes.
When the server deletes de value it verify it other time.
With this im securing that if the user close the anticheat by killing the process, the value get deleted and never rewrited without reopen the anticheat.
Plz help, i will thank you very much!
Sorry for my bad english
[Help] Login server code
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
- frankpo
- Posts: 44
- Joined: Wed Sep 16, 2009 11:46 am
- Location: Argentina
- jurchiks
- Posts: 6769
- Joined: Sat Sep 19, 2009 4:16 pm
- Location: Eastern Europe
Re: [Help] Login server code
for experienced people the core side shouldn't be much of a problem, BUT the fact that you're talking about client modding here... might close this topic quite soon
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
-
- Posts: 89
- Joined: Mon Sep 15, 2008 8:51 am
Re: [Help] Login server code
Check how the loginserver handles IP bans, and adapt it to your needs.
- Szponiasty
- Advanced User
- Posts: 557
- Joined: Mon Apr 21, 2008 1:31 pm
- Location: Eastern Poland
Re: [Help] Login server code
Besides check accounts table too. You'll see that all you need is put in database when player logs on the server. Lil mod, add 2nd table and add adding login, ips and what you else want to that 2nd base too - and you have accounts logs quickly accessible anywhere in core/scripts/php 

And in the next chronicle they went into space, fighting the evil empire... In a galaxy far, far away xD
- frankpo
- Posts: 44
- Joined: Wed Sep 16, 2009 11:46 am
- Location: Argentina
Re: [Help] Login server code
The topic is not about client modding, the clien modding is my problem and i not giving any info of how to do it or asking for help of the client modding.jurchiks wrote:for experienced people the core side shouldn't be much of a problem, BUT the fact that you're talking about client modding here... might close this topic quite soon
Im only asking for help for a server side code. Please read all the topic before doing a answer.
I think that i can program this on jython, in scripts.
What do you think?
-
- Posts: 915
- Joined: Thu Sep 03, 2009 6:36 pm
- Location: Israel
- Contact:
Re: [Help] Login server code
nope will have to be in the java core, either in login server or in EnterWorld
- frankpo
- Posts: 44
- Joined: Wed Sep 16, 2009 11:46 am
- Location: Argentina
Re: [Help] Login server code
Any can show me a code example for this? Im programmer but i not learned java and im very complicated with the time to learn java and learn the l2j code.
Please if any can help me i will thank him a lot!
Please if any can help me i will thank him a lot!