 What is going on everybody, welcome back from the YouTube video, my name is John Hammond and we're looking at MITRE CTF. Let's move into the grab bag category, we just got done with Linux a little bit ago, so let's check out this 50 point challenge. It says Nyan, it says Nyan, Nyan, Nyan, Nyan, Nyan, Nyan, Nyan, Nyan, Nyan, Nyan. It's the tune from the Nyan cat. Alright, cool, let's SSH connect to it. Let's make a directory for it, grab bag, cd grab bag, cd grab bag, not braggab, make directory 50, Nyan. Cool, we can make a little connect script, connect.sh, spin bash, blah blah blah. Boilerplate stuff you don't care about, but I do all the time, it's bad. So I connect to it and we have Nyan cat, Nyaning us for many seconds. Okay, trying to move it all, can't do anything really, control C out of that, kill it. So what I tried to do originally was just use this SSH command and kind of like we did before was in some of the previous Linux challenges, go check those out if you haven't. Try and run commands and that would give me nothing, it wouldn't give me the Nyan cat anymore, but it would also break my terminal cursor so I just reset to close that or to get it back anyway. So that didn't work, couldn't use DIR, oh, but I guess I'm getting some weird output. I don't know if you saw the flag just kind of flashing there for a little bit. That was enough testing to make me realize what was going on and at that point I'd said, okay, if it's just spitting out the flag along with it with the Nyan cat, then let's try and just rep through that output, see if I can get MCA and that doesn't work because it's including it in this line, it would be including that line with what we're seeing and it's also probably just being pulled out. I tried stuff like, okay, let's redirect this to just like a file and that'll take forever, right? But if I open that up, let's see, there's a lot of stuff in here, right? There's a last log in and there's an Nyan cat going on and is there a flag in here? Yeah, cool, okay, that'll work. Could try that, redirect it to a file, maybe, so there's the flag, right? You could do that. I had just ran grep like I've been doing before but I also used the only and extended regular expressions technique so I could use MCA dot slash or dot star in the curly braces and I would just get the flag only when it's being spat out, so that's a pretty cool visual, that's a nice Nyan cat, but that's that, that's the flag, it is being spat out and displayed with the Nyan cat, you just need to kind of avoid the noise and don't get distracted by the Nyan cat, filter out what you're looking for or just try and capture everything that it's sending you and I just again kind of determined that by testing other stuff, like can I run commands like who am I or ID and I noticed it was still sending me garbage, so okay there's got to be some valuable garbage in there, I don't know how else I can interact with it, so interesting tidbit, interesting point and stuff to keep in mind and keep to know, but did I save this flag? I did, yeah, okay, so let's jot that down, if you wanted to make a little get flag script with that where you just grep, tac, oe, Nyan cat, mca, etc, or pipe that, you know, you know how to do it, you just learned, you just figured it out, so that's how to get the flag man, that's it, hope you enjoyed this, hope you enjoyed this, hope you enjoyed this, it was fun, I hope you enjoyed this and I hope you enjoyed the video, thanks for watching guys, if you did like the video please do like, comment and subscribe, love to see you guys on the discord server, I'd love to see you guys on patreon or paypal, I'm incredibly thankful for each and everything that you guys do to help support and offer to keep this thing going and growing because I've been away for a little bit too long and I'm feeling really sad about it, thanks everyone, talk to you soon