King of The Hill Overview

Be the first to hack into a machine, and then retain your presence by patching vulnerabilities to stop your foes from taking your position!

Written By James C (Administrator)

Updated at August 25th, 2021

What is "King of The Hill"?

King of the Hill (KoTH) is a competitive hacking game, where you play against up to 9 other hackers to compromise a machine and then patch its vulnerabilities to stop other players from also gaining access. The longer you maintain your access, the more points you get.

Traditionally you are taught how to compromise a machine to claim ownership of it. TryHackMe provides plenty of content on how to do so. However, an often overlooked aspect of hacking is maintaining access and patching vulnerabilities.

KoTH inspires you to not only apply the knowledge gained from the content within the platform in a competitive, timed setting; KoTH also encourages the use of blue-team tactics to prevent others from using similar methods such as those that you employed to compromise the machine.



Read our KoTH blog post to learn about some tips and tricks for winning your first KoTH game!



The Lobby System

The platform creates groups in the form of a lobby. These lobbies consist of a maximum of 10 participating players but can have spectators.

This means you can 1v1 or host a lobby to compete against a handful of your friends.

Creating Your Lobby

When creating a lobby, you will be given the option to specify whether or not the lobby will be private or public, as well as how soon the lobby will start (i.e. In an hour from now to allow time for public lobbies to become full) or for example 15 minutes if you are creating a private lobby where you have already arranged with the members.

When you create a private lobby, a unique invite link will be generated. You can share this link with the members that you want to participate against. This is found under the "Settings" menu (top right) within the lobby. As a subscriber, you can choose what machine your lobby will use.

You can also invite "Spectators" to your lobby. They will be able to see the lobby as you see it, such as "King" changes, but will have can't interfere with the game.

See the "Creating a game" article for instructions on creating your own private games. 

Joining a Public Lobby

Don't have anyone at hand to play against? Fret not. TryHackMe creates public lobbies daily for you to join. In the meanwhile, there may be others in a similar situation - looking for members to compete against.

lobby-system

If there is a public lobby that is looking for players, you can simply join and become apart of the lobby yourself.

The Rules of the Game Mode:

To prevent cheating and ensure this game is realistic, everyone must the follow the rules:

  1. The machine should not be made unavailable (shutdown, firewall rules to stop all communication, all services terminated, machine botching and similar)
  2. Only stop a service if it can't be patched any other way. Services should remain available for "genuine users of the box" if at all possible.
  3. No modifying or removing flags.
  4. Do not attack, modify or stop the service on 9999
  5. Any sort of DoS against the machine.
  6. No attacking other users.
  7. Scripts that automatically hack and/or harden the machine are forbidden

Lobbies are moderated to ensure fair play. Failure to abide by the rules will result in bans within the game mode and/or across the TryHackMe site.

How to Play

Once the game begins, you will be provided the IP Address of the machine you all have to compete amongst each other to attack. From now on, you will compete to become the King of the Hill.

After the lobby has started - the time of which you have specified, the game will last for 60 minutes. The member with the most points at the end of the game, regardless of the amount of "King Changes" or the final king, wins!

Becoming King

After hacking into the machine and getting root access, you will need to add your TryHackMe Username to /root/king.txt on the machine itself to become the latest "King".

It is then down to you to prevent your competitors from replacing your TryHackMe Username and becoming the new "King", however, you must follow the rules.

How Points are Scored

There are two main methods of obtaining points. However, it should be noted that any points gained throughout the game are not persistent and will not be reflected on your TryHackMe profile - nor the next lobby you join. These two methods are the following:

Be King

The longer you have your TryHackMe Username in the /root/king.txt file, the more points you get. You obtain 10 points every full-minute you are the current "King". To obtain 10 points, you must be the current "King" for 60 seconds (1 full-minute). If you are only the king for 50 seconds, you will not be awarded the 10 points, nor will the person who was "King" for the remaining 10 seconds of that minute.

Submit Flags

There are multiple entry points to the machine, some will have flags hidden throughout. The difficulty of how the value of the flag is obtained will stipulate the points you obtain for it. I.e. A harder to reach flag will grant more points then a flag that is easier to obtain.

Feedback and Reporting Issues

King of the Hill is an entirely new type of content on TryHackMe. Whilst testing has been done, there's always something that will crop-up.

We welcome any and all feedback - be it suggestions to improve the game mode, or any issues you're experiencing on our feedback page!

What if I Suspect a Player of Cheating?

If you suspect a player of cheating or rule-breaking, email [email protected] with the game ID (shown in URL) and the Player's Username if possible. We can investigate...

Was this article helpful?