text
stringlengths
4
952
start
float64
0
9.37k
duration
float64
0
0
meta
dict
just lazy um if this was coded somewhat well this should just mirror the same name as this I think but um yeah that is pretty much the box I'm trying to think if there's anything else I wanted to show I don't think there is so oh wait I lied there was one thing uh we want to look at IP tables rules right because from o...
1,750.039
0
{ "video_id": "OH00LkpHyLk", "title": "HackTheBox - Chemistry", "url": "https://www.youtube.com/watch?v=OH00LkpHyLk" }
a pretty cool thing to do with IP tables creating filters based upon um the user that's running it so with that that is the video take care and I will see you all next time
1,811.76
0
{ "video_id": "OH00LkpHyLk", "title": "HackTheBox - Chemistry", "url": "https://www.youtube.com/watch?v=OH00LkpHyLk" }
what's going on YouTube this is IPC M cicada from hack the box which is a relatively straightforward Windows box that doesn't have a web server it starts off with a numerating files on an open share to discover there's a file that contains the password new accounts are created with however without a user list we can't ...
0.12
0
{ "video_id": "21Z_byocGhI", "title": "HackTheBox - Cicada", "url": "https://www.youtube.com/watch?v=21Z_byocGhI" }
has an embedded credential you get that and that provides you winrm access to the box and this user is a member of the backup operator since the power shell script was a backup script so you have the SE backup token and that allows you to either backup the registry or active directory database both of which will lead y...
38.16
0
{ "video_id": "21Z_byocGhI", "title": "HackTheBox - Cicada", "url": "https://www.youtube.com/watch?v=21Z_byocGhI" }
thing that sticks out to me is the default Banner simple DNS plus of a Windows domain controller whenever I see that I look at the other things we see ceros active directory ldap Etc so we know we're dealing with a domain controller ldap tells us the domain which is cicada hdb but also there is a certificate that leaks...
83.2
0
{ "video_id": "21Z_byocGhI", "title": "HackTheBox - Cicada", "url": "https://www.youtube.com/watch?v=21Z_byocGhI" }
certificate SMB I think cobros um Windows RPC over HTTP ldap so we're not really getting any web services so the only place we can really start is looking at ldap or SMB SMB supports more like guest authentications so that's normally where I start in this case so I'm going to do um net exact S&B 1010 1135 and then ...
135.239
0
{ "video_id": "21Z_byocGhI", "title": "HackTheBox - Cicada", "url": "https://www.youtube.com/watch?v=21Z_byocGhI" }
SMB client - capital u and then specify a period just so we fall back to that guest authentication then 1010 11.35 SL HR put any password in and now we can do a dir and we get this notice from hr.
193.519
0
{ "video_id": "21Z_byocGhI", "title": "HackTheBox - Cicada", "url": "https://www.youtube.com/watch?v=21Z_byocGhI" }
text now I'm going to do a get to download it and then we can do notice from hr. txt and with single quotes it actually um errors out for this you need to use double quotes Additionally you can use the multi- feature which supports wild card so we could just do like the beginning of it and then a star and then that wil...
211.439
0
{ "video_id": "21Z_byocGhI", "title": "HackTheBox - Cicada", "url": "https://www.youtube.com/watch?v=21Z_byocGhI" }
works it uses the um I think it's a lookup name in um RPC we can do RPC client and we'll just do this manually really quick um we'll do - period and then 10 10 1135 and we get access denied in order for RPC client I think we have to specify the domain so cicada htb and then a slash because we want the password for and ...
262.96
0
{ "video_id": "21Z_byocGhI", "title": "HackTheBox - Cicada", "url": "https://www.youtube.com/watch?v=21Z_byocGhI" }
account type right so 500 this is the default Sid for an administrator and we can also do look up Sid or is it SIDS I think it's SIDS and then give it the FID and there we go we have administrator here and then rid brute is just going to change that last digit and go through them all and whenever it's not unknown it di...
324.52
0
{ "video_id": "21Z_byocGhI", "title": "HackTheBox - Cicada", "url": "https://www.youtube.com/watch?v=21Z_byocGhI" }
see I think 520 is a default there we go um we see Group Policy Creator earners is set for two and if we look up here where is that um 20 oh it didn't even display it so I don't know exactly what Sid type 2 is but you get the point of what we're doing with the rid brute force in N exac if you want to go above the defau...
390.96
0
{ "video_id": "21Z_byocGhI", "title": "HackTheBox - Cicada", "url": "https://www.youtube.com/watch?v=21Z_byocGhI" }
want to match any let's do type user and then do/ D so any line that doesn't have a type user in it we're going to delete and there we go so now let's just get it so we only have the username so we can do percent s and Then star up to the domain and delete that and then let's delete everything after a space like that t...
451.44
0
{ "video_id": "21Z_byocGhI", "title": "HackTheBox - Cicada", "url": "https://www.youtube.com/watch?v=21Z_byocGhI" }
valid and that is going to be Michael riton so let's go ahead and switch to Michael Ritson and then we can list all the shares because there was that Dev share that we did not have access to maybe Michael dson has access to it and let's wait for it to authenticate and we don't we only have access to HR we can do the D-...
510.879
0
{ "video_id": "21Z_byocGhI", "title": "HackTheBox - Cicada", "url": "https://www.youtube.com/watch?v=21Z_byocGhI" }
the dev group that gives them access to the share there's probably something there that um indicates that right but now we have access to Dev so let's go ahead and use SMB client again we do- I'm going to specify the domain cada then the user and then we'll do percent and that's not the password let's get rid of that a...
577.279
0
{ "video_id": "21Z_byocGhI", "title": "HackTheBox - Cicada", "url": "https://www.youtube.com/watch?v=21Z_byocGhI" }
string and then um zip up SMB and copy it to the D drive so let's see if this password still works for Emily Oscars so let's do SMB client and then what was it Emily Oscars I think it was plural or had an s on the end and I don't know why I'm doing ANB client we should use net exec so let's do Emily Oscars and then the...
637.68
0
{ "video_id": "21Z_byocGhI", "title": "HackTheBox - Cicada", "url": "https://www.youtube.com/watch?v=21Z_byocGhI" }
the um user flag probably in the desktop of Emily I'm guessing right yep there's user. text uh we could also try other authentication methods so and that exact there's like Microsoft SQL um winner RM SMB all those things we didn't see a Microsoft SQL Port um so we try winrm and we get the pwn so um the user Emily Oscar...
700.639
0
{ "video_id": "21Z_byocGhI", "title": "HackTheBox - Cicada", "url": "https://www.youtube.com/watch?v=21Z_byocGhI" }
SE restore privilege and these two privileges allow us to um backup files and the quickest way is just do the Sam and system database I want to say so if we do reg save Sam I want to say that is um maybe it's not let's see let's open up Firefox real quick and look at exactly how to abuse this privilege um I know we can...
767.24
0
{ "video_id": "21Z_byocGhI", "title": "HackTheBox - Cicada", "url": "https://www.youtube.com/watch?v=21Z_byocGhI" }
go and we can download both these files so we'll download the Sam and then we'll download system and having these files this is going to be where Windows stores the local accounts and this won't always work on a domain controller because once you promote a to be a domain controller it no longer uses the um Sam registry...
908.399
0
{ "video_id": "21Z_byocGhI", "title": "HackTheBox - Cicada", "url": "https://www.youtube.com/watch?v=21Z_byocGhI" }
abuse um let's see infos SEC writeups maybe this I know it's like robocopy SLB and there's also going to be um an annoying dis Shadow command we have to run I say it's annoying because it really cares about um the encoding of the file we did this in registry too um so if you want to see it done another way or see it do...
967.6
0
{ "video_id": "21Z_byocGhI", "title": "HackTheBox - Cicada", "url": "https://www.youtube.com/watch?v=21Z_byocGhI" }
Sam Sam system system and whenever we get the system Hive this command will um work hopefully so I'm going to pause the video and just wait for this copy to finish okay the copy has finished I'm going to run Secrets dump and we can see we got the administrator hash so let's go back to net exec so we can test this out I...
1,034.36
0
{ "video_id": "21Z_byocGhI", "title": "HackTheBox - Cicada", "url": "https://www.youtube.com/watch?v=21Z_byocGhI" }
do it um first without converting the file so you can see the error that happens so I'm just going to do upload dis shadow. text and that's going to upload the file I had just created and let's go and run the next command so it's talking about what each of those things does and here we go dis Shadow and then the file w...
1,109.08
0
{ "video_id": "21Z_byocGhI", "title": "HackTheBox - Cicada", "url": "https://www.youtube.com/watch?v=21Z_byocGhI" }
a that's back SLR back/ N I believe so that's all that changed it really cares about the line breaks so let's upload the file again and we'll see it's now 252 byes instead of 240 we'll run this command and it starts working it doesn't know uh stop at the set verse o it just runs through them all because it can identify...
1,182.679
0
{ "video_id": "21Z_byocGhI", "title": "HackTheBox - Cicada", "url": "https://www.youtube.com/watch?v=21Z_byocGhI" }
pause the video and then we will dump the active directory database okay the ntds.dit has been downloaded so we should have it right here let's see there it is so I'm going to go run my secrets dump command again we no longer need Sam but we do need the system because that contains I want to say it's called the boot ke...
1,253.88
0
{ "video_id": "21Z_byocGhI", "title": "HackTheBox - Cicada", "url": "https://www.youtube.com/watch?v=21Z_byocGhI" }
again did I not have my history BS exact.
1,330.36
0
{ "video_id": "21Z_byocGhI", "title": "HackTheBox - Cicada", "url": "https://www.youtube.com/watch?v=21Z_byocGhI" }
hashes then administrator at 101 1135 I'm going to change the password and then I want to download the registry file again the same so let's do um net user administrator and we'll just change it to password one we'll exit out because I want to see if the Sam Actually does change it I was kind of just um making things u...
1,336.159
0
{ "video_id": "21Z_byocGhI", "title": "HackTheBox - Cicada", "url": "https://www.youtube.com/watch?v=21Z_byocGhI" }
to be right that is bizarre um let's see PS exact. piy administrator it's a percent at 10 10 1135 so we can't access it let's rerun this command real quick net user administrator password one I don't know what's happening here change me change me one okay that password now worked let's try this again delete Sam drag sa...
1,443.64
0
{ "video_id": "21Z_byocGhI", "title": "HackTheBox - Cicada", "url": "https://www.youtube.com/watch?v=21Z_byocGhI" }
a lot of people do that I always have trouble with so I figure I will show it real quick and if we go back to Emily Oscar we're going to go where we back up the registry so so there is a impacket script R.P and I forget what box I did this on that I had a lot of trouble it may have been Red stre 2 as well but let's jus...
1,607.48
0
{ "video_id": "21Z_byocGhI", "title": "HackTheBox - Cicada", "url": "https://www.youtube.com/watch?v=21Z_byocGhI" }
SMB we can go in SMB pseudo impacket SMB server PWD share I think it shared the name and then that so we can run and it's going to hopefully start backing things up SMB client DL I script the flags I don't think I did oh we need smb2 support that's probably it let's see if this works there we go now it's starting to sa...
1,702.159
0
{ "video_id": "21Z_byocGhI", "title": "HackTheBox - Cicada", "url": "https://www.youtube.com/watch?v=21Z_byocGhI" }
copy because I know a lot of people would use this and uh oh I wonder if it's failing because okay there we go now it's running so I'm going to pause the video and we're going to see um how long this actually takes before it crashes or if it even um can save every file so okay the command has errored we can see after a...
1,810.84
0
{ "video_id": "21Z_byocGhI", "title": "HackTheBox - Cicada", "url": "https://www.youtube.com/watch?v=21Z_byocGhI" }
it let's do up one yeah they're definitely not the same file it just copied enough data where we could actually run our impacket Command I've I've bet if I ran it like five times like two times it wouldn't copy whatever it needs out of that system Hive but that's another way you could do it I remember when I initially ...
1,892.2
0
{ "video_id": "21Z_byocGhI", "title": "HackTheBox - Cicada", "url": "https://www.youtube.com/watch?v=21Z_byocGhI" }
will see you all next time
1,945.08
0
{ "video_id": "21Z_byocGhI", "title": "HackTheBox - Cicada", "url": "https://www.youtube.com/watch?v=21Z_byocGhI" }
what's going on YouTube this is ipac we're doing Clicker from hack the box which starts out with just a Cheesy webbased game where you can click a mouse and get points the first vulnerability in it is a mass assignment which you'll use multiple times but the first time you use it you just change your user over to the a...
0.199
0
{ "video_id": "8IkHQ84lmPI", "title": "HackTheBox - Clicker", "url": "https://www.youtube.com/watch?v=8IkHQ84lmPI" }
is you create a environment variable to proxy curl to yourself and that'll enable you to perform a XML and injection attack however you can set any uh any variable pretty much so you can just set LD preload and get code execution right away that being said let's just jump in as always we're going to start off with an e...
47.199
0
{ "video_id": "8IkHQ84lmPI", "title": "HackTheBox - Clicker", "url": "https://www.youtube.com/watch?v=8IkHQ84lmPI" }
redirecting us to clicker htb so I'm going to go ahead and add this really quick to my host file so V host and we can add 10 10 11232 clicker htb okay and then the next thing we have open is RPC on Port one 11 and whenever I see this on Linux the most common thing is always going to be NFS and it looks like it is direc...
96.119
0
{ "video_id": "8IkHQ84lmPI", "title": "HackTheBox - Clicker", "url": "https://www.youtube.com/watch?v=8IkHQ84lmPI" }
I always run to enumerate this is going to be a show Mount command so we do show Mount 10 10 11232 and we see nothing if anyone had this server mounted their IP addresses would be showing up showing up here and if you don't have this command you can always run like an app cach search on show Mount if you're on a Deb an...
153.04
0
{ "video_id": "8IkHQ84lmPI", "title": "HackTheBox - Clicker", "url": "https://www.youtube.com/watch?v=8IkHQ84lmPI" }
directory exists in here and since it is version three it is vulnerable to like client uid spoofing which just means um NFS doesn't really have good ACLS at least in version three it depends on the client so when I go in this if I wanted to um modify this it's possible that I could just do a su and I'll become root and...
216.599
0
{ "video_id": "8IkHQ84lmPI", "title": "HackTheBox - Clicker", "url": "https://www.youtube.com/watch?v=8IkHQ84lmPI" }
su uh let's do pseudo Su go into Mount touch test can we write here it looks like it is a read only file system um actually Mount uh we got to you mount it because I think by default if I just do Mount real quick uh we can see version 4.2 which does not have have that uid spoofing vulnerability so let's do a ount on Mo...
277.08
0
{ "video_id": "8IkHQ84lmPI", "title": "HackTheBox - Clicker", "url": "https://www.youtube.com/watch?v=8IkHQ84lmPI" }
and you land on a Windows box and you want to exploit a NFS server it's relatively tough at least until this binary which is I think why he made it because you don't have a good NFS client that's capable of spoofing but this works pretty well so let's just download that and show it we don't have to be root so let's W g...
348.759
0
{ "video_id": "8IkHQ84lmPI", "title": "HackTheBox - Clicker", "url": "https://www.youtube.com/watch?v=8IkHQ84lmPI" }
have that working you can go and look at the other commands this supports we want to just see if we can write files I'm going to try like a make dur command so we can do do makeer test and we get an error NFS read only file system so it looks like NFS itself is just configured to be readon so there's going to be no vul...
409.199
0
{ "video_id": "8IkHQ84lmPI", "title": "HackTheBox - Clicker", "url": "https://www.youtube.com/watch?v=8IkHQ84lmPI" }
11232 it's going to redirect us to clicker htb and we see it is a video game it looks like clicker the game The Ultimate Experience join countless players and playing the most amazing game ever how many clicks can you get so let's go I guess register um I'm going to do IPC password I guess we go to info it looks like i...
464.72
0
{ "video_id": "8IkHQ84lmPI", "title": "HackTheBox - Clicker", "url": "https://www.youtube.com/watch?v=8IkHQ84lmPI" }
game silly but okay let's open up visual studio code now and this is going to let us just quickly scan for vulnerabilities with sneak and then we'll also be able to um look for other things right so let's see we have the code security it looks like it is scanning kind of curious about this if we go to info.php okay so ...
532.8
0
{ "video_id": "8IkHQ84lmPI", "title": "HackTheBox - Clicker", "url": "https://www.youtube.com/watch?v=8IkHQ84lmPI" }
md5 so if we Google this hash what does it reverse to it looks like this Echo dasn md5 sum that's not what it is oh okay I think it was like someone like Google indexed the page crawling itself that was weird so that is not right um doesn't look like we get anything so that's not there and what would this do even it wo...
607.6
0
{ "video_id": "8IkHQ84lmPI", "title": "HackTheBox - Clicker", "url": "https://www.youtube.com/watch?v=8IkHQ84lmPI" }
it checks if it exists and then we create new player and it only creates it with username and password so what I was looking for here is some type of like Mass assignment vulnerability right if it just did like PHP input or something I think that's how you do it in PHP then we vulnerable to mass assignment because we c...
708.88
0
{ "video_id": "8IkHQ84lmPI", "title": "HackTheBox - Clicker", "url": "https://www.youtube.com/watch?v=8IkHQ84lmPI" }
what this is um params we assign our player set set string we're going to Loop over all the arguments and then create a thing okay so let's look at what call Save profile this is looking like it could be Mass assignment let's see so on this save session this is where it gets called we're going to send all the keys we'r...
772.68
0
{ "video_id": "8IkHQ84lmPI", "title": "HackTheBox - Clicker", "url": "https://www.youtube.com/watch?v=8IkHQ84lmPI" }
right so we'll go more in depth than that in a little bit let's see do we have what roles there are let's go find in files Ro so we want admin with a capital A it looks like so there's going to be let's see probably two ways we can get about this um we're going to do the easier way first so if we look at save profile w...
848.959
0
{ "video_id": "8IkHQ84lmPI", "title": "HackTheBox - Clicker", "url": "https://www.youtube.com/watch?v=8IkHQ84lmPI" }
checked against that right we just want this piece to not equal Ro and this gets fed over into a SQL statement right so we go here we send all the arguments over to the save profile and SQL statements are generally terminated like by a semicolon so what we could do is put a line break in there right because if we did u...
936.44
0
{ "video_id": "8IkHQ84lmPI", "title": "HackTheBox - Clicker", "url": "https://www.youtube.com/watch?v=8IkHQ84lmPI" }
again since now a role theoretically is admin so we'll do ipac and password then medication failed I wonder if something deleted my IPC user like it could be a self-healing script let's try this again let's register ipac password we logged in or registered IPC password and there was a check if user existing right so un...
1,010.839
0
{ "video_id": "8IkHQ84lmPI", "title": "HackTheBox - Clicker", "url": "https://www.youtube.com/watch?v=8IkHQ84lmPI" }
key is never set to roll you actually put roll equals admin in the value itself so let's go take a look at this real quick if we go to save profile we're going to inject in this set St variable um because there's no it's not parameterized it's just a raw string here right so this is kind of like a mass assignment so so...
1,085.12
0
{ "video_id": "8IkHQ84lmPI", "title": "HackTheBox - Clicker", "url": "https://www.youtube.com/watch?v=8IkHQ84lmPI" }
malicious activity awesome oh because I have R equals okay that's better so what I want to do is make sure I'm not an admin real quick so we log in IPC password I have not an admin that is good and we can see the SQL query down here so what we want to do is uh let's see what's a good way to explain this so if I did per...
1,170
0
{ "video_id": "8IkHQ84lmPI", "title": "HackTheBox - Clicker", "url": "https://www.youtube.com/watch?v=8IkHQ84lmPI" }
but the SQL statement sees it that way right so if we look at the query if we go here this is where the query is so we're going to update the players table we're going to set Ro is equal to admin clicks is equal to all nines level is equal to leite where username is equal to my ID so that's what this query did so we se...
1,265.159
0
{ "video_id": "8IkHQ84lmPI", "title": "HackTheBox - Clicker", "url": "https://www.youtube.com/watch?v=8IkHQ84lmPI" }
do clicks a bunch of nines right we no longer need do this roll thing uh we can also do level let's do Elite level so now if I go back here do I see my name I do awesome so if we click on export or thing we see text Json HTML if I export here it's going to save that in a file right so if I look here we have this so the...
1,330.64
0
{ "video_id": "8IkHQ84lmPI", "title": "HackTheBox - Clicker", "url": "https://www.youtube.com/watch?v=8IkHQ84lmPI" }
if it's tax it'll do this if it's Json it'll encode it but I don't see anything actually saying like if it doesn't equal text Json or I forget the other one HTML then do nothing so we should be able just to like write PHP we can test it out real quick let's go to burp Suite intercept we'll just export this put the exte...
1,412.559
0
{ "video_id": "8IkHQ84lmPI", "title": "HackTheBox - Clicker", "url": "https://www.youtube.com/watch?v=8IkHQ84lmPI" }
where is nickname that is not something I've seen before whoops I want to do edit finding files nickname that is part of the session okay so it's going to probably be the same thing we did here um let's go back a few there we go we can put these back so I still have a high score so instead of doing roll I'm going to ca...
1,486.08
0
{ "video_id": "8IkHQ84lmPI", "title": "HackTheBox - Clicker", "url": "https://www.youtube.com/watch?v=8IkHQ84lmPI" }
send it if we refresh we don't see anything there but if I dok CMD equals ID uhoh I thought we would see something oh we have to export it um so let's uh let's intercept a request sent to repeater extension PHP we can forward this I just want to put it in repeater in case we have to do this again so we see it was saved...
1,574.88
0
{ "video_id": "8IkHQ84lmPI", "title": "HackTheBox - Clicker", "url": "https://www.youtube.com/watch?v=8IkHQ84lmPI" }
get request uh so let's do b-c b-i Dev TCP 10 10 148 9,1 0 and one like that your encode this because the bad characters going to be the Ampersand or the and signs because that's how post request um terminate a like argument right to go to the next variable so we definitely have to URL encode those and now we should be...
1,666
0
{ "video_id": "8IkHQ84lmPI", "title": "HackTheBox - Clicker", "url": "https://www.youtube.com/watch?v=8IkHQ84lmPI" }
source code but okay so by SQL d U clicker DB user- P we'll put in the password and then let's do show databases use clicker show tables oh only one thing select start from players and I'm guessing these are 512 hashes maybe let's see hash identifier there's got to be an online service that does this so hash analyzer t...
1,733.64
0
{ "video_id": "8IkHQ84lmPI", "title": "HackTheBox - Clicker", "url": "https://www.youtube.com/watch?v=8IkHQ84lmPI" }
I think I copied it up One Directory whoops and dub dub dub Python 3 HTP server Cur 10 104 8 8,000 Lin peas. sh pipe it over to bash and we will come back when this finishes running okay Lin peas finished running so let's go to the top I'll go back to my curl command and we can begin looking at it looking at exploit su...
1,829.48
0
{ "video_id": "8IkHQ84lmPI", "title": "HackTheBox - Clicker", "url": "https://www.youtube.com/watch?v=8IkHQ84lmPI" }
we already kind of enumerated NFS so that's why I'm not going there uh no TCP dump users log on time my SQL version nothing interesting so far HD passwd but this looks like it's just in some test files so not interesting to us um rsync looks like that's a example config NFS export this is where we see it being exported...
1,916.08
0
{ "video_id": "8IkHQ84lmPI", "title": "HackTheBox - Clicker", "url": "https://www.youtube.com/watch?v=8IkHQ84lmPI" }
weird Google it's a BSD extra thing in Debian testing okay so this is definitely non-standard so let's take a look at this do lsla on it uh we can go into this directory opt manage and let's see there is a read me so use a binary to create the following task uh create database structure fake players reset the admin pas...
2,009.08
0
{ "video_id": "8IkHQ84lmPI", "title": "HackTheBox - Clicker", "url": "https://www.youtube.com/watch?v=8IkHQ84lmPI" }
query okay send the file let's md5 sum both ends f09 f09 NS in 81 NS in 81 so we have the binary okay so let's go opt gadra gedra run and wow my size is pretty big the font size I forget exactly how I had this configured new project doesn't really matter I'm not going to save this open this up okay so let's hit I then ...
2,094.96
0
{ "video_id": "8IkHQ84lmPI", "title": "HackTheBox - Clicker", "url": "https://www.youtube.com/watch?v=8IkHQ84lmPI" }
so if it doesn't match any of these cas so if it's not 0 through it's just going to copy the parameter on the stack so we can say PC V3 um let's rename this I hit L I'm going to call this file name because these all look like file names to me right see what is this Local 98 that is a string that's home then ja so that'...
2,184.2
0
{ "video_id": "8IkHQ84lmPI", "title": "HackTheBox - Clicker", "url": "https://www.youtube.com/watch?v=8IkHQ84lmPI" }
just redefine this so it says the full string right oh well not exactly sure but that's executing my SQL putting the password there and we C the file and read it so that is doing system on file name but it doesn't have the path there I'm guessing we prepended the path somewhere I missed it so let's try this out let's t...
2,290.56
0
{ "video_id": "8IkHQ84lmPI", "title": "HackTheBox - Clicker", "url": "https://www.youtube.com/watch?v=8IkHQ84lmPI" }
shell because of the whole like private temp in system D I'm always terrified of using temp directories so I'm going to drop this where is a good World writable Place uh we can write to ver dub dub HTML touch test can't touch there uh we can do let's just look at shm real quick no sued okay the thing I was scared about...
2,382.04
0
{ "video_id": "8IkHQ84lmPI", "title": "HackTheBox - Clicker", "url": "https://www.youtube.com/watch?v=8IkHQ84lmPI" }
sh let's just do please subscribe and then I want to make sure we can read this so Dev shm shell. sh we have to do opt then manage what is Monitor dsh file not readable or found opt manage execute query ety passwd you read that devm shell. chod 777 shell. not sure why I can't find that directory or that file see ver du...
2,419.52
0
{ "video_id": "8IkHQ84lmPI", "title": "HackTheBox - Clicker", "url": "https://www.youtube.com/watch?v=8IkHQ84lmPI" }
sh we can just do opt manage execute query oh this TTY is going to be horrible um st- a st2 rows 28 columns 110 there we go so now when I like go off the screen it'll actually wrap down so up manage execute let's do nine one 2 three we can do ver dubdub dub clicker h htb exports shell. we call it please subscribe. so w...
2,509.52
0
{ "video_id": "8IkHQ84lmPI", "title": "HackTheBox - Clicker", "url": "https://www.youtube.com/watch?v=8IkHQ84lmPI" }
this so for some reason the format was just broke there it's odd that those dashes actually matter um okay we did not specify the username here and it looks like we got in awesome so we can see the queries directory we go in here these are going to be all the file names that was in that binary so now if we do a pseudo-...
2,640.16
0
{ "video_id": "8IkHQ84lmPI", "title": "HackTheBox - Clicker", "url": "https://www.youtube.com/watch?v=8IkHQ84lmPI" }
was the secret diagnostic token so that's what um let's see do we have it up still we go to diagnostic that's what this hash is okay and then we're going to pipe that data into the XML processor and that's about it so there's a really fun unended here is because we um have this whole set M thing here we can put any env...
2,708.28
0
{ "video_id": "8IkHQ84lmPI", "title": "HackTheBox - Clicker", "url": "https://www.youtube.com/watch?v=8IkHQ84lmPI" }
function I'm going to use underscore anit because this gets loaded whenever the library is loaded um because of that we definitely want to make sure we unset this before we um call or binary right because if we didn't do this then whatever we're injecting like the LD preload binary is going to call Shell which then bec...
2,772.839
0
{ "video_id": "8IkHQ84lmPI", "title": "HackTheBox - Clicker", "url": "https://www.youtube.com/watch?v=8IkHQ84lmPI" }
a legitimate use case of LD preload is similar to proxy chains even though it's not using LD preload proxy chains you execute it and it's hijacking that Dynamic Linko process in order to overwrite any web call so it can redirect the web call to itself to set the proxy that's how proxy chains works and why proxy chain d...
2,827.16
0
{ "video_id": "8IkHQ84lmPI", "title": "HackTheBox - Clicker", "url": "https://www.youtube.com/watch?v=8IkHQ84lmPI" }
added a nit for us U we want Dash no start files because we don't want it to do that and there we go compiled without error and without warning too which is awesome so let's copy exploit to dubdub dub then we can go Dev shm let's download this so WG 101048 8,000 exploit I should still have that web server running I do ...
2,888.119
0
{ "video_id": "8IkHQ84lmPI", "title": "HackTheBox - Clicker", "url": "https://www.youtube.com/watch?v=8IkHQ84lmPI" }
our function right and we unset the LD preload M but it only unset it for that load when we were executing bash right so we probably loaded here um no we loaded in curl we loaded in this XML we loaded in date we may have loaded an echo but I don't think that I think that's statically compiled but we kept loading in all...
2,966.28
0
{ "video_id": "8IkHQ84lmPI", "title": "HackTheBox - Clicker", "url": "https://www.youtube.com/watch?v=8IkHQ84lmPI" }
look at like trying to modify the database but if we look at this diagnostic function nothing really Dynamic is there so we can't change um the data is it where is it diagnostic we do this timestamp date PHP version so since we can't really change the data by manipulating the database we could inject a proxy here so cu...
3,017.68
0
{ "video_id": "8IkHQ84lmPI", "title": "HackTheBox - Clicker", "url": "https://www.youtube.com/watch?v=8IkHQ84lmPI" }
80 it's up oh I think curl is Cas sensitive on variable names it's really annoying I think it's all lower case there we go it's hung so we see the server is requesting this so if I go here intercept the response to this request now we have the XML data right so all we have to do is put our XML and the injection in here...
3,100.76
0
{ "video_id": "8IkHQ84lmPI", "title": "HackTheBox - Clicker", "url": "https://www.youtube.com/watch?v=8IkHQ84lmPI" }
forward and we have pass WD here actually we don't need data at all um so let's intercept on run this again want to intercept response so we can grab the key let's change this try root sh ID Orsa so again if you're not familiar with any injection all we're doing um essentially is creating a XML object that says uh get ...
3,188.839
0
{ "video_id": "8IkHQ84lmPI", "title": "HackTheBox - Clicker", "url": "https://www.youtube.com/watch?v=8IkHQ84lmPI" }
box with both the unended and intended way hope you guys enjoyed that take care and I'll see you all next time
3,275.96
0
{ "video_id": "8IkHQ84lmPI", "title": "HackTheBox - Clicker", "url": "https://www.youtube.com/watch?v=8IkHQ84lmPI" }
What's going on YouTube? This is IPSAC be doing code from hack the box which is a pretty easy machine but there is definitely something that could trip people up during the root step if they try to run the exploit out of a temp directory like dev shm ortemp because the sticky bit is set there which is preventing root f...
0.24
0
{ "video_id": "-qGAM0Mt2V0", "title": "HackTheBox - Code", "url": "https://www.youtube.com/watch?v=-qGAM0Mt2V0" }
be intimidated. You don't have to understand how it works. But I just like to explain things in depth. After that, we get code execution. We can dump the database and then exploit a backup script, which is where that temp directory thing I mentioned earlier comes into play. So with that being said, let's just jump in. ...
40.719
0
{ "video_id": "-qGAM0Mt2V0", "title": "HackTheBox - Code", "url": "https://www.youtube.com/watch?v=-qGAM0Mt2V0" }
is a Python library. And the title of the HTTP page is Python code editor. So everything lines up. This is definitely going to be a Python um website. It's also exposing the G Unicorn version of 2004. And we could look for vulnerabilities there, but Python code editor sounds like a really juicy website. So let's just g...
87.439
0
{ "video_id": "-qGAM0Mt2V0", "title": "HackTheBox - Code", "url": "https://www.youtube.com/watch?v=-qGAM0Mt2V0" }
f and we can do like f read lines and see if I can print this out and we still get use of keywords is not allowed. So now I want to see exactly how this filter is in place right is it just looking at the input we send to the web server or is it actually hooking in the Python code and seeing what is being executed. So, ...
144.319
0
{ "video_id": "-qGAM0Mt2V0", "title": "HackTheBox - Code", "url": "https://www.youtube.com/watch?v=-qGAM0Mt2V0" }
And then we'll send it. And we still get the same thing. So, I'm just going to confirm um the thing is still working.
169.04
0
{ "video_id": "-qGAM0Mt2V0", "title": "HackTheBox - Code", "url": "https://www.youtube.com/watch?v=-qGAM0Mt2V0" }
So, I'll just erase that. And we get it. So, it's just looking at the text we send it, right? Um, we could find out what like bad words there are. So, if we just do like print uh let's try import.
176.08
0
{ "video_id": "-qGAM0Mt2V0", "title": "HackTheBox - Code", "url": "https://www.youtube.com/watch?v=-qGAM0Mt2V0" }
Click run. That's not allowed. Test. That looks like it is um width.
187.68
0
{ "video_id": "-qGAM0Mt2V0", "title": "HackTheBox - Code", "url": "https://www.youtube.com/watch?v=-qGAM0Mt2V0" }
Width is allowed. Let's try open. And that is not allowed. We could also play with like case sensitivity. And looks like um that is still being restricted. So we kind of have an idea what the filter is in place. And this is going to be where I make it a little bit more complicated than it is because in reality you coul...
195.68
0
{ "video_id": "-qGAM0Mt2V0", "title": "HackTheBox - Code", "url": "https://www.youtube.com/watch?v=-qGAM0Mt2V0" }
There's something here of just giving a lot of things to run. Uh, we know this won't work probably because we we tried it. Uh, there's pop as well. We could check if like OS is a bad word. So, we could do like print OS run. That looks like a bad word as well.
248.159
0
{ "video_id": "-qGAM0Mt2V0", "title": "HackTheBox - Code", "url": "https://www.youtube.com/watch?v=-qGAM0Mt2V0" }
So when you combine the knowledge of um what bad words there are, you kind of guess which one to use. And some of these get relatively complicated. And I'm going to step through it. Um so hopefully you can understand by the end of it. Um not sure exactly where some of them are. Like this is complicated, right? What the...
266.72
0
{ "video_id": "-qGAM0Mt2V0", "title": "HackTheBox - Code", "url": "https://www.youtube.com/watch?v=-qGAM0Mt2V0" }
It's got like a list comprehension, which is not like a beginner thing. Doing something with this classbased sub. like what is going on there? So, this is essentially what we're going to do, but just step through it, right? So, it all starts with that class base um subasses. So, let's run this real quick. So, I'm going...
289.759
0
{ "video_id": "-qGAM0Mt2V0", "title": "HackTheBox - Code", "url": "https://www.youtube.com/watch?v=-qGAM0Mt2V0" }
Let's make sure my syntax is right. We'll do class base then sub I got to do the dunders sub classes. And if we run this, uh, we get invalid syntax because we screwed something up. Uh, I'm using Python 2 syntax that hasn't happened in a while. There we go. So, this is going to list every class that is currently loaded.
311.12
0
{ "video_id": "-qGAM0Mt2V0", "title": "HackTheBox - Code", "url": "https://www.youtube.com/watch?v=-qGAM0Mt2V0" }
And if we guess where this class is, we can actually reference it and use it, right? Um, so the key step here now is finding where um, a dangerous one exists. So I'm going to change this print statement up and do like for C in I'm using C because C can stand for classes, right? And I can do print C dot and then this sh...
338.8
0
{ "video_id": "-qGAM0Mt2V0", "title": "HackTheBox - Code", "url": "https://www.youtube.com/watch?v=-qGAM0Mt2V0" }
string of i then plus a space and this right so what this is going to enable me to do is say hey type is loaded at one weak ref is loaded at type is loaded at zero weak ref is loaded at one uh weak callable proxy is two so what I want to do is find a um library that's loaded that I can get command execution from. So we...
399.28
0
{ "video_id": "-qGAM0Mt2V0", "title": "HackTheBox - Code", "url": "https://www.youtube.com/watch?v=-qGAM0Mt2V0" }
change this we do run and we see pop is loaded at 317.
470.319
0
{ "video_id": "-qGAM0Mt2V0", "title": "HackTheBox - Code", "url": "https://www.youtube.com/watch?v=-qGAM0Mt2V0" }
So what we can do with this information is um let's comment everything out real quick because I can leave this here so you can read it if you want. But I can now run pop commands. So I'm going to copy this and then we're going to say at 317. And now I'm just in pop, right? So P open you give it a list. The first thing ...
477.52
0
{ "video_id": "-qGAM0Mt2V0", "title": "HackTheBox - Code", "url": "https://www.youtube.com/watch?v=-qGAM0Mt2V0" }
So, we're just going to test if we have code execution here. So I'm going to do pseudo TCP dump- I ton0 ICMP. And then when I click run here, we can see the server does indeed ping us, right? So we could easily now go for an rce. So I'm going to listen on 9001 and then I'm going to create a um like web cradle like not ...
538.08
0
{ "video_id": "-qGAM0Mt2V0", "title": "HackTheBox - Code", "url": "https://www.youtube.com/watch?v=-qGAM0Mt2V0" }
We'll base 64 it. And then I always like um making sure there's no like special characters in B 64 because why not? Every now and then those special characters will um screw you over. I just put two spaces here. I kind of eyeballed where that plus was and that got rid of the plus. It also got rid of the equals here. So...
576
0
{ "video_id": "-qGAM0Mt2V0", "title": "HackTheBox - Code", "url": "https://www.youtube.com/watch?v=-qGAM0Mt2V0" }
That error message was because I did Python, not Python 3, and my whole terminal died. That was odd. Um, going to exit this real quick. There we go. Let's listen again. nclvmpp 90001.
646.24
0
{ "video_id": "-qGAM0Mt2V0", "title": "HackTheBox - Code", "url": "https://www.youtube.com/watch?v=-qGAM0Mt2V0" }
Let's run this. Send this. Then sty raw minus echo foreground. Enter. Enter. And then export term is equal to xterm. And now let us clear the screen. I'm not sure if after like a minute this um shell would die or not. So, um, I kind of want to know if it does. So, let's go and over complicate this payload real quick.
663.6
0
{ "video_id": "-qGAM0Mt2V0", "title": "HackTheBox - Code", "url": "https://www.youtube.com/watch?v=-qGAM0Mt2V0" }
So, um, we have a oneliner here, but we already knew what this 317 was. If we look at kind of how they're doing it, they're like going over complicated with a um, list comprehension. So, let's use that. So, we don't if we didn't know um P open was at 317. How can we do that, right? Well, for starters, if we had this um...
688.399
0
{ "video_id": "-qGAM0Mt2V0", "title": "HackTheBox - Code", "url": "https://www.youtube.com/watch?v=-qGAM0Mt2V0" }
Okay. Um, I'm screwing something up because I forgot a parenthesy there. So, what this is going to do is essentially um, let's put it down here. This terminal is still working. So, I think after stabiliz stabilizing my shell, it became more stable. So, what this command is going to do is return a list of all the subass...
767.279
0
{ "video_id": "-qGAM0Mt2V0", "title": "HackTheBox - Code", "url": "https://www.youtube.com/watch?v=-qGAM0Mt2V0" }
Right. There we go. Paste that there. And let's delete everything and hope we did it correctly. So, let's do NC LVMP 90001.
805.68
0
{ "video_id": "-qGAM0Mt2V0", "title": "HackTheBox - Code", "url": "https://www.youtube.com/watch?v=-qGAM0Mt2V0" }
Run this. not erroring and we get a shell. So, um hopefully now like all those complex payloads that you just copy and paste and blindly run make somewhat sense, right? Um this is just list comprehension to get a if then comparison on one line. And um yeah, so I don't know what else to say there. So let's just go uh ba...
820.959
0
{ "video_id": "-qGAM0Mt2V0", "title": "HackTheBox - Code", "url": "https://www.youtube.com/watch?v=-qGAM0Mt2V0" }
And then let's see where the database is. Um if we go all the way up, we see um it's looking at databases. DB. So, I'm just going to do a find-ash type F.
865.92
0
{ "video_id": "-qGAM0Mt2V0", "title": "HackTheBox - Code", "url": "https://www.youtube.com/watch?v=-qGAM0Mt2V0" }