Changing nickname with hacks
#1

With some hacks is possible to change the nickname in game. It doesn't disconnect the player, but only changes his nickname.

This is part of the server logs.
[20:46:54] [join] Peppe has joined the server (0:127.0.0.1)
// NO DISCONNECT LOG
[20:47:16] [join] OtherName has joined the server (0:127.0.0.1)

What I do clientside is this:
1 Join the server with the nickname Peppe.
2 Use the hack to change the nickname into "OtherName".

In serverside the OnPlayerDisconnect for Peppe isn't called and this can be abused.
Reply
#2

Yeah, I have faced this problem before.

Quote:
Originally Posted by leong124
Посмотреть сообщение
You can add an array to check if the player slot is used in your script. If someone try to connect with an used player ID, ban him.



Can they spawn even if I return 0 in OnPlayerRequestSpawn?
BTW you can always use that secret native to check for bots. GetPlayerVersion returns invalid version name too for them, while IsPlayerNPC returns false.
Reply
#3

Yea, under OnPlayerDisconnect it's really annoying. Perhaps store it under the player connecting, and then under the player disconnecting, get their name, compare it to the variable stored and then if it is, then you can save the user file, if not, then just do a normal kick. Could also set a 10 second timer which loops all the players and makes sure that they're legit named players.
Reply
#4

I Know this bot and i already made a Filterscript to defend your server from this bots attack like [HAX] more and more test this Anti-Cheat
https://sampforum.blast.hk/showthread.php?tid=474395
this the best you can use it
Reply
#5

Quote:
Originally Posted by MoHaNeD14
Посмотреть сообщение
I Know this bot and i already made a Filterscript to defend your server from this bots attack like [HAX] more and more test this Anti-Cheat
https://sampforum.blast.hk/showthread.php?tid=474395
this the best you can use it
That are not bots.

This is the main problem of this bug, that I temporarily fixed: if a player changes his name in game with this hack, the OnPlayerDisconnect with his previous name will not be called, so in this way I can avoid any saving system.
Reply
#6

Quote:
Originally Posted by PeppeAC
Посмотреть сообщение
That are not bots.

This is the main problem of this bug, that I temporarily fixed: if a player changes his name in game with this hack, the OnPlayerDisconnect with his previous name will not be called, so in this way I can avoid any saving system.
Fixes much easier. And it is not a 'Changing nickname' it is reconnect without calling OnPlayerDisconnect
Reply
#7

Quote:
Originally Posted by MoHaNeD14
Посмотреть сообщение
I Know this bot and i already made a Filterscript to defend your server from this bots attack like [HAX] more and more test this Anti-Cheat
https://sampforum.blast.hk/showthread.php?tid=474395
this the best you can use it
Maybe thats why you got banned sadly
Reply
#8

Some people used this hack on my server
it floods the chat with name change messages and the server log aswell.
Reply
#9

I've wrote some code that might fix the issue:

http://pastebin.com/RE64mGfS

However, I can't test it atm. If someone can test it for me then that would be great!
Reply
#10

Quote:
Originally Posted by Emmet_
Посмотреть сообщение
I've wrote some code that might fix the issue:

http://pastebin.com/RE64mGfS

However, I can't test it atm. If someone can test it for me then that would be great!
This is the most bad-coded script I ever seen...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)