-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFixes
More file actions
93 lines (79 loc) · 2.35 KB
/
Copy pathFixes
File metadata and controls
93 lines (79 loc) · 2.35 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
How to fix some of the Client Crashers/Exploits:
------------------
SpawnEntity Crash:
in: DataWatcher.class
go to: /**
* gets the bytevalue of a watchable object
*/
public byte getWatchableObjectByte(int id)
and Do:
final AntiCrasher antiCrasher = (AntiCrasher) Module.getMod(AntiCrasher.class);
if (antiCrasher.isEnabled() && antiCrasher.getBool("Catch DataWatcher"))
{
byte Flex = 0;
try
{
Flex = ((Byte) this.getWatchedObject(id).getObject()).byteValue();
}
catch (Exception e)
{
if (antiCrasher.getBool("Notify"))
{
Module.Log(null, "You were attacked, spawn entity Crash Exploit");
}
}
return Flex;
}
return ((Byte) this.getWatchedObject(id).getObject()).byteValue();
------------------
Game Demo Exploit:
in: AntiExploit:
on: EventPacket:
Do:
if (packet instanceof S2BPacketChangeGameState)
{
S2BPacketChangeGameState GameState = (S2BPacketChangeGameState) packet;
if (getBool("GameStateDemo") && GameState.getGameState() == 5)
{
if (getBool("Notify"))
Log(Method.BothChatAndConsole, "Player/Server tried using the " + ChatFormatting.RED
+ "GameState " + ChatFormatting.RED + "Demo Exploit");
e.Skip();
}
}
------------------
Fake Death Exploit:
in: AntiExploit
on: EventPacket
Do:
if (packet instanceof S19PacketEntityStatus)
{
S19PacketEntityStatus EntityStatus = (S19PacketEntityStatus) packet;
if (getBool("Fake Death") && EntityStatus.getEntity(theWorld()) == thePlayer() && EntityStatus.getOpCode() == 3)
{
if (getBool("Notify"))
Log(null, "Player/Server tried using the " + ChatFormatting.RED + "FakeDeath Exploit");
e.Skip();
}
}
------------------
Log4j Crash Exploit:
in: AntiCrasher:
on EventPacket:
Do:
if (packet instanceof S02PacketChat && getBool("Log4j"))
{
S02PacketChat chat = (S02PacketChat) packet;
if (chat.getChatComponent().getUnformattedText().contains("${jndi:ldap")
|| chat.getChatComponent().getUnformattedText().contains("${java:version}")) {
if (getBool("Notify"))
Log(null, "Log4j Crash Exploit");
e.Skip();
}
}
------------------
Particles Crash:
in: AntiCrasher
on: EventPacket
Do: if (getBool("Particles") && packet instanceof S2APacketParticles) e.Skip ();
------------------