{"id":19582933,"url":"https://github.com/miisterc/koth-tricks","last_synced_at":"2026-03-19T10:35:33.847Z","repository":{"id":242520878,"uuid":"809754416","full_name":"MIISTERC/Koth-tricks","owner":"MIISTERC","description":"Tricks i use while playing king of the hill in tryhackme ","archived":false,"fork":false,"pushed_at":"2024-06-26T05:07:29.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-04T12:16:33.846Z","etag":null,"topics":["king-of-the-hill","koth","tryhackme","tryhackme-koth"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MIISTERC.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-03T11:42:38.000Z","updated_at":"2024-10-24T13:25:21.000Z","dependencies_parsed_at":"2024-11-11T07:38:44.835Z","dependency_job_id":"8312b59f-f597-4726-8447-5cfe2e9dba6d","html_url":"https://github.com/MIISTERC/Koth-tricks","commit_stats":null,"previous_names":["miisterc/koth-tricks"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/MIISTERC/Koth-tricks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MIISTERC%2FKoth-tricks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MIISTERC%2FKoth-tricks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MIISTERC%2FKoth-tricks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MIISTERC%2FKoth-tricks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MIISTERC","download_url":"https://codeload.github.com/MIISTERC/Koth-tricks/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MIISTERC%2FKoth-tricks/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28845768,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-28T12:37:07.070Z","status":"ssl_error","status_checked_at":"2026-01-28T12:37:06.657Z","response_time":57,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["king-of-the-hill","koth","tryhackme","tryhackme-koth"],"created_at":"2024-11-11T07:38:39.484Z","updated_at":"2026-01-28T13:02:02.290Z","avatar_url":"https://github.com/MIISTERC.png","language":null,"readme":"# Protect your king.txt\n\u003chr\u003e\n\u003cb\u003e\u003c/i\u003eLevel - 0:-\u003c/b\u003e\n\u003chr\u003e\n\n## If you are first to to root the machine follow the below steps to protect the king.\n1.To prevent overwriting the `king.txt` file, you can set the `noclobber` option in your shell.\n\n```sh\n# Set the noclobber option to prevent overwriting files\nset -o noclobber /root/king.txt\n```\n2.Make King.txt unwritable using `chattr` chattr makes king.txt unwritable even for root.\n```sh\n#add the immutable bit to king.txt and /root\nchattr +ia /root/king.txt\nchattr +ia /root\n```\n3.Make `king.txt` a read-only system file, make sure you are `root` before running the below command.\n```sh\n#the 'ro' makes king.txt a read-only system file.\nsudo mount --bind -o ro /root/king.txt /root/king.txt 2\u003e/dev/null\n```\n## Snatch Other's king and make it yours 😂\n1.If you cant overwrite king.txt then someone already set noclobber on `king.txt` you can unset it by\n```sh\nset +o noclobber /root/king.txt\n```\nor \n```sh\necho \"USERNAME\" \u003e| /root/king.txt\n```\n\n2.When you write your username to `king.txt` and `operation not permitted` occurs then probably someone used `chattr` on king.txt or /root, you can easily remove the immutable bit from king.txt by\n```sh\nchattr -ia /root/king.txt\nchattr -ia /root\n```\n3.If `read-only system file` appears when you write your name in it , then someone mounted it to make `king.txt` unwritable, some players also mount whole /root,to unmount it \n```sh\nsudo umount -l /root/king.txt\nsudo umount -l /root\n```\n\u003chr\u003e\nlevel - 1\n\u003chr\u003e\n\n\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiisterc%2Fkoth-tricks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmiisterc%2Fkoth-tricks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiisterc%2Fkoth-tricks/lists"}