private static void DuplicatedPaymentAddresses() { if (!RuleManager.CheckIfRuleEnabled(AntiCheatRuleType.DuplicatedPaymentAddresses)) { return; } string command = string.Empty; //Check all payment processor duplications command = AntiCheatSystemSQLHelper.BanAllExceptTheOldestSQL(); TableHelper.ExecuteRawCommandNonQuery(command); }
private static void MultipleFacebook(Member User) { if (!RuleManager.CheckIfRuleEnabled(AntiCheatRuleType.MultipleFacebook)) { return; } string command = string.Empty; string reason = RuleManager.GetRuleText(AntiCheatRuleType.MultipleFacebook); command = AntiCheatSystemSQLHelper.BanAllSQL("FacebookName", reason, "FacebookName IS NOT NULL AND FacebookName <> ''"); TableHelper.ExecuteRawCommandNonQuery(command); }
private static void DuplicateIPs() { string command = string.Empty; string reason = string.Empty; if (RuleManager.CheckIfRuleEnabled(AntiCheatRuleType.SameIPAddressSameDay)) { reason = RuleManager.GetRuleText(AntiCheatRuleType.SameIPAddressSameDay); command = AntiCheatSystemSQLHelper.BanAllIPSQL("IP, CONVERT(date, LoginDate)", reason, "IsMasterLogin = 0"); TableHelper.ExecuteRawCommandNonQuery(command); } if (RuleManager.CheckIfRuleEnabled(AntiCheatRuleType.SameIPAddress)) { reason = RuleManager.GetRuleText(AntiCheatRuleType.SameIPAddress); command = AntiCheatSystemSQLHelper.BanAllIPSQL("IP", reason, "IsMasterLogin = 0"); TableHelper.ExecuteRawCommandNonQuery(command); } }
private static void OtherDuplicateColumns() { string command = string.Empty; string reason = string.Empty; if (RuleManager.CheckIfRuleEnabled(AntiCheatRuleType.SameRegisteredIPSameDay)) { reason = RuleManager.GetRuleText(AntiCheatRuleType.SameRegisteredIPSameDay); command = AntiCheatSystemSQLHelper.BanAllSQL("RegisteredWithIP, CONVERT(date, RegisterDate)", reason, "RegisteredWithIP IS NOT NULL AND RegisteredWithIP <> ''"); TableHelper.ExecuteRawCommandNonQuery(command); } if (RuleManager.CheckIfRuleEnabled(AntiCheatRuleType.SameRegisteredIP)) { reason = RuleManager.GetRuleText(AntiCheatRuleType.SameRegisteredIP); command = AntiCheatSystemSQLHelper.BanAllSQL("RegisteredWithIP", reason, "RegisteredWithIP IS NOT NULL AND RegisteredWithIP <> ''"); TableHelper.ExecuteRawCommandNonQuery(command); } }