#koth

1 messages ยท Page 4 of 1

vapid condor
#

When you are somewhere a bit more then a begginer, it feels like it yea xd

steep agate
#

but for a beginner it makes their life complicated on koth

vapid condor
#

really? I fixed every vulnerability in linpease that I saw on one machine, and PwnKit still worked well.. still have a lot to learn hahah

hallow mortar
#

Maybe that could be a way to improve koth - have different leagues for different skill levels?

steep agate
vapid condor
#

Cant remember specific thing..

#

Maybe

#

i removed all yellow colored stuff in linpease

steep agate
#

remembering that the only binary you can remove is chattr

vapid condor
#

what is event meant by this?

#

like you cannot remove for example chmod, or wget or whatever

#

only thing from /usr/bin that you can remove is chattr?

steep agate
#

this is in the rules of koth, there in the lobby

vapid condor
#

oh yea, then everything is still good

#

you can chmod it out of SUID

#

and things like chmod 000 king.txt is forbidden, or not?

steep agate
#

you can chmod the king.txt at will

vapid condor
#

Never really understood this part in rules

#

Mhmm.. okey

#

Well I am going to sleep now, its 1:30 AM here cursed

#

Thank you guys for tips and chat! Have a great day!

#

||or night||

steep agate
fossil pecan
#

32! Haha, but ya getting old ๐Ÿ‘ด

steep agate
stiff egret
#

One of these days I'll write all of the secrets to KoTH in a GitHub repo and public it.
Will make this fight boring as hell

#

But atleast it'll be less frustrating for newer players.

vapid condor
#

Even tho I am the new player in KoTH, and on one hand I would like to know the secrets..

On the other hand, KoTH is both fun and educational because of the challange, I learned SO much in last few days thanks to KoTH, it forces new players to make a research on every single thing, which will teach them a lot in process..

No one will win their first several matches, but thats expected

Of course I can not tell you what to do, but I think it will kill KoTH completly..

Dont know how others would agree with me, but I think it would make new players not to have to learn anything, just be a script kiddie and take everything from one github repo, without really understanding it or having any other research

steady basin
#

How do you remove the "i" immutable attribute without chattr

nova tide
#

some people tend to remove/rename the chattr binary so you can always upload your own static binary.

#

without chattr you can use c code.

fossil pecan
# steady basin How do you remove the "i" immutable attribute without chattr

