Latest / CyberCode Academy / Course 27 - Hacking Web Applications, Penetration Testing, CTF | Episode 1: Kali Linux Essentials
Transcript
- 0:00Speaker 1: Imagine for a moment that you're a master mechanic. You
- 0:04Speaker 1: walk into a garage and instead of just this messy
- 0:07Speaker 1: pile of wrenches and screwdrivers scattered all over the floor,
- 0:10Speaker 1: you have a single, massive, perfectly organized rolling chest. Right
- 0:15Speaker 1: and inside this chest there isn't just a hammer. There
- 0:18Speaker 1: are over three hundred distinct specialized tools, each one engineered
- 0:23Speaker 1: for a very specific technical task.
- 0:26Speaker 2: It sounds like a craftsman's dream, honestly, but in the
- 0:29Speaker 2: world of information security, that chest actually exists exactly.
- 0:33Speaker 1: But it's not a physical chest, it's an operating system.
- 0:36Speaker 1: So today on our deep dive, we are unlocking the
- 0:38Speaker 1: ultimate toolkit. We're looking at the heavy hitter of the
- 0:41Speaker 1: cybersecurity world, Collie Linux.
- 0:43Speaker 2: Collie is the industry standard. I mean, if you're studying
- 0:46Speaker 2: to be a penetration tester, an ethical hacker, or just
- 0:49Speaker 2: a really secured conscious systems administrator, this is your home base.
- 0:52Speaker 1: Yeah.
- 0:53Speaker 2: It's a Debian based Linux distribution. Yeah, and it comes
- 0:56Speaker 2: pre loaded with an arsenal tools designed for one main thing,
- 0:59Speaker 2: which is a defensive security And.
- 1:01Speaker 1: When you say arsenal, you really aren't kidding. We're talking
- 1:03Speaker 1: about hundreds of programs pre installed and just ready to
- 1:07Speaker 1: go right out of the box.
- 1:09Speaker 2: Absolutely.
- 1:10Speaker 1: So the mission for this deep dive is to demystify
- 1:13Speaker 1: this beast for you. We aren't just going to sit
- 1:15Speaker 1: here and list tools because that would be incredibly boring.
- 1:18Speaker 2: Boring.
- 1:18Speaker 1: Yeah, we want to understand the architecture of Collie, how
- 1:21Speaker 1: to actually get it running safely, and then we're going
- 1:24Speaker 1: to take a guided tour through the aisles of this
- 1:26Speaker 1: massive library from you know, basic reconnaissance all the way
- 1:30Speaker 1: to exploitation.
- 1:31Speaker 2: And we should probably clarify right at the top. Collie
- 1:34Speaker 2: isn't a general purpose operating system, right right. You wouldn't
- 1:38Speaker 2: use this to write your novel or edit your vacation photos.
- 1:43Speaker 2: It's a purpose built platform. It's designed to test systems,
- 1:46Speaker 2: break encryption, analyze networks. That's its job.
- 1:49Speaker 1: It's the Swiss Army knife for breaking things in order
- 1:52Speaker 1: to fix them, of course, naturally, So let's start with
- 1:56Speaker 1: the basics of deployment. If I want to start using
- 1:58Speaker 1: these tools, how do I actually run Collie? Because when
- 2:02Speaker 1: you look at the documentation it seems like there's more
- 2:04Speaker 1: than one way to skin this cat.
- 2:05Speaker 2: There is. Flexibility is really key here. The sources we're
- 2:09Speaker 2: looking at generally highlight three main ways to deploy Collie,
- 2:13Speaker 2: and the right choice depends entirely on what you're trying
- 2:16Speaker 2: to achieve.
- 2:16Speaker 1: Okay, let's start with the most permanent option, the hard
- 2:19Speaker 1: drive installation.
- 2:20Speaker 2: Yeah, this is what we call a bare metal installation.
- 2:23Speaker 2: You take a computer, you wipe its existing operating systems,
- 2:26Speaker 2: say Windows or Mac OS, and replace it entirely with
- 2:30Speaker 2: Collie Linux okay. Or you partition the drive and dual boot,
- 2:34Speaker 2: meaning when you turn the computer on, imagine a black
- 2:37Speaker 2: screen popping up and asking you do you want to
- 2:40Speaker 2: run Windows or do you want to run Collie.
- 2:42Speaker 1: That feels like a pretty big commitment, though, if you're
- 2:45Speaker 1: just learning, or if you need your computer for regular
- 2:48Speaker 1: life stuff, that might be a bit aggressive.
- 2:50Speaker 2: It is, and honestly, for most people, it's not the
- 2:53Speaker 2: recommended way to start out. Collie used to run as
- 2:56Speaker 2: the root user the super edmin all the time by default.
- 3:00Speaker 2: They've changed that recently to be more secure, but it's
- 3:02Speaker 2: still an OS filled with incredibly dangerous tools. You generally
- 3:06Speaker 2: don't want that to be your daily driver for checking email.
- 3:09Speaker 1: Okay, So if you don't want to marry the OS,
- 3:11Speaker 1: maybe you just want to.
- 3:11Speaker 2: Date it exactly.
- 3:14Speaker 1: That brings us to the second method, which honestly sounds
- 3:17Speaker 1: like something out of a spy thriller. The live option.
- 3:20Speaker 2: Oh, this one is incredibly useful, especially for physical penetration testing.
- 3:24Speaker 2: Let's paint a picture here. Imagine you're hired to audit
- 3:27Speaker 2: the security of an office building. You have physical access
- 3:30Speaker 2: to a workstation, but you can't log in, and you
- 3:33Speaker 2: certainly can't wipe their hard drive to install your own software.
- 3:37Speaker 1: So you bring your own brain.
- 3:38Speaker 2: Precisely, you burn the Kalie Linux image onto a simple
- 3:42Speaker 2: USB stick. You plug that stick into the target computer,
- 3:46Speaker 2: reboot it, and tell the machine to boot from the
- 3:48Speaker 2: USB instead of its internal hard drive.
- 3:50Speaker 1: And suddenly the computer is running your OS completely.
- 3:54Speaker 2: It loads entirely into the RAM. Yeah, your full desktop
- 3:56Speaker 2: environment right in front of you, all three hundred tools,
- 3:58Speaker 2: your custom scripts, everything, you can access, the local network, passwords,
- 4:03Speaker 2: whatever you need to do in that environment. And here
- 4:05Speaker 2: is the real magic trick. When you shut down the
- 4:08Speaker 2: machine and pull that USB stick out, the computer reverts
- 4:12Speaker 2: entirely to its original state, leaving zero forensic trace on
- 4:16Speaker 2: the hard draft.
- 4:17Speaker 1: It's the ghost approach. I love that.
- 4:19Speaker 2: Yeah, it's very cool.
- 4:20Speaker 1: But the sources suggest that for our listeners, people who
- 4:23Speaker 1: are likely setting up a lab environment to learn, the
- 4:25Speaker 1: third method is really the gold standard. Virtualization.
- 4:29Speaker 2: Absolutely, this is how I recommend everyone starts. You use
- 4:33Speaker 2: software like VMware or virtual box to create a virtual
- 4:37Speaker 2: machine or vm It's essentially a software based computer running
- 4:41Speaker 2: inside your physical computer.
- 4:42Speaker 1: And why is this better for learning than say the
- 4:45Speaker 1: USB stick?
- 4:46Speaker 2: Two main reasons, safety and snapshots. When you're learning Linux,
- 4:51Speaker 2: and specifically when you're learning these offensive tools, you are
- 4:54Speaker 2: going to break things, right, you might have a command
- 4:56Speaker 2: that accidentally deletes your network configuration, or you just crack
- 5:00Speaker 2: the whole system. If you do that on a virtual machine, it.
- 5:02Speaker 1: Doesn't matter because it's contained, right.
- 5:04Speaker 2: It's sandboxed. And with a future called snackshot, you can
- 5:08Speaker 2: literally save the exact state of the machine before you
- 5:11Speaker 2: try something risky. Oh nice, So if you mess up,
- 5:13Speaker 2: you just hit revert and the machine goes back in
- 5:16Speaker 2: time to the exact moment it was working perfectly. It's
- 5:19Speaker 2: a safety net that lets you be completely fearless while
- 5:22Speaker 2: you learn.
- 5:22Speaker 1: That is a massive advantage. Plus, you can run multiple
- 5:25Speaker 1: vms at once, right, like create your own little private
- 5:28Speaker 1: Internet exactly.
- 5:29Speaker 2: Picture this. You can have one VM running Collie as
- 5:32Speaker 2: the attacker, and another VM right next to it running
- 5:35Speaker 2: a vulnerable server as the target, all contained entirely within
- 5:39Speaker 2: your laptop's memory. It's a digital firing range where nobody
- 5:42Speaker 2: actually gets hurt.
- 5:43Speaker 1: Okay, So let's say we've gone to the official site,
- 5:46Speaker 1: We've downloaded the installer image, and we've spun it up
- 5:49Speaker 1: in a virtual machine. We are looking at the desktop.
- 5:52Speaker 1: The classic Collie Dragon logo is staring back at us.
- 5:54Speaker 2: Right.
- 5:55Speaker 1: We log in usually Collie and Collie for the username
- 5:58Speaker 1: and password.
- 5:58Speaker 2: Right, that's a default.
- 5:59Speaker 1: Yes, so I'm logged in. I am ready to start
- 6:02Speaker 1: clicking buttons and launching cyber nukes.
- 6:04Speaker 2: Hold on, put the mouse down. I knew you were
- 6:06Speaker 2: going to say that you have to. There's a very
- 6:09Speaker 2: specific ritual you have to perform first. Before you touch
- 6:13Speaker 2: a single tool like en map or metasploid, you must
- 6:16Speaker 2: update the system.
- 6:18Speaker 1: Now, this is a point of confusion for a lot
- 6:19Speaker 1: of people coming from Windows or Mac where the system
- 6:22Speaker 1: just kind of does this in the background while you sleep.
- 6:25Speaker 1: Why is it a manual process here and why is
- 6:27Speaker 1: it so critical?
- 6:29Speaker 2: So KLLI is what's known as a rolling distribution. The
- 6:32Speaker 2: developers are constantly pushing updates, new features for tools, critical
- 6:37Speaker 2: security patches for the core OS, updated software dependencies. Okay,
- 6:41Speaker 2: if you try to run a complex tool with an old,
- 6:44Speaker 2: outdated library, it might just crash on you. Or even worse,
- 6:48Speaker 2: you might be auditing a system using an outdated vulnerability database,
- 6:51Speaker 2: which means you could miss a glaringly obvious security hole.
- 6:55Speaker 1: So we need to be fresh. We're staring at the terminal,
- 6:58Speaker 1: that black box with the blinking cursor. This this is
- 7:00Speaker 1: where the magic happens. Walk us through the commands step
- 7:02Speaker 1: by step.
- 7:03Speaker 2: It's a two part process and it relies on the
- 7:05Speaker 2: Debian package manager, which is called app. The very first
- 7:08Speaker 2: command you type is Pseudo app update.
- 7:11Speaker 1: Let's break that down, Pseudo.
- 7:13Speaker 2: Super user doo. It tells the computer, hey, do this
- 7:16Speaker 2: with full administrative privileges. It'll prompt you to type your
- 7:20Speaker 2: password to confirm.
- 7:21Speaker 1: Got it an APT update that updates the software.
- 7:24Speaker 2: Yeah, and this is probably the most common misconception for
- 7:26Speaker 2: a beginner. Oh really, Yeah, appt update does not install
- 7:30Speaker 2: any new software. All it does is update the list
- 7:33Speaker 2: of available software. Okay, think of it like walking into
- 7:36Speaker 2: a restaurant and asking for the menu apps to update,
- 7:39Speaker 2: calls the kitchen and asks what are the specials today?
- 7:42Speaker 2: Have the price is changed, It reaches out to the
- 7:45Speaker 2: Colli servers and downloads the latest catalog of packages, so
- 7:49Speaker 2: your local machine knows exactly what is available out there.
- 7:52Speaker 1: Ah, okay, so we've looked at the menu. We know
- 7:55Speaker 1: what's available. How do we actually order the food?
- 7:58Speaker 2: That is the second command, pseudo apped upgrade picture typing
- 8:02Speaker 2: that in this command actually looks at the list you
- 8:04Speaker 2: just downloaded, compares it to the programs currently installed on
- 8:07Speaker 2: your machine and says, oh, your version of wireshark is
- 8:10Speaker 2: three months old. I'll download and install the brand new
- 8:13Speaker 2: one right now.
- 8:13Speaker 1: Okay, So update refreshes the list, upgrade installs the binaries.
- 8:17Speaker 1: Now looking at our nose, there's a pro tip here.
- 8:20Speaker 1: A way to combine these so you don't have to
- 8:21Speaker 1: sit there waiting for the first one to finish before
- 8:23Speaker 1: you type the second one.
- 8:24Speaker 2: Yes, the double ampersand it's just two ampersand symbols back
- 8:27Speaker 2: to back. In the Linux command line, this symbol loosely
- 8:30Speaker 2: translates to A and D, but functionally it means run
- 8:34Speaker 2: the first command and if and only if it succeeds
- 8:38Speaker 2: without any errors automatically run the second command.
- 8:41Speaker 1: So the full magic spell is pseudo app update, double
- 8:45Speaker 1: ampersand pseudo apped upgrade.
- 8:46Speaker 2: Precisely, you type that entire string in hit enter, authenticate
- 8:50Speaker 2: with your password, and then you see lines of texts
- 8:53Speaker 2: start flying up the screen. You can go grab a
- 8:55Speaker 2: coffee while your system brings itself completely up to the
- 8:57Speaker 2: cutting edge.
- 8:58Speaker 1: Okay, the system is updated, the terminal is quiet again,
- 9:01Speaker 1: the engine is purring. Now we can finally open the toolbox.
- 9:05Speaker 2: Now we could open the toolbox.
- 9:07Speaker 1: There are over three hundred tools here, and they're neatly
- 9:09Speaker 1: categorized by what they do in the application menu. We
- 9:12Speaker 1: obviously can't cover them all, but let's take a tour
- 9:15Speaker 1: of the main aisles of this hardware store. So the
- 9:17Speaker 1: first aisle is arguably the most important one information gathering.
- 9:21Speaker 2: Also known as reconnaissance, and honestly, this is where you
- 9:25Speaker 2: should spend the vast majority of your time. You cannot attack,
- 9:28Speaker 2: which you don't fundamentally understand. You have to map the
- 9:31Speaker 2: target first.
- 9:32Speaker 1: What are the heavy hitters in this category, Well, you
- 9:34Speaker 1: have your DNS analysis tools, but the absolute king of
- 9:37Speaker 1: this category is enmap enmap, the network mapper.
- 9:41Speaker 2: If you learn only one tool in all of Kylie Linux,
- 9:43Speaker 2: make it endmap. It is basically a flashlight in a
- 9:46Speaker 2: dark room. You point it at an IP address or
- 9:48Speaker 2: a whole range of IP addresses, and it sends out
- 9:51Speaker 2: tiny packets of data to essentially knock on the doors
- 9:53Speaker 2: the virtual ports of that target computer.
- 9:56Speaker 1: And it listens for the echo.
- 9:57Speaker 2: Exactly picture the output on your screen. It starts lifting
- 10:00Speaker 2: things out. Port eighty is open and it's running an
- 10:03Speaker 2: Apache web server. Court twenty two is open and it's
- 10:06Speaker 2: running an outdated version of SSH. It builds a comprehensive
- 10:09Speaker 2: map of the target's attack surface.
- 10:11Speaker 1: Then there's the stuff that feels a bit more like
- 10:14Speaker 1: actual detective work. Osent. Open source intelligence tools like Maltago.
- 10:18Speaker 2: Oh. Maltago is fascinating because it's highly visual. Instead of
- 10:23Speaker 2: just text, imagine a blank canvas on your screen. You
- 10:27Speaker 2: drop a piece of information onto a say a company's
- 10:29Speaker 2: domain name.
- 10:30Speaker 1: Okay.
- 10:30Speaker 2: The tool automatically searches public databases to find connections. It
- 10:34Speaker 2: links that domain name to server IP addresses, those ips
- 10:38Speaker 2: to employee email addresses, those emails to public social media profiles,
- 10:42Speaker 2: and those profiles to physical locations. It automatically builds this massive,
- 10:46Speaker 2: interactive spider web of relationships right in front of you.
- 10:50Speaker 1: It's amazing and frankly a little terrifying how much data
- 10:53Speaker 1: is just floating around out there waiting to be connected.
- 10:55Speaker 2: It really is.
- 10:55Speaker 1: Okay, moving to the next aisle, Web application analysis.
- 10:59Speaker 2: This one is huge because almost everything is a web
- 11:02Speaker 2: app nowadays. Your bank, your corporate email, your document storage.
- 11:07Speaker 2: The tools in this category are specifically designed to test
- 11:09Speaker 2: the weaknesses of those websites.
- 11:11Speaker 1: The sources specifically highlight burp suite and owow's mind though
- 11:15Speaker 1: zp zap.
- 11:17Speaker 2: Yes, both of these function as proxies.
- 11:19Speaker 1: Can you explain that concept for us? Because we aren't
- 11:22Speaker 1: talking about a VPN proxy to hide your geographic location
- 11:25Speaker 1: right now.
- 11:25Speaker 2: This is completely different. Imagine you're mailing a physical letter
- 11:29Speaker 2: to a website. Normally, you drop it in the mailbox
- 11:32Speaker 2: and it's instantly gone out of your hands. A proxy
- 11:35Speaker 2: like burp suite stands directly between your web browser and
- 11:38Speaker 2: the destination server. Okay, So you click submit on a
- 11:41Speaker 2: log in form and burpsuite literally grabs that network request
- 11:46Speaker 2: and pauses it.
- 11:46Speaker 1: It freezes time.
- 11:47Speaker 2: Right on your screen. You can open that raw request
- 11:50Speaker 2: and see exactly what data your browser is trying to
- 11:53Speaker 2: send behind the scenes, the hidden cookies, the session headers,
- 11:56Speaker 2: the plaintech's passwords, and the best part you can to
- 12:00Speaker 2: it before letting.
- 12:01Speaker 1: It go oh wow.
- 12:02Speaker 2: You can change a hidden field that says price equals
- 12:04Speaker 2: one hundred dollars to price equals one dollar. Then you
- 12:08Speaker 2: click forward, sending that manipulated request to the server to
- 12:11Speaker 2: see if it blindly accepts your modified data.
- 12:14Speaker 1: That is incredibly powerful. And what about the actual database
- 12:17Speaker 1: is sitting behind those websites.
- 12:18Speaker 2: That is where seql map comes in. It automates what's
- 12:22Speaker 2: called seqal injection. It basically throws thousands of confusing malforms
- 12:26Speaker 2: questions at a database very rapidly, just to see if
- 12:29Speaker 2: the database gets confused and accidentally spits out secret information
- 12:32Speaker 2: like user tables or password hashes or credit card numbers.
- 12:36Speaker 1: Speaking of passwords, let's head to the aisle that pretty
- 12:39Speaker 1: much everyone thinks of when they hear the word hacking.
- 12:42Speaker 2: Password attacks the literal keys to the kingdom. There are
- 12:45Speaker 2: two main approaches here, online attacks and offline attacks.
- 12:49Speaker 1: Online meaning you're trying to force your way into a
- 12:52Speaker 1: live website login page.
- 12:54Speaker 2: Right yes, you'd use tools like Hydra or MEDUSA for this.
- 12:58Speaker 2: You point them at a live log in portal and
- 13:00Speaker 2: they rapidly try thousands of different username and password combinations. Right.
- 13:06Speaker 2: But the problem is this is a very noisy approach.
- 13:08Speaker 2: It generates massive logs on the server. Most modern systems
- 13:12Speaker 2: are going to detect that and lock your IP address
- 13:14Speaker 2: out after say three to five failed attempts.
- 13:17Speaker 1: So the offline method is the preferred way to go.
- 13:20Speaker 2: Highly preferred if you can get the required data. This
- 13:23Speaker 2: approach assumes you've already exploited some other vulnerability and managed
- 13:27Speaker 2: to steal a file from the server that contains the
- 13:30Speaker 2: hashes of the user's.
- 13:31Speaker 1: Passwords, and hash is essentially the mathematically scrambled encrypted version
- 13:36Speaker 1: of the password.
- 13:37Speaker 2: Correct, you bring that stolen hash file back to your
- 13:40Speaker 2: local Collie machine. Then you fire up a tool like
- 13:43Speaker 2: John the Ripper or hashcat.
- 13:45Speaker 1: I love the names of these tools, by the way,
- 13:47Speaker 1: They're very dramatic.
- 13:48Speaker 2: But what they do is take a massive list of guesses,
- 13:51Speaker 2: encrypt each guess using the exact same algorithm the server used,
- 13:54Speaker 2: and see if the resulting hash matches the stolen one.
- 13:57Speaker 2: And because it's happening locally on your hardware. They can
- 14:00Speaker 2: try millions, sometimes billions of guesses per.
- 14:02Speaker 1: Second, but they do need a list of baseline guesses
- 14:05Speaker 1: to start with.
- 14:06Speaker 2: That's where wordless come in. College comes with several massive
- 14:09Speaker 2: text files built right in, usually sitting in the user
- 14:11Speaker 2: Share wordless directory. The most famous one by far is
- 14:14Speaker 2: called rocky dot txt rock you Yeah, the real world
- 14:18Speaker 2: text file containing over fourteen million passwords that were leaked
- 14:22Speaker 2: from a massive data breach years.
- 14:24Speaker 1: Ago, which is useful because people are incredibly predictable.
- 14:28Speaker 2: Extremely people reuse the same terrible passwords constantly. But if
- 14:32Speaker 2: you want to be more surgical, you can use a
- 14:34Speaker 2: tool like sewel spelled cewl. It's a custom wordless generator.
- 14:39Speaker 1: How does that work?
- 14:40Speaker 2: You point Sewell at a specific target's website, say the
- 14:43Speaker 2: company's about us page or their blog. It spiders through
- 14:47Speaker 2: the site and scrapes all the unique words from those
- 14:49Speaker 2: pages to build a custom dictionary just for that company.
- 14:53Speaker 1: Because employees use passwords related.
- 14:55Speaker 2: To their environment exactly. If the company manufactures widgets and
- 14:58Speaker 2: the CEO's name is see will make sure that combinations
- 15:02Speaker 2: like widget bob one, two three end up in your
- 15:05Speaker 2: custom guessing list. It's a highly context to wear attack that.
- 15:08Speaker 1: Is deviously smart. Okay, Aisle four. Wireless and sniffing.
- 15:12Speaker 2: This is all about analyzing the invisible traffic flowing through
- 15:15Speaker 2: the air or across the local wire wire Shark is
- 15:19Speaker 2: the absolute gold standard here. It captures individual data packets.
- 15:23Speaker 2: If you're on a local network where people are sending
- 15:25Speaker 2: unencrypted data, wire Shark lets you intercept and reconstruct the
- 15:28Speaker 2: entire conversation, like.
- 15:30Speaker 1: Actually reading their traffic.
- 15:32Speaker 2: You can literally read the plaintext emails flying by on
- 15:34Speaker 2: the screen.
- 15:35Speaker 1: Wow. And for wireless network, specifically WiFi, that's where.
- 15:39Speaker 2: You use the air cracking suite. It allows you to
- 15:41Speaker 2: put your laptop's Wi Fi card into what's called monitor mode. Normally,
- 15:45Speaker 2: your network card politely ignores any traffic that isn't specifically
- 15:48Speaker 2: addressed to your computer. Monitor mode forces the card to
- 15:52Speaker 2: listen to absolutely everything flying through the air around you.
- 15:56Speaker 2: You can sit in a coffee shop, capture the encrypted
- 15:59Speaker 2: handshake the omen of device authenticates to the router, save
- 16:02Speaker 2: that handshake to a file, and then take it home
- 16:05Speaker 2: to try and crack the YPI password offline.
- 16:07Speaker 1: Okay, final Aisle, We've scanned the network. We've found a vulnerability.
- 16:11Speaker 1: Maybe we've sniffed some traffic or cracked a password. Now
- 16:14Speaker 1: we actually want to get in exploitation.
- 16:17Speaker 2: This is the sharp end of the sphere, and the
- 16:19Speaker 2: biggest name in this space is the metasploit framework.
- 16:22Speaker 1: The sources describe metasplat as almost a point and click
- 16:25Speaker 1: hacking platform. Is that accurate It can be.
- 16:28Speaker 2: It's essentially a massive searchable database of known exploits and payloads.
- 16:35Speaker 2: But to really understand how to use it, you need
- 16:37Speaker 2: to separate the concept of the exploit from the payload.
- 16:40Speaker 1: Okay, give us an analogy to break that down.
- 16:43Speaker 2: Sure. Imagine you are trying to break into a physical house.
- 16:47Speaker 2: The exploit is the method you use to get the
- 16:49Speaker 2: door open. Maybe you pick the lock, maybe you pry
- 16:52Speaker 2: open a window with a crowbar. In software terms, that's
- 16:55Speaker 2: the specific code that takes advantage of a bug to
- 16:58Speaker 2: bypass security.
- 16:59Speaker 1: And the payload.
- 17:00Speaker 2: The payload is what you actually do once you're inside
- 17:02Speaker 2: the house. Do you steal the jewelry? Do you plant
- 17:05Speaker 2: a hidden camera in the living room? Do you unlock
- 17:07Speaker 2: the back door so your friends can walk in later?
- 17:09Speaker 1: Ah?
- 17:09Speaker 2: I see in metasploit, you pair an exploit with a payload.
- 17:13Speaker 2: The payload might be a simple command shell, or it
- 17:15Speaker 2: might be something advanced like Materpreter, which runs entirely in
- 17:19Speaker 2: memory and gives you full control over the target system.
- 17:22Speaker 2: You can turn on their webcam, record audio from the microphone,
- 17:26Speaker 2: download sensitive files, everything, and once.
- 17:28Speaker 1: You have that level of control, you can move into
- 17:30Speaker 1: what's called post exploitation.
- 17:32Speaker 2: Right using tools like proxy chains, you essentially use the
- 17:36Speaker 2: computer you just compromised as a launch pad to attack
- 17:40Speaker 2: other computers deeper inside the corporate network machines you couldn't
- 17:44Speaker 2: even see from the outside Internet. You're pivoting through the
- 17:46Speaker 2: internal system.
- 17:48Speaker 1: It is a sobering tour. Honestly, when you see it
- 17:50Speaker 1: all laid out like this, hundreds of tools, highly automated,
- 17:53Speaker 1: incredibly efficient, you realize that security isn't about luck, it's
- 17:58Speaker 1: about engineering.
- 17:59Speaker 2: That is exactly the main takeaway here. Kalie Lenox standardizes
- 18:03Speaker 2: the hacking process. It makes complex attacks repeatable and measurable.
- 18:08Speaker 2: The bad guys have access to all these exact same
- 18:11Speaker 2: tools as security professionals. We have to use them to
- 18:14Speaker 2: to map our networks and find the holes before they do.
- 18:17Speaker 1: We've covered a huge amount of ground today from the
- 18:20Speaker 1: architecture of the operating system, to the specific commands to
- 18:24Speaker 1: update it, and finally the kill chain of the tools themselves.
- 18:27Speaker 1: But before we wrap up, we want to do a
- 18:29Speaker 1: quick review exercise for you to cement what you've learned.
- 18:31Speaker 2: Right, Let's see if you're paying attention to the ritual
- 18:33Speaker 2: we talked about earlier.
- 18:35Speaker 1: Okay, here's the scenario. You have just booted up a
- 18:38Speaker 1: fresh Callie Linux virtual machine to start your lab work.
- 18:42Speaker 1: You open the terminal you need to ensure your system
- 18:45Speaker 1: has the latest package lists A and D the latest
- 18:48Speaker 1: software installed. What is the single combined command you type
- 18:52Speaker 1: to do this efficiently?
- 18:54Speaker 2: Think about the two distinct steps asking for the menu
- 18:57Speaker 2: and then actually ordering the meal. Remember the connector symbol
- 19:01Speaker 2: that ties them together.
- 19:02Speaker 1: Got it. The command is pseudo apped update, followed by
- 19:04Speaker 1: the double ampersan, followed by pseudo apped upgrade, pseudo.
- 19:08Speaker 2: Apped update and in pseudo app upgrade. If you remember
- 19:11Speaker 2: that sequence, and more importantly, you understand why it works
- 19:14Speaker 2: that the double ampersand waits for the first command to
- 19:16Speaker 2: succeed perfectly before triggering the second. You're already starting to
- 19:20Speaker 2: think like a seasoned Linux user.
- 19:21Speaker 1: And remember this toolkit is incredibly powerful. It's designed for
- 19:25Speaker 1: learning and for securing systems.
- 19:27Speaker 2: Absolutely, always keep your testing strictly within your own lab environments,
- 19:31Speaker 2: your own virtual machines, your personal networks, or on systems
- 19:34Speaker 2: where you have explicit, documented, written permission to test. These
- 19:38Speaker 2: tools are very loud, and they leave digital fingerprints everywhere.
- 19:41Speaker 1: Think about it this way. These tools, from nmap to
- 19:44Speaker 1: metasploit are ultimately just programs designed to ask very specific
- 19:48Speaker 1: questions about a network's security posture. The responsibility lies entirely
- 19:52Speaker 1: in how you choose to use the answers. Use the
- 19:54Speaker 1: Swiss Army Knife to build and secure, not to destroy.
- 19:58Speaker 2: Well said, stay secure out there.
- 20:00Speaker 1: Thanks for joining us on this deep dive into Kali.
- 20:02Speaker 1: Lennox will catch you next time.