#koth
1 messages Β· Page 70 of 1
pywhat
Sorry, I had Wiener's attack in mind from some other userπ π€¦ββοΈ
This should be the one
https://github.com/Ciphey/Ciphey
@bright geyser @placid fable excellent, thank you very much, I'll try that later.
Gave +1 Rep to @bright geyser
Gave +1 Rep to @placid fable
dumb bot
the only true way to defend spacejam
anyone up for playing a priv battle?
Creating
cay y provide the source
I'm creating a technique article, I'll share it soon :)
my github, I posted it
link
thanks i find it
Gave +1 Rep to @steep agate
π
seems good other than alias and script to keep killing shell(should suggest patching machine instead of auto kill sessions).
Yes, I'm still going to put more defense techniques in this repository, lately it's been pretty busy here because of school
would be better if you can remove those? Your choice though π€·ββοΈ
using dark magic, I think I've extracted the wordlists from hackers. interestingly, it uses a separate wordlist for each user
Is that the one from which a password is selected from 3000-5000?
For the users rcampbell, gcrawford, plague?
Yep, although the wordlists vary pretty greatly in length. plague's wordlist has just under 1k entries, while gcrawford's is around 4.5k, and none of them have overlapping entries
I did a writeup on the Hackers wordlists (or at least what I think are the exact lists)
https://jcoscia.com/post/thm-hacking-the-gibson/
How I did some silly things in TryHackMe's King of the Hill
Concerning
I'd honestly ask you not to share the wordlists themselves as that strikes me as a massively unfair advantage @molten mason
Understandable, I can remove those. None of this has been used in an actual game as I just did this tonight, so I can toss out my copy too
The process is pretty cool though, good job there
Thanks! The forbidden knowledge has been destroyed. 
Gave +1 Rep to @quiet schooner
That is some really nice blog. @molten mason Loved the last quote.
Now that you've done that though, if you'd like to discuss anything about it with me then please DM
Hey is there any recording of a KOTH game to see how it's played or what is done?
on my channel there is a video, rooting the carnage
Thanks MatheuZ!
Gave +1 Rep to @steep agate
xD
Anyone know the reason behind this error when using ssh in the spacejam koth
Load key "id_rsa": error in libcrypto
You can also check the pinned messages, there are some on John Hammond and optional's channel.
if you go to learn page and search KOTH there are 2 machines you can play with, alone, before trying the actual KOTH game
@fair adder quite a nice game, I enjoyed it π
theres a player named SamHattter he's removed all flags and copied them somewhere
later on in the game he got 8 flags after the flags got deleted
you can email at koth@tryhackme.com with proper screenshots, game id and suspected player name.
π
@nimble lily deleted your message as it was showing flag in the screenshot.
i dont notice i just was fixing the code
yea i've seen him too he just stops all ways to gain access not fixing them
hey, anyone up for KOTH?
.
Anyone up for a game?
gg
KOTH in 15 mins hop in!! https://tryhackme.com/games/koth/join/b263a980ff5377afcecc528e
yo
he got banned?
KOTH in 20 minutes who tryna join? https://tryhackme.com/games/koth/join/a6cfe966c81ea918ad875b16
Who is this Koth fella? Eh?
King Of The Hill.
Oh I know :3 I keep asking that
I got muted on the channel for asking so many times :3
Just wanted to pop in tho
The bot muted you? π
Nah, i think it was someone running this
It was a while back tho π
I havenβt used tryhackme in almost a year
20 minutes to figure out that I was using double quotes to write my name and windows echo write those quotes too... I feel so dumb π
Someone broke the box π¬π€¦π»ββοΈ
Heβs gonna win by 5 points fml hahahah
this is my second koth game ever
@worthy isle i lost to you today, we were playing the lion box
but it was fun, i got 3rd place
in koth are you allowed to delete chattr? seems to be what the king has done
ah nvm
was just moved somewhere different
yes
how do you get it back? or is there a cute alternative to remove immutable from king.txt?
Bring your own chattr, or yeah there are other ways of removing it
next time i come prepared
#include <stdio.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <sys/ioctl.h>
#include <linux/fs.h>
int main(int argc, char **argv)
{
FILE *fp;
if ((fp = fopen(argv[1], "r")) == NULL) {
perror("fopen(3) error");
exit(EXIT_FAILURE);
}
int val = atoi(argv[2]); // 16 adds the immutable flag, 0 removes it
if (ioctl(fileno(fp), FS_IOC_SETFLAGS, &val) < 0)
perror("ioctl(2) error");
fclose(fp);
printf("done");
return 0;
}
Long time, hop in, it starts in 20 mins. Public game.
Hope you don't get hogwart again, I remember what happened last time π
can i join?
our tools and tricks are in sync, we tie each other bruh @nova tide
I do know the root password 
Not like imma leave this marriage ceremony food just to play a KoTH match with you π
I would
Noob
et tu brute
which one is yours @prisma roost
He's not in
I've got an exam tomorrow sadly 
ah, best of luck for that exam 
Who studies for an exam?
You gotta try beating holmes in koth

Satisfaction > *
I mean, looked pretty easy in the previous game 
weird kinks but ok.
I DOUBT
I am just gonna say, 'Hogwarts'
I am just gonna say, 'your machine'
carnage
keyboard mistake 
Tyler
what a classic pakistani thing to say, 
I wouldn't leave the food either
@fair adder π
its not allowed to stop ssh 
I don't know if anyone is stopping ssh?
whoever it was, hehe
I don't have a pts, @fair adder
i just change the port
Anyone down for a game? It's my first time playing. Game starts in 6 minutes
https://www.tryhackme.com/games/koth/41741#
This is not an invite link, it is for spectators
You need to share the invite link in order to invite others
Ah, thanks. I played two games last night. I was able to win as king in my second game!
Gave +1 Rep to @placid fable
Anyone want to play a game?
I'm working now....
you still wanna play?
is it legal to kill other players terminal sessions from root?
cause thats really annoying π
Is it something you could reasonably expect a defender to do irl?
wouldnt that be rude to the attackers, after they put in so much effort?
everyone has to make a living ;D
Nah, killing shells is perfectly legitimate
I'm lookin for a game in the next couple hours if anyone wants to ply
15 mins till go time
Likewise
that was a blast
Yes please
Hahaha it was a surprise for sure. I'll have to add that to my playbook thanks for sharing!
Never heard of it. I got some research to do I guess lol
I noticed some weird things too. Couldn't watch cat <king>
Permissions denied
But idk if I had a full shell.
I'm sort of new
while if the player got a reverse shell via python or something else you can use:
ps -ax | grep + a regex for finding an IP address that starts with 10. π
(P.S: please don't use it just to annoy the other players)
That would kill your own shell tho too...perminant lockout right?
Oh I guess it's just run once. But wouldn't the regex match your ip as well?
Lol nvm. Still manually passing the pid to kill so it's safe
'patching' by wiping all the web directories seems like it should be forbidden
@shrewd spire i Did't do that
it felt like you did... on the second reset none of the web directories were available any more, even on the random ports?
@shrewd spire No I did't Touch the Web stuff
hmmmm
Gave +1 Rep to @stiff egret
anyone up for a koth game?
Yeah IMO that's not a valid patch in terms of the rules
in the Hogwarts machine the king file was missing (I managed to become king anyway) was it supposed to be like this (I mean the player have to do "some magic" itself) or was just that time that was missing?
it is missing intentionally. @stiff egret totally didn't forget to add that
It was 2AM my time when you asked. I'm down for another game sometime though!
Way to go, I did that box for the first time yesterday...only got one flag and no shells.
π€£
I have no clue how I missed that, but it is what it is, and in cyber sec, it's never a vuln its always a feature.
It's a pretty one tho... Because you have to watch for little details to get in while other machines (easy ones) you just run some tools like (nmap, hydra, msf) and the job is done
Great job @stiff egret
If it's the same flag I found first then you were in the right place. Next time just watch better π
Mine involved spoiler: ||SQLi on the spell/login page||
When can i start playing koth
Whenever you want :)
You can change that in your profile to intermediate
Read the first pin in this channel
i am lost in here what should i
do
how does it even work
Find flags
take ip
scan it
find ports open
find vulnerable service or application at the ip
get in the machine
get flags
than become root
and put your name at /root/king.txt
defend your title
!docs koth
You can also watch some videos people have created
That's what I need to do before I dive in.
Anyone playing now?
im enjoying koth almost more for finding all the little ways to get a foothold and root than the actual comp haha
i get root one way then try to reverse engineer all the sites and services to see what other tricks the authors came up with
Not at 2:30 AM lol
looking for people to play my first game of koth with
π
hey in the offline machine, setting king.txt doesnt seem to work
what are you trying to do?
i set king.txt to my username and its not updating the scorebored
figure it might be because i used backup privilege to get writes to admin
It's bc you patched SMB π
oh...in that case I have nearly 2 mins to catch up lol
go go go! (king might be broken though)
nah, I can't get it. I joined late but still can't get a foothold
if you cat does it show your username?
type, and yep
i dont think the win really counts unless someone gets king
what do you mean by 'counts'? is there a KOTH rank or something?
doesnt show up in the list of recent games as far as i can see
and there is a koth rank under leaderboards
lolol
still cant figure out how to make king stick in offline
administrator/king-server/king.txt seems to be the place, but no jazz
yea its in there
but it doesnt work there either
i reckon the issue might be windows echo adds a newline
ran out of time to test it π
anyone down for koth?
@shrewd spire are you still trying to get in?
I've killed your terminal sessions but you've already won so no matter
you probably killed one of my shells then, i saw one get term'd lol
what did you do to king lol π i couldnt put it back
something tricksy with lxc?
Nah, simply uploaded my own chattr binary
Made an infinite while loop which changed the file to mutable, wrote my username and made it immutable again,
Started this loop in the background as a process
haha thats clever. i was thinking of doing a binary to do the same, but this is nice and elegant
Yehz probably
i was seriously startting to look askance at echo
Nah, just a simple bash scripting trick 
yeh, I patched the crontab privesc and changed it so it ran as the serv3 user rather than root
yeh, there are at least 2 or 3 different ways for foothold and privesc on every machine
Gotta catch patch 'em all π
I joined the game 30 mins late, aquinas was already king for that time
so, after putting my name in king.txt, I just gave up
IDT you got it 

Yeh, I understand you have to patch everything but I wasn't going to win anyways, so gave up 
Uh ho, that's Pokemon sloganπ
NVM, both of you played well 
i usually dont bother patching things unless threatened
like... some sort of forest animal
I ain't forest animal 
yeh, most games you play are with beginners, patching is only needed when someone has oscp in their profile π
I shouldn't say this, but count me in
less goooo @fair adder
you know we can start a public match and it will start sooner?
2 mins
gogogo
That's for private matchesπ
infloop, you coming? π
oh, ffs, it's started already
Really hope this isn't windows or Hogwarts
Yes
lets go
I shoulda looked thereπ€¦πΏββοΈ next time :D
you guys patched vim?
Uh, not me
whoever it is, they've passed the humour check
to whoever is using pspy There are ways to kinda ruin pspy yk..
okay, to whoever is killing pty sessions, you're not killing the connection, I just respawn a pty 
it logs everything, as the lawyers say, bury them in paperwork.
lol
machine died or something? @prisma roost you able to ping?
nah, looks good but it is slow
yeah, that's why I said, someone is running pspy
slows the whole machine super down
famous last words
kill him or his connection π
be a dear and Ctrl + C yourself
Ctrl+C only kills nc sessions,
not sudo/pwncat
I have a feeling they have a nc session
AHHHH @placid fable
NYANCAT
this is beyonf annoying
slow the machine so much that even king service is not able to read the flag lol 
okay imma just throw this trick out
I have been trying to write my username into it π₯²
since the game is over already
if you throw enough information at pspy, the service clogs and you can do your work hidden
You know, I've been sporty but I could end this with pwnkit
lmao
what's on the machine writing my name will be unaffected by pwnkit - but you'll get shells tho
also /etc/bash.d is suid 
you kicked us all out and are now harassing the king file alone
WTF, I just kicked someone once and my own other pwncat shell
lol
π
gotta say this was highlight of my day so far 
torturing us? 
I did get root within 3-5 minutes 
Put to no correct use
I had to look for a cve on librenms, NEED proper notes
A'ight Imma give up
me neither anymore
Did you too get to see those, Holmes?
the mount trick?
I didn't go that far today, just normal unstable nc
why stablise it if unstable can get you nopty session
I ain't, for some time; I was writing some C code to overwrite that king.txt file

I just rm -f king.txt && echo Zeeshan1234 > king.txt
I will figure it out, patch the kernel to disallow writing to /root/king.txt π
GGs Holmes 
GG mate, it was fun
GG fun indeed
pgrep -a sh should list it all, I remember checking it at start when you already had holmes on the KoTH scoreboard π
killed yoursef
yee

in bed
Starting in 11 mins
https://tryhackme.com/games/koth/join/e7fdb7db0d7883140dc6e38b
so who was doing all the messing about yesterday, nyan cat and random etc? be keen to learn some tricks
also no idea how the king file was being reverted so quickly π id do make mutable && echo my name && make immutable && cat and find mr.holmes laughing at me from the terminal
are you allowed to change passwords in koths?
yes.
lmao
will be fun, HMU when you play, if I am also around, then we can drop in VC
someone doing koth ? I want to spectacle π
@crimson zephyr I usually do one over lunch. Started an hour ago. Same time tomorrow probably
@upbeat bone @fair adder thanks bros for the answer, maybe a next time β€οΈ
Gave +1 Rep to @upbeat bone
Is the message about cheese strats baked into the VMs or is that something being deployed by users?
Starting in about 20 mins
https://tryhackme.com/games/koth/join/fd75a20288f283675cfdfe62
@shrewd spire I don't think you'll need it, but good luck anyways!
to you too!
I'm gonna need it for this one
phew, now im king i can give you a hint π
hahahahaa
this koth machine was originally the hacker of the hill hard box
well I just started like a week or 2 ago π
i dont think its cheating to look up a writeup of that. i have a writeup from when it was a regular room for me
Currently trying SSRF...but that doesn't seem like the answer.
its a real hard box, imo
some things are different than from ^, but its mostly the same
Cool. I'll do my best to 'try harder' but might pull a few clues from there.
I appreciate it!
oh def. to get king you need to understand: command injection, php filter lfi, api brute forcing, xxe, access log poisoning, restricted shell escapes, credential reuse, static binaries, and docker escapes
you have 18 minutes. good luck π
rofl.
Was that H1: Hard?
Hackerman adminπ

hi everyone! I was wondering, how do i actually connect to KOTH?
I connected with openvpn from my kali machine, THM showed i was connected
but in the KOTH loading room, it doesnt show an ip that i use for hacking
Can i have help?
you are a spectator I believe.
then how do i play?
You will need to join a game
i did
i cliked join game
it shows me the time until start
i see whos in my lobby
then when it starts it shows machine name... no ip
does it show you in your lobby?
try refresh the browser once timer starts.
ok
if anyone is playing 42322 sorry about breaking the box twice
but also there's 10 mins left. If we reset I wont break it again (at least not the same way lol)
@verbal remnant did you get it working?
Hey everyone, I need some help regarding the Linux Privesc room in the cronjobs task
I modified the backup.sh using the script provided and using my machine ip and port and already had a listener setup but nothing is connecting back
I checked that the cronjob is there with the right path, and the file that I modified is in the right path as well
For reference I'm using the attackbox
that's the command
Ofcourse using my own machine ip and port for the attackbox and listening port respectively
@fair adder
You got it
Does anyone want to do a private ctf on H1:Easy? I want to practice my blue teaming
Sure
You still up? I just woke up
I am now
You don't really need anything specific. Just do it as you do a normal box. You might will be using some reverse shells and other common tools, don't forget to keep notes as you go through koth machines that could come in handy in future.
Also give this a read as well as the blog post linked within:
https://help.tryhackme.com/king-of-the-hill
Are there times when KOTHs tend to be more active? Weekends?
(as in, greater likelihood of participation by other members)
There are people who actively play in vc. You can join them i guess
what's vc?
voice channel/voice call
Sure thing
ight
@prisma lion you can also share invite link here so if anyone wants to play they can join you.
Gave +1 Rep to @nova tide
When are you sending?
just sent it
https://tryhackme.com/games/koth/join/476d630fcb5c32df7d117bd6
starts in about 20 mins π
starts in like 15 mins
Thx,when i am logged into my github account i give star B)
You're asking the "original author" credited in your repo to credit you..? For generic, commonly known commands no less... π€

for those who are starting to play koth it can be of a lot of use π
No doubt -- I was asking about the crediting 
oh i got it
Does anyone have tips on shell persistence?
I figured it's easy enough to setup a bind shell and just hide the process but I'm wondering what fun strategies that everyone else has
always attempt to use SSH, once you are able to login using SSH use the -S (could be -s, can't recall) to hide the shell from the w or who commands.
^starting in 10 mins
starting in 20ish mins https://tryhackme.com/games/koth/join/055c4e7875c2299a8ea96d73
KOTH machines need to be updated
nobody is realing learning from them anymore, y'all just save creds and hack faster
I think, it was mentioned that they were going to start using dynamic flags but it's been ages so don't think that's gonna happen, as for the creds, it's more a game of patching/defending your title imo
ofc but if someone have the credentials saved somewhere they can have early access and do whatever they want until someone else gets in... At least password should be random and medium difficult to brute force it
Yeh, for most "pro people" games I've played, it's assumed that your opponents have gotten root on the machine within 3 -5 minutes and you're severely crippled if you don't have notes/passwords saved
Yeah, but I've learned the lesson... I have the scans like nmap/dirbuster inside a folder, no creds / flags tho. If I see someone in before 10minutes I watch inside that folder π π
dynamic flags would most likely be for future events not for koth atm.
a few machines have random passwords, old ones might be removed/updated in the future just need to get some free time for that.
Β―_(γ)_/Β―
Dynamic flags are something I can add, but they aren't integrated with THM
Convince Skidy to commission a KoTH box from me and I'll build you a new one π
i mean he won't say no if you present an idea π
Not really how it works these days
π
I am unable to use find command says permission denied in koth
Someone messed up with it then, ls -al /usr/bin/find might not be showing the executable bit set
does that comes in fair play, I am playing for the first time
No that doesn't come under fair play. One of the KoTH rules mentions to keep the system in initial (working) state
so can we report about this or not?
You can report them to koth@tryhackme.com with the game ID, user you suspect and the reasons
ok
in some users of some machines it is normal for find to give permission denied LOL
Isn't it a basic utility, which should be usable out of the box? And the creator of the box might not have changed that behaviourπ€
WDYM, in some machines it gives Permission denied when using find command?
yeah
for example when you get reverse shell on carnage machine, you enter as user duku, you are not allowed to execute find
( this print is from a friend of mine when he was playing koth against a person from another country, and he told me this)
but that's right, removing the binaries has to report
taking some binary out of SUID also results in report ?
Removing SUID bit?
It should be allowed π
I understand, removing the binary with rm or chmod 700 is prohibited, I believe only removing the binary that is allowed SUID is enabled
Nah, one of the rules says - Removing a binary or removing the executable bit isn't allowed
SUID could be removed, it isn't executable bit
IIRC, some boxes have ||find|| as a SUID binary, so one should simply remove the SUID bit only and not the whole binary out of the wayπ
so, that's what I said, take it out of SUID, I'm using the translator, it's kind of hard to communicate around here
Ok, I get it
i from brazil
Espanol then?
no, here we speak in brazilian portuguese, there are two types of portuguese, portuguese portugal and portuguese brazilian
If you aren't root you can't see everything... You can use at the end 2> /dev/null to redirect error messages to null
If you can't use find command then someone changed permission of binary
Yes i did that
unfortunately there are some "pros" who do some copy paste to make you angry π π
So how could I be able to find flags or files with suid permissions
just set up a python server and get the binary from your PC
Put it somewhere else and change the name
So the "enemy" can't find it
i'm just on the carnage box with KOTH, and the walkthroughs online seem to match the box, however, my machine doesn't give me any response for ports 80-82 alike what is seen on the tutorials, am I missing something?
try to reset it, if nmap doesn't find any services
P.S the KOTH machines was made to practice, walkthrough won't help you improve
i only went to walkthrough after it was finished
but noticed that I couldn't navigate to the sites that the walkthrough could
i am able to nmap and find the open ports
but the html sites do not show the correct things
same now for shrek box
i'm not trying to cheat by using walkthroughs, but didn't think that I was seeing the intended behaviour
oops, just realized my own VPN was on....
@mighty spoke
found you
I'm going to do a koth event on my server next month π
hi there, how do you guys unlock a permission denied king.txt file ( I got the root access), I tried with chattr -i /root/king.txt but it didn't work, any suggestions ? thank you
the file may need to be changed to writeable chmod 600 king.txt but honestly, I find it's easier to just remove and recreate the file
rm -f king.txt && echo username >king.txt
you can't remove the file if it have a i flag using chattr.
yes, after removing it ofcourse
while true;do chattr -i king.txt;rm -f king.txt && echo username >king.txt;chattr +i king.txt;done&
you can do near nothing with the file if the imutable tag is set using chattr
you don't need to remove the file if you have already removed the flag.
the file permissions may have been set differently
if chmod 400 king.txt has been run, it doesn't change even after removing the immutable bit
Question about Hogwarts KOTH machine. I don't wanna ruin it for others who have not completed it yet, view this at your own discretion. || I cannot find a king.txt file on this machine. I have gained root access but the king file is not in /root? Can I get some help with this, I am confused? ||
Sorry for that mate @lean comet
I can confirm that I forgot intentionally didn't add the king.txt file in root directory. You need to create it in /root/king.txt and add your name there.
Ah thank you very much for the clarification.
7m left
that definitely breaks the rules
I didn't
root@web-serv:/# echo *
dev proc root run sys tmp var
somebody fucked up machine
maybe dock0d1
I will vote for reset
@brittle lotus
What?
what do you want with me?
Are you dock0d1?
yes
Did you delete binaries on H1: Easy?
and no, it wasn't me who fucked up the machine, i left the room after that
I'm tired now. Next time. π
ok, have a good rest
you can email at koth@tryhackme.com
Ok
Starting in ~13 mins https://tryhackme.com/games/koth/join/4e1d4e209b354e174f3e7d8c
dang, just now saw this
what password was that for?
or were you just trolling? π
@fair adder ^
yo
matheu
my nmap is stuck at scanning 7 services
@steep agate it wont move π¦
Hey koth staff
the Lion machine is broken(I think?)
when I get the id_rsa and paste it in
it's in a weird format
actually nvm
yes, i had the same problem.
My koth connection is hella slow for me and my friend
we're both connected OVPN
but the webpage takes FOREVER to load
and he cant even ping π¦
but nmap detects it
like whaaa
I don't remember the name of the machine but there is one which have the id_rsa "encrypted" and you have to decrypt it before you can use it
Yeah, I know that
Starts in ~15 mins https://tryhackme.com/games/koth/join/319c56952cc0c0d24037d687
take a look a this folks.
starts in 15 mins
This needs a pin.. π
that's a spectators link, you need to share invitation link for people to join.
oh you shared in #koth-voice-chat
I don't know, I'm on the phone, and snacking @brittle lotus
How do I host my own koth event :hmm: I need my own custom room anyone help π
I'm making it complete beginner friendly with all low hanging vulnerabilities, a lot of flags (So people don't get bored) and maybe 50-60 people might attend it for 2 hours π
any help from Tryhackme
π
The koth service is open source, but you will need to write an application to poll it and display scores etc.
Oh the CTFd koth-agent right
yes but no, the koth agent isn't really that suited for this environment and to get it to work you'd need to play a bit with it
at least not if you're hosting it on thm
Nah, you just poll it and process the data
yes, but the ctfd koth agent reads a file or runs a command (in this case you'd need to poll the actual koth machine) and it's expected to be reachable from the ctfd instance
Oh, wait, ctfd
Nah, I mean the tryhackme koth service
Pretty easy to have an app that polls it every minute and keeps totals, serves stats on update over websockets
i remember making a obs overlay that parsed websocket koth data from a thm koth game and displayed it
Yea, if you wanted to run your own custom games you'd need the polling and score tracking yourself though
mhm
Oh where can I find the service ??
It's on my github which is linked in my discord profile
Thanks!!
Gave +1 Rep to @quiet schooner
this one right https://github.com/NinjaJc01/koth-flag
last thing xD just a feasability check
I could write a service which could poll this api and use ctfd api to award that particular user
works right
:hmm:
hmm fair
You could, yes, but remember that you don't have perms to create boxes that can connect to the wider internet
If you speak to the site then they might be willing to set something up to help you with this over the event -- any of the internal devs (or myself) can create boxes that don't exire and have internet access, so it's not difficult to do provided you have permission to do so π
Wait I lost context here π
site*- tryhackme right
The thing is my event isn't open for public it's for students in college
CTFd I've contacted them for sponsoring enterprise license for the event but It wasn't a fruitful thing as it was a hosting platform and all the attendees of the Techno-Cultural fest (which my event is part of ) is attended by students
even thm my marketing team has contacted π
Oh, hang on, yes, you could do it by connecting to the tryhackme.com websocket for the game
Ignore me -- I anticipated polling the machine directly. Doing it with the THM points system that already exists is a much better idea
yeah...
Is there any chance that I could develop a koth room for thm which first I would use it for my event ?? π
You can develop a room and attach a machine to it then get everyone to attack the same machine π€·ββοΈ
But then you don't get the KoTH websocket stats
Actual KoTH machines can't be created without help from Skidy or Ashu (the directors/owners). You can ask if they'd be willing to help out with that π
but if you're a decent webdev you can implement the polling and points yourself
Not unless you can deploy non-expiring machines with an outbound internet connection you can't
OH!
deploy another instance ezpz
You could, however, deploy the king service on port 80
And poll it using the .p.thmlabs.com domain
π that was my initial plan 
Who, me? π
and manual polling
You can deploy two THM instances, one for polling and one for attacking
Yeah, but the one doing the polling can't connect to the CTFd instance externally
for me it's a offline event so people will be infront of me so I can ask them to rise hands π
And will also die after a maximum of 6 hours
2 hour event so should be fine
CTFd was a mix up
but yeahhh I can take this up as a hobby project maybe - Koth Opensource modification for CTFd π
But it would mess CTFd's licensing as they have their own enterprise version of koth
Hm?
Original brief did not mention ctfd
Ah
When is the event?
23rd April
But honestly all the things I do for training students I indirectly promote thm it's just soo good
What email address did you use to get in contact with THM?
it must be @pes.edu mail I'll confirm with marketing and get back one sec
yes
When did you email?
atleast 8-10 days back
Hm, okay, I'll query that and see what comes back π
Sure
hey in offline, how do you fix the king-server
suspect its been turned off
actually tips and tricks around offline / windows koth would be appreciated - had a bit of a struggle for king just now
I also had problems with offline yesterday. It worked after the restart.
hey guy we play king of the hill you can join us here : https://tryhackme.com/games/koth/join/d1f6e37e709311a42686b0e4
How do I have to write my username into offline (windows) machine? π€
I see there is a bat script, I tried to put my username there but it didn't work
nevermind, I was looking in the wrong directory π
yeah not sure what that share folder is for on offline
or if there is a way to mess with it with malicious intent
can anyone make KOTH game? π
In theory yes, in practice it's something that needs to be coordinated with tryhackme themselves
@quiet schooner dont mind but i am unable to understand your english. Your english is like a native speaker but mine is not
π
You cannot make a KoTH room without involvement from the THM staff.
Starting in 5 mins https://tryhackme.com/games/koth/join/3b2c68cc8012fec520ae8aa3
mans dominating fortune
Want me to help?
Reckon I still have creators notes for that box somewhere 
https://tryhackme.com/games/koth/join/ad49d4569b35974c26df5187 Starting in ~15 mins
He didnt Patch everything, He Just chnged ssh and telnet credentials.
did you close the port 8080 webserver @steep agate
what?
I haven't closed any doors, nor am I on this machine anymore
No problem
is anyone interested in playing king of the hill so i ll make one game?
starts ins 21 minutes
Is it allowed to use that new pkexe exploit on rooms?
Yes.
Kk
oi what
he patches all the privescs to root making it basically impossible π¦
its basically a race to see who can get to root first
yeah I can see that now
i dont do that - think it kind of defeats the purpose
It really does
(even though its basically in the rules)
is it really possible to just patch everything on the box?
this machine theere are only three paths from foothold to root, over three different suid binaries
pretty sure hes just gone chmod u-s on each one. done
welp
welp indeed
fun stuff
wrong, on this machine there are more than three ways to root, just study and search
wrong, I didn't use it
π€·ββοΈ
sometimes there's even more, just look, research and especially study
soon I will record and post a video with more than 10 minutes, talking about tips and tricks for Koth, explaining how to defend and how to attack too, it will be really cool
in my opinion the best part is definitely when defending the box
nice
I just think people should stop whining and complaining when they lose, it's part of it, I've lost a lot, but with that I learn too
didnt you report a guy when he beat you, claiming he must have used an autopwn?
I didn't report anyone, I just suspected the use of autopwn, but after you explained it right in private, it made sense
yes, you train your "blue team" side too
Isn't about learn is about taking notes and copy paste some commands or even worse (it happened) just copy paste credentials from previous games... That's why, at least random creds should be implemented
hogwarts has random creds. but even then, knowing the path to get them is basically as good as compared to someone who doesnt know
its a bit of a flawed format. i like enumerating the rooms though and building stealth tools Β―_(γ)_/Β―
The bottleneck is making the rooms interesting enough to be part of the game, but easy enough to be hackable in 1 hr.
If the creators implement really hard enums, then though it improves the quality of box, it kind of defeats the whole purpose of hacking in a race.
Random creds are there in multiple boxs, and likely in all future boxes. (with all the sarcasm in the world, fo Naughty if you reply anything on this one.)
yeah not much you can do really
UNLESS YOU RANDOMLY GENERATED BOXES ENTIRELY
i am a genius
lmao
random boot2roots when
Some part of that is there in Hogwarts with almost every file name changes and ports, but we have to make the boxes themed, otherwise one box for all might come in picture.
lmao
Exactly my point.
no comments
There were some boxes in dev with a lot of 'asked for' features, but creators got busy with life and stuff.
lol
That ideally shouldn't happen
wait lols you got a empty koth room????
this happens because when the game is about to start with very few seconds left, the person leaves the room, and even then it counts as if the person who left was still in the room, so it's practically free king, it's happened to me a few times
wait does that mean you could technically exploit this if you have 2 tryhackme accounts????
In theory yes, but I can't say for sure, probably yes
then again if you abuse this your account is at risk of getting terminated
as it would most definitely break tos
this happened to me i think twice a while ago but i thought it was a visual bug just for me and i forgot to report it to the staff because i had to leave at the same time, now that aquinas says he proved the theory
yes , that would obviously result in a ban
i lost. prick was using autopwns i think
lmao
@brittle lotus you were my hero, now you're just a random guy π π
Lmaoooo imagine
Me?
He is not talking about me.
If you have the same username on tryhackme website then yes. We were playing a game against a pro who got root before I even scanned the machine and since I saw you are top 5 I thought you were going to win π
Yes, I have the same username but I don't use autopwn.
I wasn't talking about the screenshot above, I was talking about another game π
I don't know what is the problem if I doing something wrong.
Sorry about that if it is so.
I will explain in DM to not spam here.
P.S don't worry you didn't anything wrong
OK
Last game, kth, there was a username lookup lets say, I discovered usernames, which I think are correct but they wouldn't show up in the lookup-thingy? So how does this exactly work, who gains root first controls others sessions and services basically and wins?
Im pretty new to this game mode, so I'm trying to figure out what is happening, can somebody delete like a ssh file to disable ssh login for others, sounds too OP to me
Also give koth docs + koth blog a read if you haven't already.
!docs koth
ideally whoever gets root shouldn't do this unless you actually contest the king flag, imo
theres no skill in just knowing the machine more than someone who doesnt, and abusing that knowledge to ensure they cant get a foothold
people might find https://github.com/ChrisPritchard/ctf-writeups/blob/master/tryhackme-koth/tools/mf.c a chatter equiv useful
and this super nasty king maker bad boy i used against people who really annoyed me haha π https://github.com/ChrisPritchard/ctf-writeups/blob/master/tryhackme-koth/tools/kingmaker.c
good going @brittle lotus for being the only opponent ever able to find and stop it after i dropped it (only used it against people like flint)
I need to update my repository, I wanted to know whether to banish or not to put it there, and in my video that I will also release it, with defense and aggressive attack techniques
good repository bro xD
Yeah, why do you ask?
The reason I asked this question, was because firstly I thought it is command injection vulnerability, so scanned it with my tool for like 10+payloads, and nothing was found. Little after, found a few usernames using SMB/netbios port, but they weren't valid in the web lookup, so I'm almost positive that somebody removed them from /etc/passwd. Also, found what I think is a password on a share, so I wouldn't be surprised if somebody deleted entries from authorized_keys or something... Not really sure how I would use the lookup functionality, but perhaps there was a password hash or something... Wasn't really familiar with the rules, so I'm to blame for fuzzing port 9999, which now I know is not needed.
Thank you for your knowledge.
Gave +1 Rep to @shrewd spire
@shrewd spire can you please not share all the writeups + flags here? even if you are bored.
Writeups are fine. Flags are technically not allowed to be shared per site rules anyway.
You definitely have some in the room writeups 
Also, so he did
-undelete -a
Up to 10 last deleted messages (last hour or 12 hours for premium):
none...
er, flag paths not allowed?
flag content shouldnt be in there
Yeah, I didn't see any flag contents in the KoTH Writeups
i think there is flag content in one of the main room writeups, but that room specifically doesnt accept flag submissions
I don't think sharing writeups for ALL of the machines + path for flags should be allowed either.
I mean, writeups are allowed, and how many seconds would it take you to find a repository containing all the writeups on Google?
All of the regular players have this stuff memorised anyway. Not a whole lot you can do to protect the integrity of machines this old π
admittedly mine are somewhat more comprehensive than most you would find via google
i tried to find all the paths and document them
Yeah, what's the difference though?
Click a link here or google it and click a link
If people wanna get a writeup for one of the KoTH machines they won't have any difficulty doing so
π€·ββοΈ
i guess my intention was around those who dont know the machines - if they face someone who is locking paths, and they dont know, then they could spend a frustrating hour trying to enumerate a hardened machine
at least with a guide, they can see if all the paths are closed off? eh
(and yes, it sucks, but the only way to do anything about it is box rotations, and chances of that happening...)
Mhm, it levels the playing field a little
won't it better to let them try on their on?
totally
I guess what im saying though, is you need to make me official king of the hill
Yeah, but then they just don't click the link 
emperor of the hill, if you will
Is this also prohibited?
I will update my repository and a video of mine about shell x shell of koth, I will explain how to defend more and attack too, not kill shell B)
https://github.com/MatheuZSecurity/hide-a-process -- hide a process in koth machine
Even better, just unmount procfs 
it's a simple script using mount, it's quite simple to unmount it, actually it's quite simple, but if you remove other people's permission to use mount and umount it's already more advantageous
@nova tide is that you messing up with my shell
I am not even playing π
I just joined Niko's link but they left.
seriously
who is this fake naughty then in my shell
OOF
in that case upload chattr bin in the remote system from your local
anyone up for koth
Thanks
Gave +1 Rep to @balmy pagoda
anyone wanna play?
I could
gang
@steep agate stop the oppression
U basically patch everything in 3min
Then join another game
Am just sayingπ u're too good
I tried using john to brute force the id_rsa but its telling me id_rsa file is not a private fie
oh, thanks
Gave +1 Rep to @fair meteor
Bro can u just donβt change the rsa access next Time
on all machines, there is more than one way to gain access
Yeah right, but please donβt do it. Itβs in the rules I guess
But don't worry, next time I won't change the id_rsa for you
Right
Cya next time
it's in the rules to change the ssh password, and the ssh keys, you can generate other keys too
it's all right
Right what is ssh keys then ?
the ssh keys I say would be the id_rsa, id_rsa.pub
you can change them
Are u sure ? Xd
yes
"Look for the most common possible ways to patch a box i.e: changing ssh keys, changing passwords, look for the processes running or give cronjobs a look?"
I guess it is not allowed to kill services, is it?
@steep agate could it be that you killed nostromo, the upload page and fixed the lfi
got it
no, it is not allowed to kill doors
I didn't kill any pages, I just fixed the LFI, and the file upload
I left the nostromo open exactly for you to get shell
root@lion:~# cat /var/nostromo/conf/nhttpd.conf
MAIN [MANDATORY]
servername 127.0.0.1:8080
serverlisten *
serveradmin webmaster@nazgul.ch
serverroot /var/nostromo
servermimes conf/mimes
docroot /var/nostromo/htdocs
docindex index.html
LOGS [OPTIONAL]
logpid logs/nhttpd.pid
logaccess logs/access_log
SETUID [RECOMMENDED]
user gloria
ALIASES [OPTIONAL]
/icons /var/nostromo/icons
root@lion:~#
@jovial field
why I corrected the lfi and corrected the file upload, I left the nostromo for you to get shell, if not, it's your vpn
oh
xD
Not really but fine
And it is very impolite to mess up shells with the true randomness
It was just a joke, the game was already over
Allright
You can do that? Just disconnect people's shells? Lol? That's not against the rules?
Would you do it if you were a blueteamer and found a hacker had a shell on your machine?
If so, yes, it's within the rules
(Correct answer to that is yes, btw, you would absolutely terminate their access)
if you know how to hide your PTS, that already gives you an advantage π
by the way, is it forbidden to use the rootkit to hide?
youre really good
did you patch everything? im not finding a way in
thanks π
Gave +1 Rep to @lilac idol
not really, I just fixed the main entrypoint, but on this machine there are several others
Wouldn't be the first time someone's thrown a rootkit at it π€·ββοΈ
this is my first time trying koth
thanks bro :D, the @graceful bear and @brittle ether they both know a lot too!! the only one who managed to do 26 king changes in total on me, resulted in a good match
π€£
the pleasure is all mineπ
we're together brother π π
Zzz
how long did it take you to learn koth on every machine
at first I took a beating from everyone, but after we practice we can make the machines, there are plenty of entrypoints for you to gain access to the machine
+1
I think the koth itself is a matter of speed
at any time your opponent can enter the shell and kick you out, or change credentials, I will make an article/video about how to defend yourself, techniques, attacks on opponents, later
yeah make a video tutorial bro
i have to start using rustscan
look how slow this scan is
yeah
yeah, I also use rustscan for CTF, it's faster to find the ports
rustscan == "nmap --min-rate 10000" lol
what else do you use
π
rustscan, a tip when the "hogwarts" machine falls on koth, use rustscan it will help you a lot

how has none of them logged you out or anything
Good question
actually I don't know either, because not even with PTS hidden I'm
i'm telling you, the guy is a problemπ
i havent got 1 flag because i wasnt prepared, my vm is too slow
don't look at me, you're the only one who has root on the system