chattr is the primary binary/mechanism to control these attributes, you can bring your own (static bin, busybox, etc) even build your own simple chattr from source (see comment from @steep agate #koth message)

ultimately, chattr is just using some functionality from ioctl to set flags (some people have custom ioctl calls setup in their own tools)
https://man7.org/linux/man-pages/man2/ioctl.2.html

Discord

Discord is the easiest way to communicate over voice, video, and text. Chat, hang out, and stay close with your friends and communities.

#

ah @nova tide beat me to response ๐Ÿ˜›

nova tide
steep agate
#

I'm going to do an ultimate tricks for windows machines in koth later

naive goblet
steep agate
#

I don't think it pays to use rootkit on windows as much as it pays to use it on linux in koth

#

defense tricks is enough, and persistence also in windows

harsh obsidian
#

@alpine quarry is this box acting funny for you also?

tiny grotto
# steep agate

this doesn't include changing SUID bits I assume right

proven garnet
#

executable permissions

midnight dome
#

Any idea for defence in koth

steep agate
swift laurel
#

What happen to the game ?? Theres was 6 of us and when it started theres only 2 of us ?

midnight dome
fossil pecan
#

So ... I bought a domain and deployed a lil koth app today ๐Ÿฅณ

https://koth.guru

F11snipe

Welcome to KoTH Guru! A fun companion app for King of the Hill on TryHackMe

fossil pecan
#

still need to finish scheduled jobs to keep database updated, but working pretty well from scraping public game json data as seeded fixtures ๐Ÿ˜„

i have a bunch of filter options already for games & players, api is public (for now at least haha) here: https://koth.rest/api

#

just need to figure out building UI/UX for more search options/etc

fossil pecan
fair adder
#

I've played 16 games ๐Ÿ‘€

stiff egret
fair adder
#

F11snipe has my IP now ๐Ÿ˜…

fossil pecan
#

ah

#

it's "cloud armored" ๐Ÿ˜‰

#

learning GCP lol

stiff egret
stiff egret
#

Since the games are 1 hr long, even if you hit it every 10 minutes, fw won't get active, and the site lives.

#

Nice.

fossil pecan
#

wasn't that hard actually

#

~20 lines of bash

#

got all 50k games in a couple hours ish i think, then i crunch them all down as fixtures for django ... gonna have it just hourly update moving forward

#
for i in $(seq $min $max); do
  game="https://tryhackme.com/games/koth/data/$i"
  json=$out/$i.json
  cyan "Check game #$i ($game -> $json)"
  curl -sL $game -o $json
  cat $json | grep -E '^{' > /dev/null 2>&1
  if [ $? -ne 0 ]; then
    yellow "WARNING: Invalid JSON detected for #$i ($json)"
    exit 1
  fi
  if [ $((i % 100)) -eq 0 ]; then
    sleep 10
  elif [ $((i % 50)) -eq 0 ]; then
    sleep 5
  elif [ $((i % 10)) -eq 0 ]; then
    sleep 1
  fi
done
#

the mod sleeps was the secret sauce ๐Ÿ˜›

fair adder
#

You created all this:

#

with bash scripting ?

fair adder
fossil pecan
# stiff egret https://github.com/holmes-py/KoTH-counter this used to work back in the time whe...

haha ya i have been trying to skew metrics on tie games ... my generator shows counts

Processed: 62762 entries | 43995 games | 23334 users |  16 boxes
Metrics { kings: 25094, ties: { two: 285, three: 7, four: 0, snipe: 230 } }
Finished

230/292 ties with me ๐Ÿ˜„

i was also able to find the game where you did get to meet my kingswitch haha ๐Ÿ˜‰
https://tryhackme.com/games/koth/48824

fossil pecan
fair adder
#

truly love this

fossil pecan
#

thanks!

fair adder
#

why not use DELAY instead of SLEEP?

#

just curious

stiff egret
fossil pecan
#

๐Ÿคทโ€โ™‚๏ธ

#

ya this is only counting tie games where king was found

stiff egret
#

This was before koth official leaderboards, so Naughty and I had our own

fair adder
#

really motivates me to get into my bash scripting more deeply

#

gonna hit this hard

fossil pecan
#

โค๏ธ bash

#

i wanna do more videos on bash too, lmk if you have any questions/subject ideas

#

i know way too much about bash lol

fair adder
#

have a ton! gonna learn the basis so i know what the f i'm asking you ๐Ÿ˜…

fossil pecan
#

anyways, been a fun side project! API is using python/django, and the frontend is ReactNative (aiming for mobile builds eventually) ... pls DM me if anyone is interested in contributing ๐Ÿ˜„

fossil pecan
fair adder
#

Right now I'm finishing up Sec + and SOC Level 1 path. Then focusing on the Linux + TCM course and doing koth. Taken a break from koth currently

fossil pecan
broken pilot
#

+rep @fossil pecan

sour vectorBOT
#

Gave +1 Rep to @fossil pecan

fossil pecan
#

Some more minor bug fixes & updates already! (added some sort filter options, working on more search filters soon!)

https://koth.guru/

F11snipe

Welcome to KoTH Guru! A fun companion app for King of the Hill on TryHackMe

short tusk
fossil pecan
#

ya i think so, just loaded public game json data from /games/koth/data/$GAME_ID

flint jacinth
wintry gust
#

Anyone wants to play a friendly Koth game? easy H1 linux

wintry gust
#

Wow no one really wanted to play Koth since yesterday

fossil pecan
#

Too much new years partying ๐Ÿ˜…

fossil pecan
wintry gust
#

also i lost electricity for now

#

i'm using my phone as the internet

wintry gust
terse mica
#

hi

#

anyone here for koth

wintry gust
#

Lemme check my VPN

wintry gust
#

I didn't solve my vpn problem but i got another way to connect

terse mica
wintry gust
terse mica
wintry gust
wintry gust
terse mica
wintry gust
#

here u go

wintry gust
#

ur in

wintry gust
terse mica
wintry gust
wintry gust
terse mica
wintry gust
#

oh ok

wintry gust
terse mica
wintry gust
#

Well done !

terse mica
wintry gust
#

i can't find something useful inside the machine

terse mica
#

i am new

wintry gust
terse mica
wintry gust
#

xDDDD

terse mica
wintry gust
#

i can't believe

terse mica
#

how many flag have easy linux H1

wintry gust
#

wait i can't see any output from my shell

wintry gust
#

it's also my first try to get a shell in this one xD

#

i need to know what's the tty cause it's preventing me from executing commands

wintry gust
wintry gust
#

i found no flags yet xD

#

GG

terse mica
tiny grotto
#

i want to try koth on here but i also don't want to commit to an entire hour of koth ๐Ÿ˜ถ

broken pilot
#

20 mins

tiny grotto
#

i thought it was longer

#

guess i have to try it now

#

(well, not right this second, but in general --- i'm busy rn lmao)

broken pilot
#

yea game is an hour it starts in 20

#

or i could run a private one that starts in 5

tiny grotto
#

oh so it is an hr

#

yeah that's a day time commitment

#

i'm not prepared to do that at night ๐Ÿ˜‚

broken pilot
#

yea unless you get in and lock it down... then game is as long as you want to make it lol

wintry gust
#

How can u lock it down lol

stiff egret
#

Patch everything.

wintry gust
wintry gust
#

just 5 mins if u got the time

stiff egret
#

Hey, sorry for that, I am not playing right now, busy with some work. But you can normally launch a game, if you select private with random machine, it will start in 5 mins.
If you need someone to join in so it doesn't expire then drop the link here, I'll join in. But won't play.

Additionally, there are 2 koth boxes that have been made public like other THM rooms, that you can start normally and try whatever you want without anyone else interrupting.

#

foodctf, and hackers.

wintry gust
wintry gust
stiff egret
#

Done.

wintry gust
sour vectorBOT
#

Gave +1 Rep to @stiff egret

wintry gust
sour vectorBOT
#

Gave +1 Rep to @stiff egret

tepid wagon
#

๐Ÿ™‚

naive goblet
#

you know you could create your own ones and submit them to help with the problem

vapid condor
# vapid condor

Why do they still have it there tho? xd I dont play KoTH that long, but I heard its been a while since it hasnt been updated

proven garnet
#

We can submit koth machines?

vapid condor
#

Of course, THM will be surly happy about it

#

@broken pilot GG, this game learned me a lot

broken pilot
#

GG bro

naive goblet
# jovial field i would ...

betting heavily on that tryhackme would have very little complaints if you try and make some koth boxes and try to get them uploaded to the site.... though probably a good idea to be in the room creation discord channel then

steep agate
fossil pecan
#

Or i just can't find it haha

proven garnet
#

I have access lol

#

U just have to ask

steep agate
#

would it be that if I make a box for KoTH they would accept it regardless of whether it is windows or linux?

#

@proven garnet

proven garnet
#

I asked and Iโ€™m waiting lol

steep agate
#

hmmmm

#

because I have really cool box ideas for koth, whether windows or linux, I think it's high time to innovate KoTH hehe

jovial field
#

i got some interesting ideas too! would be really cool to have some new challenges

#

and pwnkit wont work anymore ๐Ÿ™‚

broken pilot
#

yall know F11 has some challenges coming up with some giveaways involved

jovial field
#

no i didnt

#

sounds good, is there a dc for it?

broken pilot
#

dc? discord channel?

#

lol

steep agate
jovial field
broken pilot
#

idk...

steep agate
#

I think koth players can contribute to koth itself, whether with ideas, boxes, etc.

jovial field
#

but we can ask naugthy and holmes

steep agate
broken pilot
#

where'd that go matheuz?

#

lol

steep agate
#

my future paper, I think you might like it haha

#

more old school style hacking

jovial field
#

if you are finished i would be happy to read it

broken pilot
#

lol i opened it and was like oooooo, looked cool .

steep agate
#

๐Ÿ˜„

#

this month I finish it and I send it to you, I have more ideas for papers too

broken pilot
#

hahaha i liked that art rip

steep agate
#

like counter any rootkit, ssh hook, etc

steep agate
jovial field
#

counter any rootkit! i need to have this against f11snipe lol

#

really looking forward to it

broken pilot
#

need a counter to his kingme lol

steep agate
#

f11 and his genius ideas hahaha, definitely the strongest opponent I've ever played with

broken pilot
#

i had found a way to score on his king script but his newest version of king script is a beast...

broken pilot
#

the room developer chat might unlock after you've reached 0xD GOD like the malware analysis chat but im not 100% and i think the red teamer role overrides 0xD so chat wont unlock with red teamer even if you are 0xD level.... because i cant see malware chat but i like the red teamer role

steep agate
broken pilot
#

i think its cuz we have red teamer role

steep agate
#

ya

proven garnet
#

Na you just have to ask for it

#

But also making a machine

jovial bronze
#

@broken pilot blobheart

broken pilot
#

GG @jovial bronze

jovial bronze
#

it was my first koth

broken pilot
#

its already started

obsidian helm
#

@steep agate hey are you 17?

steep agate
obsidian helm
#

I just curious cuz I am 17 too blobfingerguns

fossil pecan
steep agate
obsidian helm
harsh obsidian
#

Have I completely lost my mind or is king-server on Offline/Pain not reading the file and pushing it so the main server can count points for whoever has king?

broken pilot
#

GG Hack.You

fair meteor
#

@broken pilot nice

#

still figuring the fuck u did ๐Ÿ˜‚

broken pilot
#

magic lol tipsfedora

fair meteor
#

i see my name when i cat it but open in vim/nano its urs

fair meteor
broken pilot
#

so do you really see your name or mine hahahaha

#

you almost had it... i saw my name disappear for a second

fair meteor
broken pilot
#

hahahaha

#

you were close tho

#

i saw your .viminfo and king.txt~

#

and king.txt.save

#

try echo Hack.You > king.txt

#

@fair meteor

fair meteor
broken pilot
#

hahaha

fair meteor
#

boi that was fun ๐Ÿฅฒ

#

nd crazy ๐Ÿ˜‚

fair meteor
broken pilot
fossil pecan
jovial bronze
fair meteor
fossil pecan
fair meteor
#

yet im quite sure u're gonna win ๐Ÿ˜…

#

tho @steep agate is king rn

fossil pecan
#

depends how much is patched haha

#

i'm also working on my new koth guru app ๐Ÿ˜‰

fair meteor
fossil pecan
#

ok gonna drop my kingmaker bomb ๐Ÿคž

fair meteor
#

jeez

broken pilot
#

damn it

#

gg

fair meteor
#

hw do u do this ๐Ÿ˜‚

fair meteor
broken pilot
#

its over now bro lol

fair meteor
broken pilot
#

lol damn v2 lol

#

hahahahah

#

who killed my shell that was funny

#

another?

#

hahaha @fossil pecan GG bro .. im gonna figure a way to break that....

fossil pecan
broken pilot
#

hahahaha

swift laurel
fossil pecan
broken pilot
#

@fair adder ssh Trap:letmein

vital tide
#

anyone down for koth

vital tide
#

new game

#

@fossil pecan what happened the last game

#

were you afk?

fossil pecan
#

Ya forgot i joined haha

vital tide
#

haha

#

it was pretty fun

#

there were only rlly like 4 of us in it

#

I was the one who won

fossil pecan
#

Nice!

vital tide
#

haha tyy

#

I see you won the one before the last one

#

wanna hop in vc

fossil pecan
#

Maybe in a bit

vital tide
#

okie just lmk, you can ping me

fossil pecan
#

On phone now, i think I'm still in AFK channel on my PC lol

vital tide
#

yeah lol I see you there

#

issok

#

good luck on this game

#

im not gonna hold back lollll

vital tide
#

hows it going over there haha

#

@fossil pecan

fossil pecan
#

I'll be back, you have chattr? @vital tide

#

Im down for vc in a few, getting late tho haha

vital tide
#

you gotta teach me how you did that weird permission thing with the king filke

#

@fossil pecan

fossil pecan
vital tide
#

hop in vc?

fossil pecan
#

Sure

vital tide
#

im in the koth one

#

join when youre ready

vital tide
vital tide
tranquil lake
#

koth?

vital tide
tranquil lake
#

okay

#

I joined

vital tide
#

1 sec

vital tide
tranquil lake
#

sure

vital tide
#

bet

vital tide
gleaming lava
next narwhal
#

Anyone have a few minutes to help me test something out on KOTH? I tried playing for the first time with a friend a week ago and the box was incredibly slow and unstable. I'm curious to know if this was due to the network we were on. So, Id like to recreate the same private match with the same box, but on my home network. Just let me know if anyone has the time.

tranquil pewter
swift laurel
#

whats up with the spam on production server saying "The person on TTY Session not a tty uses cheese strats" ?

fossil pecan
thick torrent
#

Any contestants from the KOTH that finished 5mins ago (Machine: Food)?

vital tide
tacit willow
#

I was given a key which I assume is base64 but the decoded version or the key itself would not work when I use it. Anyone got any ideas on what I could do? :D

fossil pecan
median meadow
#

@fossil pecan you're a bit of a KOTH ninja around these ends, interested if you have a specific methodology you use?

fossil pecan
median meadow
#

Hey yall, I need some help on the Food KOTH please can I ping someone a question?

median meadow
#

||/usr/bin/vim.basic /etc/password||

When trying to edit the root password in /etc/password with vim (because it showed up as SUID) I can't save the /etc/passwd because it's not writable ?

broken pilot
broken pilot
#

10 min

toxic mauve
#

Quick question, when can I join Koth? It says Intermediate and Advanced but not a specific 0x level

proven garnet
toxic mauve
proven garnet
#

No, believe in yourself @toxic mauve

toxic mauve
sour vectorBOT
#

Gave +1 Rep to @proven garnet

graceful folio
#

I'm a little new to hacking but want to be a red teamer so

fossil pecan
weak river
#

woo

#

Did first KOTH today didn't do the best but then again I did learn. Kind of like trying a new weight I can't quite lift just to see what its like.

weak river
#

Doing it again now

broken pilot
weak river
#

joined

#

are the rooms the same, the nmap looks similar?

#

as in H1: Hard is always the same etc

broken pilot
#

some rooms the ports and passwords change

weak river
#

I will get this if it takes all month

broken pilot
#

hahahahah @elder orbit thats not gonna stop me....

#

@weak river if you want to practice i can host a private game

weak river
#

Ok, I'll do that and if anyone has any tips on which tools they use that would probably help too

broken pilot
#

any box?

weak river
#

sure i just need to brush up on using what info I get on nmap to find an exploit and then use it

broken pilot
#

you can use rustscan or threader3000 they are faster than nmap

weak river
#

will try using those tools

broken pilot
#

ok let me know which ports you get and i can help you find an entry

weak river
#

ok while I install docker which I've never used, so I can get rust and rustscan, im running nmap as well. I'll tell you the results and which service I would try to attack first if I were playing and maybe you can give advice

#

ok I see ssh and mysql on 22 and 3306 respectively

#

running service version scan and script scan with -A

broken pilot
#

could install threader3000 quickly.. pip3 install threader3000

weak river
#

ok

broken pilot
#

then typethreader3000 to run it.

weak river
#

got it had to install in current directory and type threader3000.py it says a project by the mayor did I get the right package?

#

oh wow its scanning all the ports

broken pilot
#

yea

#

when its done theres an option to run an additional nmap scan

weak river
#

nice I was just making that myself when it suggested a better one

broken pilot
#

once its done let me know which one you want to go after

weak river
#

def telnet: 46969/tcp open telnet Linux telnetd

#

that one

broken pilot
#

you know how to connect to it?

#

telnet <ip> <port>

weak river
#

I did but it needs pass

#

would you use hydra or some tool like that and a password list ?

#

or check other vulns for quicker access

broken pilot
#

yea you can but also check other ports while hyrda is running

weak river
#

okay getting my syntax right for that bruteforce and then I'll check those too

broken pilot
#

ok when your done let me know you want to try next

#

hydra might not work since you only get 5 tries before it closes its connection

#

lets check out 16109

#

have you tried 3306? @weak river

weak river
#

no ill switch to that. typing these wordlists out is taking forever

weak river
#

nmap finds nothing for 16109 with -Pn or -A just filtered. trying mysql

#

oh its over

#

I know what I need to go study on some more since apparently I forgot a lot of what I learned last year. thanks for the tips

broken pilot
weak river
sour vectorBOT
#

Gave +1 Rep to @broken pilot

weak river
#

another quick question is metasploit considered an 'autopwn'?

fossil pecan
short tusk
#

!docs koth

pearl gladeBOT
broken pilot
west seal
broken pilot
west seal
sour vectorBOT
#

Gave +1 Rep to @broken pilot

broken pilot
fossil pecan
#

@radiant sun what do you think of that latest king switch? It's pretty tough haha, i swear I saw your name from king service earlier on, but no points? DM if you want, I'm curious what you did ๐Ÿ˜œ

radiant sun
#

crazzzyy

broken pilot
#

Good Game @fossil pecan @west seal @cobalt mountain

wanton rock
#

just started CTFs today and both my lobbies have been with @fossil pecan

wanton rock
# fossil pecan notsudo?

yes sir. I got stuck on picking the proper payload for a reverse shell on the current lobby. gg

fossil pecan
low dagger
#

Why can H1: Easy come back ๐Ÿฅฒ Iโ€™m great at it

edgy spindle
#

These KOTH challenges, how long do they take/how long do they last?

#

1 hour

#

(Y)

edgy spindle
#

turns out im rubbish at these

#

other 2 guys got the flags

#

i got nothing :/

radiant sun
terse mica
#

hey

stiff egret
# edgy spindle turns out im rubbish at these

you are not bad, others are good.
There's a diff.
One is self depreciating, and other is appreciating the world, and taking inspiration.
Careful what you say, it affects how you look at things.

edgy spindle
#

oh for sure

#

used it as a reson to go back and do more modules

#

im trying the "relevant" room atm

#

no time constraints

#

no stress of others "beating" me

#

time to get back to learning

stiff egret
#

They launch like normal rooms, with no time constraints. Will give you time to understand how it all works.

edgy spindle
#

will need to try them

covert vale
#

I'm new for this whr to start KOTH

radiant sun
nova tide
pearl gladeBOT
fossil pecan
#

@heady vortex thanks for the game, was fun! now you know chattr, gotta get your own static/busybox binary to bring to future games ๐Ÿฅณ (wget from yourself, chattr doesn't come on every machine, but it's essential for endgame king fights, so gotta bring your own ๐Ÿ˜‰ )

sour vectorBOT
#

Gave +1 Rep to @heady vortex

heady vortex
#

@fossil pecan was really fun, very fair of you to show me new things, the final game was also very fair of you, thanks ๐Ÿ™‚

sour vectorBOT
#

Gave +1 Rep to @fossil pecan

crisp wagon
#

anyone up for king of the hill?

#

Not sure why seeing this error?

fossil pecan
sour vectorBOT
#

Gave +1 Rep to @fossil pecan

crisp wagon
fossil pecan
broken pilot
broken pilot
#

@fluid tangle good game

fossil pecan
terse mica
ruby turret
#

I'm unable to ping any of the machines. Is anyone else having this issue?

nova tide
ruby turret
#

The IP address that

#

s shown at the start of a match

#

It's always showing offline

nova tide
#

Can you show a screenshot ?

ruby turret
#

Not yet but I'll be able to in 25 minutes

ruby turret
#

@nova tide here you go

short tusk
#

Also, you are connected to the VPN right?

ruby turret
#

No. I've found no information regarding a vpn

short tusk
#

!vpn

pearl gladeBOT
short tusk
#

I would recommend reading the rules for KoTH too while you're at it

ruby turret
#

yeah I'm getting Options error: In [CMD-LINE]:1: Error opening configuration file: evilthreads669966.ovpn

#

yes im sudo

fossil pecan
broken pilot
#

@ruby turret you may have to regenerate a new openvpn config file from the access page of TryHackMe and running openvpn evilthreads669966.ovpn as root

ruby turret
#

Yeah, I just re-downloaded the config file and it worked. Thanks @short tusk and @broken pilot

sour vectorBOT
#

Gave +1 Rep to @short tusk

ruby turret
#

Nevermind it gets stuck running the config file

#

@short tusk @broken pilot

short tusk
#

!multivpn

pearl gladeBOT
#
TryHackMe
Learn how to look for duplicate instance of your OpenVPN connection.
โ€ข Step 1

Make sure you have setup your VPN connection correctly https://tryhackme.com/room/openvpn

โ€ข Step 2

Type ps aux | grep openvpn into your terminal and press enter

โ€ข Step 3

If there's more than one line (that don't start with "grep" or sudo), do the following steps

โ€ข Step 4

Type sudo killall openvpn into your terminal and press enter

โ€ข Step 5

Start the VPN with sudo openvpn <path-to-config>

short tusk
#

Skip step 1

ruby turret
#

I killed them all and it still got stuck at the same spot

broken pilot
#

@ruby turret in that screenshot you are connected

ruby turret
#

but I'm stuck

#

I have to ctrl c out of the script

broken pilot
#

Run that same command again .. then in a new terminal try to ping the machine

ruby turret
#

ok

broken pilot
#

Use ctrl+t for a new terminal tab

left creek
#

Jabba already gave you the reason for why you are being stuck, it looks like you have multiple instances of openvpn running

ruby turret
#

I killed them all

#

I';ve to wait 25 minutes before I can accesss another machine's IP.

broken pilot
#

Ok are you in a running game now?

ruby turret
#

Not anymore

#

I'm in queue

left creek
#

Ah

ruby turret
#

@left creek He did help. I killed them butt the script still gets stuck on the same line

broken pilot
#

Ahhh ok.. well you were connected in that screenshot.. just open a new tab and youโ€™ll be all set

left creek
ruby turret
#

Okay then. It looks like I should be good.

#

Thanks I'll let you know in about 20 minutes

#

1 minutes*

left creek
#

Also ip a should only show a tun0 interface and not any extra like tun1, tun2 etc.

broken pilot
#

Hereโ€™s another way to check โ€ฆ go to the access page on TryHackMe and there should be 2 green check marks now

ruby turret
#

everything works

#

thanks @broken pilot @short tusk

sour vectorBOT
#

Gave +1 Rep to @broken pilot

swift laurel
#

gg buddy @fossil pecan

fossil pecan
sour vectorBOT
#

Gave +1 Rep to @swift laurel

tiny moth
#

connect gyus

#

2 players already

fossil pecan
# tiny moth connect gyus

๐Ÿ‘‹ hey! are you IgorMyshkin in hackers game? feel free to DM if you wanna chat or have questions. GLHF! ๐Ÿ˜„

tiny moth
#

flag in ftp

#

I found cred in ftp, but can't understand where I could use it

#

/backdoor dir doesn't accepts it

#

ftp and ssh too

fossil pecan
#

can try hydra for ssh/ftp (with usernames found via anon ftp)

#

hydra http for the /backdoor works too, but need to find another username

tiny moth
#

nothing))

fossil pecan
# tiny moth nothing))

i just tested all users hydra ftp & ssh ... was really quick crack on all (using rockyou.txt password list)

tiny moth
#

good game

#

i don't understand how to get root

#

with nano

fossil pecan
#

in the future, the passwords will take longer to bruteforce (i changed to higher up on rockyou.txt so you could crack quickly this game ๐Ÿ˜‰ )

#

linpeas + gtfobins is usually a good enough combo to find a way to root

#

the vim & nano ones can be tricky tho

steep vapor
#

@fossil pecan hey bro, I wanna ask how you make king.txt as a read only file?

broken pilot
prisma oxide
#

I haven't done a koth yet and want to get an idea of how they play out.

#

never mind just saw your post

broken pilot
#

Maybeโ€ฆ

#

But that is correct if it was a mount on top of root

stiff egret
#

if you type mount in terminal with no args, you can see everything that is mounted. Simple alterations like
mount | grep king or mount | grep root might quickly show if that has been messed up with.

broken pilot
red crest
#

Hi
Been enjoying the KOTH machines but I have a question. Why haven't the machines been changed? At this rate it's just a game of the first person to get in wins in my opinion.

stiff egret
steep agate
#

to be honest I got tired of playing koth a long time ago, because there's nothing new, it's always the same thing and even if we talk to some THM MOD nobody would do anything about it, (I don't know if there is any policy behind it and etc, but that's what i think) I was talking about a lot of koth stuff with @broken pilot these days, the koth game mode is really cool and fun but if you don't do something new a lot of players will stop playing.

vapid condor
# steep agate to be honest I got tired of playing koth a long time ago, because there's nothin...

Like me ๐Ÿ˜„

First 2-3 weeks you start sith KoTH, its a lot to learn! Learned me many things, get better, dont win, try again (Its kinda addictive ngl!)

But after you discover the most used techniques, you will stop learning, and after you play the same machines for several times, you will feel like "Oh.. Shreak again, " and you will not even have to scan the machine, just run some script and then go for a walk or something

#

I was actually addicted to KoTH for a while, was thinking about it all the time and was excited about it, but then it got boring, and after about 2 weeks, I completly forgot about it

#

But even tho its about 2 week fun when you start with it, it can teach you a lot, nice experience

broken pilot
#

It is kind of discouraging when a koth lead/staff agrees with an issue but canโ€™t do anything about it.. one would think they should have enough pull to do something or at least address issues to the higher ups to help improve the platform since koth is still technically in beta form..

radiant sun
#

I hope they will soon. KoTH is no doubt a great way to learn a lot.

broken pilot
#

In the mean time have you guys tried any of f11โ€™s koth challenges??? They are pretty good

steep agate
broken pilot
#

Hit him up โ€ฆ heโ€™s got a few different challenges in game.. a few that can be solved and a few that havenโ€™t been solved yetโ€ฆ like breaking his king moduleโ€ฆ think itโ€™s up to v4 nowโ€ฆ Iโ€™ve managed to break 3 of em, that last one is tricky af.. or his chattr challenge.. was planning on trying to get an event going but the posts were removedโ€ฆ and canโ€™t get an answer from anybody to try to make it something official

#

He has a few more alsoโ€ฆ been playing with him mostly since Iโ€™m learning new techniques and having to research different things to try to solve the challenges..

steep agate
#

that would be cool

broken pilot
#

Yea but it can be beatโ€ฆ Iโ€™ve managed to take it over and put my name in king,, each time He comes back with a new and improved versionโ€ฆ so far Iโ€™ve managed to break 3 different versions of his moduleโ€ฆ this last one is a beast tho

quiet schooner
broken pilot
quiet schooner
#

You've got the cost of the time to review them then

#

It's not as easy as you think

steep agate
quiet schooner
#

I'm not THM.

broken pilot
#

I mean all and all it only benefits the TryHackMe platformโ€ฆ I have ideas for days but i understand your point that it cost money and time.. but maybe they could have something extra for subscribersโ€ฆ that could help cover some costsโ€ฆ have a few boxes free to play and some updated ones for paid users..

broken pilot
#

20 mins

stiff egret
# broken pilot I mean all and all it only benefits the TryHackMe platformโ€ฆ I have ideas for day...

As Ninja pointed out, the process of a KoTH box is not as simple as a simple community machine. The whole QA team exists for this reason to review and QA the machines that are submitted from the community, which are too many already.
A KoTH box is far more complicated and hence we were paid to make them. Taking public submissions were turned off (as far as I know) because imagine this, if everyone started submitting like 1 box each, and we talk say, 10 players. Now these are 10 boxes that need review, fixing, QA and with no assurance whether they'll be pushed to prod or not.
It's simply cost to the company and they(administration) must've evaluated KoTH to not be beneficial business wise to have stopped these processes.

inner nexus
#

Having tournaments ran every day would also be awesome

#

I held a koth tourney a while back @fossil pecan commentated for it was pretty fun

fossil pecan
inner nexus
#

You finished the stat tracker!?!!?

#

Nice job bro

ruby turret
#

@fossil pecan that;'s pretty cool. What framework did you use?

#

@fossil pecan I know all you guys have that plugin

#

ladies

fossil pecan
ruby turret
#

@fossil pecan That plugin that tells you what framework a website is using

fossil pecan
ruby turret
#

@fossil pecan ah so that's react native. I like it.

fossil pecan
sour vectorBOT
#

Gave +1 Rep to @ruby turret

broken pilot
#

why rm /usr/bin?????

elder orbit
#

idk!!!

#

that's not me

broken pilot
#

was just a chattr lock hahhahaha

elder orbit
#

yap

#

but who delete /usr/bin

#

?

broken pilot
#

hahahha guess ill have to chmod -x /bin/rm and then chattr

#

guess its better than them rm -rf / lol

elder orbit
#

it will be better if we reset it

elder orbit
broken pilot
#

yea glad they didnt do that

#

guess ill bring my static binaries over and use those hahaha

elder orbit
broken pilot
#

already have em on the box .... wget ls ps and more

#

im streaming my game play in koth if you want to see what im doing

elder orbit
#

I tried before to wget my chattr but it dosn't work, did you know the reson

broken pilot
#

they rm /usr/bin/wget

elder orbit
sour vectorBOT
#

Gave +1 Rep to @broken pilot

broken pilot
#

no problem

buoyant kite
#

@broken pilot yooo

#

@broken pilot want to go into chat?

broken pilot
#

sure im in koth voice @buoyant kite

elder orbit
#

nice game broo ๐Ÿ™‚

broken pilot
#

good game thought you were gonna drop some flags

elder orbit
#

no no my internet just get down and I can not continue ๐Ÿฅฒ

fossil pecan
reef sun
#

hey guys, I started a few days ago and found this game concept very fun, I was wondering if there were any "prerequisites" (not really established but without which it would be difficult to participate in a game) of path to have achieved ? I guess the question has already been asked many times but I couldn't find anything about it on the site.. thank you for your answers!

naive goblet
#

with that you should probably have a good enough skill to be able to handle most of koth

#

if not you might learn by asking the others how they got in and learning from them

reef sun
naive goblet
#

yeah basicly

#

knowing how to make loops or scripts that mess with the king files permissions and sets immutability can help a lot to score wins

#

but is not strictly necessary

reef sun
#

thank you for that, I'll take a look and try

radiant sun
#

He put almost most of the tricks here

reef sun
sour vectorBOT
#

Gave +1 Rep to @radiant sun

fossil pecan
fair adder
hexed harness
sour vectorBOT
#

Gave +1 Rep to @radiant sun

fossil pecan
hexed harness
sour vectorBOT
#

Gave +1 Rep to @fossil pecan

broken pilot
fossil pecan
charred bobcat
ruby turret
#

Anyone ever experienced an issue with metasploit where MSFVENOM and MSFCONSOLE fail to start and just hang indefinitely? I rebooted and everything.

naive goblet
#

maybe try and reinitalise the database

ruby turret
#

msfdb init right?

#

yeah msfdb won't run either

#

I restarted the postgresql service before I rebooted

#

I just didn't know if it was a common issue

naive goblet
#

hmmmm

#

well no idea

broken pilot
broken pilot
charred bobcat
#

15minutes

sonic belfry
#

Clone yourself and battle your other self.โ„ข๏ธ ๐Ÿ˜‰

charred bobcat
broken pilot
obtuse nacelle
#

Is there a list of the difficulty of the machines in koth?

jovial field
#

they all vary between very easy and easy

fossil pecan
# obtuse nacelle Is there a list of the difficulty of the machines in koth?

It's all relative based on your experience. As @jovial field said, they're all pretty easy if you have decent exp with CTF root-a-box type challenges. If you're totally new, would recommend practicing on normal challenge rooms first, and can always start private KoTH games for practice (I'm happy to join any game any time, if I'm free)

jovial field
obtuse nacelle
#

yeah, not a beginner but never played koth, gonna play with some coworkers and I don't want to scare them with hard rooms ^^

#

thank you guys very much

fossil pecan
#

hackers, hogwarts, and h1-hard are probably hardest ubuntu boxes

obtuse nacelle
#

thanks man, good to know and thanks for being kind and friendly ๐Ÿ™‚

broken pilot
naive goblet
#

@fast copper sorry found a lot of flags quickly there

fast copper
#

Why are you apologizing for winning?

#

Question tho: I got access but cannot run any command, did you patch it already?

naive goblet
#

nopes shadow has patched nothing

fast copper
#

๐Ÿ‘

naive goblet
#

shadow not in the patching game

fast copper
#

Figuring it out right now.

naive goblet
#

though shadow has changed the /etc/passwd file now

#

just to change the root password

#

working up how to edit king.txt to put username

#

the find command is awesome for finding flags

#

guess you found another way in then shadow did

#

lols with a fun way to keep check if the king.txt file change

fast copper
#

I did a funky thing too, hope it works out.

naive goblet
#

hmmm maybe

#

shadow is using the watch command to check for changes of the king.txt file

fast copper
#

I did it differently.

#

This is fun tho.

#

And I am actually getting points.

naive goblet
#

yeah

#

but shadow is winning

fast copper
#

Whatevs.

#

Having fun.

#

Am a bit lost about the patching part tho.

naive goblet
#

did you just mess with shadows watch binary ;-;

fast copper
#

Hehe

naive goblet
#

shadow has 1 more flag then you though so shadow did something right

fast copper
#

Mmhmm.

#

Searching

#

But I have to keep the file in check too.

#

Stress.

naive goblet
#

lets see if that keeps you out

fast copper
#

I did a oopsie.

naive goblet
#

oh what did you do???

#

maybe shadow fix

fast copper
#

Already fixed.

naive goblet
#

nice

#

for your info the flag you probably missed is in a sql database

fast copper
#

Ok, I don't know how you did that, but I have no clue what to do now.

#

Hmmm.

naive goblet
#

hehehe specific binary with immutabiltiy flag goes brrrrrr

fast copper
#

Welp, I really don't know how to get around that. hazamashrug

#

Flag getting time.

naive goblet
#

will tell you when the game is over if you still wanna know

fast copper
#

Did you use chattr?

naive goblet
#

oh shoot lsb found out

fast copper
#

I specifically avoided that one, because I only remembered that it was mentioned in the rules, but not in what way. LowL

naive goblet
#

it is mentioned as allowed to be used

#

though shadow dunno how to do loops so yeah

fast copper
#

Welp rip me.

naive goblet
#

except for watch loop of course

fast copper
#

At this point it is literally impossible to catch up anyways.

naive goblet
#

yeah probably

fast copper
#

Time does not work out.

#

Was a minute late.

#

Well, multiple.

naive goblet
#

so close

fast copper
#

It do be like that.

naive goblet
#

apparently shadow missed 2 flags

#

the flag icon next to the flag submission bar tells you how many flags there are

fast copper
#

They should put flags in envvars so I can get them easier.

naive goblet
#

haha forgot to check there

fast copper
#

Did you change the root pw?

naive goblet
#

in /etc/passwd to get in the first time yeah

#

not changed it since then

#

ooh found another flag

#

YAY grep in recursive mode for flag finding win

#

sorry if you feel stomped lsb but this was fun for shadow at least

fast copper
#

Went about as expected.

naive goblet
#

well this game you at least got in and held king for a bit

fast copper
#

I got points, which is better then the last two times.

#

And I learned that cronjobs are horrible at keeping the king file.

naive goblet
#

ooooh you used cron to do it

#

yeah that might be bad as it only triggers once a min at maximum

fast copper
#

No, I scheduled a cron andthen did it manually for like 10 minutes because the cronjob was horrible.

#

Whaha

naive goblet
#

hahaha.... nice

fast copper
#

And well, then you told me you were using watch, so I screwed with that a little.

naive goblet
#

think you could technically setup a for loop that changes the king.txt file somehow

#

watch cat /root/king.txt

fast copper
#

But I was scared of using chattr because I did not know whether i was breaking any rules, and that kind of screwed me over.

naive goblet
#

tada you get an update every 2 sec if things change

fast copper
#

Deleting specific binaries is forbidden right?

naive goblet
#

There are many ways you can play KoTH. Here are a few:

Once you've hacked your way to King (root), defend your position by patching services (perhaps start by fixing the method to how you became root).
Hunt for flags - Often you can win by finding all flags, whilst others are struggling to become King, you could be hunting.
King.txt file locked? - A user might have used the chattr binary to stop even a root user editing the file.

from tips and tricks section

naive goblet
#

but you can just upload busybox with chattr in that case

fast copper
#

You can delete that one?

#

Bruh

#

Would have been the first thing I did.

naive goblet
#

shadow did not delete chattr for reasons

#
  1. Do NOT delete system binaries (except chattr) or change executable permissions on them (or their directory).
#

guess it has to do with not breaking the machine to much

fast copper
#

I was struggeling with a script a bit, and when I noticed king was immutable, then it was already too late, because time would not have been enough.

#

So I kind of gave up a little.

naive goblet
#

fair

#

first time in a long time shadow has used chattr

#

could have kept the fight going back and forth for king but felt like lets spice it up a bit

fast copper
#

I just noticed too late, otherwise it would have been fine.

#

But that just goes to show how critical a few minutes can be when defending a system.

#

Good thing to remember for jobs later on.

naive goblet
#

YAY first koth game won

fast copper
#

Congrats. HappyOwl

#

Well played.

naive goblet
#

thanks you too

#

thanks for the new badge @fast copper

sour vectorBOT
#

Gave +1 Rep to @fast copper

fast copper
#

blobfingerguns Happy to help, as per usual.

naive goblet
#

then thought lets try some default creds for that

#

and boom flag and user password combo found

fast copper
#

Hmm mysql didn't let me in.

#

They just gave you rotated ssh credentials on a telnet port tho.

naive goblet
#

huih maybe it only supports a single user at a time

fast copper
#

It should support more, but I can very likely be wrong here.

#

Maybe only if multiple ports are open.

fast copper
#

Ah yea, almost forgot.

#

+rep @naive goblet you get some reps too.

sour vectorBOT
#

Gave +1 Rep to @naive goblet

broken pilot
broken pilot
fossil pecan
low dagger
#

Gonna try and get my class playing these

broken pilot
tender glade
#

does anyone want free KoTH points I have never played

narrow acorn
#

Any one up for koth?

narrow acorn
#

Hey is it ok to block service?
Like turning down ssh in KOTH?

nova tide
narrow acorn
#

Recently I was playing koth and some one shutdown ssh service ๐Ÿ˜ฆ
I was keep logging in to with ssh which is why

nova tide
broken pilot
fossil pecan
dull bone
#

It took me a long time to get in. How did you do it so fast @broken pilot

broken pilot
#

theres a few different ways for fast access on tyler... also take good notes some boxes the passwords stay the same @dull bone

dull bone
#

I found 2 passwords but no clue for what were they ๐Ÿ˜‚

#

I still have a lot to learn

broken pilot
#

ive added a lsattr to the root folder to make it fair since this box has it sent to /dev/null by design

idle sedge
#

question: is it allowed to change passwords of users on koth? (probably not...)

steep vapor
#

5mins

dull bone
#

if I change permissions of a id_rsa file and it still asks me for a password that means that someone changed the password of that user right?

broken pilot
#

Or the ssh config file could be set to only accept passwords.

dull bone
#

How does that work? Can I do something about it?

broken pilot
#

check /etc/ssh/sshd_config โ€ฆ but could be a number of things.. like maybe authorized_keys was changed and that id_rsa no longer works.. all depends on if you found an id_rsa on a box and trying to use that or trying to install your own id_rsa on a user to create a back door

dull bone
#

I found it while playing koth yes and tried to use it but didn't work

dull bone
#

I don't understand, it happened again on another game. I found valid ssh credentials (pretty sure the credentials are for ssh because nothing else is there) and it didn't work either

unkempt lark
#

Hum

#

Anyone here to help a noob like me ๐Ÿ˜ญ

#

I don't even inow where to go to start ๐Ÿฅฒ

dull bone
unkempt lark
dull bone
#

Than koth is like doing a CTF room but with some defense/patching as well

#

I'm also new to koth, so maybe I'm not giving you the best answers

unkempt lark
#

Do I just launch my attack box then ?

dull bone
#

Yes and when the game starts, just do the enumeration of that IP

#

And escalate privileges till you gain access to root

unkempt lark
#

Can I like start it without going into any paths or whatever?

dull bone
#

what do you mean?

unkempt lark
#

I don't have to connect to any machine or whatever as you would in the learning paths ?

dull bone
#

no, you launch your attack box and then wait the game to start

#

When it starts you'll get an IP of that machine, then you just enumerate it and gain access

unkempt lark
#

Hmm, so I have this Attack box open, and I have the ip of the machine to attack, but when I do ifconfig <ip> it doesn't work ๐Ÿฅฒ

dull bone
#

Why would you use that command?

unkempt lark
#

Umm, I have no idea... : (

dull bone
#

If you want to enumerate an IP, use nmap or other tools

#

but first you should do some rooms involving enumeration, privilege escalation etc.

unkempt lark
#

I've pinged it, so it is active !

dull bone
#

yes but now you should enumerate it and search for open ports etc.

sour vectorBOT
#

Gave +1 Rep to @dull bone

broken pilot
#

@dull bone I can host a private game later and help you figure out the problem..

dull bone
broken pilot
narrow acorn
#

Any one up for KOTH?

broken pilot
#

im bout to spin up my vm if your still wanting to play @narrow acorn

#

15 mins

narrow acorn
#

Going to bed. Let's play tomorrow

dull bone
#

someone deleted the ssh keys?

broken pilot
#

what game?

#

here i added an easy privesc just run find / -perm -4000 2>/dev/null @dull bone

#

heres a brand new one

dull bone
broken pilot
#

if you want i cant start a private match anybox that you want to practice on

dull bone
#

nah don't worry

#

I'm practicing with these games

#

well gg

broken pilot
#

gg

#

easy way onto the box ssh Trap@<ip>

#

letmein

dull bone
#

I got in using a reverse shell but can't stabilise it

broken pilot
#

try it with python3

dull bone
#

I already tried but it's so slow

dull bone
#

finally omg

dull bone
#

omg my attackbox died

#

fuck

#

well its gg I guess

broken pilot
#

gg

broken pilot
broken pilot
orchid pond
#

I hope to add a chat function to KOTH's waiting page to give players who are waiting a chance to communicate with each other.

valid cairn
#

Does anyone what happened to Mr.NIko?

#

HE used to be such a good player of koth

#

than randomly started to send crap messages of weird servers....

naive goblet
valid cairn
#

Nah he couldnt have

#

he was such a cool person and he was a fantastic red teamer too

naive goblet
#

well would assume he was hacked in one way or another.. even the most secure people can slip up and get hacked

upbeat bone
#

Anyone playing?

#

good luck @fossil pecan ๐Ÿ™‚

fossil pecan
#

oh no windows lol ๐Ÿ˜›

upbeat bone
#

haha yeah right? I think the box needs to be reset, either that or someone got on the box and turned SMB off

upbeat bone
#

I was wrong. It just took a few tries

#

@fossil pecan a clue: it's eternal blue

#

๐Ÿ˜ฎ

#

Nice try canada

steep agate
upbeat bone
#

that effin cheese strat

nova tide
valid cairn
#

so you know about his new account?

broken pilot
fair adder
fair adder
valid cairn
uncut delta
#

somebody bricked the thing? 10.10.69.1?

valid cairn
#

Bro How do yall turn the machine into write only system

lavish haven
#

how do i report a guy that changed a koth flag to "sorry"

dull bone
#

To undo it use mount -o remount,rw /path

broken pilot
valid cairn
sour vectorBOT
#

Gave +1 Rep to @broken pilot

uncut delta
#

yo anyone know how to enumerate the sql database from the HOGWARTS room? cant seem to wrap my head aorund

proud moth
#

hey there. i've played koth production challenge. and i've esclated to root user but i cannot update king.txt with my username

eternal forum
#

maybe it has been made immutable. check via lsattr king.txt
try using chattr -i king.txt

proud moth
eternal forum
#

if it happens again, try checking the attributes to see if it's made immutable. one of the ways for even a root user to be unable to modify a file

broken pilot
valid cairn
#

Will there be any new KOTH machines?

nova tide
broken pilot
steep agate
valid cairn
#

I won the 69000th game

fossil pecan
broken pilot
proud moth
#

@fossil pecan bruh why you are not playing koth !!

#

I joined. Bcus of you.

fossil pecan
proud moth
#

Okay... If you'll join. I'll stick around.

#

@fossil pecan is back.

broken pilot
#

20 mins

broken pilot
valid cairn
fossil pecan
valid cairn
broken pilot
valid cairn
#

but its still not changing the king status

broken pilot
valid cairn
valid cairn
broken pilot
#

ahhhhh you mounted over /root

valid cairn
#

thats the problem?

broken pilot
#

yea the koth file is still reading from the original king.txt

valid cairn
#

or can I make it rw and it will work too?

broken pilot
#

you can try systemctl restart koth

#

but you will also need a copy of the original koth binary in your mounted folder

valid cairn
#

thats not a service?

broken pilot
#

systemctl restart king

#

but you need a copy of the koth binary in your folder

#

heres what your mounted folder looks like

#

nobody is scoring points

#

working now

valid cairn
broken pilot
valid cairn
broken pilot
#

if you type mount it will show you whats mounted