Cheese wrote: |
macid comes from network card
mac users run ss using wine wine tells ss macid is 0 |
Code: Show/Hide bool InvalidMachineID(long MachineID) { if (MachineID == 101) return false; if (MachineID < 0) return true; if (MachineID < 2000) return true; return false; } |
Code: Show/Hide s += " connecting with a hacked client. (Invalid MachineID)("; s += GetLong(Packet->Message, 74); s += ")"; |
Code: Show/Hide if (InvalidMachineID(GetLong(Packet->Message, 74))) |
Code: Show/Hide user->Kick(10000, 0, 0); |
Code: Show/Hide MakePlayerResponse(buffer, // Destination buffer PRMEANING_ENTER, // Meaning GetLong(Packet->Message, 70), // PlayerID "^Banned", // Player name NULL, // Squad name NULL, // Banner 0, // Total Seconds 0, // Creation Year 0, // Creation Month 0, // Creation Day 0, // Creation Hour 0, // Creation Minute 0, // Creation Second 0, // Score ID 0, // Wins 0, // Losses 0, // Goal count 0, // Points 0, // Event points 0, // Extra 1 0); // Extra 2 // Send response Packet->Source->Send(buffer, 192, true); |