text stringlengths 4 952 | start float64 0 9.37k | duration float64 0 0 | meta dict |
|---|---|---|---|
proxy if we requested it in our browser and didn't get rid of it adding the header it wouldn't work because we' be going to the Blazer page so that's what I meant about um it not always being obvious and always having to remember you did that so let's put a bunch of dot do slashes uh we could count how many directories... | 1,812.76 | 0 | {
"video_id": "nuwlmlEp4qY",
"title": "HackTheBox - Lantern",
"url": "https://www.youtube.com/watch?v=nuwlmlEp4qY"
} |
know why I didn't save that oh well um maybe there's a config file in a uh different component now that we can read right so we only see um lantern. htb here but maybe we could go and then internal Lantern and get a config out of that so that's a possibility that I'm thinking of for this file disclosure but let's see w... | 1,874.039 | 0 | {
"video_id": "nuwlmlEp4qY",
"title": "HackTheBox - Lantern",
"url": "https://www.youtube.com/watch?v=nuwlmlEp4qY"
} |
because we just added to the length of a string right and it's a binary protocol so before that string exists there's probably a number that says how long to read so because we added probably six characters there it cut six bytes early and then didn't read the end of the Json which was the double quote um squirly brack... | 1,951.519 | 0 | {
"video_id": "nuwlmlEp4qY",
"title": "HackTheBox - Lantern",
"url": "https://www.youtube.com/watch?v=nuwlmlEp4qY"
} |
Blazer we have this Blazer traffic parser so let's install this and now we have this btp tab so we can now send this over and this gives us Json and if we add the do do slash then copy this tell it to go Jason on to Blazer it's going to um update everything I go back to the proxy paste this for the request and this we ... | 2,018.44 | 0 | {
"video_id": "nuwlmlEp4qY",
"title": "HackTheBox - Lantern",
"url": "https://www.youtube.com/watch?v=nuwlmlEp4qY"
} |
this this is probably us uploading the resum from the python appliation so let's see if we go choose a module um let's choose a module that doesn't exist so we can do please subscribe and then I guess click search and we see an error Cur could not load file or assembly opt components please subscribe. dll so it's appen... | 2,098.48 | 0 | {
"video_id": "nuwlmlEp4qY",
"title": "HackTheBox - Lantern",
"url": "https://www.youtube.com/watch?v=nuwlmlEp4qY"
} |
the dll so let's copy this to file and I'm going to call this logs. dll save it and then just like last time we want to remove the header and then we can go back to Il spy we can do file open and I wish it remembered my home directory this is always annoying home IPC htb Lantern logs dll and let's export this to a file... | 2,170.96 | 0 | {
"video_id": "nuwlmlEp4qY",
"title": "HackTheBox - Lantern",
"url": "https://www.youtube.com/watch?v=nuwlmlEp4qY"
} |
Cs and if we look at it we can see exactly how this works so we have a lot of assembly information right at the top see right here it's building that web form um there's probably like a goey or something to add all these attributes I don't know exactly how Blazer works but I can't imagine someone going in hand jamming ... | 2,218.52 | 0 | {
"video_id": "nuwlmlEp4qY",
"title": "HackTheBox - Lantern",
"url": "https://www.youtube.com/watch?v=nuwlmlEp4qY"
} |
be this box so it clears that box checks if it exists and then reads it into um that box and then puts file text. | 2,275.599 | 0 | {
"video_id": "nuwlmlEp4qY",
"title": "HackTheBox - Lantern",
"url": "https://www.youtube.com/watch?v=nuwlmlEp4qY"
} |
add um this is probably changing the button so if we click on application it changes it to access maybe right and then on initialize we have read log so what we want to do is edit this file and instead of it doing read log we're going to have it run a command for us right so let's um we have to make a net application s... | 2,288.72 | 0 | {
"video_id": "nuwlmlEp4qY",
"title": "HackTheBox - Lantern",
"url": "https://www.youtube.com/watch?v=nuwlmlEp4qY"
} |
blank right so I'm going to copy the logs. s over top of class one and now we want to change the name space so let's see the name space of logs we want to change it to exploit because that's what we um created I think it is case sensitive and when we did the net create we did it a lowercase right uh net new yeah we pro... | 2,362.96 | 0 | {
"video_id": "nuwlmlEp4qY",
"title": "HackTheBox - Lantern",
"url": "https://www.youtube.com/watch?v=nuwlmlEp4qY"
} |
spaces um and if we Google a lot of these errors um it would tell us to put a um generate assembly info false into our CS project so I'm just going to put that here so generate assembly info false um I don't know if I want to put this in or try to work without it so a lot of that error is coming from our code having al... | 2,442.599 | 0 | {
"video_id": "nuwlmlEp4qY",
"title": "HackTheBox - Lantern",
"url": "https://www.youtube.com/watch?v=nuwlmlEp4qY"
} |
but it was version 60 let's see does that add it does and then we also want to add the web components so this is just adding the um packages so we have now the item groups oh this is what we added right so we build release let's see and it looks like we can build awesome so our exploit right now isn't doing anything di... | 2,518.119 | 0 | {
"video_id": "nuwlmlEp4qY",
"title": "HackTheBox - Lantern",
"url": "https://www.youtube.com/watch?v=nuwlmlEp4qY"
} |
CLE then we want to um let do process new process start info um the file name we don't want pseudo let's do bin bash uh start arguments I guess it's pulling that from where it's reading logs from we'll do- C and let's see we can do b-i Dev TCP 10 1048 9,1 0 and 1 and I just realized I forgot something I think it's like... | 2,566.599 | 0 | {
"video_id": "nuwlmlEp4qY",
"title": "HackTheBox - Lantern",
"url": "https://www.youtube.com/watch?v=nuwlmlEp4qY"
} |
the output running the process um do we have to do a wait I think we have to process wait for exit because when we start this it just starts the process I don't know if this like read to end um that actually probably waits for the exit right I don't know but here we're going to wait for the process to exit and then we'... | 2,649.4 | 0 | {
"video_id": "nuwlmlEp4qY",
"title": "HackTheBox - Lantern",
"url": "https://www.youtube.com/watch?v=nuwlmlEp4qY"
} |
password that's right so now we log in we want to upload content this is where we turn burp Suite intercept on browse uh we want to go into our directory so htb then the Box name is Lantern we called it exploit bin release net exploit dll my intercept is on right it is there we go and oddly it's a web request now when ... | 2,720.68 | 0 | {
"video_id": "nuwlmlEp4qY",
"title": "HackTheBox - Lantern",
"url": "https://www.youtube.com/watch?v=nuwlmlEp4qY"
} |
here see browser Dev tools for details console let's see object reference not set could not load assembly um system runtime version 7 so we want to change our runtime time so let's go exploit CS net let's change this to 6.0 that looks to be better build release hopefully it still compiles it looks like it does and I do... | 2,825.16 | 0 | {
"video_id": "nuwlmlEp4qY",
"title": "HackTheBox - Lantern",
"url": "https://www.youtube.com/watch?v=nuwlmlEp4qY"
} |
if we can call it like exploit two let's try that real quick I'm going to be lazy and we'll call it like this this may actually work because we didn't change the length of the string uh file may have changed I don't know which is happened there I'm guessing um we can't just change that there's probably other thing with... | 2,931.96 | 0 | {
"video_id": "nuwlmlEp4qY",
"title": "HackTheBox - Lantern",
"url": "https://www.youtube.com/watch?v=nuwlmlEp4qY"
} |
right yes Json Blazer copy if we have to rebuild the project because that's going to be a pain oh the file already existed oh my god um I'm just going to call this run CMD and let's see does a CS project have exploit in at all it does not let's see bin release project assets Json exploit see so Nam space wonder if I ne... | 3,075.559 | 0 | {
"video_id": "nuwlmlEp4qY",
"title": "HackTheBox - Lantern",
"url": "https://www.youtube.com/watch?v=nuwlmlEp4qY"
} |
more of a pain than I expected so we're going to give this run CMD thing one more time and then I'm going to change it to a reverse shell just so we don't have to do it twice in a row but I really wanted to show it working run CMD copy I deleted where I copied copy there we go Blazer bunch of dot dot slashes opt compon... | 3,226.119 | 0 | {
"video_id": "nuwlmlEp4qY",
"title": "HackTheBox - Lantern",
"url": "https://www.youtube.com/watch?v=nuwlmlEp4qY"
} |
here we're going to edit run CMD I'm going to call this rev shell and let's see did I thought I oh I don't know why the arguments was way down there b-i that looks fine okay try and think what we have to do uh we have to add the packages so add the components web package and then we also want to add just the regular co... | 3,334.4 | 0 | {
"video_id": "nuwlmlEp4qY",
"title": "HackTheBox - Lantern",
"url": "https://www.youtube.com/watch?v=nuwlmlEp4qY"
} |
the error I think I just ran into before I got that working when I um let's see went into exploit is I think there was some net like properties that got compiled into the binary that still exploit um we may be able to verify that if we do net 6.0 strings run g-i does exploit exist here yeah so there are still reference... | 3,460.76 | 0 | {
"video_id": "nuwlmlEp4qY",
"title": "HackTheBox - Lantern",
"url": "https://www.youtube.com/watch?v=nuwlmlEp4qY"
} |
um let's go back to the Box let's enter a python command import PTY PTY spawn b bash stty raw minus Echo foreground and then we can export term is equal to X term so we can clear the screen and now let's see what we have here so on Lantern admin we have this app. Riser if I cat this I don't see let's see grap dri I'm l... | 3,522.599 | 0 | {
"video_id": "nuwlmlEp4qY",
"title": "HackTheBox - Lantern",
"url": "https://www.youtube.com/watch?v=nuwlmlEp4qY"
} |
S um lot of Errors let's hide error messages and I think my terminal kind of died temp WM prod configuration okay sensitive let's see let's just see if we can get a s shell because that would be a quicker than fixing up a terminal looks like we do have an idsa key so let's copy this and we'll SSH into the box okay V To... | 3,599.28 | 0 | {
"video_id": "nuwlmlEp4qY",
"title": "HackTheBox - Lantern",
"url": "https://www.youtube.com/watch?v=nuwlmlEp4qY"
} |
is DB storage uh file data.bin what is this I have no idea what that data D in is um let's see but it looks like all that's irrelevant I can't really find any um sqlite database or passwords in these configs but we can see our user can run the command Pro as root so I'm guessing that's going to be the path so let's tak... | 3,737.44 | 0 | {
"video_id": "nuwlmlEp4qY",
"title": "HackTheBox - Lantern",
"url": "https://www.youtube.com/watch?v=nuwlmlEp4qY"
} |
enable us to like examine CIS calls that are running and can pretty much rebuild the output that's going off of automation. sh there is also something I bet if we ran like lines it would point out um thas has mail so if we look at our maale right we could see a message from HR that says congratulations or welcome to jo... | 3,832.44 | 0 | {
"video_id": "nuwlmlEp4qY",
"title": "HackTheBox - Lantern",
"url": "https://www.youtube.com/watch?v=nuwlmlEp4qY"
} |
operation right Pole right right right and I want to log all these right operations so if we do DH again um we can specify d e right and this is only going to show us the right operations and this is going to be Nano writing to the screen so we see buffer 1B 5B 3F 32 3 5 68 so if we wanted to we could probably go I'm j... | 3,910.319 | 0 | {
"video_id": "nuwlmlEp4qY",
"title": "HackTheBox - Lantern",
"url": "https://www.youtube.com/watch?v=nuwlmlEp4qY"
} |
five fancy escape sequence let's add 25h so 25h is used to show the cursor 25 would be used to hide it I think um but we can see the data does change so it's mainly the like last character so we 1 B 5 B3 F32 we see that um the same but we see 6 C 68 6 C 68 so that is changing we also have 33 77 so we have data being wr... | 4,002.68 | 0 | {
"video_id": "nuwlmlEp4qY",
"title": "HackTheBox - Lantern",
"url": "https://www.youtube.com/watch?v=nuwlmlEp4qY"
} |
we'll copy it back to our host and this database is still a little bit confusing um and I don't fully understand it but we'll try to explain what I can understand so I'm going to contr C we have 250 events that should be good um let's get this over to or box so I'm going to do NC lvmp 901 I'm going to call it nan. | 4,086.72 | 0 | {
"video_id": "nuwlmlEp4qY",
"title": "HackTheBox - Lantern",
"url": "https://www.youtube.com/watch?v=nuwlmlEp4qY"
} |
DB we can C this file to Dev TCP 101048 901 and then let's do SQL light 3 nan. | 4,113.96 | 0 | {
"video_id": "nuwlmlEp4qY",
"title": "HackTheBox - Lantern",
"url": "https://www.youtube.com/watch?v=nuwlmlEp4qY"
} |
dump we can see all the data in this and the columns let's see let's just do do less so we have ebpf data so the First Column is going to be the PID so P ID3 uh 3311 then we have the CIS call so which is going to be right um that's going to be labeled stack Trace then we have Comm which will probably be what's see prob... | 4,127 | 0 | {
"video_id": "nuwlmlEp4qY",
"title": "HackTheBox - Lantern",
"url": "https://www.youtube.com/watch?v=nuwlmlEp4qY"
} |
be better filter for oh we can just click on right no we do entry point this is not what I was expecting I was hoping to just see all the parameters see maybe it's the chromium okay so right we have a file descriptor then the buffer and then the size and then these three arguments aren't really used so this is going to... | 4,214.96 | 0 | {
"video_id": "nuwlmlEp4qY",
"title": "HackTheBox - Lantern",
"url": "https://www.youtube.com/watch?v=nuwlmlEp4qY"
} |
here's one so again follow descriptor the buffer and then the length I don't know why the buffer is longer than we expect right because it should only be this right here and when we looked at it in um this let's specify file nan. DB uh we're going to have to change the terminal profile annoying but if I look at it like... | 4,317.52 | 0 | {
"video_id": "nuwlmlEp4qY",
"title": "HackTheBox - Lantern",
"url": "https://www.youtube.com/watch?v=nuwlmlEp4qY"
} |
to us let's go back to our netcat Command send change our size again SQL light so the first one I don't know why I have AIT D there but this is what we're looking at I think 1B 5B 3 F32 and then we have a bunch of extra data that the guey was kind of just hiding it's it's only showing us the six bytes so what we want t... | 4,403.4 | 0 | {
"video_id": "nuwlmlEp4qY",
"title": "HackTheBox - Lantern",
"url": "https://www.youtube.com/watch?v=nuwlmlEp4qY"
} |
let's just move Nano into SQL and then touch app.py open up visual studio code okay awesome so let's start the script off by adding a shebang user bin and Python 3 import SQL light three uh we probably want to import other things but we'll leave that for now um connection SQL 83 connect we want to connect to Nano DB we... | 4,479.84 | 0 | {
"video_id": "nuwlmlEp4qY",
"title": "HackTheBox - Lantern",
"url": "https://www.youtube.com/watch?v=nuwlmlEp4qY"
} |
print the row and just test to make sure it works Python 3 at Pi there we go so that does work um so let's see result code is equal to I want to say that was the fourth row uh print result code that looks right and then let's see the arguments that we send to the right CIS call that's going to be the very last one so I... | 4,568.52 | 0 | {
"video_id": "nuwlmlEp4qY",
"title": "HackTheBox - Lantern",
"url": "https://www.youtube.com/watch?v=nuwlmlEp4qY"
} |
can do decode like that um can't decode some so let's say errors is equal to ignore there we go and if I xxd this we have a lot more data than it showed right and I think the issue could be how it's doing line breaks we saw that um earlier when I did my said how like back sln didn't look as good as back SLR when I did ... | 4,659.04 | 0 | {
"video_id": "nuwlmlEp4qY",
"title": "HackTheBox - Lantern",
"url": "https://www.youtube.com/watch?v=nuwlmlEp4qY"
} |
did was expecting a little bit more result code see print 8 plus result code is that command working like we think it is I think it is I think we just have to collect more data let's run this for a little bit longer see decode wonder if we get rid of this and print everything don't want that it's got be more characters... | 4,780 | 0 | {
"video_id": "nuwlmlEp4qY",
"title": "HackTheBox - Lantern",
"url": "https://www.youtube.com/watch?v=nuwlmlEp4qY"
} |
we're going to continue if it isn't then we're going to set it so this should get rid of all the duplicate time stamps right run this we have ech so it's starting to look like it's typing Echo maybe we just didn't copy the rest of it that is my hope going to remove nan. | 4,903.36 | 0 | {
"video_id": "nuwlmlEp4qY",
"title": "HackTheBox - Lantern",
"url": "https://www.youtube.com/watch?v=nuwlmlEp4qY"
} |
DB we have 1500 events I'm going to let it get to 2,000 H 1500 should be good those are going to be my famous last words so let's write to the file cat there we go I'm going to rerun the script and there we go we have it we see Echo and that's writing the string to PSE sudo so if we copy the string we can do su paste i... | 4,929.239 | 0 | {
"video_id": "nuwlmlEp4qY",
"title": "HackTheBox - Lantern",
"url": "https://www.youtube.com/watch?v=nuwlmlEp4qY"
} |
shoot I'm glad that worked I'm actually surprised because when we were capturing the event um I got rid of logging rights only so instead of dump let's do a select star from um Nan DB where CIS call like right I think that will work I'll probably have to put that in double quotes select star from ebpf there we go this ... | 5,012.639 | 0 | {
"video_id": "nuwlmlEp4qY",
"title": "HackTheBox - Lantern",
"url": "https://www.youtube.com/watch?v=nuwlmlEp4qY"
} |
well I swear some of these time stamps are identical um curs the demo God soon as I'm trying to explain it don't fully understand what's going on let's print one sort uni- C sort NR there are no unique time stamps here so by that logic that time that R time thing I just did here does not matter okay so did not need it ... | 5,146.719 | 0 | {
"video_id": "nuwlmlEp4qY",
"title": "HackTheBox - Lantern",
"url": "https://www.youtube.com/watch?v=nuwlmlEp4qY"
} |
all I just erased the database I wanted to keep oh well uh select so now we have the right yeah so I think when we do that select statement actually like when we filter for CIS call um we get a lot more of rights if we didn't do the filter we didn't see these duplicate time stamps but when we do the filter we do so thi... | 5,241.639 | 0 | {
"video_id": "nuwlmlEp4qY",
"title": "HackTheBox - Lantern",
"url": "https://www.youtube.com/watch?v=nuwlmlEp4qY"
} |
this in so we're going to ignore any file like any duplicate um time stamps then it starts echoing and I didn't capture enough data for us to see the entire command there we should have left that capture running longer um we pipe it to xxd maybe the data is there and some anti code is like deleting it but you get what'... | 5,323.119 | 0 | {
"video_id": "nuwlmlEp4qY",
"title": "HackTheBox - Lantern",
"url": "https://www.youtube.com/watch?v=nuwlmlEp4qY"
} |
um you are filtering the event code but we'll ignore that running the python script it did not give what I expected um this all looks good to me let's see definitely have a lot of data two dots z d I wonder if because when I saw the zero A's and I replace them with Carriage returns that was before we did the end this t... | 5,388.119 | 0 | {
"video_id": "nuwlmlEp4qY",
"title": "HackTheBox - Lantern",
"url": "https://www.youtube.com/watch?v=nuwlmlEp4qY"
} |
sln that also works um but yeah so that is the I guess correct way to do this and it probably would have worked before if I um had caught myself with the replace in the wrong direction but that is the python script let's go over to goang which is going to be a little bit more complicated and actually if we before we do... | 5,468.119 | 0 | {
"video_id": "nuwlmlEp4qY",
"title": "HackTheBox - Lantern",
"url": "https://www.youtube.com/watch?v=nuwlmlEp4qY"
} |
um before we do the query we have to pretty much assign what each value is is it an integer is it a string what not so we can read it in the correct way right so going to make the directory called go um let's call this uh go mod andit I'll call it go procmon write analysis analysis that is a really long name that's it'... | 5,544.96 | 0 | {
"video_id": "nuwlmlEp4qY",
"title": "HackTheBox - Lantern",
"url": "https://www.youtube.com/watch?v=nuwlmlEp4qY"
} |
that you have to just pull and you normally do that per project so it's not going to be like python where just you have all your um libraries in one central location and then if you just import it you have it it just works um instead we do a Gog and that's going to add it to the project so if we now go to go dood you c... | 5,614.639 | 0 | {
"video_id": "nuwlmlEp4qY",
"title": "HackTheBox - Lantern",
"url": "https://www.youtube.com/watch?v=nuwlmlEp4qY"
} |
that's the only place I Really Ever recommend doing Panic if I save it we can see we automatically grab database SQL so now let's do rows error DB query and this is where we want to do our select so we can do St from ebpf where I don't know I have the S there result code is greater than zero and I'm actually not going ... | 5,684.719 | 0 | {
"video_id": "nuwlmlEp4qY",
"title": "HackTheBox - Lantern",
"url": "https://www.youtube.com/watch?v=nuwlmlEp4qY"
} |
um let's do V our time let's initialize it here and the reason why I'm initializing it here not in the loop because every if I initialize inside of the loop every time that Loop goes to the next iteration our time would be back to um zero right we'd have to reinitialize it so that's why I'm initializing it outside of t... | 5,773.32 | 0 | {
"video_id": "nuwlmlEp4qY",
"title": "HackTheBox - Lantern",
"url": "https://www.youtube.com/watch?v=nuwlmlEp4qY"
} |
integer CIS call text duration arguments blob so our time you can also leave this as int that's the time stamp um we'll call this last time time stamp is going to be int and then args is going to be an array of byes okay so here we're doing the row scan and then um sending the data to each of these variables Panic erro... | 5,854.119 | 0 | {
"video_id": "nuwlmlEp4qY",
"title": "HackTheBox - Lantern",
"url": "https://www.youtube.com/watch?v=nuwlmlEp4qY"
} |
string that looks better this looks exactly like before we did the replace so let's just say output is equal to this and then we can do print strings. | 5,987.4 | 0 | {
"video_id": "nuwlmlEp4qY",
"title": "HackTheBox - Lantern",
"url": "https://www.youtube.com/watch?v=nuwlmlEp4qY"
} |
replace replace the this this negative one replace unlimited instances I believe yeah the number of times and there we go that is the program in go um little bit different than python but yeah um not sure exactly why I decided to show this but I do want to show more Go stuff in the future so I guess that's why um befor... | 6,008.119 | 0 | {
"video_id": "nuwlmlEp4qY",
"title": "HackTheBox - Lantern",
"url": "https://www.youtube.com/watch?v=nuwlmlEp4qY"
} |
have a variable outside the loop and inside um right here it's saying it's erroring because we declared it and never used it um because we created a second instance of this variable because we're in the loop um so when you just do it with a equals without the colon that means you're using the variable that already exis... | 6,076.36 | 0 | {
"video_id": "nuwlmlEp4qY",
"title": "HackTheBox - Lantern",
"url": "https://www.youtube.com/watch?v=nuwlmlEp4qY"
} |
um it doesn't match right because this is byes now and this is a string so the wallers Operator just means initialize the variable and set it um and again this isn't really a thing in Python because no matter what when you do the equals um it'll automatically convert the types for you but in go you just need to know th... | 6,138.08 | 0 | {
"video_id": "nuwlmlEp4qY",
"title": "HackTheBox - Lantern",
"url": "https://www.youtube.com/watch?v=nuwlmlEp4qY"
} |
you all next time | 6,185.92 | 0 | {
"video_id": "nuwlmlEp4qY",
"title": "HackTheBox - Lantern",
"url": "https://www.youtube.com/watch?v=nuwlmlEp4qY"
} |
What's going on YouTube? This is IPSC and we'll be doing link vortex from hack the box which is a pretty easy box as long as you're good at enumeration. It starts off with virtual host enumeration to find a dev subdomain which exposes the.getit directory and you can use git dumper to download that repository and gain a... | 0.16 | 0 | {
"video_id": "SoPIw2flzFQ",
"title": "HackTheBox - LinkVortex",
"url": "https://www.youtube.com/watch?v=SoPIw2flzFQ"
} |
with. And once on the box, there's a bash script you can run with pseudo, and it's vulnerable in at least three different ways. We'll show them all. There's command injection, there's a filter bypass, and a race condition. So with all that being said, let's jump in. As always, we're going to start off with an end map. ... | 39.6 | 0 | {
"video_id": "SoPIw2flzFQ",
"title": "HackTheBox - LinkVortex",
"url": "https://www.youtube.com/watch?v=SoPIw2flzFQ"
} |
vortex.htb. So let's go ahead and add this to our host file. So we'll do a pseudov etsy host and then we can add 10 10 1147 link vortex.htb. Save this. And let's take a look at the website. So I'm going to do http link vortex.htb HTB and we get looks like a web page bitby-bit hardware your trusted uh source for detaile... | 86.759 | 0 | {
"video_id": "SoPIw2flzFQ",
"title": "HackTheBox - LinkVortex",
"url": "https://www.youtube.com/watch?v=SoPIw2flzFQ"
} |
apps, post. Come on. CJS HTML. Uh, that's not it. Maybe that's like the front end. Maybe ghost is where the Python code is. I swear this is Python. | 145.64 | 0 | {
"video_id": "SoPIw2flzFQ",
"title": "HackTheBox - LinkVortex",
"url": "https://www.youtube.com/watch?v=SoPIw2flzFQ"
} |
Um, JSON. Maybe it's not. Uh, let's see. Does it tell us Node.js. So, it's not Python, I guess. Um, it's Noode.js. I don't know why I was thinking Python, but um it's just a open- source blogging platform. | 158.239 | 0 | {
"video_id": "SoPIw2flzFQ",
"title": "HackTheBox - LinkVortex",
"url": "https://www.youtube.com/watch?v=SoPIw2flzFQ"
} |
So, let's see what else could we do. I think the default login page is on /goast and we have sign in right here, but we don't have any credentials. We could try like um admin and then sign in or forgot. We need a full email address. | 175.72 | 0 | {
"video_id": "SoPIw2flzFQ",
"title": "HackTheBox - LinkVortex",
"url": "https://www.youtube.com/watch?v=SoPIw2flzFQ"
} |
If we try at link vortex.htb and click forgot, it actually hangs for a while. I think it'll come back with an error message because mail isn't configured. But if we try something that doesn't exist like root atsec.rocks and then do forgot immediately tells us not found. So, we have a way to validate um valid users thro... | 194.319 | 0 | {
"video_id": "SoPIw2flzFQ",
"title": "HackTheBox - LinkVortex",
"url": "https://www.youtube.com/watch?v=SoPIw2flzFQ"
} |
web content we do discovery DNS and then subdomains top million 5000.ext text is normally where I start out. Let's add the header. I'm going to do host is equal to fuzz link vortex.htb. Run this. And then I'm going to do a fs for filter size. And I'm going to hide everything of a size 230. | 249.2 | 0 | {
"video_id": "SoPIw2flzFQ",
"title": "HackTheBox - LinkVortex",
"url": "https://www.youtube.com/watch?v=SoPIw2flzFQ"
} |
And right off the bat, we see there is a dev subdomain. You could also do like -ac for autoc calibration. I know a lot of people like it, but normally when I fuzz, I want to know exactly what I'm hiding. So, I normally don't like letting the program decide for me. But if um you want to go quick, um autoc calibration is... | 273.52 | 0 | {
"video_id": "SoPIw2flzFQ",
"title": "HackTheBox - LinkVortex",
"url": "https://www.youtube.com/watch?v=SoPIw2flzFQ"
} |
The next thing is I want to try to identify like what language is running in the back end. If I just go on any file we get a not found. If I hit index not found index.html HTML and we get the page. So this is probably just a raw static file. So um not too much there. | 328.32 | 0 | {
"video_id": "SoPIw2flzFQ",
"title": "HackTheBox - LinkVortex",
"url": "https://www.youtube.com/watch?v=SoPIw2flzFQ"
} |
We can do a go buster to see if there's any hidden files. So we'll do a go buster directory mode URL http 1010. Oh no, we want to do dev link vortex.htb and then the word list will be optlist discovery webc content raft small words.ext. That's normally where I start out. And the reason why I'm starting with a go buster... | 344.88 | 0 | {
"video_id": "SoPIw2flzFQ",
"title": "HackTheBox - LinkVortex",
"url": "https://www.youtube.com/watch?v=SoPIw2flzFQ"
} |
HTML. That's definitely something I have seen in the past. But right now, we're just waiting for this Go Buster to finish to see if it gives us anything. So I'm going to speed up the video until um something interesting comes up. And there we go. We have agit. So this is a Git repository. Um if we went to uh the dev.gi... | 401.919 | 0 | {
"video_id": "SoPIw2flzFQ",
"title": "HackTheBox - LinkVortex",
"url": "https://www.youtube.com/watch?v=SoPIw2flzFQ"
} |
version control directory. And then I think it will automatically like check out the latest version. So we have a copy of what's in the dev subdomain here. And I'm curious if we just do /docrofile.go is that going to exist? It doesn't. So only the.get directories here, which is definitely odd, but um we can do a get lo... | 463.12 | 0 | {
"video_id": "SoPIw2flzFQ",
"title": "HackTheBox - LinkVortex",
"url": "https://www.youtube.com/watch?v=SoPIw2flzFQ"
} |
5.58. We're copying production into where it should go and then just downloading it and starting Ghost. So this is probably how the front end is working. Um, I don't see anything like populating all the blog post. So, I don't know how it's populating the database. Uh, maybe that's somewhere in entry. Do I have entry? I... | 518.839 | 0 | {
"video_id": "SoPIw2flzFQ",
"title": "HackTheBox - LinkVortex",
"url": "https://www.youtube.com/watch?v=SoPIw2flzFQ"
} |
Um, like once it installs Ghost, how that Docker file is automatically populating all this. Maybe it's not. and maybe they just used the docker phone or install ghost and then logged in and um manually made all these entries. But there was another file we had if we did the get status and that is this file was modified ... | 546.04 | 0 | {
"video_id": "SoPIw2flzFQ",
"title": "HackTheBox - LinkVortex",
"url": "https://www.youtube.com/watch?v=SoPIw2flzFQ"
} |
ahead and see if it has the password set in their regression test. And it looks like they do. So, we get logged into Ghost. Now, I spent quite a bit of time here trying to find a way to get code execution from this because normally when you log into some type of CMS or something. You can like edit a theme, put uh some ... | 606.72 | 0 | {
"video_id": "SoPIw2flzFQ",
"title": "HackTheBox - LinkVortex",
"url": "https://www.youtube.com/watch?v=SoPIw2flzFQ"
} |
Maybe there's like a Ginger 2 syntax or something like that. I couldn't find anything here. this code injection sounded really promising, but you can't really do anything because it's just a um static code thing or a static text, right? Even though I put it in a template tag, it doesn't process the template. It just sa... | 627.92 | 0 | {
"video_id": "SoPIw2flzFQ",
"title": "HackTheBox - LinkVortex",
"url": "https://www.youtube.com/watch?v=SoPIw2flzFQ"
} |
Everything just looked like it was safely done. There was a version. Let's see. If I go settings, about ghost, we can see it's running 5.58, which is the same as that docker file. And if we Google um ghost 5580 exploit, let's see if we have anything. Uh there is this arbitrary file read vulnerability. So, let's go here... | 652.32 | 0 | {
"video_id": "SoPIw2flzFQ",
"title": "HackTheBox - LinkVortex",
"url": "https://www.youtube.com/watch?v=SoPIw2flzFQ"
} |
from JSON or zip file. And if we put a sim link in the zip, it will actually follow it and include it. So, let's show that real quick. Um, how is this exploit script doing it? I'm just going to do a less on it. And let's see. | 715.519 | 0 | {
"video_id": "SoPIw2flzFQ",
"title": "HackTheBox - LinkVortex",
"url": "https://www.youtube.com/watch?v=SoPIw2flzFQ"
} |
Uh, it puts things in exploit content images, I think. So, I'm going to do a make dur-p. We'll call it exploit content images. And then I'm going to put a sim link in here. So, I'm going to do ln- s for sim link. And then we're going to link etsy pass wd into um images. I'll call it test.png. So if I cap this, it's now... | 734.56 | 0 | {
"video_id": "SoPIw2flzFQ",
"title": "HackTheBox - LinkVortex",
"url": "https://www.youtube.com/watch?v=SoPIw2flzFQ"
} |
importer, we can uh drag and drop our exploit.zip here. So let's do exploit. Drag it. There it says import is in progress. So now I think if I just go to the file which was what? Um content images test.png we have it can't be displayed because it contains errors. And that's because um ghost is giving me the mime type o... | 810.279 | 0 | {
"video_id": "SoPIw2flzFQ",
"title": "HackTheBox - LinkVortex",
"url": "https://www.youtube.com/watch?v=SoPIw2flzFQ"
} |
constantly, let's just use the easy way and use the exploit script. And we need dash u for username. So that was admin link vortex.htb the password which I have over here. So we'll grab this and then the host URL which is um link vortex.htb htb and then it wants the file. I'm just going to give it etsy pass wd and we c... | 877.279 | 0 | {
"video_id": "SoPIw2flzFQ",
"title": "HackTheBox - LinkVortex",
"url": "https://www.youtube.com/watch?v=SoPIw2flzFQ"
} |
config and we see a potential user bob at linkortex.htb with this password. If we SSH boblink vortex.htb put this in and we get logged in. Awesome. So I do want to go touch on something else. So let's say you didn't know the whole um directory, right? | 945.88 | 0 | {
"video_id": "SoPIw2flzFQ",
"title": "HackTheBox - LinkVortex",
"url": "https://www.youtube.com/watch?v=SoPIw2flzFQ"
} |
Maybe like you don't know where ghost exists. Um this is going to be the default for the application, right? So you could just go to github.com look at how go stores the config and probably get that as go config production.json then you could also abuse the prox system. So if we do proc selfcwd that's going to get us t... | 971.839 | 0 | {
"video_id": "SoPIw2flzFQ",
"title": "HackTheBox - LinkVortex",
"url": "https://www.youtube.com/watch?v=SoPIw2flzFQ"
} |
We're up three. So, you could do it that way, but I always hate just guessing at the number of dot dot slashes. Um, I really like the prox CWD because you can make a better guess at what directory you land in. This is most likely going to be the web route, right? So that's how we get Bob's password. And with that, we c... | 1,016.399 | 0 | {
"video_id": "SoPIw2flzFQ",
"title": "HackTheBox - LinkVortex",
"url": "https://www.youtube.com/watch?v=SoPIw2flzFQ"
} |
content variable. So, when we look at the script, uh, we want to see exactly what check content does. So, if we do vim, uh, we don't have it. We could less it, but less doesn't have the syntax highlighting. So, I'm going to go ahead and copy this to my box. So, we'll do nclvmpp901 clean simlink.sh. And then we can c th... | 1,074.16 | 0 | {
"video_id": "SoPIw2flzFQ",
"title": "HackTheBox - LinkVortex",
"url": "https://www.youtube.com/watch?v=SoPIw2flzFQ"
} |
um pseudo test the link. So right now we're just making sure the link exists. | 1,140.76 | 0 | {
"video_id": "SoPIw2flzFQ",
"title": "HackTheBox - LinkVortex",
"url": "https://www.youtube.com/watch?v=SoPIw2flzFQ"
} |
We're going to execute base name and read link against that link. And if the target has Etsy or root, then we're going to say it's trying to read critical files and remove it. Else it's going to um find the link, move it into the quarantine. And if check content is set, then it's going to um cat the file. And there's a... | 1,146.48 | 0 | {
"video_id": "SoPIw2flzFQ",
"title": "HackTheBox - LinkVortex",
"url": "https://www.youtube.com/watch?v=SoPIw2flzFQ"
} |
exits. So we can prove that by creating a sim link and then um running bash. So, let's do ln- sdevshm. Uh, we'll do test.png. And what do we want to do for sim link? Um, we'll direct etsy pass wd. So, now if I cat devshm test.png, it's going to etsy pass wd. | 1,215.6 | 0 | {
"video_id": "SoPIw2flzFQ",
"title": "HackTheBox - LinkVortex",
"url": "https://www.youtube.com/watch?v=SoPIw2flzFQ"
} |
And that's actually not going to work. Um, we can because uh it's going to read the link and see Etsy's in the path and then say it's malicious. So, we could try that real quick. Um, let's do pseudo-l. We'll do check content is equal to bash and then pseudo. Run this and we'll pass in dev shm.png png and it can't becau... | 1,245.28 | 0 | {
"video_id": "SoPIw2flzFQ",
"title": "HackTheBox - LinkVortex",
"url": "https://www.youtube.com/watch?v=SoPIw2flzFQ"
} |
Now I'm just going to run that pseudo command again. And then we get root. So that's the first way we can root this. That is probably the simplest, right? But let's say that didn't exist. If they had properly um escaped it and used um integers instead of running binaries, um we still could exploit that. So, we could us... | 1,321.44 | 0 | {
"video_id": "SoPIw2flzFQ",
"title": "HackTheBox - LinkVortex",
"url": "https://www.youtube.com/watch?v=SoPIw2flzFQ"
} |
file second link. So now we have the first link that directs us over to the second link. The second link directs us over to root.ext. | 1,383.6 | 0 | {
"video_id": "SoPIw2flzFQ",
"title": "HackTheBox - LinkVortex",
"url": "https://www.youtube.com/watch?v=SoPIw2flzFQ"
} |
So if we do the read link on first link.png, it's not going to traverse the sim link. It's only going to output this. And etsy and root don't exist in this. So it's going to pass the malicious check. Then this is going to get directed to this file and then read root. So, um, let's go back to our pseudo command and then... | 1,395.12 | 0 | {
"video_id": "SoPIw2flzFQ",
"title": "HackTheBox - LinkVortex",
"url": "https://www.youtube.com/watch?v=SoPIw2flzFQ"
} |
and it just moved it to quarantine. So I'm going to change we're going to go inh home Bob and then run the same things. So first link is going to be here. We'll do home Bob second link. So now the same thing set up except instead of using dev shm we're using this right. So let's try this again and we will specify home ... | 1,443.52 | 0 | {
"video_id": "SoPIw2flzFQ",
"title": "HackTheBox - LinkVortex",
"url": "https://www.youtube.com/watch?v=SoPIw2flzFQ"
} |
real quick and where is the other one because vertemp should get cleared whenever the box reboots just like devshm. So that's why I'm saying it's probably better to do it here. Let's now directed to vertemp and we'll do first link and it actually did not work. Did I screw those files up real quick? Hold on. I honestly ... | 1,516.08 | 0 | {
"video_id": "SoPIw2flzFQ",
"title": "HackTheBox - LinkVortex",
"url": "https://www.youtube.com/watch?v=SoPIw2flzFQ"
} |
So, we have first link going to vertemp second link. Yeah. So, something's in place that is preventing us from doing it in vertemp or devsh. Um, it just really likes working out the home directory. Can't explain it. Maybe in the comments someone knows the answer to and will have done that. So now the last vulnerability... | 1,552.64 | 0 | {
"video_id": "SoPIw2flzFQ",
"title": "HackTheBox - LinkVortex",
"url": "https://www.youtube.com/watch?v=SoPIw2flzFQ"
} |
matter where it goes. Then the program is going to be like, "Yep, I'm going to move that to the quarantine directory." And then if we have this check content set, it's going to um c that file. And between the time of it moving and checking check content, we're going to replace that link with a new link that goes somewh... | 1,602.559 | 0 | {
"video_id": "SoPIw2flzFQ",
"title": "HackTheBox - LinkVortex",
"url": "https://www.youtube.com/watch?v=SoPIw2flzFQ"
} |
Uh, let's make sure we can. Uh, we know we can because Bob's the owner there. | 1,661.64 | 0 | {
"video_id": "SoPIw2flzFQ",
"title": "HackTheBox - LinkVortex",
"url": "https://www.youtube.com/watch?v=SoPIw2flzFQ"
} |
Uh, let's see. There we go. So, we can. So, what I'm going to do is a while true. And then we're going to do a ln- sf. And I'm just going to do root.shid RSA. And what we want to do is any file name. So, we'll do um race.png and then done uh while true. Did I not close that correctly? | 1,667.679 | 0 | {
"video_id": "SoPIw2flzFQ",
"title": "HackTheBox - LinkVortex",
"url": "https://www.youtube.com/watch?v=SoPIw2flzFQ"
} |
Um Oh, I forgot to do There we go. So, now if I go into ver quarantine, we see there is a race.png directing us over here. If I just try to cat this, of course I can't um cat it. | 1,696.12 | 0 | {
"video_id": "SoPIw2flzFQ",
"title": "HackTheBox - LinkVortex",
"url": "https://www.youtube.com/watch?v=SoPIw2flzFQ"
} |
If I do a um ln-sf race.png will point at ets wd. I wonder if I can show this. So even this the time between Oh, there we go. Um we see now race.png is pointed to etsy pass wd. So even this command um sometimes by the time I ls it this while true loop is already reverting it. So now what that we have to do is dev shm u... | 1,714.64 | 0 | {
"video_id": "SoPIw2flzFQ",
"title": "HackTheBox - LinkVortex",
"url": "https://www.youtube.com/watch?v=SoPIw2flzFQ"
} |
link to race.png or changing the location of that sim link to sshid rsa. | 1,800.159 | 0 | {
"video_id": "SoPIw2flzFQ",
"title": "HackTheBox - LinkVortex",
"url": "https://www.youtube.com/watch?v=SoPIw2flzFQ"
} |
So that's why that works. Um I hope you guys enjoyed that. Take care and I will see you all next | 1,806.32 | 0 | {
"video_id": "SoPIw2flzFQ",
"title": "HackTheBox - LinkVortex",
"url": "https://www.youtube.com/watch?v=SoPIw2flzFQ"
} |
what's going on YouTube this is IPC and we'll be doing Magic Gardens from hack the box which is a pretty difficult machine primarily because the foothold is extremely unique it starts off with an online shop that has a payment processor that it sends off your um request to but you can edit the actual processor so you c... | 0.12 | 0 | {
"video_id": "nsg3RYiZ_oQ",
"title": "HackTheBox - MagicGardens",
"url": "https://www.youtube.com/watch?v=nsg3RYiZ_oQ"
} |
there's a lot of other steps but the next big one is finding Jango that's using pickle clizer you can get a secret key that used to encrypt the cookies so you can make a malicious cookie and get shell on a Docker container that has the capsis module privilege so you can load up a kernel modu to get a root shells so wit... | 43.68 | 0 | {
"video_id": "nsg3RYiZ_oQ",
"title": "HackTheBox - MagicGardens",
"url": "https://www.youtube.com/watch?v=nsg3RYiZ_oQ"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.