Forum
CS2D General CS2D Bug Reports@ Steru, I don't think this is how it's done, and I suggest against trying anything weird.
Also I plan to let all my server users use this kind of protection. In a conception, it can have web-interface. If user will send a HTTP GET request (means he will open a link in browser as regularly) and it will look like www.example.com/trust.php?uid=12345 the handler on server-side will record the UID and IP and will trust it. The solution to prevent HTTP GET requests from violators is a Basic authentication. It is so simply to be configured.
If you are the one admin and would like to write a script just for yourself, on the web-side you can use something like this:
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
<?php // Makes your current IP as the one admin's IP should be trusted. // Works with HTTP Basic Authentication. See for: https://www.php.net/manual/en/reserved.variables.server.php file_put_contents("/usr/cs2d/sys/lua/data/ip-".$_GET['uid'].".txt", $_SERVER['REMOTE_ADDR']); file_put_contents("/usr/logs.txt", "[".time()."]"." added for ".$_SERVER['PHP_AUTH_USER']." from ".$_SERVER['REMOTE_ADDR']."."); die();
Not tested by the way, but this rewrite I did looks better than the first version of this script I made in before.
I think this is a good idea to use until the vulnerability will be fixed in CS2D and/or USGN code, so I suggest it to all server owners.
The Dark Shadow has written
@ Mami Tomoe: Can they log-in into their USGN accounts here or only in-game?
Mami Tomoe has written
@ The Dark Shadow, the exploit only works in-game.
Steru has written
Yes 2 days ago i got banned in my server. Some new player join, in 1 minute change USGN ID to my USGN ID and ban me by Admin script... Idk how he do it but propably cheat engine? Can someone check it?
Mami Tomoe has written
@ Steru, I don't think this is how it's done, and I suggest against trying anything weird.
I just cracked it yesterday with Steru, and I can 100% confirm the exploit. Looks like USGN Master Server gets IP (and maybe some random hash) from CS2D Client. After some idle time in menu, the target/victim USGN is cracked, and you can play on any server. Also looks like I couldn't log into somebody's USGN that he wasn't currently playing on.
USGN in console was saying
U.S.G.N.: Ping/State 'not playing'instead of
U.S.G.N.: Ping/State 'playing'
This is not normal, because if the victim is being hit by a turret, the value will remain as the source's held weapon.
Example:
If CT gets hit by a T's turret, but the T is currently holding a knife, the weapon will be set as the knife, while the object will be set as the turret.
LUA ERROR: Cannot add '_hostagedamage' to hook 'hostagedamage' (hook does not exist)!
hook doesn't exist ingame
@ Mami Tomoe: You are right. This seems to be wrong. Also in some other hooks maybe. Will check.
@ mrc: true, there's a typo in the code.
It should work when you use
hostedamage. Will be fixed.
edited 3×, last 17.10.21 12:19:46 pm
@ DC: plis bro
can someone help me create an awp script like do for fun awp because i want to play with my friends with this script can someone help me
I just want to have fun with this script for fun # awp his script is very good
can someone also help me create an aim_shot style script please always wanted to play with this script plis
@ DC: what do you think about teaching people to script
There's official guide to Lua scripting: https://www.cs2d.com/tut/tkdlua/luatut.html. It's not related to the AWP script you've mentioned, but the article would be helpful to start coding for CS2D.
I can't say Lua is so hard. I've made my first serious script for CS2D after few hours of studying it, but I already had experience in JS, Python and PHP (not related to this game directly). If you'll have any questions related to scripting in the future, you'll need to gently ask them here: https://www.unrealsoftware.de/forum_threads.php?forum=105&sub=2.
---
@ DC:, the smoke grenade sound has a clicky glitch noise on its end.
edited 2×, last 21.10.21 08:47:30 pm