#koth
1 messages Β· Page 2 of 1
its 5 in the morning here
its never too late
jk jk have a good night!
I just want to know how the king.txt was protected, I had root most of the time but couldn't even change permissions of the text file or update it
Am also happy I technically found both ways onto the machine
there are 3 ways into food
ssh was stopped, i restarted a few min ago π
ahh, will have to find the last one
3+ on each machine
lsattr to see
it seemed like I couldn't modify or view anything in the dir
you will see eventually lol
many ways to protect, you mentioned the big ones
was it chattr +i'd?
lets play again 9 tails!
sure
ya usually π ...
but as the guru koth dude says...
eventually, protecting king.txt is irrelevant
I'm going to do some research tomorrow because I have found that some other good ways of preventing writing are to bind it or use an LD_PRELOAD
and I might be able to write a few scripts to play with
rarely use ssh during koth, but I do my best to keep it up and running for others π
it was not my intention to forego ssh...^^
ah I see, I looked at a walkthrough and I understand why I was getting odd symbols now, makes sense
I was using netcat but really needed to use telnet
I now understand the direction I would have gone using that to get in
asd
gg
gg
could you leave the f11 full snipe for us to use π€£π
your agent is very OP
kingmakers, rootkits, scripts to protect king, using while, oneline, etc, doesn't even come close against your fullsnipe agent, and really very OP
π€£
weeeee
GG @ jassim15
GG bro!
@valid cairn what've you done to sudo?
nothing
I did nothing to sudo
I only fixed the vuln for the Tar
the sudoers file is fucked then
the /etc/sudoers?
not even root can use sudo :/
yeah
I can't use chattr except with pkexec and I don't have the root password to do that
ik its something in built to the boxes
ah
you gotta download the binary on your host os and upload it using python3 server
then use it to your own will
let the game end and ask me for the password You will be suprised lol
I figured out how to hide the actual root dir
you won bc you got in way before me haha but that was good fun
am going to take a break for a bit and will be on later
managed to change the root password also
I did manage to change it though bc I copied the ssh keys from donkey to root, sshed in using them and then using the amended sudoers file managed to change the password without entering a password
hello peeps
hei
who's up for some koth today?
ME
how to get good with koth
Keep playing
Over time you will remember the way to get it
i need the way to keep my king haha
use chattr
it can be easily breakable with that
altho I couldnt figure out who to remove the permission with that
i wanna know like advance techniques that can as a backdoor
there is a flag in chattr which doesnt let the binary be changed
Use msfvenom to make one and than connect to it with msfconsole or metasploit.
yea actually i know those basic term but thank you anyway
Gave +1 Rep to @valid cairn
ohh never knew
its easy tbh just look up a guide on it.
and beside loop, what can u do to protect king?
or get king back when someone running loop
many ways to king & backdoors ... I was thinking of hosting "Q & A" or "AMA" stream sometime soon, and can help answer questions & solve problems for anyone who's interested
I am bro
Your eternal rival lol
hewwo π
its Tetsu
how are you
you know me ?
are you freaking out?
or i just dont remember
Bro it was a joke
8 for each koth i think
not sure where the last 2 are
found 3 in different games and three in files called flag
Why is some one changing the flags in kOTH match?
oooh that is evil..... and probably not allowed
look at this
It's not allowed
Pretty sure that's just how it is
lion
Deleted because spoiler
i removed the commands
did u give up with fortuna?
and its wrogn answer
error with it
what error?
with the ssh?
Password was changed, you had to find another way in
was hoping you'd find a way in and try and fight for the king, had a little trick up my sleeve
is the trick named shadow???
nah not that lol
Nope, if I told yous it'd spoil the fun haha
but seeing as I've had a chance to play about I've managed to prove that it works as intended
Even if you were to have root it'd stump you unless you figured it out haha
okay next match !
If you hover on the flag icon on the left of submission box, you can see how many flags each machine has.
Gave +1 Rep to @stiff egret
Took me forever to realize this bit lol π
+rep @valid cairn HMMM DOESNT WORK
bro what did you do to the king.txt
even after overwriting its content and shredding it
doesnt change lol
I believe f11 made a rootkit sort of thing
probably uses ld_preload to prevent writing to king.txt
we do a little control f and bam
Learning about Linux rootkits is a great way to learn more about how the kernel works. Whatβs great about it is that, unless you really understand what the kernel is doing, your rootkit is unlikely to work, so it serves as a fantasic verifier.
In the FreeBSD world, you can find Joseph Kongβs amazing book Designing BSD Rootkits. It was written in...
very cool that you did make a custom rootkit tbf, I want to do that soon
π
hiiiiiiiiiii guys
This is a great blog series, i didn't know anything about rootkits going in, and came out building my own π
I am actually going to read it thanks
Gave +1 Rep to @fossil pecan
what version of ubuntu is your rootkit written for?
i can build it for any kernel π π
linux* lol
what are the main ones used by koth now? 20.04.4 and 16.04.4?
mostly 16 & 18, only 1/2 20+ i think
and 3 rhel/centos
and 1 debian8
something like that
uname -r to check each kernel version, and then need to find same/compatible VM (usually) to build with those exact header versions π
nice
Do you think you could do it with a lil docker container? Might be a lil faster but idk
Vagrant is always convenient too tho, esp with the synced folder ability
i'm looking forward to that haha don't forget to ping us
damn yall are really dedicated to KOTH your making your own rootkits for it now π€£
I guess as soon as 5+ people are interested I will contact the lead mod for KOTH and then we can do a session.
That would be really cool!
great I have so many things i wanna see

@fossil pecan started that work on the rootkit π
Got a setroot successfully working and have started assembling a list of functions I'll implement when I get a chance
Unpopular opinion
backdoors >>>>> rootkits.
well a rootkit can have a backdoor can't it π
a backdoor can't have a rootkit so it is an unpopular opinion 
I was planning on not saying this, but ....
what if upcoming boxes are docker based.
Then you design the rootkit to escape containers :p
I meant only based off dockers. i.e. the whole game is supposed to be in dockers only.
I thought docker does use a kernel but that it's very cut down?
I don't remember seeing anything where you can use a rootkit in docker without privileged mode being on.
I can be wrong or limited by my knowledge though.
I imagine there's probably a way
@brazen cloud Tagging you here for the discussion, respond when you have time. You are my go to person with peak level docker knowledge.
I hate docker everytime I've used it I've struggled
tl;dr docker based rootkits exists?
They certainly do if it's privileged as you've said but I'm not sure about otherwise as privileged containers can load modules into the host kernel
I absolutely love them, I am sucker for managed storages and the whole container logic gives off a very 'managed' vibe.
This being said it's not unlikely that someone has found ways of doing it as it depends how poorly the docker instance is set up
Keeping in mind, if we are to launch any box that is to be played in docker only, then it will be stress/security tested to ensure stability of the game. So the possibility of hacking that docker itself is bleak, that being said, attacking the host docker will be most likely off the limits and appended into rules.
oh for sure but in the meantime I get to play around with a homebrew rootkit
That, is a very fruitful journey.
it is indeed, just added the code to hide itself while loaded in
All the best for the rest of it.
Thanks π
@fossil pecan when did u join the game, huh?
i don't remember seeing u in the first 20 min of the game
am i tripping?
I joined when you got 420 points π
how can u join midgame?
btw it's GG from here cuz i have no idea how to get king back

I just wanna tie you at 420 lol π
hehe i still need to learn alot more
hope to see u do koth on stream some day
maybe explaining some manual enum
I really dont know if this is a good idea.I mean docker is very minimal and what about machines like H1:Hard where docker containers would need to be in a docker container
The point of using dockers is to enable moderation in games, and dockers can be/are generally based off dockerfiles, you can go from minimal to gigantic real fast. About H1:Hard, there can be work arounds, plus no point introducing repeating machines. If there's already a docker escape in pool, why add more?
why not add other machines which use docker?
Heavy machines, hard to moderate, slow to start, π€·ββοΈ though depends in the end on the machine.
hmm okay
btw you and naughty have a great guide on koth machines!
imagine new boxes 
OH shit Naughty Joined π
nah not rn
lol cause parents are around
and I dont wanna show them my discord and spicy memes i Have on it π₯
you can screenshare and i could watch π
sure
i Have joined lol
already inside the machine
escalating priveleges
ahh shit I gotta secure it lmao
@nova tide sorry I gotta stop streaming the ports etc
lol
oh i already have backdoor and root shell so doesn't really matter xD
Just wanted to see your tricks and see if i could recommend something.
good job lol
and you kicked me out of the machine π
|| @nova tide || you gone now?
no still there
do you have permenant root access to the machines?
or do you get a new one everytime?
Still have that initial shell and a backdoor.
KOTH lead mod perms go brr
Naughty is dominating the game
I hope my nmap scan with -p- and -T5 finishes before the game ends
rumor is we get aws shell access on all machines.
@nova tide 
you guys are KOTH lead mod after all lol
I should mention that it is a joke and we don't get AWS Shell access.
ik naughty told me that
I can get access but developing custom rootkits for it etc seems really excessive tbh
Totally agreed.
the other a freind of mine was telling me in the dms that he spent idk hours trying to make a custom rootkit that gives prevents the file from being changed
Don't take me wrong, it is really good for the researching and learning part, but other than that, it's a complete overkill for KoTH.
Atleast KoTH as of from TryHackMe.
ik lol but its like a requirement if you wanna play with the top players
π€·ββοΈ I don't know what top players you are referring to, but it's really a game of a good script to write your name in king, and your speed / skill to point and shoot at people in the game.
chattr, echo, ps, kill, rm. (insmod) this should cover most of it.
mr niko, f11 , mathuez etc
you and naugthy
all of you are top players
π€·ββοΈ as flattering as it is, if you are monitoring processes really well, you can basically kick off anyone from the game.
i think and naughty should make a room called playing koth
get in the machine faster, monitor the processes, you can see what they are doing, undo their shit, and kick them off. Preferably in the same command, they won't know what hit em.
good point!
π₯
put a temporary chattr on basic files, essentially freezing the machine for the starting few minutes of the game to give you breathing space.
passwd, shadow, authorized_hosts, ssh config, id_rsa etc etc
rephrasing, by freezing the machine, I do not mean hanging it, but keeping it in same condition, so you have more time to setup your defences. Meanwhile everyone else will be confused why their one liners to setup backdoors aren't working.
thanks for the great tips my guy!
hii guys π
sahhh dude
I had to leave home to get some supplies
sorry I left the game lmao
Hm, that is a nice one. Can be basically based off the blog that was shared earlier here.
Exactly π€·ββοΈ
I'm not an expert on the subject by any means, but I'll probably start on that so that I myself can learn, then have someone like f11snipe look it over and correct me
yo
why do i feel like the machines in KOTH are not being updated?
because they are not? π
π
Whatβs up

sup my guy
kek
hello guys, i hav a problem. How can i protect king.txt :<
castle.
May you say it clearly??
ehm ehm CASTLE
||jk||
||You can search up for chattr binary and it's use. You can make the binary immutable so no one will be able make changes even if they are root unless they use the binary as well||
I was kidding, it was a chess joke.
Self plug, but you can read the blog in the pinned msgs to get more information about how to protect the king file.
why senor?
It's a secret 
hmmmm
Looking forward to the Reveal...
because people are just too lazy to work on the new machines π
or kingmakers, onelines, loops, etc.
this is the first king badge. i had gotten it UwU
This shit was epic man i screenshotted it and put it in my memes for geniuses folder
Hey Holmes...
Earlier you were having a portfolio website.... Can you send the link please
Which one you talking about? It's likely on my GitHub if you need that
It was somewhat like hacker terminal
Ah, yes, damn when did you see it, I removed it like 1.5 yrs ago
Then i Might have seen that 2years ago 
But can you specially tell me the technologies you used in creating that website?
I really want to make something like that
I was a really dumb dev back then, so I just really did it in css lol
Whaat???
It was all just html and css. handmade
Seriously
That was really good website
How can someone make something like that in css and html
ngl I ask myself that, I don't know if I can make that rn if I wanted to lol
But ye, I think it's on my GitHub if you'll search for css maybe
Found it, here ya go https://github.com/holmes-py/holmes-py.github.io.OLD/tree/master/old.portfolio
Hah thanks

congratulations!!
you can do amazing things with CSS and HTML only. Check this out: https://css-only.art/
there are even crazier CSS 'artworks' to find online. People get super creative
It was noob work really. I just w3schooled my way to this lol

@fair adder https://tryhackme.com/games/koth/55289
1 minute left ^^
haha
just saw we will be playing offline
to bad haha
will be hard tbh, complety new for me
yeah that's a different game. the one i started starts in 16 ins
mins
i gave myself some time so i can install some tools.
@haughty turtle Bout to pass tbh π
same i don't like window box
Really really no idea how to start here
Haha, sameee xD
Shall we join @steep agate
Even tho I feel bad for fs5150. but I really have to learn before attacking windows servers
Only found a password
which game ?
fs5150 just pwned it xD
ur KOTH
@haughty turtle
I'm not in the same game as you
Not ur nickname?
this game
rootkitted? @steep agate
no, in this game I didn't use rootkit and I didn't fix the entrypoints
and I didn't fix the path to root either
no
nothing
I mean there has to be a reason I can't set ownership or write to it after chmodding etc.
@haughty turtle did you change the ssh login password of webmaster lol?
lol no
i don't even know ssh password
I got a php reverse shell but couldnt get my script to work
Voicechat guys?
Really curious what your approaches where
i get rev shell as serv3 and get root by crontab
the only thing i changed was the directory in crontab: backups to ok 
Yup, thats why it didn't worked I guess. Isn't that even against the rules? ^-^ @haughty turtle
@haughty turtle Or am I misinterpreting.
I revshelled trough php but where stuck then since the crontab wasnt working anymore... rly sad :c was wondering, what I was doing wrong tbh
i think it's ok to just delete that line tbh
it should be considered as patch
you never told me what you did btw, was it flock?
anyone actively in public looking for a game?
Maybe he deleted chattr from /usr/bin
After adding attributes
that's not it either
either replaced the chattr binary with one that didn't allow it or flocked it or something
big brain idea is to leave a fake chattr binary on the system that just kills your shell
or a backdoored chattr binary that runs shellcode or something like that
Have you played production yet? (I think it's that one lol)
Itβs been a while since Iβve touched any of the KOTH boxes so I probably donβt remember
big brain is cp /bin/true
πhomie told me once .. respect βΎοΈ
other big brain move is to recompile the chattr binary with a delay of 1sec
π€·ββοΈ just switch the chattr binary with your own infected binary that writes your name in king.txt lol
that's what I've been doing for a long time initially -
or you alias chattr to echo your name into king.txt

GG @ samarrajsingh
Sorry to whoever @me I haven't been on discord a good while. π
any one know how to fix this problem ?
i got this while using chattr
Use static binary.
can you join
What do you mean by flocked. Google isnβt helping much since I have little context, and flocked has a βnormalβ definition haha sorry
Man flock
Thanks Iβll check it when I get home
hello
first try
anyone down for some koth
ahh ?
@fair adder hi , wanna play some koth ?
Hey!! I most definitely would of but I'm at work rn 
After work around 6pm maybe ?
in your profile on the about you part there is a bit where you can change to allow you to play koth
this thingy:
Oh its alright, good luck with work
Its 9:50pm here ,idk what time is 6pm
Ah yes thanks , but doesn't that mean I'm not good enough yet ? Like I saw the video and no clue about it
Gave +1 Rep to @naive goblet
Β―_(γ)_/Β―
6PM PST time
So you'll likely be asleep !! Lol
nah think it is for everyone if it is public games
just you can't choose the target koth machine if you do unsubscribed thingy
Oh great that mean when inferno subscription is over ,he can still play koth with roki this weekend
Ahh its fine, maybe weekend? Or anytime we both free
Wait I need my own vm ?
Game already started
Eh what on earth made me get into something that I got no clue about
if you scroll down here https://tryhackme.com/games/koth you will find an faq
feel free to ask me if you have any questions
Thank you π
you are welcome
@jovial field hello
I took a look at the rules ,points ,etc...
Questions:
1-Should I have my own Linux and then connect using the open VPN, or do I get an attackbox ?
2-"How to play" number 3 says "hack into the machine which is related to my question 
3-number 5 says "patch the machine vulnerabilities to maintain your access " which i don't know how ? And does that mean if I don't I could be kicked of the game ?
- Yes you should use your own linux machine but in theory you can use an attackbox spawned on another box. 2. you should scan the machine for vulnerabilities and gain access to the machine. After that other players will try to kick you from the machine so you will need to find tactics to prevent them of that. 3. To hold your place on king.txt you can patch the vulnerabilities you used to gain access and search for even more, so other players wont even get into the machine. An other way to protect king.txt would be using tools such as chattr
Okay ,thanks for making things clear
Just 1 last question, is there a video or a room to practice tools like chattr? Or anything I can do alone before getting into the game
I'm more into practical than theoretical
i mean you could do some rooms of the beginners path to get used to tools like nmap, nikto, gobuster etc. while you are doing that you will also learn things about linux.
I looked into YouTube and what I saw was looking advance for me and couldn't find anything for tutorial
Alright thanks , will do
Gave +1 Rep to @jovial field
Hi Iβm looking to get into this but Iβm not quite sure where to look to learn skills to do thisππ Does anyone have any suggestions?π
You can Practice in these two rooms π£
Thank you!π
Gave +1 Rep to @radiant sun
Hi guys! I'm looking for someone for hacking together. Is there anyone?
I wish but not ready yet π©
I or you?
Me ,im not ready yet
What is your level?
if you want to we could do one match
how's everyone been? had to rebuild my rig and take a break for a bit haha, but I'll be back to play more soon! π
when will u stream more koth on youtube?
Soon! It's been too long haha, I'm itching to play again, hopefully i can get setup to stream sometime this weekend π
maybe show some techniques next time haha
If u stream koth , pls ping me , would like to watch
Well I tried , VJ99. I know it's something to do with abusing the .jpg upload but I'm a bit rusty lol.
Hope you get it
When Are You Streaming Bro ?
Yeah same question
Just getting my setup & tools back up and running for some test games today, hopefully will find some time to stream again this weekend!
Wait stream through discord vc ?
ya sometimes, but mainly stream on YT & twitch (YT primary for hacking content)
Nice because I can't use discord vc its banned here
I'm "F11snipe" pretty much everywhere, also have twitter, github and stuff π
don't have 100 subs for my "branded YT page" (yet) ... but this is easy redirect https://f11snipe.live
@fossil pecan LOL Bro What's That I see something like yo**m*m π€£
hahahah, oh ya! it's a joke query param, to mess with their analytics/tracking
Ya
so they'll see visits to my page with source "your mom"
lots of eastereggs when i'm involved π
Yes
@fossil pecan Its Was Really Good Game GG! i don't deserve the win.
I just really like to try and tie points haha π
Ya i know
@fossil pecan Are You Using ChaShell ?
No, I'm not familiar with it. I'm still bad at knowing what tools already exist, ended up making mostly custom ones haha
just looked it up, pretty cool! i'm working on something similar π
Nice man!!!
Cuz I see dns over your ip so
Anyone wanna play?
12m startin
Anyone for play?
anyone else playing rn?
theres 4 other people in the game with me but idk if they active
im the only person whos submitting flags
I'll probably get on to play a few in an hour or so, if you're still around π
@fossil pecan When you are Going to Stream?
Watting For It
too
I wanted the f11 to come back with the streams
miss you
Still need to finish setting up all my hacking and streaming tools haha... But maybe tonight! I'll be working for a few more hours, so won't be until at least 4 hours from now
Nice Man Tell Me If I can Help
startin 15 min
https://tryhackme.com/games/koth/join/123a40e7ef24612208a95f14 starting in 22 mins
^^^ 5 minutes
yo
test
https://tryhackme.com/games/koth/join/8b9dbb765bf62a7540092f10 kicking off in 22 mins
anyone for a match in 5mins?
@desert umbra could you stop resetting the machine and try other ways to get access to it? π
oh damn.....
yup
this is no longer available
well it's been two days now so π
i know im a complete moron. I didn't see the date until i actually looked π
mind you i've been using two monitors now and i can barely see my laptop lmao
this is where i have discord on
i've said this before but i think it's time for me to take a break from discord..see you later naughty ! 
Ctrl + '+'
Hello Mr.Holmes π
Yep I had this on full zoom blast. Thankfully I have my eye exam coming up so I'll be getting glasses soon
Ah, well, best of luck and health for the checkup.
Thank you, 
Gave +1 Rep to @stiff egret
rep farming ftw
Thank you this is a good idea
Gave +1 Rep to @stiff egret
wtf
why are people allowed to post the answers to koth online when the VMs are still the same after two years?
anyone playing Production now?
They were allowed to post write-ups two years ago.
They shouldn't be posting flags or passwords.
is port 9999 part of the infrastructure? It always comes up
Yes.
This is specified in the rules
Please read the rules. Not following the rulss can get you banned
so good to ignore port 9999?
It's in the rules...
....
Production was a fun machine
someone just killed the services or banned my IP in KOTH game 58043
The rules state how to report someone
This makes me wonder how much hammering a box can take. 6 people all firing dirb and more...!
The VPN network is good
resilient
hi @steep agate , it's me vs you a lot!
yeah
I bet you've played all the boxes
don't patch the box pls
I'm winning... what!
yeah
how did you lock king.txt ...
nop
gg
I would definitely pay for this, can't believe it's free
The only problems are that there's no-one playing sometimes
It is. Generally dropping a msg here before starting a match helps in finding players.
have you locked offline down or can I keep trying? π
What?
koth offline
Yes
but what do you mean?
do you change passwords or patch the vulnerabilities?
great, just checking
π€
should king.txt be at C:\king.txt ?
no
where is it? π
C:\Users\Administrator\king-server\
thanks
I got some king time π how?!
I think you kicked me out and changed the password
try to enter the machine another way π§
did you remove king.txt yourself or did I manage to write to it?
there is not only one way
sorry i forgot about the game
π€£
LoL looks good these days. Are you coming back?
ranked match
.@fallow hinge gg
. @fallow hinge got king at the end. nicely done.
hi anyone playing Hogwarts with me
When will some new machines be added to koth?
in an undefined amount of time
Good question.
this is what all koth players wanted,hope more koth machines will be added one day π€£
more windows machines would be nice π₯Ί
? π€£
there aren't many koth players
Got a full game going now π ... At least some players haha
https://tryhackme.com/games/koth/58356
Don't get full 10/10 often tho
16 min
I tried....no luck
thanks anyway
Gave +1 Rep to @harsh obsidian
how do people lock king.txt other than chattr?
loops
23min
gg. no, didn't harden anything/patch. if you need some practice, i can run a private game of carnage for us.
cool thanks for not locking us out
have you solved the docx one? I have two users but not the docx one.
you're welcome. when i saw no one getting on the box and very few flags being submitted, i figured no need to patch or harden
i actually found a faster / easier way than that
@craggy spruce I sent you a pm
I'm amazed of all those players no-one else scored
hello to anyone else playing carnage @MasterCynder @ATalkingSausage
Anyone know how to get custom name for busybox? Whenever i rename it it says applet not found
Um you can just download separate binaries?
Or compile your own - either way, you don't need to rely on in-box busybox. If someone messes with that, you'll never know.
Yeah but whenever i download the binary or compile it my self as soon as i change the file name it says: applet not found.
I know its possible but i dont know how
You realise that whatever applet you are using of busybox, can be compiled to run solo? e.g. chattr.
You don't really need the whole busybox package just to run chattr.
I know. I can rename busybox to chattr and it will work as only chattr or i can only compile chattr solo as you said but i just want the whole busybox package under a custom name.
Busybox can take the first argument as the program to run, eg busybox ls
You might be able to rename it, but I suspect it'll try and use it's new name as the command
Yeah thats the problem. But i know its possible ive done it before a few years ago but i cant remember
is Tyler a bit broken for the upload one? It doesn't actually write the file you upload to disk?
hi @sour zealot, really fun to play against you π
thank you for not locking us out
how are you locking king.txt?
oh I see
@sour zealot why can't I find your files? rootkit?
gg
gg
please answer my questions π
My files were in /tmp/... so its easy to miss
what name did you put in the find because my files arent called busybox
I'm looking in /tmp right now
yeah it was very weird. in one shell i had a different /tmp directory then in another shell
interesting
no i never saw any of your command. were you hiding your shell or was it just me
7 min
@fossil pecan Good game. I had no idea there was a 5th flag on the box.
@fossil pecan please will you invite me to the current game?
Hey sorry i missed this earlier, probably too late now, another should be starting soon i bet
next in 6min here https://tryhackme.com/games/koth/join/6d903d3d09fd37cea659d425
Opening backdoors ...
Monitoring ...
Cleanup ...
SNIPED (10s)
``` haha
GG well played on last minute flags haha π
...
hi
GG
the longer you are king the more points... so dunno anything else here
we were king for the same amount of time
Β―_(γ)_/Β―
I am not sure, but are different flags worth more points? Could it be possible F11snipes were worth more?
@fossil pecan no progress on offline?
I'm sure I pwned it before but this time I couldn't work it out!
Please join this someone: https://tryhackme.com/games/koth/join/4867ab96fdb6fd347512cf35
even if you don't play
I forgot about that one haha, I'm still not very good at Windows anyways... Need to actually practice some more eventually π
please will you join this windows one: https://tryhackme.com/games/koth/join/2a981c1fac4ccedd5dd4b11f
Yes flags can be different points (and the food box has some of the biggest ... Just harder to find π)
I'm still working, won't be able to play much, but I'll poke around a little
find / -name flag* -exec cat {} \; when I didn't know where the flags were on the machine. I always used this command haha
or grep -rli thm{ / 2>/dev/null
fun enough is that some flags won't be found by either of said 2 commands if shadow understands it correctly
one of the koth boxes has "games" you can play which are binary files with flags as rewards for winning the games
exactly
but it helps a lot of new koth players to look for the flags, just like it helped me in the beginning π @naive goblet
true did not claim said commands are useless just that there are now some koth targets that have more hidden flags that won't be as easy to access
23 minutes if anyone is down: https://tryhackme.com/games/koth/join/16de0f66677e8592330f8bb5
Is anyone is down for a private game of H1: Medium? I have only one more flag to find.....
@fair adder hey man, do you have any idea where the sixth flag is? i'm losing my mind over here
Finding.....
dir \flag.* /s
This might help
I'll give it a shot, thank you
It still hasn't found the sixth flag. I'm good on the first five, but not the sixth
neither find nor findstr is working.......
@fossil pecan is it a rootkit you have or something part of linux?
What about it?
Just check it
@verbal minnow
starting a machine
how many minutes ?
getting my machine ready
@bl4ckrabbit nice perseverance
@sour zealot wrong link
whoops correct liink: https://tryhackme.com/games/koth/join/719bd732b6fea0ad437b57fc
this is my first time playing H1: Easy
Have fun! @craggy spruce
Quick question about koth rules
am I allowed to play in the sudoers file to patch the way I PE the machine?
and change passwords/remove ssh keys
@steep agate Dude you are way much higher in level lol
Yess you are allowed to patch the machine
But you are not allowed to stop services or deleting the webpages, removing binaries
Except chattr, it can be removed
alright
gg @steep agate π
it's gonna come down to, quite literally, the last minute @fossil pecan
Which machine?
suppose i participate in a koth
there is an ip
say 10.10.183.139
now where to access that
i open a random attack box and try accessing it
but i don't think it works
Attack box should work, better from VPN tho
How to open attackbox ??
I am opening an attackbox by going in a random tryhackme room and starting the attackbox
Will it still work !!
I'm a bit confused
i'm not sure, i don't use attack box sorry .. i think they are on same vpn, did you try already and it didn't work?
can download vpn config here and connect direct or local vm
https://tryhackme.com/access
Okay i'll try
Yess it works
Download your openvpn from here
You can play with openvpn too
And if you don't know how to use open vpn here is the guide
gg
streaming now - next game in 20 min https://tryhackme.com/games/koth/join/219c83bff999c095118be38a
nicely done @misty elk
c1nn3r, are you on here?
You can change it from your profile >> About You.
https://tryhackme.com/profile
thank you very much!
Gave +1 Rep to @nova tide
Hello!
Yoyo
gg
(24min)
@steep agate How do you guys do that troll thing where you send ascii art over to someone's terminal in KoTH
You can output a binary to a tty shell using such as ./nyancat > /dev/pts/<tty session number>
You can see their tty sessions using ps aux | grep pts
The question now is how do you escape that π©
@median tapir and even without TTY , you can run commands in someone else's terminal, send nyancat, etc.
I just saw the message now, sorry
Hahaha with goober dropping 8 flags right at the end.. will it be enough??
clutch move for the tieβ¦
Haha I dropped them cause I knew i had no hope
Damn gg goober⦠with that last flag with 18 secs left
@fringe valve
Im bored at work watching koth games β¦. Hahahaha
I have a lot to learn honestlyπ₯²
By the way..how do i change my tryhackme username
you would need to email support for that
Any special points to watch out for?
think there are some guidelines for how to write a nice email requesting a username change in the pins of the #site-support channel
and also it might take a while before the email support gets to it as there is only one person handling said support email and they got a lot of emails to sort through
Thanks for the heads up
Gave +1 Rep to @naive goblet
no problem
quick question; besides editing the king.txt file, is there any other way to be king?
@nova tide
@fossil pecan ?
king points are only scored by who has username in /root/king.txt (different locations on windows) and get 10pts/min (each box serves "current king" via port 9999) - this is an official koth service and should not be altered, so no the only way to be king is when your username is in king.txt
TLDR; no must have username in /root/king.txt π
uh is the lobby bugged for anyone else
What seems to be the issue?
its good now, it just had the timer with no ip, but everyone called a vote n it seemed to fix it
ya same haha, we got all reset votes to get it going π
aah that happens sometimes, iirc if you just hit refresh it would show up.
Not sure if that was the same bug in your case.
Did the machine show up as Machine Expired?
ongoing matches only show if/when 1+ king minutes awarded .. i think π€
Weird π€
darn u
Anyone know where the king file for the Medium machine is? I finally got admin priv but couldn't find it for the rest of the gameπ
C:/king.txt
gg @steep agate π
gg
there isn't chattr on this box?
which box ? h1-medium ?
yh
there is no chattr on windows
sigh
@broken pilot ggπ
??
@nova tide ?
@orchid kelp You really thought you could delete this message?
@nova tide is this against the rules?
After you chattr the binary you can't delete it.
Not against the rules.
I was completely lost with this message, I was like WTF? π€£
Β―_(γ)_/Β―
what happened?

@short tusk one bug in machine
@short tusk @nova tide
I didn't know but I was trying commands and there was no king.txt but when you are root you can create it again..
No worries. Jabba was mentioning that just in case it could be against the rules.
It can be when they report tryhackme and ban,
They are the staff members, If they wanted you wouldn't be here right now π
No need to worry no one will ban you without any reason.
Is there anyway some of the staff/ more reputable members could help me?
I've been hacked and my devices will try to hack and take over anything else I connect to... so any KOTH games and lessons. Before I knew what was happening I noticed boxes were crashing and extra ports were open.
I was thinking of creating a private game, and inviting some of the top players/ staff to investigate and shut down the process ?
Have you been hacked? for connecting to tryhackme's VPN? if so you have to configure the ip tables.
Go to Police.
If it is Windows put it in safe mode and have to do Forensics
I wish good luck ...
Please do not use our services if you computer has been hacked, you will be liable if your system attacks our infrastructure.
maybe you should undermine your theory of being hacked by logging into an virtual box which is in a virtual network with your "hacked "machine and test (for example with tcpdump) what data is being sent. I mean if suddenly new ports are open on a koth machine it litterally means nothing. It could be that other players installed backdoors or the machine just took a bit of time to start up the services listening on the new ports.
Hi @alpine quarry 
If you have any questions related koth you can always ask here or mail on koth@tryhackme.com
In your case deleting id_rsa shouldn't be an issue. π
Is BL4CKD3VIL#6424 here ??
Who is rootpiebot?
Yes
@quiet schooner DM ?
Is it related to the KoTH rules?
Nope, techniques !
Lol
Who is this Koth dude :3
@lavish crystal ??????
Glad to be back :3
Iβm hoping this day finds you well :3 Iβm thinking Iβll see this Koth guy after some practice on THM >;3
Game starting in 3 min
Someone up for koth?
yo just checked you on the leader board @fossil pecan you probably know all the flags and ways to get root on all the machines already:D
go easy on me
are you "PrinceOfPersia" username on THM? (looking at user who joined current lobby)
@fossil pecan π§βπ¦―π§βπ¦―π§βπ¦―π§βπ¦―πππππ
Next match lolπππ
@fossil pecan lol dude πππ€π€
can anyone tell me what I'm doing wrong here while making ssh connection using SSH in Production KoTH. Even after supplying id_rsa file, password is being asked??
Someone could've changed the password.
the perms in ls -al output show that it is 600
/ read only
I think it would work with r only. I could be wrong here though, never tried to compare these two.
yea Iβve never tried it with read only but thinking about it after I said it you might be rightβ¦
I mean it is on lesser permissions that minimum required, eh its complicated to phrase but yeah, iykyk
tried all 400 600 700 still same
It could be they changed the sshd_config file to only allow passwordsβ¦
- Someone could've changed the passwords.
- What Trapnatized said
- You maybe have a newline in id_rsa key. Try with -vv to see if it is accepting key or not.
Still same with rw
with -vv debug2: we sent a publickey packet, wait for reply
debug1: Authentications that can continue: publickey,password
debug2: we did not send a packet, disable method
debug1: Next authentication method: password
ashu@prod.thm's password:
Donβt know if you added your own ssh pub key in to authorized_keys .. but it could be permissions not set to 700 for .ssh and 600 for authorized_keysβ¦
You need password. Someone probably changed it.
I'm new to KoTH, seems pretty tough to compete if someone is changing pass within 5-10 min of game start
Or they changed the public keys inside of authorized_keys and thatβs why your id_rsa no longer worksβ¦
It is a standard A/D move, generally the first thing you do is change/patch the way you got in from. This key way is one of the low hanging fruits, so it is very likely that it will be patched in less than 5 minutes.
Plus, because the machines are not new, most of the older players know the machines, and know how to get in without even doing a nmap scan, as they have notes from the last time they did that machine.
I mean it all depends on who you are playing against tooβ¦. Cuz 10 mins could be plenty of time for them to change passwords, patch the vulnerabilities and add their own persistenceβ¦
I am sorry you are facing this, but it is something you are going to face in most of the attack defense type matches. On the bright side, next time you see the same machine, you know exactly how to get in before anyone else.
We grow.
Thanks for the info otherwise I'll be stuck at only one exploit forever thinking I was doing something wrong
There are mostly 3-4 ways to hack into every KoTH machine, so if one doesn't work out, you can start looking for others. There is a good chance that all might not be patched.
Agreeβs with mr Holmesβ¦
I'm happy to join/host private matches for practice if you want, feel free to DM me anytime π ... I also know most of the entry points (for Linux boxes at least haha) if you have any more questions π
Argh! Thought I was getting somewhere and now there's a king! π Lots of "Hello friend in my term" π
What's the fun about doing every koth machines a hundred times @fossil pecan ?
Always more to learn! Been going extra hard today using games testing new tools π₯³
Did you deleted the authorized_key file for user Ashu ? I wasn't able to ssh using his private key so I want to be sure that's not an issue on my virtual machine
@fossil pecan
i don't patch stuff usually, probably other player ... i can put it back π
No that's fair game I should have done the same thing if I was connected first
If you don't patch any stuff you loose very quickly your king role don't you ?
i have a few good techniques for king, it's more fun to let people in and join the party haha π
imo
But when people are root that's just a stupid deleting/creating game for king.txt file right ?
tons of different ways to protect / fight for it, pretty fun actually
new password for ashu lemmeinpls π
Ok I didn't knew that, because I was thinking that as root you have some unlimited power π
I'm out, just trying to do my best with tcp/9002 backdoor but I'm stuck, stupid length restriction ππ
ah, ya that's a tricky one haha
For an easy machine like it, 9001/9002 aren't obvious

GG @steep agate too fast bro..
there are other paths open, I only corrected 1...
yea i gotta work on finding multiple ways in all the boxes...
@steep agate hahhaha that was funny. i was wondering why my chattr wasnt workind ....
*working
hehehe why did i troll him π€£
hahahaha i thought that other other day when i killed your shell