hey what's up everyone welcome back to another video so in this video what we're going to be doing is password cracking and we're going to go ahead and generate some passwords so I'll show you guys how to do that and if you're doing it for a CTF if you're doing it for a penetration test or if you're just doing it for fun we're going to learn how to generate these hashes and then go ahead and crack them so let's jump into the video and have some fun if we open up a browser what I did I just put like hash generator on Google and I came over to this site all has generator so say for example if you're doing like an you know a pen test and you capture an LTL mv2 hash with like responder for an example you'll take that hash and you'll run it through hash cat to see if you can crack it against a word list that you know maybe rockyou. txt or whatever word list that you generate right so I just want to put it out there obviously this is for demonstration purposes yes I do have a word list that we're going to generate the password with obviously for time sake and for educational sake so please don't be stupid and put things in the comments I've gotten so many comments on like the Wi-Fi one oh that's not real world yes it is if you guys go get a real word list or you generate a word list and you spray that against a pcap file that you you know capture in a four-way handshake I do it all the time right but I'm not going to demonstrate on assignments or on engagements that you know so anyhow I just want to get that out of way way because I get some stupid comments and you guys are idiots so if I do an LS and I do uh Pat rocku uh you know Pat rocku so the rockyou. txt I make my own so if I just do Pat rockyou.
txt I have you know a little word list here right so if we come in here and for an example I put I love hacking 2024 right right here so you got whoops oops whoops I don't know what I just did all right so let's try that again so well let's just do this let's do this and let's GP uh I love right so I love you is in here and I love hacking 2024 so I'm going to go ahead and generate I just going to copy this I can generate anything from within but I'm just going to do this one because you know we'll have some fun so now I'm going to take that and come down here and put this word in the list to generate hashes right so if we calculate hashes here we see all the hashes that were generated with this password for an example I love hacking 20124 right so we have L uh ntlm we have md4 md2 md5 all these kinds of hashes so if you're creating like a CTF maybe you'll take one of these hashes we'll create that we'll put that as like a little decoy or we'll have someone crack that in order to get a password for maybe a login or something like that so this is why I said in the beginning it can be for a CTF a real engagement or just you know your own research on the internet you found the hash and you want to have fun with it right so before we actually create the hash so say for an example you came across this md5 hash right and this is what we have we don't have the actual password yet right so if we come back up here and we put hash identifier so if we don't know what kind of hash it is we can go online or we can just use hash identifier to identify the hash so if we paste this here whoops let me go ahead and paste that there here it is and now we can see some least possible hashes but the possible hash the number one is an md5 hash because that's what it is right we just demonstrated that I just wanted to you know throw that in here because that's another way to find out some hashes but you know you can always do whatever way makes you feel comfortable okay so now what we're going to do is make a file so say I'm going to go ahead and just do Nano I'll make this uh md5 I'll just make it md5 hash that's txt okay and now I'll just throw that hash inside of Nano right so let's go ahead and do that now we should have two files here we have the md5 hash and then the pat rocku right so now what we want to do if we have a md5 hash right so now what we can do is do hashcat if we do hashcat and we don't know what mode it is so we can do md5 let's come all the way back up here md5 or ashcat d-el pipe GP md5 right so this is all the Poss possible md5 hashes so you can see here raw hash this is pretty much what we have here just a raw hash right so that's going to be the mode zero right then we have half md5 hcat etc etc so you guys can go through this and if you got one from an ASA if you got one from Apache MS Office blah blah blah you guys get the gist right so now we have a hash and we have our password list that we want to crack crack it with right so now let's go ahead and have some fun so now we can do this is where we can do hashcat d0 or- m0 for the mode and my uh my hash is within that md5 has. txt and then the password list that I want to use is Pat rockyou. txt and then hit enter and let it go okay so what I'm going to do cuz I already did this I was I was testing ing something and that was there so if we do D- show it's right here I love hacking so just to you know obviously showcase the tool I'm going to go ahead and use a different hash okay so let's go ahead and just put I love you okay I love you let's do that generate this hash we're going to do the md5 again so because I know I love you is in there because we saw that earlier right so let's go ahead and just do that let's do Nano if I can spell Nano md5 hash and then I want to go ahead and delete this and I want to go ahead and put the I love you one okay and then here we go hit yes and then hit the up arrow and we'll do that once again okay we'll let that cook and it was cracked that quick right so we can see that it was cracked right here and the password is I love you so that was super quick and if you you know because it goes into your pot file you can do D- show right and now you can see the file that was cracked right there so that pretty much sums up how to crack hash files and if you ever want to do your own little CTF and stuff like that the the site that I found it on was uh browsing ling.