• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Suggestion] Ban system by Hardware ID/Serial
#22
(2019-10-24, 08:28 AM)Tama Wrote:
(2019-10-15, 04:43 PM)Markski Wrote:
(2019-10-01, 04:34 AM)Tama Wrote: Ban system with gpci ip?

Double check, double fun LMAO XD





Why you need only hadware ID ban if you can ban someone with IP PLUS GPCI function, first you need to check their GPCI, then check their IP too.

Yeah it seems kinda waste of mem but..... :\



Both of these are easy to bypass.



How?...



There is a plenty of security you can go with, lets try with udb hash.





PHP Code:
native gpci(playeridserial[], len);



new 

? ? ? 
YourUDB_Hash;







stock?udb_hash(buf[])?{ 

????new?
length=strlen(buf); 

????new?
s1?=?1

????new?
s2?=?0

????new?
n

????for?(
n=0;?n<length;?n

????{ 

???????
s1?=?(s1??buf[n])?%?65521

???????
s2?=?(s2??s1)?????%?65521

????} 

????return?(
s2?<<?16)??s1





public 
OnPlayerConnect(playerid) {

???? new 
MyUDB_HashMyGPCI[24], MyIP[16];

???? 
GetPlayerIp(playeridMyIPsizeof(MyIP));



???? 
gpci(playeridMyGPCI24);



? ?? 
MyUDB_Hash udb_hash(sprintf("%syour_secret_text_here%s"MyIPMyGPCI));

?? 



? ?? if(
YourUDB_Hash != MyUDB_Hash)

? ?? {

? ? ? ? ? 
SendClientMessage(playerid, -1"Who are you!!, if you think this is a mistake then please contact an administrator bla bla bla");

? ? ?}





This post is extremelly old but it feels important to make this clear: All client input can be manipulated. Creating such a way to identify hardware id in a non-manipulable way is borderline or outright impossible. Specially in open.mp's case, where the software will allegedly be open sourced, meaning many hands, good or malicious will be able to see the inner workings in detail.



I appreciate the usefulness in such a feature but I doubt something that works better than GPCI can be achievable at least for the time being.
  Reply


Messages In This Thread
Ban system by Hardware ID/Serial - by Maik - 2019-06-06, 03:47 PM
RE: Ban system by Hardware ID/Serial - by DTV - 2019-06-06, 08:18 PM
RE: Ban system by Hardware ID/Serial - by Deity - 2019-06-07, 01:44 AM
RE: Ban system by Hardware ID/Serial - by Logan - 2019-06-07, 04:26 PM
RE: Ban system by Hardware ID/Serial - by Irelio - 2019-06-08, 08:42 AM
RE: Ban system by Hardware ID/Serial - by DTV - 2019-06-09, 03:09 AM
RE: Ban system by Hardware ID/Serial - by DTV - 2019-06-19, 11:37 PM
RE: Ban system by Hardware ID/Serial - by Jimmy - 2019-07-12, 05:24 AM
RE: Ban system by Hardware ID/Serial - by Jimmy - 2019-07-28, 05:58 AM
RE: Ban system by Hardware ID/Serial - by gzxmx94 - 2019-07-30, 10:32 PM
RE: Ban system by Hardware ID/Serial - by Markski - 2019-08-21, 03:32 PM
RE: Ban system by Hardware ID/Serial - by Tama - 2019-10-01, 04:34 AM
RE: Ban system by Hardware ID/Serial - by Markski - 2019-10-15, 04:43 PM
RE: Ban system by Hardware ID/Serial - by Tama - 2019-10-24, 08:28 AM
RE: Ban system by Hardware ID/Serial - by Markski - 2020-04-19, 04:12 AM
RE: Ban system by Hardware ID/Serial - by Y_Less - 2020-04-21, 04:21 PM
RE: Ban system by Hardware ID/Serial - by Markski - 2020-04-21, 11:45 PM
RE: Ban system by Hardware ID/Serial - by Woo - 2020-06-18, 10:11 AM
RE: Ban system by Hardware ID/Serial - by gzxmx94 - 2020-06-22, 07:15 AM
RE: Ban system by Hardware ID/Serial - by Riddick - 2020-07-06, 04:58 PM
RE: Ban system by Hardware ID/Serial - by Logan - 2020-07-14, 02:57 AM
RE: Ban system by Hardware ID/Serial - by CJ101 - 2020-10-12, 04:23 PM
RE: Ban system by Hardware ID/Serial - by Pinch - 2020-10-13, 08:59 AM

Forum Jump: