text
stringlengths
4
952
start
float64
0
9.37k
duration
float64
0
0
meta
dict
here is when it goes to write the sub module of capital A it actually directs it into lowercase a which then is theg of The Parent Directory and now we're writing into modules x y and then if we go into hooks all these are samples right if I g-v sample um there's no file but but since uh the windows will be case insens...
1,109.72
0
{ "video_id": "aG_N2ZiCfxk", "title": "HackTheBox - Compiled", "url": "https://www.youtube.com/watch?v=aG_N2ZiCfxk" }
everything here we go and then I can do 10 10 14 8 and we'll do Port 90001 awesome so we can do Python 3 and HTP server and we can say RL rap NC LV NP 91 so let's go to the web server again and we'll say go clone this repel so now it's probably going to take a minute or two I'll just sleep for 60 because if this sleep ...
1,185
0
{ "video_id": "aG_N2ZiCfxk", "title": "HackTheBox - Compiled", "url": "https://www.youtube.com/watch?v=aG_N2ZiCfxk" }
correct so I guess we will just wait to see if we get anything in a minute and unfortunately nothing came back so we screwed something up which which is not a good thing uh let's see um I say not a good thing in a laughing way because I don't know get that well of all the arguments and I don't know exactly how to updat...
1,276.039
0
{ "video_id": "aG_N2ZiCfxk", "title": "HackTheBox - Compiled", "url": "https://www.youtube.com/watch?v=aG_N2ZiCfxk" }
just bad character type problems so what I'm going to do is do Echo DN we'll paste this make sure that's exact what we want new object net web client download string and that looks good I'm really hoping we don't have any tyer that I'm missing we want to convert this to UTF 16 little endian and then we base 64 w z so n...
1,336.96
0
{ "video_id": "aG_N2ZiCfxk", "title": "HackTheBox - Compiled", "url": "https://www.youtube.com/watch?v=aG_N2ZiCfxk" }
have to do like a remote merge command there we go that looks better so we can do get add dot get commit update sub modules I probably shouldn't delete a um let's go back and add a so we will add this back in get commit oh we did the get commit get push there we go we have all these files still um after it works then I...
1,412.88
0
{ "video_id": "aG_N2ZiCfxk", "title": "HackTheBox - Compiled", "url": "https://www.youtube.com/watch?v=aG_N2ZiCfxk" }
out and then let's see I'm going to remove doget doget doget and index we can do a get RM I think uh that file doesn't exist do the files not even exist in the repo oh they don't exist so um yeah they are not needed awesome so we could delete these but since they're not on the website uh we never even committed them so...
1,505.44
0
{ "video_id": "aG_N2ZiCfxk", "title": "HackTheBox - Compiled", "url": "https://www.youtube.com/watch?v=aG_N2ZiCfxk" }
get T we can see there are users on this box right we know this is our stuff let's see how do we do users we click user oh I was hoping it would do like user zero or something but when we weren't logged in we did see Richard had a repo right so we know Richard exist there's probably a way to enumerate um users on get I...
1,590.6
0
{ "video_id": "aG_N2ZiCfxk", "title": "HackTheBox - Compiled", "url": "https://www.youtube.com/watch?v=aG_N2ZiCfxk" }
that as lowercase a so hopefully the expl made sense like because we Sim link a to B.G when it goes to write the subm module in capital A it actually writes it in the dog directory because of that Sim link so uh let's see we go here is user. text here um maybe not let's see where would g t be it's probably going to be ...
1,662.48
0
{ "video_id": "aG_N2ZiCfxk", "title": "HackTheBox - Compiled", "url": "https://www.youtube.com/watch?v=aG_N2ZiCfxk" }
support to support share name I'm just going to call it share and we'll share this directory out and let's see can we copy the database so we'll do copy g. DB 10 1048 and then share we'll call it g DB and it looks like we can so the file says it's copied we look and we do have it so if we do SQL light 3 GDB then dump w...
1,734.159
0
{ "video_id": "aG_N2ZiCfxk", "title": "HackTheBox - Compiled", "url": "https://www.youtube.com/watch?v=aG_N2ZiCfxk" }
good uh past WD hash algo sounds good anything else so the default pass WD algo is Aron 2 login type login name maybe we should do Logan name instead of name uh let's see salt probably is good and I think that's all we need right so we can do select copy this from user and we have data so I'm going to change some thing...
1,819.76
0
{ "video_id": "aG_N2ZiCfxk", "title": "HackTheBox - Compiled", "url": "https://www.youtube.com/watch?v=aG_N2ZiCfxk" }
guessing I don't know if that's going to be important or not so yeah pass WD salt iteration count um we got hash function that's not shown there uh derived key length is 32 I wonder if one of those fields was like a hash function did we see that uh we can search for salt so let's see I don't see anything of like a hash...
1,910.44
0
{ "video_id": "aG_N2ZiCfxk", "title": "HackTheBox - Compiled", "url": "https://www.youtube.com/watch?v=aG_N2ZiCfxk" }
I like looking at a table more than I like looking at it in that list view so let's search for pbkdf2 uh WPA it's not going to be that we don't have true Crypt uh we could search for like g t first but g t doesn't pull anything I don't want to type it because then I go back to the beginning uh grub two probably not Cis...
1,981.32
0
{ "video_id": "aG_N2ZiCfxk", "title": "HackTheBox - Compiled", "url": "https://www.youtube.com/watch?v=aG_N2ZiCfxk" }
or pbkdf2 okay so what we're looking at here is the hasher and it takes the iteration and the key length so we know that um last field is just the deriv key length but if we look at example hashes we don't have the drive key length at all here so um that's probably not important to crack in what we want to do is see if...
2,050.44
0
{ "video_id": "aG_N2ZiCfxk", "title": "HackTheBox - Compiled", "url": "https://www.youtube.com/watch?v=aG_N2ZiCfxk" }
eo-n xxd d r-p Bas 64 w0 would that do it um let's just run this command so that's probably going to be what it wants for this user right and we could walk through that doing each of these and mainly doing all the users here but I want to uh create a python script to do this and I know most of the time I have been usin...
2,133.04
0
{ "video_id": "aG_N2ZiCfxk", "title": "HackTheBox - Compiled", "url": "https://www.youtube.com/watch?v=aG_N2ZiCfxk" }
so we'll import SQL light 3 and let's do this in visual studio just so we have C- pilot helping us a little bit there we go so we import sqlite 3 uh we we want base 64 as well and I'm going to import Cy as well so we can say um if Len cy. RV is not equal to two that looks good we can say now try and we want to connect ...
2,209.8
0
{ "video_id": "aG_N2ZiCfxk", "title": "HackTheBox - Compiled", "url": "https://www.youtube.com/watch?v=aG_N2ZiCfxk" }
256 because that's what hashcat wants right we want to say sha 256 colon then iterations and then salt and hash okay we can say else and then we'll raise the exception of unknown algorithm fine let's do accept exception as e wonder if we need a use string here we'll see what happens okay so salt I don't need to do that...
2,316.839
0
{ "video_id": "aG_N2ZiCfxk", "title": "HackTheBox - Compiled", "url": "https://www.youtube.com/watch?v=aG_N2ZiCfxk" }
we could do the Das Das username and have this so if we wanted to improve a script a little bit um instead of using CIS we could do ARG purse and then say parser is equal to that's fine add argument let's now add dasu D- username action is equal to store true then help include username and output awesome add argument w...
2,447.119
0
{ "video_id": "aG_N2ZiCfxk", "title": "HackTheBox - Compiled", "url": "https://www.youtube.com/watch?v=aG_N2ZiCfxk" }
got that what went on there that should work right Ren we're never going into this oh because I put the U way early I was giving the you the argument of python not the argument of the script there we go so now we have a good script right we can either just get in hashcat format or we can add- to include the usernames a...
2,569.64
0
{ "video_id": "aG_N2ZiCfxk", "title": "HackTheBox - Compiled", "url": "https://www.youtube.com/watch?v=aG_N2ZiCfxk" }
which is just a box of my local network say VES I'm going to call it compiled we can paste all these hashes in and then we can say slash cat say D- username so hashcat knows we're adding the usernames to the file um give it the file path and then we'll use the rocky word list and it's starting we'll see if we get anyth...
2,697.4
0
{ "video_id": "aG_N2ZiCfxk", "title": "HackTheBox - Compiled", "url": "https://www.youtube.com/watch?v=aG_N2ZiCfxk" }
11 uh 67 what was the IP 27 26 uh less n map compiled n map 26 so we do NC zv 101 11 26 and then 5985 I think and 59 uh 85 I guess so this is winrm n map didn't show this because um it's not on the top 1,000 ports but it is up so we should be able to do evil winrm to see if we can access it uh we'll do- I 10 10 11 26 U...
2,770
0
{ "video_id": "aG_N2ZiCfxk", "title": "HackTheBox - Compiled", "url": "https://www.youtube.com/watch?v=aG_N2ZiCfxk" }
of talk about like having Visual Studio like this is compiling something with Visual Studio we look at one of the notes it says like keep Visual Studio up to date like there's a lot of talk about Visual Studio but we haven't really encountered it like when we give the um repo to this application uh where is is the app ...
2,854.68
0
{ "video_id": "aG_N2ZiCfxk", "title": "HackTheBox - Compiled", "url": "https://www.youtube.com/watch?v=aG_N2ZiCfxk" }
identify visual studio version and see if there's exploits here if we go to this stack Overflow page I think it will tell us right um right here we run this command so let's see if this works for us we can copy paste and let's see does not look like that wants to run let's see let's just go in the directory real quick ...
2,918.28
0
{ "video_id": "aG_N2ZiCfxk", "title": "HackTheBox - Compiled", "url": "https://www.youtube.com/watch?v=aG_N2ZiCfxk" }
exe can we execute it okay we can um I don't know what all these arguments were the property catalog let's see if we give it these arguments now does it work it does so I'm guessing it was something with like specifying the full path and confusing poell but we executed it from this directory we can see version 1610 is ...
2,975.52
0
{ "video_id": "aG_N2ZiCfxk", "title": "HackTheBox - Compiled", "url": "https://www.youtube.com/watch?v=aG_N2ZiCfxk" }
let's just clean up some tabs to keep things clean while we look at this okay we could clone and just run this repo um we need a Windows machine to compile this you can probably compile it on Linux but I had some trouble so we'll switch over to Windows when the time comes and start going over this blog post and I don't...
3,046.16
0
{ "video_id": "aG_N2ZiCfxk", "title": "HackTheBox - Compiled", "url": "https://www.youtube.com/watch?v=aG_N2ZiCfxk" }
IPC which is interprocess communication I believe and they access this through com which I want to say is component object model essentially think of it as a way of like a set uid binary right as a local user we can ask Windows to do something and windows goes oh in order to do that I need to start this service and I'l...
3,094.64
0
{ "video_id": "aG_N2ZiCfxk", "title": "HackTheBox - Compiled", "url": "https://www.youtube.com/watch?v=aG_N2ZiCfxk" }
and looking at it they see it is writing in C in Windows temp and normally this is a really good sign because standard users authenticated users can write into this directory so if we do something like create the directory it writes beforehand then we'll have ownership over that directory and then files it drops in the...
3,153
0
{ "video_id": "aG_N2ZiCfxk", "title": "HackTheBox - Compiled", "url": "https://www.youtube.com/watch?v=aG_N2ZiCfxk" }
because they're talking about all the paths that don't work and why they tried other things which I think a lot of research kind of Misses but if you don't understand the exploit to begin with reading about all these things that don't work can be somewhat confusing but let's just keep going on right so this is where th...
3,205.4
0
{ "video_id": "aG_N2ZiCfxk", "title": "HackTheBox - Compiled", "url": "https://www.youtube.com/watch?v=aG_N2ZiCfxk" }
writes and what they're doing after that is when it writes they're going to create a junction point which is like a Sim link for directories and see if they can trick the change ownership to a different directory because if it attempts to write to a scratch location and we point that location elsewhere then it's going ...
3,253.96
0
{ "video_id": "aG_N2ZiCfxk", "title": "HackTheBox - Compiled", "url": "https://www.youtube.com/watch?v=aG_N2ZiCfxk" }
Directory of the file you need needs special permissions in order for it to trigger the rewrite and because system 32 is a more privileged directory you can't just change the Privileges to that however we can affect things in program data and the first thing they do is use a common um exploit primitive of the Windows e...
3,310.76
0
{ "video_id": "aG_N2ZiCfxk", "title": "HackTheBox - Compiled", "url": "https://www.youtube.com/watch?v=aG_N2ZiCfxk" }
directory to themselves which will let them rewrite this Mo compiler binary to be anything they want and then when they trigger a um I think a reinstall or a repair to happen on this program it runs the repair as system and then executes this binary which we replace to be anything we want which is going to be a reverse...
3,360.16
0
{ "video_id": "aG_N2ZiCfxk", "title": "HackTheBox - Compiled", "url": "https://www.youtube.com/watch?v=aG_N2ZiCfxk" }
and and then run the setup wmi provider and repair mode which then will execute this binary so that's essentially what's going to happen right and we're going to switch over to Windows and run this program and I already have it pulled up on my windows and I just cloned the repo I haven't made any changes yet I will zoo...
3,416.079
0
{ "video_id": "aG_N2ZiCfxk", "title": "HackTheBox - Compiled", "url": "https://www.youtube.com/watch?v=aG_N2ZiCfxk" }
data Microsoft and then it's going to do a create file and we call it with delete so right now we're trying to delete the moth compiler exe file and if we can we have deleted it and then we run this start wmi MSI let's see oh here we go the replace so we look at what replace is and let's see we create file file action ...
3,477.72
0
{ "video_id": "aG_N2ZiCfxk", "title": "HackTheBox - Compiled", "url": "https://www.youtube.com/watch?v=aG_N2ZiCfxk" }
exe so that's all we do so now it's going to copy shell. exe over top of moth compiler so let's build this you want to change over to release mode rebuild solution and then it's going to copy it in let's see this directory so we have this exploit let's go back to parot and I'm going to see if we can easily copy this um...
3,540.64
0
{ "video_id": "aG_N2ZiCfxk", "title": "HackTheBox - Compiled", "url": "https://www.youtube.com/watch?v=aG_N2ZiCfxk" }
build a reverse shell so let's do msf Venom uh- P I think it's like Windows x64 and probably reverse shell TCP I believe um L host is equal to 10 1048 L Port 91 formats exe and output file we'll call shell.
3,656.25
0
{ "video_id": "aG_N2ZiCfxk", "title": "HackTheBox - Compiled", "url": "https://www.youtube.com/watch?v=aG_N2ZiCfxk" }
EXE 10 10 148 share did not copy maybe it's shell uncore reverse TCP I always get these somewhat mixed up I think it's this because shell slash would be all the types of shells we can send there we go yep so we have it so we can copy this and then let's try running the exploit uh first make sure we listen on 90001 run ...
3,684.079
0
{ "video_id": "aG_N2ZiCfxk", "title": "HackTheBox - Compiled", "url": "https://www.youtube.com/watch?v=aG_N2ZiCfxk" }
we can't um so what we want to do is run as CS to switch our context to be um local so I'm going to do locate run as cs. exe do I have it on this box um yes I do so let's just copy it out of Shar collection this should be fine CP this to the SMB directory uh I don't know if that's it actually I don't like that it begin...
3,772.96
0
{ "video_id": "aG_N2ZiCfxk", "title": "HackTheBox - Compiled", "url": "https://www.youtube.com/watch?v=aG_N2ZiCfxk" }
powershell.exe 2 101048 91 okay so now we have a shell here I want to do RL WP I just like being able to clear the screen run this again awesome so let's copy this command again and see if we can run it can't run it through winrm but we can run it through um The Run SCS so we just got a few extra privileges so we can d...
3,885
0
{ "video_id": "aG_N2ZiCfxk", "title": "HackTheBox - Compiled", "url": "https://www.youtube.com/watch?v=aG_N2ZiCfxk" }
it's creating these directories we can see all these Junctions get created it just can't start the process so it's failing soon as it creates this which is bizarre huh let's go and see what the program is doing so that error message was cannot start process so what is it trying to do so doing create process and let's s...
3,987.88
0
{ "video_id": "aG_N2ZiCfxk", "title": "HackTheBox - Compiled", "url": "https://www.youtube.com/watch?v=aG_N2ZiCfxk" }
start because it couldn't find the file and that may be all we need so let's build this rebuild go back to our share we see it succeeded so copy this exploit replace that's good let's go back to parot and we'll do a copy 10148 share x.exe should overwrite this and I'm going to run it from this session um and I don't ex...
4,088.72
0
{ "video_id": "aG_N2ZiCfxk", "title": "HackTheBox - Compiled", "url": "https://www.youtube.com/watch?v=aG_N2ZiCfxk" }
uh we got to go in program data so let's dotexe see if we get a shell here if we don't then we have something else wrong but at least it looks like the exploit mostly working so it probably takes 10 to 15 seconds I think I remember the blog Pro saying there were some sleeps that weren't needed they just put them in I t...
4,179.279
0
{ "video_id": "aG_N2ZiCfxk", "title": "HackTheBox - Compiled", "url": "https://www.youtube.com/watch?v=aG_N2ZiCfxk" }
exe there should just be M compiler exe here don't see it wonder if this is another issue that we're running into I don't like that this hasn't came back yet but I'm pretty sure there should be just a MF compiler exe here program data Microsoft Visual Studio set wmi see copy what is the name program data shell. EXE Mo ...
4,294.08
0
{ "video_id": "aG_N2ZiCfxk", "title": "HackTheBox - Compiled", "url": "https://www.youtube.com/watch?v=aG_N2ZiCfxk" }
again so we'll exit our L wrap so we run the exploit and we should see MTH compiler get recreated set up wmi okay M compiler is not there so we've successfully deleted it um set up wmi we put the file back and we got a shell so I don't know what happened that first time I was running it but um maybe it just took while ...
4,401.199
0
{ "video_id": "aG_N2ZiCfxk", "title": "HackTheBox - Compiled", "url": "https://www.youtube.com/watch?v=aG_N2ZiCfxk" }
what's going on YouTube this is IP I'm doing corporate from hack the box which is an enormous box if we talked about everything going on here this intro would be three to five minutes so we're just talk about my favorites it starts off with the foot hole that is cross site scripting and the website has been hardened wi...
0.12
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
after some more things you discover a backup of the server which contains the RSA signing key to proxmox so you can forge cookies and use the proxmox API to change the local password of the box so with all that being said let's just jump in as always I'm going to start off with an end map so SC C for default scripts SV...
42.64
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
my host host F so Pudo V Etsy host and then we can add 101 11246 corporate. HTP and let's get rid of the HTTP there we go I would also be Googling around to see exactly what open resty web app server is with this version string to see if there's any known exploits there's not so I'm not going to waste time and do that ...
89.64
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
corporate htb refresh this page and it looks like we get to some type of chat system I'm just going to respond see if they respond back to me I think this is just like a script or we can wait for the message but the first thing I always try when I can talk to someone to interact with another user is uh cross-site scrip...
150.4
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
it works and we didn't get one if I go over in my browser tools we can see the reason why it did not work is because this content security policy um so let's try this again I'm going to do IC page block loading I don't know if it'll give us a new one um it just says that alert one I was hoping it would just like pop up...
214.799
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
everyone's on a new line I'm going to replace semicolon space with a return and this is the content security policy so we're allowing scripts from uh star. corporate. htb and corporate. htb we also have this that's going to block us from loading scripts inline on the page let's take a look at other domains and while we...
277.08
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
out is it w oh why did I say support this is Corporate I'm probably thinking the subdomain of support but there we go okay so now that that's running let's get all the other C uh content security policies so if I go over to corporate.
324.96
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
htb let's go web history send this to repeater we can grab this one and I'm going to put at the top so we can easily see this this is going to be support corporate htb and I'll call this cp.
350.56
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
root paste that let's do the same search and replace to replace all semicolon spaces with a new line and I just going to call this corporate. htb so we can see that bottom script self uh script Source self is not there so we can inject um JavaScript on this page and outside of that everything else looks to be standard ...
370.88
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
so I'm going to click here to open a new chat and before I click Start chatting I'm just going to type what I want in um my terminal because the agent's going to close the window in 30 seconds also we probably want to keep exactly what we sent the endpoint in case it works and we lost it just because it was in a browse...
430.479
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
it on a browser we're not we don't know if we've actually um attacked the agent themselves right so that's why I'm doing it to mine so we can see all the request I'm going to start up a HTTP server and then let's copy this payload and send it in so if it works my browser should redirect yep and then we should also see ...
487.199
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
just get a uh 404 page because that also helps us to identify Frameworks and things like that and we get 404 not found and it just reflect the data back to us so what I'm going to do is inject HTM here to see if we have injection and we do that's good and if we look at it uh or page we can't just run JavaScript on this...
554.8
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
at it we sending this V parameter quite often so I'm going to highlight this and we're going to search and I think if I had Pro I could just type that term there and find it but I don't so um I'm just going to click up all the request and we see we got one match here so in this assets JavaScript analytics Min um it loo...
628.8
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
we have to load beforehand um I wonder if I searched under analytics uh we don't have that function let's see if we go back here there is a it's either going to be in jQuery or um the vendor analytics and right at the top I see verore analytics function e so we want to include this file as well and I don't think we nee...
697.36
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
why is it has this script Source self here right so we have to now wrap this into the meta redirect so what I want to do is let's see let's go back here V xss notes we going to grab this let's see what is the best way to do this I guess we can just paste it I don't think it's going to work right off the bat because we ...
778.16
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
location is equal to http 10 10 148 8,000 slash um plus document.
860.04
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
cookie I think that's right so let's go to 10 1048 we send it and it stopped after window location so it doesn't look like it liked my quotation marks is my guess so we could change this with a different quote one of the commons ones is a back tick that will also work so let's go to 10 1048 and that looks better I don'...
878.48
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
let's see so we did document cookie we're in backtick see I don't know exactly what we're messing up oh it's probably the equal we probably have to you encode that equals because we have that V equals and then this um so let's encode equal percent 3D not found we definitely should save that in our index I wonder if we ...
979.639
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
this document.cookie and then this is where the script is ending so I wonder if we need to oh we need to ur encode that quote um so what is a quote percent 22 wonder if I need two quotes I don't know that one quote is coming from I probably only need one of those okay so let's go 10 10 148 we redirect and awesome so no...
1,117.28
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
cookie so let's go ahead and add this to our session so let's go back to storage this is Corporate SSO let me make this bigger the value we can paste this in and then refresh to see if we get anything different um does not look like it let's get off across scripting page so nothing's different there but there were othe...
1,212.2
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
Corporate corate SSO I think I spelled that wrong um cor I think that's fine then let's go grab our JWT copy paste and then the path I want it just on slash so now I refresh and we get over to services so we have password reset and our people the password reset requires current password um what I'm going to do is try d...
1,303.559
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
it requires it so we don't have any type of uh way we can bypass that the whole password changing thing is not really that interesting to me let's go to our people and we got to turn the intercept off and we can click sign in and that doesn't appear to work we have cookies let's just add corporate SSO here as well um c...
1,378.64
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
deny I don't see anything unique here uh let's go people if we give an error just get a404 sorry and I don't know what this is I'll go to wyzer no technology detected looking at this we can see internal chat messages and we can also from here get to employee profiles if we know the ID so we could enumerate potential us...
1,458.919
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
because um it just doesn't flow well but I spent a lot of time enumerating this VPN whenever doing multiple vpns I always add a MSS fix to this so I'm just going to do msf fix 1400 and the whole reason I do this is um the maximum transmission unit by default is going to be like 1489 or500 or something like that and tha...
1,547.32
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
so let's do pseudo openvpn Nora connect and it looks like we connect right away we do have a IP address if I do IP route I want to see uh what is ton one so we have 1080 so this is going to be the openvpn subnet and then it's letting us route to 1090 so let's just do an end map so we can do pseudo n map SCV OA um do I ...
1,610.039
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
thought is let's go into sharing files and seeing how this works because we may be able to find files that we don't have access to and then share them with ourselves and gain access so that is my first thought here with this parameter so let's see what this share request looks like I'm going to put my email address whi...
1,679.799
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
this and I'm going to go here and we start chatting and let's see who we're chatting with is it Nora again no this is um Julio so we're going to send that and we have another user so let's see if we can share files with this user so I'm going to go in new private window so we can have two windows open simultaneously an...
1,752.12
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
slow no so there's something odd with this private browsing tab see add corporate SSO paste get rid of SL login refresh Network tab tell me no this is bizarre look like it's something maybe DNS related the end map is finished I'm going to just kill the multi-layer VPN just in case that's doing something okay maybe it w...
1,855.12
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
him so let's see I'm going to grab this let's get an email I'm going to copy everything paste it in share file it says it's been shared refresh and we have another file so what I want to do is examine this request and what we want to do is try to share files that we don't own it's probably this post right here because ...
2,015.519
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
we have a lot more files and odly enough it always it says shared by the owner instead of shared by who actually shared it which was us but there's a lot of documents I was looking to see if there's other VPN files um one of these should stand out as not docx we have a welcome to corporate 2023 PDF so if we look at thi...
2,107.68
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
um when it finds a employee then it goes and um makes a request to log in with their birthday so let's do that I'm going to make this called um I'm just going to make a directory called code and then like let's touch um login. py sure so what we have to do is first import request and I'm waiting for vs code to load so ...
2,197.359
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
there if I started at zero um there's a chance it doesn't have employees until 5,000 and we just be waiting a long time we can actually just go this should be fine okay so the first thing we want to do is make a request and I need import requests and let's see I think if we give it a bad number it redirects us right so...
2,314.92
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
the employee was it worked but we didn't um print sure I should put the ID there so we are just completely failing that leads me believe our cookies are bad I guess we should look at where it's redirecting us to if we're getting redirected to the login which would be a bad cookie or if we're getting redirected somewher...
2,408.44
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
a regular expression I like putting the uh what I'm grabbing in a comment above it and we can look for mail 2 and then I don't want to do word word we probably say dotar and at corporate htb like that okay then print email or this will be username we have to import regular Expressions run this I have bad variable usern...
2,540.04
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
change the format slightly so I'm going to do day month year is equal to dat of birth split on slash and then we can say password is equal to corporate starter we can F string that and then say what was the format day day month month year year this format actually was month day year so we can say day . Zill 2 so that's...
2,689.24
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
better and then the password is going to be corporate starter 05 04 051 1971 that looks good the numbers are different because the people we're looking at here is not Ward whatever we're looking at Nora um but yeah so now what we want to do is make a login request so we want to go to SS and I need to log out we can buy...
2,818.839
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
login data username and password what we need and then send this we don't need to send any cookies and we can say if response.
2,920.16
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
text contains um if invalid is in I forget how to do this in Python um if invalid is in response text is it going to tell me I don't know why I had the is there there we go return true there we go why is that highlighting that should be fine okay let's get rid of these prints because we just had them there for debug an...
2,947.48
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
previously with the user if the log's not successful we're just going to put a line break so this will tell us valid employees along with the passwords so let's send this and it's looking like we're getting employees so let's increase our number um let's do 5,000 to 6,000 enter and let's see I hope there's nothing befo...
3,066.64
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
expecting it to be this invalid username or password let's just send this again okay debug console response. text yeah the other thing is the username could be a full email address uh we don't know that piece so what I'm going to do we'll do 4,000 to 7,000 and in this print I'm going to also put the ID so it can print ...
3,162.68
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
error we need to put these in quotes that a silly mistake there we go so now if we run this script again let's go run it should go relatively quickly because we're only giving it valid users and there we go let's see if any of these come back with a valid login and we have lwin Jones right here so we have one valid pas...
3,278.28
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
text paste grap cor on this to cs. text so we have a few credentials so let's go back to the welcome packet that told us the password format because that may tell us exactly um where these credentials are valid for we could just go back and go through all the notes and look ourselves and try a bunch of places but it's ...
3,354.119
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
open SSH Banner then we have a web server open on Port 80 this looks like the same exact Banner we saw on the like routable address 1010 11246 and it's redirecting us to corporate. htb now normally when I'm trying to compare to see if two IP addresses are identical I go to like some cryptographic fingerprint like this ...
3,419.68
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
likely only for is going to be supported here um we also have Port 3128 open and that is saying it's a prox MOX virtual environment rest API prox MOX is like an open- Source VMware so it's it's going to be some type of virtualization thing and then we have 10904 and the TTL decrements so we know 10904 is going to be a ...
3,491.44
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
dot dot uh let's see where we have it did I put it in code I do let's move creds up one we can move user an up one as well weeds. text let's see we probably should I guess we can use n exac let's do net exac SSH 10901 we can do both of them uh- lwin Jones DP corporate starter 04041 1987 I'm going to actually do host. t...
3,554.319
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
can do find. dtype f and we see there are definitely a lot of files in this home uh we have some Evolution stuff which is like a male client uh scrolling up we have a lot of Firefox so we could pillage Firefox there I also like looking at um Mount and we can see right here corporate. htb is mounted through NFS version ...
3,653.559
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
rule that prevents anyone other than rout from hitting 2049 on the remote host now we could try like um an SSH tunnel like this was one of my first thoughts so we can do 2049 127 uh this is 10 90 whoops 10901 so we could try this and if we do NC uh what is it zv 127 001249 um SSH complains that the connection is refuse...
3,729.4
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
I'm going to do find tier 2 wc- l106 find ye wcl2 so I'm going to do the tier 2 profile just CU it has a lot more files in it and let's see I think it's like places yeah let's do SQL light 3 places SQL light we don't even have SQL light on this box I'm going to copy up this whole uh profile so let's do a tjvf mill. tar...
3,806.44
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
places if we do dump we can easily see a lot of the data it's a bit hard to view I just like doing this to confirm we do indeed have data so let's see M places what is the format of this so let's get the URL and title of that so we can do select URL title from M places and see what's here so they went to Firefox Firefo...
3,889.839
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
um is that directory code LS and then SQL light data dump and there's not really that much data in this one the extensions are the m and let's see we have the SQL light right here so if I do SQL 3 on this we can do a dump and it stores everything in blobs and this is SQL light just showing us it is indeed a blob there'...
3,964.92
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
these I should have just done all the zeros but there we go so now we hit every um blank row so we don't have to scroll as much so right here we do have some type of login and this looks like a hash uh this is probably talking about the algorithm that's protecting it we have symmetric and then a blob there there's the ...
4,060.279
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
xxd so what I'm going to do is let's uncompress this stream and then um view it we could probably just extract this hash easily I noticed this is um encoded differently this is probably 16 bit while everything else is 8 bit because we have the periods between it which is just going to be a blank thing so 44 is D and th...
4,134.159
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
here search for pin I thought it was pin protect weird um see if we can find that quickly that's private I don't know why my search for pen did not cover that that's weird but we have two dxg so that is the same hash right um we could try to start progressing that way but I want to convert this into files so we can be ...
4,203.12
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
want to create the cursor for sqlite cursor like that and we need to um view the tables because we need to know what we want to extract so let's go back there let's do sqlite 3 364 sqlite dump and let's see I'm going to go up to the top we want this uh what is it object data and what do we want we probably don't care a...
4,276.28
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
know of compression but if we view it um we can do import is it hexdump yep hex dump. hexdump on the data right so when we view this I'm expecting this to be somewhat like a serialized string um let's go back search for pen because this gets us to where we want um where's like email right I expect this to be the actual...
4,370.679
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
nappy so you do pip install python Das nappy to download it but we can do a Snappy do decompress and then let's also do Hex dump hex dump and view this looks much better um we still have a lot of but the gibberish has kind of gone away right let's go back up to where email is when we look at email we actually have lwin...
4,443.639
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
see this and I want to say where is this on the stream uh let's see we do a bunch of zeros and then is this the iteration count I think this is going to be iterations right there I'm going to make a note of that uh let's just do it in corporate V crypto notes iterations I wanted I'm just going to copy the whole line ju...
4,523.4
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
this looks like uh maybe just information about like the user or not even user maybe the plugin I don't see anything like identifying the user there but that's all the data so this is the important data we want um if we wanted to extract the hash we could either use Python to grab it but I'm going to do uh something sl...
4,615.8
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }