English Additional Parameter 'HASH' to Player() icon

22 comments
10.08.11 03:12:23 am
like 8 like it!
621 b, 115 Downloads
PyKemis
User
Offline Off
It's very simple.

Code:
1
msg(player(id,"hash"))


However if you are the host of the game and you try to display the hash of id#1 it will instead show "UNKNOWN".

This should be used as a file integrity check, do not ban by hash.

I have added a simple test, you just need to say "what's my hash" and the game will return a msg2 to you.

IMPORTANT! DO NOT ADD ANY HOOKS AFTER HOOK_LOG THIS WILL CRASH YOUR GAME.

Instead write your hooks before:

Code:
1
2
addhook("hookbefore","hookbefore")
addhook("log","_log")
image
edited 3×, last 11.08.11 04:52:02 am
ok This file has been reviewed and approved by Seekay (04.12.15 02:00:49 pm)

Comments

22 comments
Goto Page
To the start Previous 1 2 Next To the start

Log in!

You need to log in to be able to write comments!Log in
11.08.11 11:25:49 pm
Up
PyKemis
User
Offline Off
Well my understanding is that to run certain cheats you do need to modify the cs2d executable to turn off cheat detection.

And I also know that cs2d does allow every hash to join. I'm going to find out the hashes for the mac/linux & windows hash. (Windows archive&windows setup are the same.)
11.08.11 07:14:07 pm
like I like it!
Up
PeterToman
COMMUNITY BANNED
Offline Off
Lol
4/5 = very good
1/5 = bad
This script is too simple, but also useful.
11.08.11 10:19:43 am
Up
Banaan
User
Offline Off
Wouldn't the server automatically check for invalid hashes? And cheats don't modify the executable itself, right? And, win setup, win archive, linux & mac all have different hashes, but are all legit.
11.08.11 09:30:51 am
like I like it!
Up
Infinite Rain
Reviewer
Offline Off
Wow perfect!
You made it just with lua?
Or with others PL?
11.08.11 09:28:19 am
like I like it!
Up
EngiN33R
Moderator
Offline Off
An anti-cheat system looks like the most practical use for this script. Good job!
11.08.11 06:34:36 am
like I like it!
Up
Cirium
User
Offline Off
Nice Idea, Its a cool script, and works well.

Im just not to sure what to use it for
11.08.11 05:54:48 am
Up
PyKemis
User
Offline Off
To verify file integrity, if I'm right, banning every hash besides the original should keep the hackers away.
10.08.11 06:34:47 pm
like I like it!
Up
Infinite Rain
Reviewer
Offline Off
what is hash?
Explain it
10.08.11 05:23:48 pm
Up
PyKemis
User
Offline Off
If the has is used to check file's md5 then yeah that should work. Of course it's simple, but bad? Please explain how this file is bad.
10.08.11 04:28:20 pm
like I like it!
Up
buraxia3
User
Offline Off
Then why don't think thinked it, idiot?
10.08.11 04:18:21 pm
like I like it!
Up
MuzraF
User
Offline Off
okay it is easy and good ; 4/5
edited 1×, last 11.08.11 09:26:54 am
10.08.11 03:50:15 pm
Up
Ax3
User
Offline Off
So it's possible to make an anti-cheat system?
10.08.11 02:42:52 pm
Up
PyKemis
User
Offline Off
So since this could be used to verify malformed exes...you can ban people who don't have that hash?So since this could be used to verify malformed exes...you can ban people who don't have that hash?
10.08.11 11:22:21 am
Up
dizziness
User
Offline Off
@Banaan Nice Information, I will never use this lua ... brr like ban global
10.08.11 11:19:19 am
Up
Banaan
User
Offline Off
Don't use this to ban players!

People share hashes. The hash is used to verify the client version, so everybody who has installed CS2D with the windows setup will have the same hash, everybody who downloaded the windows zip client will have the same hash, etc.

Nice idea, except banning one hash will mean you ban almost everybody.

Just check your hash, I'm sure it'll be 28cefe3ac30ab30ab5268978955263db2736128. Like most other people.
10.08.11 10:48:26 am
Up
dizziness
User
Offline Off
For what this lua script? Looks like from the screenshot it like a MD5, Am i correct?
10.08.11 03:29:33 am
Up
PyKemis
User
Offline Off
Textual Context has written:
However if you are the host of the game and you try to display the hash of id#1 it will instead show "UNKNOWN".


This is for a dedicated server or for other people who join your listen server.

@danielmen123 lol not ontopic, however to answer your question: I don't play CS2D--I enjoy modifying it though.
10.08.11 03:28:45 am
like I like it!
Up
danielmen123
User
Offline Off
Wi Textual Context What is Your Name in cs2d
please contect
10.08.11 03:24:06 am
Up
Bowlinghead
User
Offline Off
Everytime its new...
But anyway what brings that script?
Say: "What's my hash"
Display: UNKNOWN

I dont know what is so good if you know that your hash is "UNKNOWN"...
10.08.11 03:23:33 am
like I like it!
Up
RAVENOUS
BANNED
Offline Off
Wow, very nice. Indeed a new way to ban some people by using their (I hope unique) hash code. nice
To the start Previous 1 2 Next To the start