forked from jeremyvillanuevar/scripting
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathServerLagExploitFix_3_7_2020.sp
More file actions
45 lines (40 loc) · 1.19 KB
/
ServerLagExploitFix_3_7_2020.sp
File metadata and controls
45 lines (40 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#include <sourcemod>
public Plugin:myinfo =
{
name = "[CSGO] Server Lag Exploit Fix [3/7/2020]",
author = "backwards",
description = "Fixes an exploit attackers can use to cause the server to stutter.",
version = SOURCEMOD_VERSION,
url = "http://www.steamcommunity.com/id/mypassword"
}
public OnPluginStart()
{
new Address:addy = GameConfGetAddress(LoadGameConfigFile("LagExploitFix_3_7_2020"), "InvalidReliableState");
if (GetEngineVersion() == Engine_CSGO)
{
new OS = LoadFromAddress(addy + Address:1, NumberType_Int8);
switch(OS)
{
case 0x89: //Linux
{
//Force Client Exploit To Happen
//StoreToAddress((addy + Address:0x3F3), 0x87, NumberType_Int8);
//Patch Exploit
for(int i = 0;i<36;i++)
StoreToAddress((addy + Address:0x9E8 + view_as<Address>(i)), 0x90, NumberType_Int8);
}
case 0x8B: //Windows
{
//Force Client Exploit To Happen
//StoreToAddress((addy + Address:0x731), 0x87, NumberType_Int8);
//Patch Exploit
for(int i = 0;i<28;i++)
StoreToAddress((addy + Address:0x85F + view_as<Address>(i)), 0x90, NumberType_Int8);
}
default:
{
SetFailState("InvalidReliableState Signature Incorrect. (0x%.2x)", OS);
}
}
}
}