Advertisement
samyratchet

Untitled

Oct 30th, 2018
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.16 KB | None | 0 0
  1. # ▀█████████▄ ▄██████▄ ███ ▄████████ ▄████████ ███▄▄▄▄ ███ ▄████████ ▄██ ▄
  2. # ███ ███ ███ ███ ▀█████████▄ ███ ███ ███ ███ ███▀▀▀██▄ ▀█████████▄ ███ ███ ███ ██▄
  3. # ███ ███ ███ ███ ▀███▀▀██ ███ █▀ ███ █▀ ███ ███ ▀███▀▀██ ███ ███ ███▄▄▄███
  4. # ▄███▄▄▄██▀ ███ ███ ███ ▀ ███ ▄███▄▄▄ ███ ███ ███ ▀ ▄███▄▄▄▄██▀ ▀▀▀▀▀▀███
  5. # ▀▀███▀▀▀██▄ ███ ███ ███ ▀███████████ ▀▀███▀▀▀ ███ ███ ███ ▀▀███▀▀▀▀▀ ▄██ ███
  6. # ███ ██▄ ███ ███ ███ ███ ███ █▄ ███ ███ ███ ▀███████████ ███ ███
  7. # ███ ███ ███ ███ ███ ▄█ ███ ███ ███ ███ ███ ███ ███ ███ ███ ███
  8. # ▄█████████▀ ▀██████▀ ▄████▀ ▄████████▀ ██████████ ▀█ █▀ ▄████▀ ███ ███ ▀█████▀
  9. # ███ ███
  10.  
  11. # ___ _________________ ___ ___ ________ ____ __ _____
  12. # / _ \/ _/ __/ ___/ __ \/ _ \/ _ \ / ___/ _ \/ __ \/ / / / _ \
  13. # / // // /_\ \/ /__/ /_/ / , _/ // / / (_ / , _/ /_/ / /_/ / ___/
  14. # /____/___/___/\___/\____/_/|_/____/ \___/_/|_|\____/\____/_/
  15. #
  16. # Join to receive SUPPORT.
  17. # https://discord.gg/kcKUPgN
  18. #
  19.  
  20.  
  21. #-♛-»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»-♛-#
  22. # __ __ _ _ ____ _____ ____ ___ _ _ _____ ___ ____ _ _ ____ _ _____ _____ #
  23. # | \/ | | | / ___|_ _| / ___/ _ \| \ | | ___|_ _/ ___| | | | _ \ / \|_ _| ____| #
  24. # | |\/| | | | \___ \ | | | | | | | | \| | |_ | | | _| | | | |_) | / _ \ | | | _| #
  25. # | | | | |_| |___) || | | |__| |_| | |\ | _| | | |_| | |_| | _ < / ___ \| | | |___ #
  26. # |_| |_|\___/|____/ |_| \____\___/|_| \_|_| |___\____|\___/|_| \_/_/ \_|_| |_____| #
  27. # #
  28. # You HAVE TO configurate this part if you want BotSentry to work fine. #
  29. # #
  30. #-♛-«««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««-♛-#
  31.  
  32. # The name of your server(s) where players do /login and /register commands.
  33.  
  34. # Posible question: Where can i find the name of those servers?
  35. # Answer: https://i.imgur.com/Q1rjmJy.png
  36.  
  37. auth-lobby:
  38. - "Lobby" # This line is ALWAYS needed to be configurated
  39.  
  40.  
  41.  
  42. #-♛-»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»-♛-#
  43. # ____ ___ _ _ _____ ___ ____ _ _ ____ _ ____ _ _____ #
  44. # / ___/ _ \| \ | | ___|_ _/ ___| | | | _ \ / \ | __ )| | | ____| #
  45. # | | | | | | \| | |_ | | | _| | | | |_) | / _ \ | _ \| | | _| #
  46. # | |__| |_| | |\ | _| | | |_| | |_| | _ < / ___ \| |_) | |___| |___ #
  47. # \____\___/|_| \_|_| |___\____|\___/|_| \_/_/ \_|____/|_____|_____| #
  48. # #
  49. # You can configurate this values, but, BE CAREFUL! #
  50. # Make sure that you understand what you are changing! #
  51. # #
  52. #-♛-«««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««-♛-#
  53.  
  54. # Define that if in X seconds, Y connections are established, it will enable the AntiBot mode.
  55. # You can also change the duration and ActionBar message.
  56. antibot-mode:
  57. seconds: 2
  58. connections: 10
  59. duration: 300
  60. activated-msg: "&a&lAntiBot mode activated."
  61. deactivated-msg: "&c&lAntiBot mode deactivated."
  62.  
  63. # Configure when an IP should be Banned using the method specified below
  64. # based on their Number of connections per X seconds.
  65. # Format: "Connections;Seconds"
  66. # You can add more conditions in the same format
  67. thresholds:
  68. - "16;60" # If 16 connections from the IP in 60 seconds, ban.
  69. - "30;60" # If 31 connections from the IP in 60 seconds, ban.
  70. - "60;120" # If 61 connections from the IP in 120 seconds, ban.
  71. - "75;140" # If 76 connections from the IP in 141 seconds, ban.
  72. - "100;200" # If 101 connections from the IP in 201 seconds, ban.
  73.  
  74. # If one of the above criteria is met, then the rate limiter kicks in.
  75. ratelimit:
  76. enabled: true
  77. # Should BotSentry ban the bot?
  78. ban: false
  79. # If set to true (recommended) the bans will be handled internally to the plugin (local cache and blacklist file)
  80. # This is intended for a quick solution to huge bot attacks or if you don't have access to linux commands through the server.
  81. local-blacklist-only: false
  82. # The LINUX command that will be executed to ban IP addresses internally.
  83. ban-command: "echo DETECTED {ip} AS A BOT >> NOT BANNING"
  84. # The LINUX command that will be executed to unban IP addresses internally.
  85. unban-command: "echo FALSE-UNBANNING {ip} >> HE WAS NOT REALLY BANNED"
  86. # Change the delay between unban of each IP (in milliseconds, recommended not to touch)
  87. unban-delay: 75
  88. # Every how many hours should the plugin unban all banned IPs?
  89. reset-banned-hrs: 1
  90.  
  91.  
  92.  
  93. #-♛-»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»-♛-#
  94. # __ __ ______ _____ _____ _____ ______ _____ #
  95. # | \/ | ____|/ ____/ ____| /\ / ____| ____|/ ____| #
  96. # | \ / | |__ | (___| (___ / \ | | __| |__ | (___ #
  97. # | |\/| | __| \___ \\___ \ / /\ \| | |_ | __| \___ \ #
  98. # | | | | |____ ____) |___) / ____ \ |__| | |____ ____) | #
  99. # |_| |_|______|_____/_____/_/ \_\_____|______|_____/ #
  100. # #
  101. # In this section you can change all the messages #
  102. # that will be displayed to players or to you. #
  103. # #
  104. #-♛-««««««««««««««««««««««««««««««««««««««««««««««««««««-♛-#
  105.  
  106. # Section related to actionbar messages - "botsentry.advice" permission.
  107. actionbar:
  108. # Toggle actionbar notification to admins.
  109. enabled: true
  110. msg: "&8[&a{ip}&8] &7has been detected as a &cBOT"
  111. challenge: "&8[&a{username}&8] &7got kicked for &cCHALLENGE"
  112. challenge-fail: "&8[&a{username}&8] &chas failed &cCHALLENGE"
  113. challenge-success: "&8[&a{username}&8] &ahas passed &cCHALLENGE"
  114. first-join: "&8[&a{username}&8] &7has been kicked for &cFIRST JOIN"
  115. rejoin: "&8[&a{username}&8] &7has been kicked for &cREJOIN"
  116. rejoin-success: "&8[&a{username}&8] &7rejoined &aSUCCESSFULLY"
  117. whitelist: "&8[&a{username}&8] &7joined, he is in the &aWHITELIST"
  118. whitelisted: "&8[&a{username}&8] &7has been &aWHITELISTED"
  119. label: "&8[&a{username}&8] &7got kicked for &cLABEL"
  120. pattern: "&8[&a{username}&8] &7got kicked for &cPATTERN"
  121. collection: "&8[&a{username}&8] &7got kicked for &cCOLLECTION"
  122. consistency: "&8[&a{username}&8] &7got kicked for &cCONSISTENCY"
  123. collection-active: "&a&lCOLLECTION ENABLED"
  124. consistency-active: "&a&lCONSISTENCY ENABLED"
  125.  
  126. # Section related to title message - "botsentry.advice" permission - sent every 10 seconds during an attack.
  127. title:
  128. enabled: true
  129. title: "&c&lBot Sentry"
  130. subtitle: "&e&l{num} &6&lbots IPTables banned in 10 seconds!"
  131.  
  132. # The message that is shown every connection to the console.
  133. console-message: "&cBotSentry &7>> &7[&e{ip}&7] [&a{nickname}&7] &6has connected! &7[&eNum. {count}&7]"
  134.  
  135. # Plugin messages sent to players.
  136. msg:
  137. challenge:
  138. kick-message: "&cWe're under attack, please, complete this steps to join:\n\n {challenges}"
  139. ping: "&a&lSTEP {number}&7: \n&eRefresh ONE time the server list and join."
  140. join: "&a&lPASO {number}&7: \n&eJoin the server WITHOUT refreshing the server list."
  141. final-join: "&a&lFINAL CHALLENGE&7: \n&aJoin again WITHOUT refreshing the server list to PLAY."
  142. deny-banned-ip: "&cYou got detected as a BOT, contact a STAFF to fix this problem."
  143. kick: "&6&l[BotSentry] &6You have been detected as a &c&lBOT&6! \n &7Do you think it is an error? \n &7Contact us on Twitter! \n &btwitter.com/ServerTwitter"
  144. unbanning: "&aUnbanning IP addresses (this could take a while)..."
  145. unbanned: "&aUnbanned {count} IP addresses."
  146. reloaded: "&aPlugin reloaded."
  147. insufficient-permissions: "&cInsufficient permissions."
  148. ip-banned: "&aSuccessfully banned IP address."
  149. banning-via-firewall: "&4BotSentry &7>> &aUsing Linux ban command: &b{ip} &7- &aThreshold: &b{threshold}"
  150. toggled-notifications: "&aActionbar and title notifications turned {status}."
  151. help: "&6&m--------------&c &lBOT SENTRY HELP &6&m--------------\n
  152. &b \n
  153. &9Aliases: &b/bs &7& &b/botsentry\n
  154. &b \n
  155. &7/bs advice &8> &eReceive actionbar notifications ingame\n
  156. &7/bs stats &8> &eSee the total banned bots in life period\n
  157. &7/bs ban &a{IP} &8> &eBan the specified IP via IPTables\n
  158. &7/bs unban &a{IP} &8> &eUnban the specified IP via IPTables\n
  159. &7/bs unban &aall &8> &eUnban all banned IPs via IPTables\n
  160. &7/bs amode &aon/off &8> &eToggle the AntiBotMode\n
  161. &7/bs details &8> &eGet info about the plugin\n
  162. &b \n
  163. &6&m-----------------------------------------------"
  164.  
  165.  
  166.  
  167. #-♛-»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»-♛-#
  168. # ____ _______ _______ _ ___ ____ _____ ____ __ ___ _ _ _ _____ ____ #
  169. # | _ \| ____\ \ / | ____| | / _ \| _ \| ____| _ \ \ \ / / \ | | | | | | ____/ ___| #
  170. # | | | | _| \ \ / /| _| | | | | | | |_) | _| | |_) | \ \ / / _ \ | | | | | | _| \___ \ #
  171. # | |_| | |___ \ V / | |___| |__| |_| | __/| |___| _ < \ V / ___ \| |__| |_| | |___ ___) | #
  172. # |____/|_____| \_/ |_____|_____\___/|_| |_____|_| \_\ \_/_/ \_|_____\___/|_____|____/ #
  173. # #
  174. # Touching this values is NOT RECOMMENDED, this part is just understood by the Developer! #
  175. # This values can be critical and changing one number can break the entire plugin! #
  176. # ASK FOR SUPPORT BEFORE TOUCHING THIS VALUES! #
  177. # DISCORD GROUP: #
  178. # https://discord.gg/kcKUPgN #
  179. # #
  180. #-♛-««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««-♛-#
  181.  
  182. # The first join check will ask, during a bot attack, all new players to rejoin.
  183. # The kick message will be displayed once ONLY for NEW players.
  184. # Disabled by default
  185. first-join:
  186. enabled: false
  187. time: 5000
  188. kick-message: "&cHey there!&7, &cwait &6{seconds} seconds &cto join again."
  189.  
  190. whitelist:
  191. # After N seconds of playtime, the player is added to the BotSentry whitelist, and not checked anymore.
  192. seconds-to-play: 120
  193.  
  194. # This check will limit how many players can play with the same IP address during an attack and not.
  195. max-address:
  196. # Toggle the check
  197. enabled: true
  198. threshold:
  199. # Max ip addresses that are allowed to play in normal conditions
  200. normal: 3
  201. # Max ip addresses that are allowed to play during a bot attack
  202. antibotmode: 1
  203.  
  204. # The following section will check all incoming connections in order to determine wheter a number of connection could be
  205. # considered as bot attack (similar to "AntiBotMode").
  206. networking:
  207. # This value should be related to the average players' latency. We suggest to leave this as 45, and playing with
  208. # leniency option. This value should never be changed with values over "52".
  209. tolerance: 50
  210. trigger: 2
  211. leniency: 1.26
  212.  
  213. # This section is related to BotSentry checks and algorithms configuration.
  214. # You basically don't need to understand the following, as it could result difficult or not clear.
  215. #
  216. # The default settings are set in order to define whether a client is a BOT or a clean USER.
  217. # BotSentry uses the following to tune-up the detection, please keep those values updated with feature
  218. # releases of the plugin.
  219. #
  220. # If you encounter difficulties or problems with bot attacks, please contact the developer on Discord (preferred).
  221. bot-behaviour:
  222. # The pattern check is enabled when the server starts, it is intended to learn the behaviour of clients and easily
  223. # detecting when a bot attack occurs (in combo with anti-bot-mode). When an attack occurs, this check will be able
  224. # to easily differentiate bots from clean users.
  225. pattern:
  226. enabled: true
  227. tolerance: 12000
  228. tolerance-b: 900000
  229. # Section related to caching some data to improve performances.
  230. # Do not edit this if not asked by the developer.
  231. cache:
  232. enabled: true
  233. max-amount: 50
  234. # This value should never be more than 3500. If you encounter false positives, please contact developers before
  235. # playing with this value.
  236. min-value: 2500
  237. # This section is intended to check, during a bot attack, the number of new connections and compare them with a
  238. # previous recorded "normal-behaviour"
  239. # By default this is disabled as bot-behaviour.pattern is doing all of the needed calculations to avoid bots join.
  240. consistency:
  241. enabled: false
  242. count: 20
  243. delta: 11
  244. # The following should be enabled when "consistency" is enabled too, it compares the previous data over a long period
  245. # and adds some leniency in order to avoid false positives.
  246. collection:
  247. enabled: false
  248. count: 21
  249. leniency: 10
  250. delay: 2000
  251. # Do you want to kick bots from the specified authlobby after banning them via IPTables?
  252. # We suggest to leave this as true, mainly because after blocking an address via firewall, the related connections
  253. # will remain open for some time.
  254. kick-authlobby: true
  255.  
  256.  
  257.  
  258. # ▄████████ ███▄▄▄▄ ████████▄
  259. # ███ ███ ███▀▀▀██▄ ███ ▀███
  260. # ███ █▀ ███ ███ ███ ███
  261. # ▄███▄▄▄ ███ ███ ███ ███
  262. # ▀▀███▀▀▀ ███ ███ ███ ███
  263. # ███ █▄ ███ ███ ███ ███
  264. # ███ ███ ███ ███ ███ ▄███
  265. # ██████████ ▀█ █▀ ████████▀
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement