Latest / CyberSecurity Summary / Ethical Hacking With Kali Linux: Learn Fast How To Hack Like A Pro
Transcript
- 0:00Speaker 1: Welcome to the deep dive. In a world just overflowing
- 0:03Speaker 1: with information, wouldn't it be incredible to cut through all
- 0:07Speaker 1: that noise and get straight to those you know, aha
- 0:10Speaker 1: moments on topics that really matter. Absolutely, Today we're diving
- 0:14Speaker 1: headfirst into a realm that's both fascinating and frankly critical
- 0:18Speaker 1: for our digital safety. Ethical hacking.
- 0:21Speaker 2: Yeah, it's true. The word hacking often conjures up images
- 0:25Speaker 2: of malicious activity, right, dark rooms, hoodies, right exactly, But
- 0:28Speaker 2: ethical hacking, sometimes called penetration testing, completely flips that perception
- 0:33Speaker 2: on its head. It's really about strategically simulating those very attacks,
- 0:37Speaker 2: but not to cause harm, No, not at all. It's
- 0:39Speaker 2: to proactively uncover vulnerabilities before the real bad actors ever
- 0:43Speaker 2: find them. When you zoom out and look at the
- 0:45Speaker 2: bigger picture. It's an indispensable part of modern cybersecurity exactly.
- 0:50Speaker 1: So this deep dive is custom tailored for you, and
- 0:52Speaker 1: we're drawing from a really insightful source ethical hacking with
- 0:55Speaker 1: Koalie Linux Learn Fast How to Hack Like a Pro
- 0:58Speaker 1: by Hugo Hoffman, good book.
- 1:00Speaker 2: Yeah.
- 1:01Speaker 1: Our mission to basically arm you with the essential concepts,
- 1:05Speaker 1: the UH systematic methodologies and to peek into the powerful
- 1:09Speaker 1: tools ethical hackers.
- 1:11Speaker 2: Use, but always, always with that white hat perspective.
- 1:15Speaker 1: That's the key, and you might be surprised at how
- 1:17Speaker 1: accessible some of these fundamental ideas can be even if
- 1:20Speaker 1: you don't have like a super deep technical background.
- 1:23Speaker 2: Well, that white hat distinction is truly paramount. It's, you know,
- 1:26Speaker 2: the cornerstone of everything we'll talk about. Yeah, the information
- 1:29Speaker 2: we're sharing is strictly for educational purposes. It's designed to
- 1:31Speaker 2: improve security posture, improve understanding. Any actions we describe here
- 1:36Speaker 2: must be undertaken with explicit written authorization and only in
- 1:41Speaker 2: carefully controlled, isolated environments. Think of it like your own
- 1:45Speaker 2: personal home lab.
- 1:46Speaker 1: Cannot stress that enough.
- 1:47Speaker 2: Seriously, we really can't stress enough the severe legal and
- 1:51Speaker 2: ethical implications of unauthorized use of these kinds of powerful techniques.
- 1:56Speaker 1: Okay, So to properly set the stage for understanding ethical hacking,
- 2:00Speaker 1: we kind of need to start with a Linux. If
- 2:02Speaker 1: you're thinking about an IT career, especially in this field.
- 2:05Speaker 1: Why is Linux so foundational? I mean we see it dominating.
- 2:08Speaker 2: Everywhere, right, Oh, absolutely, cloud environments, IoT devices, DevOps, pipelines,
- 2:14Speaker 2: massive enterprise servers, it's everywhere.
- 2:16Speaker 1: So what's the magic.
- 2:18Speaker 2: The real insight I think lies in understanding the core
- 2:21Speaker 2: philosophy behind Linux's open nature. It's just fundamentally different from
- 2:26Speaker 2: proprietary software. So well, we generally talk about three main
- 2:30Speaker 2: licensing models that sort of underpin this freedom. First, you
- 2:33Speaker 2: get the Free Software Foundation, the FSF, the Champion, the
- 2:36Speaker 2: g and U General Public License or GPL. This license
- 2:40Speaker 2: gives users incredible freedom, freedom to use, modify, even redistribute
- 2:44Speaker 2: the software, maybe even sell it as long as the
- 2:46Speaker 2: original conditions like those for the Linux kernel itself aren't changed.
- 2:50Speaker 1: And that's free, as in freedom, not free beer.
- 2:53Speaker 2: Exactly, not necessarily free of charge. Then you have the
- 2:56Speaker 2: Open Source Initiative OSI. They tend to favor more flex
- 3:00Speaker 2: licenses like BSD, MIT Apache. These are often easier for
- 3:04Speaker 2: commercial use because they have fewer complex restrictions. And finally,
- 3:08Speaker 2: there's creative comments.
- 3:10Speaker 1: Ah yeah, I've seen those icons.
- 3:12Speaker 2: Right. Let's creators pick exactly which rights they want to reserve,
- 3:15Speaker 2: like requiring attribution or only allowing non commercial use, or
- 3:20Speaker 2: even making it public domain.
- 3:21Speaker 1: So what does this open philosophy practically mean for you know,
- 3:25Speaker 1: someone wanting to get into ethical hacking.
- 3:28Speaker 2: Well, it translates to incredible flexibility, just massive flexibility. You
- 3:33Speaker 2: can install multiple Linux versions on tons of devices without
- 3:36Speaker 2: commercial limits.
- 3:38Speaker 1: Which makes experimenting super easy.
- 3:40Speaker 2: Totally spin up, test deployments, try things out, bitch them
- 3:43Speaker 2: if they don't work, no big deal. Plus it's remarkably
- 3:46Speaker 2: cost effective, right.
- 3:47Speaker 1: You can run complex stuff on pretty cheap hardware.
- 3:49Speaker 2: Exactly, run complex processes on a you know, sub three
- 3:52Speaker 2: hundred dollars PC, whereas you might need really expensive systems
- 3:55Speaker 2: for Windows or Mac, especially for heavy tasks like say
- 3:59Speaker 2: video editing or complex simulations. Okay, And this inherent flexibility
- 4:03Speaker 2: gives rise to what we call Linux distributions or.
- 4:05Speaker 1: Distros, right, like Obuntu or Mint.
- 4:08Speaker 2: Yeah, those are popular ones. Think of Linux itself as
- 4:11Speaker 2: the engine and chassis of a car. A distro is
- 4:14Speaker 2: like the fully assembled vehicle customized for a specific.
- 4:17Speaker 1: Purpose, like Android for phones.
- 4:19Speaker 2: Perfect example, Android is a Linux distro optimized for mobile,
- 4:24Speaker 2: or scientific Linux for scientific computing, and for what we're
- 4:28Speaker 2: talking about today, network security testing. Kali Linux is a
- 4:32Speaker 2: prime example.
- 4:32Speaker 1: Because it comes with all the tools pre.
- 4:34Speaker 2: Installed, exactly, prepackaged with hundreds of tools, saves you immense
- 4:39Speaker 2: setup time. Let's you focus on the strategy you know not.
- 4:41Speaker 2: Just fiddling with configurations makes sense.
- 4:44Speaker 1: And there are families of these distros, right yeah.
- 4:46Speaker 2: The big ones are Debian, which includes a Buntu Mint
- 4:49Speaker 2: and Collie itself, then red Hat with Sentos and Fedora,
- 4:52Speaker 2: SUS and Arch. Lots of flavors.
- 4:55Speaker 1: So when you install Linux you usually get a choice,
- 4:57Speaker 1: right do you I or command line yep?
- 4:59Speaker 2: Graphically use interface GUI that's the point click most people know,
- 5:02Speaker 2: or the command line interface CLI, which is text based.
- 5:06Speaker 1: And for security, probably best not to live as the
- 5:09Speaker 1: root user all the time.
- 5:10Speaker 2: Oh definitely not for normal operations. Better to harden your
- 5:13Speaker 2: system use standard user accounts. And for storage, there are
- 5:17Speaker 2: cool options like Logical Volume Manager LVM.
- 5:20Speaker 1: What does that do?
- 5:21Speaker 2: It offers really flexible disc manipulation. Imagine you have like
- 5:25Speaker 2: three hard drives. LVM lets you pull them together into
- 5:28Speaker 2: one big dynamic storage.
- 5:29Speaker 1: Space so you can resize things easily.
- 5:32Speaker 2: Exactly, resize virtual discs, create new ones on the fly.
- 5:35Speaker 2: Or Another common setup is combining a fast SSD for
- 5:39Speaker 2: your system files with slower, bigger hard drives for data storage.
- 5:44Speaker 2: LVM can manage that too.
- 5:45Speaker 1: Okay, cool, so we've got the OS down. What about
- 5:48Speaker 1: the specific gear the software.
- 5:50Speaker 2: And hardware right the toolkit. The source mentions a lot
- 5:53Speaker 2: of essential software tools network sniffers and analyzers like tcpdump,
- 5:57Speaker 2: Microsoft netmond Land Detective Channelizer, utter Cap, Network Minor, Fiddler
- 6:03Speaker 2: and the big one.
- 6:04Speaker 1: Wire Shark and Collie Linux itself obviously, plus virtualization stuff
- 6:07Speaker 1: like VMware or virtual box.
- 6:09Speaker 2: Yep for running your labs. But on the hardware side,
- 6:11Speaker 2: one area that's often overlooked but really really important for
- 6:14Speaker 2: pen testing is your wireless adapter.
- 6:16Speaker 1: Why isn't the one in my laptop good enough?
- 6:20Speaker 2: Probably not? Actually, most built in Wi Fi cards just
- 6:23Speaker 2: aren't up to the task for serious pen testing.
- 6:25Speaker 1: Okay. Why not?
- 6:26Speaker 2: Well, mainly because they typically lack two key capabilities, monitor
- 6:30Speaker 2: mode and packet injection.
- 6:32Speaker 1: Right. Monitor mode lets you listen to everything, not just
- 6:35Speaker 1: stuff addressed to you.
- 6:36Speaker 2: Exactly passively listen to all the traffic flying around. And
- 6:39Speaker 2: packet injection lets you actually craft and send specific packets
- 6:43Speaker 2: onto the network.
- 6:45Speaker 1: Which you need for a lot of Wi Fi attacks.
- 6:47Speaker 2: Absolutely essential. Plus, virtual machines often have trouble accessing those
- 6:50Speaker 2: built in cards directly anyway, so it's less.
- 6:53Speaker 1: About the brand name on the adapter and more about
- 6:55Speaker 1: what's inside the chip set precisely.
- 6:58Speaker 2: It's all about the chipset. For instance, it's the atheros
- 7:00Speaker 2: AR nine two to seven to one chipset is a
- 7:02Speaker 2: huge favorite.
- 7:03Speaker 1: Why that one?
- 7:03Speaker 2: It fully supports monitor mode, packet injection, even creating fake
- 7:07Speaker 2: access points. Super versatile for tons of calie Linux attacks.
- 7:11Speaker 1: But only two point four geta Hurts Right, that's the catch.
- 7:13Speaker 2: Yeah, if your target network is only on five gigahertz,
- 7:16Speaker 2: you won't even see it. Then there's the real Tech
- 7:19Speaker 2: RTL eight eight one two AU chipset.
- 7:22Speaker 1: What's the deal with that one?
- 7:23Speaker 2: Well, the big advantage is it supports both two point
- 7:25Speaker 2: four geta Hurts and five geta HURTZ. Sure, plus monitor
- 7:28Speaker 2: mode and packet injection. Sounds perfect almost. The book does
- 7:32Speaker 2: note it can sometimes be a bit less reliable for
- 7:35Speaker 2: certain attacks, might occasionally need you to like replug the
- 7:39Speaker 2: card or just retry the attack.
- 7:41Speaker 1: So there's a trade off.
- 7:42Speaker 2: Definitely. You can find really cheap unbranded adapters with these chipsets.
- 7:46Speaker 2: They're small, discrete, which can be.
- 7:48Speaker 1: Handy, or you go for the bigger guns, right.
- 7:50Speaker 2: You can opt for the more robust all for brand adapters.
- 7:53Speaker 2: They're usually larger, maybe less subtle, but they tend to
- 7:57Speaker 2: offer better build quality, better range, and just overall reliability.
- 8:01Speaker 1: So the takeaway is check the chip set.
- 8:03Speaker 2: Absolutely. Compatibility for serious pen testing almost entirely boils down
- 8:07Speaker 2: to getting an adapter with the right chipset inside it,
- 8:10Speaker 2: not just a popular brand, got it?
- 8:13Speaker 1: So hardware sorted, Let's get this ethical hacking lab actually
- 8:16Speaker 1: up and running. You mentioned virtual Box.
- 8:18Speaker 2: Yeah, virtual Box is fantastic for this. It's free, works
- 8:21Speaker 2: on Windows, Mac, Linux, cross platform, lets you run multiple
- 8:25Speaker 2: virtual machines on your computer. Highly recommended for setting up
- 8:28Speaker 2: Collie and.
- 8:28Speaker 1: Collie Linux itself is like the Swiss Army Knife exactly.
- 8:31Speaker 2: It's a really user friendly distribution, but it's specifically built
- 8:35Speaker 2: for pen testing, packed with hundreds of built in tools
- 8:38Speaker 2: for everything you can.
- 8:39Speaker 1: Imagine, like information gathering, forensics.
- 8:43Speaker 2: Reverse engineering, stress testing, vulnerability assessment, you name it. It's
- 8:48Speaker 2: designed to be a comprehensive toolkit for finding weaknesses and
- 8:52Speaker 2: ultimately helping improve security.
- 8:54Speaker 1: So setting it up in virtual Box, what are the
- 8:57Speaker 1: key steps?
- 8:58Speaker 2: The source recommends giving it at least four gigs a RAM,
- 9:01Speaker 2: maybe twenty gigs for the virtual hard drive, enough space
- 9:04Speaker 2: to work and networking. Crucial step bridge the VM to
- 9:07Speaker 2: your router. That makes it act like any other device
- 9:10Speaker 2: on your home network. Gets it online.
- 9:12Speaker 1: Okay, Then you boot it up yep.
- 9:14Speaker 2: After the initial boot, if you're at the command line,
- 9:16Speaker 2: just type start EGGX to get the graphical interface.
- 9:18Speaker 1: And the default login.
- 9:19Speaker 2: For the command line. It's usually a username, route password
- 9:22Speaker 2: tour but you'll want to change that.
- 9:25Speaker 1: Good point and network canfig static IP?
- 9:29Speaker 2: Yeah, assign it a static IP address, like giving it
- 9:31Speaker 2: a permanent address on your network. Then set the default
- 9:34Speaker 2: gateway so it knows how to reach the internet.
- 9:36Speaker 1: Then test it ping the router, ping Google.
- 9:38Speaker 2: Exactly, ping ten dot ten, dot Deal dot one or
- 9:41Speaker 2: whatever your router is than ping www dot Google dot com.
- 9:46Speaker 2: Just make sure it's all work.
- 9:47Speaker 1: Okay, Collie is installed. What's the absolute first thing you
- 9:50Speaker 1: should do?
- 9:51Speaker 2: Update it? This is the single most critical task after
- 9:54Speaker 2: a clean install. Seriously, think of it like tuning up
- 9:58Speaker 2: a race card before you hit the track.
- 10:00Speaker 1: Right, get all the latest patches and tool.
- 10:01Speaker 2: Version Precisely, Collie uses advanced packaging tools APT to manage
- 10:06Speaker 2: it software. You'll run a sequence of commands.
- 10:08Speaker 1: Okay, what are they?
- 10:09Speaker 2: First? App get update. That's like refreshing your app store catalog,
- 10:12Speaker 2: so Collie knows about all the newest software and security patches.
- 10:15Speaker 1: Makes sense.
- 10:16Speaker 2: Then app Get Upgrade I the why just answers yes automatically.
- 10:20Speaker 2: It actually installs the newest versions of the stuff you
- 10:22Speaker 2: already have got it and finally app to get disted upgrade.
- 10:26Speaker 2: This one handles more complex upgrades, make sure all the
- 10:29Speaker 2: dependencies work together, and removes any old obsolete.
- 10:32Speaker 1: Packages and reboot after all that.
- 10:34Speaker 2: Always best practice. Reboot after that sequence to make sure
- 10:38Speaker 2: everything is fresh and clean and running correctly.
- 10:41Speaker 1: And for just managing packages day to day, listing removing Yeah.
- 10:45Speaker 2: Basic commands let you list installed packages, maybe filter With
- 10:48Speaker 2: GP you can show a package's description and dependencies, or
- 10:51Speaker 2: remove something you don't need anymore with Pseudo app Get Removed.
- 10:54Speaker 1: The book also mentions some useful extras to install.
- 10:57Speaker 2: It does things like preload for potentially faster app access,
- 11:01Speaker 2: bleach bit to free up disk base and help with privacy,
- 11:04Speaker 2: boot up manager to disabled services you don't need running.
- 11:07Speaker 1: Also Nome do for keyboard launching, Yeah.
- 11:09Speaker 2: App file to search inside packages, scrub for more secure
- 11:12Speaker 2: file deletion, Shutter for taking screenshots, and figle it for
- 11:16Speaker 2: fun custom console messages. Little quality of life improvements.
- 11:20Speaker 1: What about SSH secure shell?
- 11:22Speaker 2: Ah, good point. A smart step is to harden your
- 11:25Speaker 2: SSH setup. Collie comes with default SSH keys, right well,
- 11:30Speaker 2: fundamental security practice is disable those and generate unique ones
- 11:34Speaker 2: just for your machine. Use DPKG, reconfigure open server so.
- 11:39Speaker 1: Your lab isn't using predictable keys.
- 11:41Speaker 2: Exactly verify the new key hashes, then start the SSH
- 11:44Speaker 2: service that lets you securely connect to your COLLIVM from
- 11:47Speaker 2: another computer, which is often really convenient. It's a small
- 11:51Speaker 2: step but significantly improves your security posture right off the bat.
- 11:55Speaker 1: Okay, foundations laid Linux, Collie, basic Setuple's get into the
- 12:00Speaker 1: actual process, the penetration testing life cycle. Why even do
- 12:04Speaker 1: a pen test?
- 12:05Speaker 2: Yeah? The fundamental question right beyond just finding bugs, it's
- 12:08Speaker 2: about evaluating an organization's actual security posture by actively simulating
- 12:13Speaker 2: real world attacks, so.
- 12:14Speaker 1: You find the specific holes a hacker could use.
- 12:17Speaker 2: Exactly find those specific vulnerabilities, and then crucially use those
- 12:21Speaker 2: findings to help create and redesign more robust security measures.
- 12:24Speaker 1: And the reports are key to Absolutely.
- 12:26Speaker 2: A good pen test delivers comprehensive reports detailing everything found.
- 12:31Speaker 2: Plus it really aids in disaster recovery and business continuity
- 12:34Speaker 2: planning because you're anticipating how at tax might actually happen.
- 12:38Speaker 1: What makes a PEN test actually successful, though.
- 12:41Speaker 2: Well, several critical factors. You absolutely need to follow a
- 12:45Speaker 2: well defined methodology, Meticulous documentation is non.
- 12:49Speaker 1: Negotiable, and the right tools.
- 12:51Speaker 2: Yep, using the right mix of proprietary and open source tools.
- 12:55Speaker 2: Also ensuring legitimate ethical individuals conduct the tests, and maybe most.
- 13:00Speaker 1: Importantly, giving actionable recommendation.
- 13:02Speaker 2: Precisely providing actionable recommendations for fixing the issues. It's not
- 13:06Speaker 2: just about finding flaws, it's about offering clear paths to
- 13:10Speaker 2: stronger defenses.
- 13:11Speaker 1: And the benefits go beyond just fixing holes.
- 13:13Speaker 2: Oh yeah, much broader. It helps identify needed infrastructure changes,
- 13:17Speaker 2: prepares the org to prevent future exploits, evaluates how well
- 13:20Speaker 2: security devices like firewalls are actually.
- 13:22Speaker 1: Working, confirms defenses, maybe trains the security team.
- 13:25Speaker 2: Definitely trains the team by exposing them to realistic scenarios.
- 13:29Speaker 2: It helps identify specific threats relevant to that organization or industry,
- 13:34Speaker 2: optimizes security spending for better ROI, helps create solid policies
- 13:39Speaker 2: and ensures compliance with regulations to avoid breaches and lawsuits.
- 13:43Speaker 2: Lots of benefits.
- 13:44Speaker 1: How does a PEN test differ from say, a security audit.
- 13:48Speaker 2: Good question, think of a security audit more like a checklist.
- 13:52Speaker 2: Does the company follow its own policies and procedures? Yes
- 13:55Speaker 2: or no? Okay?
- 13:56Speaker 1: And a vulnerability assessment that goes a step further.
- 13:58Speaker 2: It discovers vulnerability, finds potential weaknesses, but it doesn't necessarily
- 14:02Speaker 2: confirm if they're actually exploitable or what the real damage
- 14:05Speaker 2: could be.
- 14:06Speaker 1: So the pen test is the one that actually tries
- 14:08Speaker 1: to break in exactly.
- 14:09Speaker 2: A penetration test is a systematic assessment that includes an
- 14:12Speaker 2: audit component, but also demonstrates successful exploitation of weaknesses. It
- 14:17Speaker 2: gives a much clearer, more impactful picture of the actual
- 14:20Speaker 2: real world risk.
- 14:21Speaker 1: Gotcha. The book also talks about teams Red Team, Blue Team.
- 14:25Speaker 2: Right, it's a helpful analogy. The Red team acts as
- 14:28Speaker 2: the aggressor the ethical hackers. They often have limited internal access,
- 14:33Speaker 2: maybe attack with or without warning. Sometimes it even includes
- 14:37Speaker 2: sissemins from other departments to simulate insider.
- 14:40Speaker 1: Threats, and the Blue team is defense yep.
- 14:43Speaker 2: The Blue Team is the defensive force. They have full
- 14:45Speaker 2: access to resources and their main job is to detect
- 14:48Speaker 2: and mitigate the Red team's activities. Basically anticipating how a
- 14:52Speaker 2: real attack might unfold. Usually includes the company's IT staff,
- 14:56Speaker 2: often involved in the less expensive, more frequent assessments.
- 14:59Speaker 1: Okay, and the type of tests depends on how much
- 15:01Speaker 1: info the tester gets upfront. White box black box exactly.
- 15:05Speaker 2: A white box test means the tester gets complete knowledge
- 15:08Speaker 2: network maps, asset lists, diagrams ideal for a really thorough
- 15:13Speaker 2: security audit.
- 15:13Speaker 1: Black box is the opposite.
- 15:15Speaker 2: Tester knows nothing pretty much simulates a real external attacker.
- 15:19Speaker 2: In a blind test version, the tester knows nothing, but
- 15:22Speaker 2: the target company is told about the test.
- 15:23Speaker 1: Scope and double blind.
- 15:24Speaker 2: That's where neither the tester nor the target company knows
- 15:27Speaker 2: the scope beforehand. Really tests everyone's alertness. Very popular approach.
- 15:32Speaker 1: What about gray box?
- 15:34Speaker 2: Green box is somewhere in the middle, partial knowledge maybe
- 15:37Speaker 2: just a domain name. Saves time compared to black box,
- 15:40Speaker 2: but still offers perspectives from both a developer and an attacker, and.
- 15:43Speaker 1: The overall strategy can be announced or unannounced.
- 15:46Speaker 2: Right announced strategy, tester gets the full tour physical access,
- 15:51Speaker 2: less network impact usually since the company is ready unannounced.
- 15:55Speaker 1: Is style mode.
- 15:56Speaker 2: Pretty much only top management knows. Really tests security personnel
- 16:00Speaker 2: alertness social engineering defenses, but it tends to have a
- 16:03Speaker 2: higher potential impact and needs a super strict process.
- 16:06Speaker 1: Okay, let's dive into the first stage, pre engagement information gathering.
- 16:11Speaker 2: This is foundational. The whole focus here is gathering as
- 16:14Speaker 2: much information as possible about the target, often through scanning
- 16:17Speaker 2: or footprinting techniques. It sets the stage for everything else,
- 16:20Speaker 2: like a detective building their case.
- 16:22Speaker 1: And this is where the rules of engagement or ROE
- 16:25Speaker 1: come in. The permission slip.
- 16:27Speaker 2: Exactly, it's the formal permission document. Yeah. It spells out everything,
- 16:31Speaker 2: what activities are allowed, the specific IP ranges you can test,
- 16:35Speaker 2: and critically what's off limits.
- 16:37Speaker 1: Testing times too, business hours versus after hours.
- 16:41Speaker 2: Yep, acceptable methods is social engineering? Okay, Denial of service
- 16:47Speaker 2: specific tools like n MAP, aggressive scans, the duration of
- 16:51Speaker 2: the test which can be months.
- 16:53Speaker 1: Sometimes emergency contact is crucial too, I.
- 16:55Speaker 2: Bet absolutely vital. And measures to prevent calling the cops
- 16:59Speaker 2: because of a fall alarm.
- 17:00Speaker 1: From the test, ah, yeah, that would be awkward.
- 17:03Speaker 2: A critical insight here, stressed in the source is how
- 17:05Speaker 2: you handle the information you gather. Best practice use laptops
- 17:09Speaker 2: provided by the client for the test and reporting.
- 17:12Speaker 1: Then return them immediately after.
- 17:13Speaker 2: Exactly prevents any accusations of the test holding on to
- 17:16Speaker 2: sensitive data vital for data security. The book even suggests
- 17:20Speaker 2: pulling the hard drives for secure storage later since tech
- 17:23Speaker 2: gets old fast.
- 17:24Speaker 1: So this pre engagement involves checklists too, defining what gets tested.
- 17:28Speaker 2: Meticulous checklists, reviewing what the customer actually needs tested servers, workstations, routers, firewalls, databases, apps,
- 17:36Speaker 2: physical security, loip, mobile devices, even printers and cameras, sometimes.
- 17:42Speaker 1: Mapping the Internet presence, what's visible from outside.
- 17:45Speaker 2: YEP, identifying oz's on the network, assessing wireless analog systems,
- 17:49Speaker 2: mobile worker devices, scrutinizing web apps, front facing sites, redirects,
- 17:54Speaker 2: even checking ad networks as potential malware vectors.
- 17:58Speaker 1: And defining the scope clearly.
- 18:00Speaker 2: Absolutely key. What are the deliverables? What reports? Defining data,
- 18:04Speaker 2: verifying functionality, outlining the technical structure with flow diagrams. It
- 18:08Speaker 2: ensures everyone's on the same page.
- 18:10Speaker 1: What if things change during the test, client updates.
- 18:13Speaker 2: Something that's a great point The source highlights client changes,
- 18:16Speaker 2: business processes. Tech apps can definitely impact the test. It's
- 18:20Speaker 2: crucial to the's a review to the engagement lead.
- 18:22Speaker 1: Before they happen, so the testers know what they're dealing with,
- 18:25Speaker 1: what specific areas should they focus on?
- 18:27Speaker 2: The advice is broad system software security, network security, especially
- 18:31Speaker 2: default canfigs, client side apps, and the whole client to
- 18:35Speaker 2: server and server side communication chain. Aim for comprehensive coverage.
- 18:40Speaker 1: This also includes social engineering if it's in scope.
- 18:43Speaker 2: Right, gathering passwords or project details through human interaction, documenting
- 18:48Speaker 2: existing security measures, checking secure document destruction like literally checking
- 18:52Speaker 2: the trash sometimes wow.
- 18:53Speaker 1: Assessing application comms, physical security.
- 18:55Speaker 2: All of it. Can you intercept comms? Can you get
- 18:57Speaker 2: into the building? Test honeypots?
- 19:00Speaker 1: Thorough and contracts are obviously huge here NDAs.
- 19:04Speaker 2: Non disclosure agreements are standard clear terms on fees, schedules,
- 19:08Speaker 2: sensitive information documents covering assets, confidentiality contracts for trade secrets,
- 19:13Speaker 2: customer lata and critically and indemnification.
- 19:16Speaker 1: Claus to protect the tester legally exactly.
- 19:19Speaker 2: Protects the pen tester from legal or financial liabilities if
- 19:22Speaker 2: something goes wrong despite following the rowe and the reporting
- 19:26Speaker 2: section needs to clearly outline the methodology and promise constructive,
- 19:29Speaker 2: actionable reporting.
- 19:30Speaker 1: So summing up stage one. It's time consuming, but essential
- 19:34Speaker 1: for setting expectations and protecting everyone. Methods range from passive
- 19:38Speaker 1: Google searching to active surveillance.
- 19:41Speaker 2: Right passive recon aggressive active surveillance, web profiling to map
- 19:46Speaker 2: out sites. It takes time because it lays the groundwork
- 19:49Speaker 2: for a safe and effective test.
- 19:51Speaker 1: Okay, Stage one done. Now Stage two the attack stage.
- 19:56Speaker 2: This is where the ethical hacker actively tries to compromise
- 19:59Speaker 2: the target using all that intel gathered before the critical insight.
- 20:04Speaker 2: An attacker only needs one.
- 20:05Speaker 1: Way in, while the company has to defend everything.
- 20:08Speaker 2: Exactly a tough position to be in.
- 20:10Speaker 1: So what are the steps here? Perimeter penetration, testing.
- 20:13Speaker 2: Firewalls, right sending crafted packets, fragmented overlapping floods to see
- 20:17Speaker 2: if you can bypass ACL's filtering, triggered off thresholds, testing
- 20:21Speaker 2: web services to how they handled different requests.
- 20:23Speaker 1: Then enumerting machines, finding out what's on the network.
- 20:26Speaker 2: YEP, discovering machine IDs, descriptions, locations, network accessibility, systematically mapping
- 20:32Speaker 2: the internal landscape.
- 20:33Speaker 1: Acquiring the target. That sounds serious.
- 20:35Speaker 2: It means launching probing assaults like vulnerability scans or maybe
- 20:41Speaker 2: using info gain from social engineering about trusted systems, getting
- 20:46Speaker 2: that initial foothold.
- 20:47Speaker 1: And once you're in, escalating privileges that's.
- 20:50Speaker 2: The goal, taking advantage of OS or app bugs, misconfigurations,
- 20:54Speaker 2: or somehow elevating a normal user's permissions to admin level.
- 20:58Speaker 1: Which lets you to do what files, install.
- 21:01Speaker 2: Backdoors, all of that access sensitive info, installed trojans or viruses,
- 21:06Speaker 2: often possible due to weak policies, untested code route force attacks,
- 21:11Speaker 2: or again social engineering.
- 21:13Speaker 1: Then execution implantation retraction sounds like a spy movie.
- 21:18Speaker 2: Huh. Yeah. It means establishing your presence, maybe with root
- 21:21Speaker 2: kits or trojans there, meticulously covering your tracks, erasing logs,
- 21:25Speaker 2: hiding modifications.
- 21:27Speaker 1: Changing settings to stay hidden.
- 21:28Speaker 2: Right, and finally verifying your back door still works and
- 21:31Speaker 2: checking if any alert systems were triggered.
- 21:33Speaker 1: Okay, attack complete, seems like the job's done.
- 21:35Speaker 2: Not even close. Stage three post attack cleanup. I'd argue
- 21:38Speaker 2: this is actually the most critical stage of the whole thing, really,
- 21:41Speaker 2: because it's the ethical pen tester's absolute responsibility to meticulously
- 21:46Speaker 2: clean up everything, return all systems to their exact pretest state.
- 21:51Speaker 2: It's about trust, professionalism, leaving no trace.
- 21:54Speaker 1: So what does that involve? Removing uploaded files YEP.
- 21:57Speaker 2: Removing files, restoring any modified data or settings, undoing privileged
- 22:02Speaker 2: escalations resetting user settings, reverting network changes like DNS.
- 22:06Speaker 1: Rips, and doing registry changes, shares, connections, everything.
- 22:10Speaker 2: You have to put it back exactly as you found it.
- 22:12Speaker 1: And documentation is key here too.
- 22:14Speaker 2: Absolutely paramount. Documenting all captured logs and every single modified
- 22:19Speaker 2: entry during the attack and the cleanup. This record is
- 22:22Speaker 2: vital for the final report improves precisely what happened and
- 22:26Speaker 2: that the system was restored correctly.
- 22:28Speaker 1: So what's the final interaction with the client?
- 22:30Speaker 2: Like? You analyze all the results, then develop actual solutions,
- 22:34Speaker 2: not just pointing out problems but giving concrete advice on
- 22:37Speaker 2: how to fix them.
- 22:38Speaker 1: Presenting the documentation constructively.
- 22:40Speaker 2: Exactly clearly identifying the critical risks, providing a prioritized list
- 22:45Speaker 2: of needed changes. The whole tone needs to be helpful, constructive,
- 22:49Speaker 2: not accusatory or mocking. It's about helping them improve this.
- 22:53Speaker 1: What process sounds complex? Are there standards to guide it?
- 22:56Speaker 2: Oh? Yes? Following established standards is essential. It ensures the
- 23:00Speaker 2: pen test is comprehensive, systematic, covers all the bases consistently.
- 23:04Speaker 2: It's the blueprint for success.
- 23:06Speaker 1: What are some examples? Open source ones.
- 23:08Speaker 2: Several prominent ones OSTMM the Open source Security Testing methodology
- 23:12Speaker 2: manual is great for high security matrix testing. OWASS, the
- 23:16Speaker 2: Openweb Application Security Project, focuses on web app security and
- 23:20Speaker 2: they have tools like ZP the Zatack proxy project for
- 23:23Speaker 2: finding webvolns any others. There's ISAF, the Information System Security
- 23:28Speaker 2: Assessment Framework and other open source guide and of course
- 23:31Speaker 2: NIST the National Institute of Standards and Technology in the US.
- 23:34Speaker 2: Their standards are widely adopted everywhere.
- 23:36Speaker 1: Are their proprietary ones too.
- 23:38Speaker 2: Paid methodologies sure EC Council has its LPT license Penetration
- 23:43Speaker 2: testor certification, which requires a course, application fee and submitting
- 23:48Speaker 2: a report from a test environment. Historically there were things
- 23:51Speaker 2: like McAfee, Foundstone now owned by Intel and IBMISS, though
- 23:56Speaker 2: that's discontinued. They often come with their own specific tools
- 23:59Speaker 2: and structures.
- 24:00Speaker 1: But across all these common phases emerge absolutely.
- 24:03Speaker 2: They almost all follow a similar pattern. Starts with information
- 24:06Speaker 2: gathering from public sources, then an external pen test looking
- 24:10Speaker 2: for outside vulnerabilities, followed by vulnerability analysis finding.
- 24:14Speaker 1: Weak points, then moving inside right.
- 24:16Speaker 2: An internal network pen test testing firewalls and DMZs ideas.
- 24:20Speaker 2: Verification can use sneak past alarms, password cracking against various attack.
- 24:25Speaker 1: Types social engineering tests, web AP tests definitely social engineering,
- 24:28Speaker 1: human or computer based web application tests looking for code flaws.
- 24:32Speaker 1: SQL injection still a huge one. Testing routers, internal nexter.
- 24:36Speaker 2: Wireless networks too, yep, wireless network pen testing, checking accessibility, encryption,
- 24:41Speaker 2: signal leakage, denial of service, tests to find breaking points,
- 24:45Speaker 2: even tests for stolen machines, offline attacks on tisk contents.
- 24:48Speaker 1: Source code review, physical security.
- 24:50Speaker 2: Source code pen tests for in house apps, physical security,
- 24:53Speaker 2: trying to get into the building, lock picking, drone surveillance,
- 24:57Speaker 2: database pen tests for direct data access or SEQL in data.
- 25:00Speaker 1: Leakage, SAP VPNs. This list is huge.
- 25:04Speaker 2: It really is comprehensive data leakage tests, SAP, platform vulnerability checks,
- 25:08Speaker 2: VPN pen tests, VOYIP pen test, recording calls, DOUYS cloud
- 25:13Speaker 2: security assessments. Virtual devices vms can have vulns.
- 25:16Speaker 1: Too, Malware logs, mobile.
- 25:18Speaker 2: Malware, ransomware checks, log management security mobile devices, especially with
- 25:23Speaker 2: the YD Telecom broadband tests, and crucial email security. Since
- 25:27Speaker 2: it's such a common attack vector, especially targeting execs, it
- 25:30Speaker 2: covers pretty much every angle.
- 25:32Speaker 1: Okay, wow, that's the theory and structure. Now for the
- 25:35Speaker 1: really compelling part, let's look at how ethical hackers actually
- 25:38Speaker 1: get their hands dirty, starting with practical information gathering or
- 25:41Speaker 1: foot printing.
- 25:42Speaker 2: Right foot printing, it's all about finding publicly available info
- 25:45Speaker 2: about your target network layout, PCs, apps users mostly passive research.
- 25:51Speaker 2: You're not actively poking their systems.
- 25:53Speaker 1: Yet, like a digital detective.
- 25:55Speaker 2: Exactly and a critical point. If you find something really
- 25:58Speaker 2: sensitive during this phase, report it to your emergency contact immediately,
- 26:03Speaker 2: don't wait for the final report helps prevent leaks.
- 26:05Speaker 1: What kinds of methods are you? Search engines, social media.
- 26:09Speaker 2: All of the above, Google being Yahoo obviously, but also Facebook, Twitter,
- 26:14Speaker 2: LinkedIn for employee info. People share a lot. There's even
- 26:17Speaker 2: Google hacking using specific search terms to find exposed printers, cameras,
- 26:21Speaker 2: sensitive documents. Companies don't realize our.
- 26:23Speaker 1: Public website footprinting too.
- 26:25Speaker 2: Downloading sites, Yeah, Tools like black widow or website copier
- 26:28Speaker 2: can download entire sites for offline analysis. You look for
- 26:31Speaker 2: hidden folders, admin pages, comments in the code. Email footprinting
- 26:35Speaker 2: uses tools like enslokup to find mail servers, encryption details,
- 26:38Speaker 2: whis lookups, find domain owners, ip ranges, DNS reconnaissance maps,
- 26:43Speaker 2: out keyservers, network recon maps, packet.
- 26:46Speaker 1: Paths, and don't forget low tech social engineering. Shoulder surfing,
- 26:50Speaker 1: dumpster diving.
- 26:51Speaker 2: Still relevant, shoulder serving for passwords, dumpster diving for discarded documents,
- 26:56Speaker 2: eavesdropping all can yield valuable clues about security products, network layout,
- 27:01Speaker 2: et cetera.
- 27:02Speaker 1: And throughout this meticulous documentation is key. Right building that.
- 27:06Speaker 2: Map absolutely vital. You're building that comprehensive map of the
- 27:09Speaker 2: target's security posture. Every piece of data matters for later
- 27:13Speaker 2: analysis and for showing the client exactly what's exposed.
- 27:16Speaker 1: Okay, footprinting done. Next up host discovery with port scanning,
- 27:20Speaker 1: finding live systems exactly.
- 27:22Speaker 2: Now we start actively probing carefully find live systems, see
- 27:26Speaker 2: which ports are open, identify running services, maybe grab banners
- 27:30Speaker 2: for OS fingerprinting, and.
- 27:32Speaker 1: The main tool here is enmap.
- 27:33Speaker 2: Dmap is the workhorse often used with its Gui zen map.
- 27:38Speaker 2: It's incredibly versible for finding live hosts and determining port
- 27:41Speaker 2: states open closed or filtered by a firewall. Is like
- 27:44Speaker 2: your network Flashlight.
- 27:46Speaker 1: Can use simpler tools like telnet for banner grabbing too.
- 27:48Speaker 2: You can yeah connect to a port, see what welcome
- 27:51Speaker 2: message it gives back, can offer clues about the service
- 27:54Speaker 2: or OS.
- 27:55Speaker 1: Then vulnerability scanning tools like Retina nessus right once you know.
- 27:59Speaker 2: What's a lot and what services are running. Tools like
- 28:01Speaker 2: core Impact, Retina, MBSA, GFI, languord or nessus is another
- 28:06Speaker 2: popular one help identify known security weaknesses in those systems
- 28:09Speaker 2: and services.
- 28:10Speaker 1: And network diagramming tools help visualize all this.
- 28:13Speaker 2: Yeah, Tools like solar Winds Network Topology Manager turn that
- 28:17Speaker 2: raw data into understandable maps. Makes it much easier to
- 28:20Speaker 2: grasp the network structure.
- 28:21Speaker 1: What about proxies hiding your tracks?
- 28:24Speaker 2: Proxies like proxy, workbench, TOR or proxifier are crucial for
- 28:28Speaker 2: masking the attacker's source IP makes attribution much harder. It's
- 28:32Speaker 2: an essential part of operational security for a pen tester,
- 28:35Speaker 2: and their use must be documented.
- 28:37Speaker 1: Beyond just finding hosts. An eumeration digs deeper, user accounts,
- 28:41Speaker 1: shares exactly.
- 28:42Speaker 2: Enumeration goes beyond basic recon. You're trying to identify specific
- 28:46Speaker 2: user groups, service accounts, network shares, installed apps, specific network
- 28:51Speaker 2: devices like routers, switches, idsps, firewalls, Getting granular details.
- 28:56Speaker 1: Using what kinds of tools are commands?
- 28:57Speaker 2: Specific tools for specific protocols, Who's for network ranges, NMAPT
- 29:02Speaker 2: SP or angry IP scanner for ping sweeps though angry
- 29:06Speaker 2: IP is often detectable. Detailed en map port scans, net
- 29:10Speaker 2: BIOS enumeration tools for Windows Shares users, maybe passwords, SNMP
- 29:14Speaker 2: enumeration tools like solar ins, op pudles for network device details,
- 29:18Speaker 2: LDAP enumeration for user info names department's great for social engineering,
- 29:23Speaker 2: NTP numeration for time servers, SMTP numeration for email addresses,
- 29:27Speaker 2: DNS enumeration for mapping names to IPCE systematically pulling info
- 29:31Speaker 2: from every available service.
- 29:32Speaker 1: Okay, let's unpack this. We're seeing how an attacker methodically
- 29:36Speaker 1: builds this incredibly detailed picture piece by piece. Now let's
- 29:39Speaker 1: get into actually executing some external tests.
- 29:42Speaker 2: Right. So, doing an external pen test often starts with
- 29:44Speaker 2: drawing visual diagrams, mapping routes, using trace rode with different
- 29:48Speaker 2: protocols like ICMB or TCP, and doing those ping sweeps.
- 29:51Speaker 2: Understanding the TCP three way handshake is critical here.
- 29:54Speaker 1: The s yn CYANAC ack sequence exactly.
- 29:57Speaker 2: Syn scans leverage this to s YN. If you get
- 30:00Speaker 2: a SUNAC back, the cord is open. If you get
- 30:03Speaker 2: a reset RST, it's closed. If you get nothing or
- 30:05Speaker 2: maybe an ICMP error, it's likely filtered by a firewall.
- 30:09Speaker 2: N MAP interprets these responses.
- 30:11Speaker 1: And NMP has tons of options for different scans.
- 30:13Speaker 2: Oh yeah, the book gives examples, but basically you can
- 30:15Speaker 2: do simple host discovery and map dash SP comprehensive scans
- 30:19Speaker 2: checking all ports, service versions, OS detection, and map tashed
- 30:23Speaker 2: P one six, Y five, five three five sv SST
- 30:26Speaker 2: four target or even more aggressive scans A for OS
- 30:30Speaker 2: version detection scripts h T five for faster timing. You
- 30:34Speaker 2: tailor the scan to your needs and the rules of engagement.
- 30:37Speaker 1: What about HING three sounds powerful?
- 30:39Speaker 2: It is extremely powerful, great for device discovery because it
- 30:42Speaker 2: can use TCPUDP to bypass icmplocks. It can manipulate source ips,
- 30:46Speaker 2: craft almost any packet, and yes, create denial of service attack,
- 30:50Speaker 2: which means it's dangerous, hugely dangerous. The source explicitly warns
- 30:55Speaker 2: Aging three commands, especially flood attacks like Hing three s
- 30:58Speaker 2: target at PA, spoofed ep port flood can absolutely recondivice
- 31:03Speaker 2: the CPU very quickly. This demands immense responsibility. Practice only
- 31:08Speaker 2: with written permission in your isolated home lab avoids severe
- 31:12Speaker 2: damage and serious legal trouble.
- 31:13Speaker 1: Okay, message received, Now for something really interesting infiltrating communications
- 31:19Speaker 1: man in the middle attacks right.
- 31:21Speaker 2: Like ARP poisoning, often done using ettercap, it has a
- 31:24Speaker 2: graphical mode edercap G, which makes it easier.
- 31:27Speaker 1: How does it work? Conceptually?
- 31:29Speaker 2: It basically tricks devices on a local network. It sends
- 31:31Speaker 2: out fake ARP messages telling computer A that THEMEC address
- 31:35Speaker 2: for computer B, like the router, is actually the ATTACKERSMEC
- 31:38Speaker 2: address and vice versa.
- 31:39Speaker 1: So all traffic flows through the attacker exactly.
- 31:42Speaker 2: All traffic between the source and destination gets intercepted. You
- 31:45Speaker 2: start atter caps, sniff the network, scan for hosts, pick
- 31:47Speaker 2: your targets like a specific PC in the router, and
- 31:50Speaker 2: hit start ARP poisoning. The victim usually has no idea.
- 31:53Speaker 1: But again huge warning supply crystal clear.
- 31:56Speaker 2: Never use this in a live or production environment without
- 31:59Speaker 2: a explicit written authorization. Extremely dangerous, serious legal repercussions. Practice
- 32:06Speaker 2: only in your isolated home, LAMB.
- 32:08Speaker 1: Are there other ways to capture traffic? Network taps YEP.
- 32:12Speaker 2: A network tap is a physical hardware device you insert
- 32:14Speaker 2: between two points like a computer in a switch that
- 32:17Speaker 2: copies the traffic or port mirroring also called port spanning
- 32:21Speaker 2: on a managed.
- 32:22Speaker 1: Switch, where you configure the switch to copy traffic right
- 32:25Speaker 1: you tell.
- 32:25Speaker 2: The switch copy all traffic going to from port one
- 32:27Speaker 2: over to port ten where your monitoring machine is plugged in.
- 32:31Speaker 2: Requires access to configure the switch obviously, what.
- 32:33Speaker 1: About passively listening to Wi Fi?
- 32:35Speaker 2: That's passive reconnaissance. With Collie and wire Shark, you put
- 32:39Speaker 2: your compatible wireless adapter into monitor mode. Commands like Airman
- 32:42Speaker 2: check kill and Airman start. Wall and zero often do.
- 32:45Speaker 1: This, turning your adapter into just an ear pretty much.
- 32:48Speaker 2: Then you fire up wire Shark and tell it to
- 32:49Speaker 2: listen on that monitor interface often named wall on zero
- 32:52Speaker 2: mone you'll see all the raw eight oh two point
- 32:55Speaker 2: on frames flying around beacons, pro requests user data if
- 32:59Speaker 2: it's un encrypt did digital eavesdropping?
- 33:02Speaker 1: Can you use wire Shark to analyze attacks too? Like
- 33:04Speaker 1: those syn.
- 33:05Speaker 2: Scans absolutely After running an n MAP syn scan you
- 33:09Speaker 2: can capture the traffic and wire Shark by understanding that
- 33:12Speaker 2: three way handshake logic and using wire sharks conversations window,
- 33:16Speaker 2: you can quickly see the sun knots for open ports,
- 33:19Speaker 2: the rsts for closed ports, or the lack of response
- 33:22Speaker 2: for filtered ports. It visualizes the scan results.
- 33:26Speaker 1: The book mentions Explico is another tool Yeah.
- 33:28Speaker 2: Experts interesting it's an alternative for data analysis. It can
- 33:31Speaker 2: take wire shark capture files, or even a direct feed.
- 33:34Speaker 2: Its strength is its web based gooi.
- 33:36Speaker 1: What does it show you?
- 33:37Speaker 2: It does a great job of extracting and presenting things
- 33:40Speaker 2: clearly visited websites, images, videos, even reconstructing VoIP calls from
- 33:45Speaker 2: the captured data makes it really easy to see what
- 33:48Speaker 2: was going on. The source calls it a powerful hacking
- 33:51Speaker 2: tool because it simplifies that analysis so much so.
- 33:53Speaker 1: The takeaway for an ethical hacker is having this whole
- 33:56Speaker 1: arsenal of specialized tools.
- 33:57Speaker 2: Definitely, each tool has its purpose, its niche. Like the
- 34:00Speaker 2: MITM attack with SSL strip, How does that one work?
- 34:03Speaker 1: Creating a fake AP?
- 34:04Speaker 2: Right, You need a USB adapter that supports monitor and
- 34:07Speaker 2: master modes to create a fake access point on COLLI.
- 34:10Speaker 1: So victims connect to your fake Wi.
- 34:12Speaker 2: Fi Exactly, they connect to your seemingly legit fake AP
- 34:16Speaker 2: their traffic routes that you're calling machine. SSL strip then
- 34:19Speaker 2: intercepts any HTTPS connections and tries to force them down
- 34:23Speaker 2: to plane HTTP.
- 34:24Speaker 1: So you can capture logins that would normally be encrypted.
- 34:26Speaker 2: That's the goal, capture credentials in clear text.
- 34:29Speaker 1: Setting that up sounds complicated, It.
- 34:31Speaker 2: Is quite involved. Share your host internet, set up a
- 34:34Speaker 2: DHCP server on TALI to give IPS to victims. Find
- 34:37Speaker 2: your adapter names with air moaning, start monitor mode, create
- 34:41Speaker 2: the fake ap with air basing, configure the tunnel interface,
- 34:44Speaker 2: add routing tables, enable IP forwarding in the kernel.
- 34:47Speaker 1: IP tables rules too.
- 34:49Speaker 2: Crucially, an IP table's rule to redirect web traffic port
- 34:52Speaker 2: eighty to the port SSL strip is listening on like
- 34:55Speaker 2: ten thousand, Then start DHDP, start SSL strip as phoebash,
- 34:59Speaker 2: make one one thousand, and finally start ttercap to watch
- 35:01Speaker 2: the traffic.
- 35:02Speaker 1: So the victim connects to free Wi Fi, tries to
- 35:04Speaker 1: log into Facebook.
- 35:05Speaker 2: And they might notice the URL changes from Https to
- 35:08Speaker 2: HTTP if they enter their credentials anyway.
- 35:11Speaker 1: You see them in utter cap or the sslstrip, dot log.
- 35:14Speaker 2: YEP clear text. This is an extremely dangerous attack with
- 35:18Speaker 2: huge legal implications. Requires authorization practice only in isolated labs.
- 35:24Speaker 1: Seriously, what about skape for packet manipulation.
- 35:27Speaker 2: Skapey is super advanced. It's a Python tool that lets
- 35:29Speaker 2: you craft basically any network packet you can imagine, total control.
- 35:33Speaker 1: Specify source destination, protocols, ports, headers.
- 35:37Speaker 2: Everything you build a packet layer by layer and Python code.
- 35:40Speaker 2: It can also capture replay packets, scan discovered devices incredibly flexible. Example,
- 35:46Speaker 2: launch it with skapey, send a crafted ICMP packet like
- 35:49Speaker 2: sent oldsrc ten ten put ten, jote off a two
- 35:51Speaker 2: ten typing two ICP, sniff traffic with sniffixs sniff traffic
- 35:56Speaker 2: with sniff telm pair on lamba.
- 35:58Speaker 1: Xxshew sounds powerful, well and dangerous.
- 36:01Speaker 2: The source calls it a rule breaker and highly dangerous.
- 36:04Speaker 2: Needs authorization for any live use practice in isolation.
- 36:07Speaker 1: What about authentication attacks against rogue aps using a WLC.
- 36:11Speaker 2: Right, This is more of a defensive or control measure,
- 36:13Speaker 2: but uses attack techniques. A wireless land controller WLC can
- 36:16Speaker 2: identify unauthorized rogue access points on your network.
- 36:19Speaker 1: And then kick client's office.
- 36:21Speaker 2: Essentially, yes, it sends spoofed deauthentication frames pretending to be
- 36:25Speaker 2: the rogue AP telling clients to disconnect, or pretending to
- 36:28Speaker 2: be the clients telling the AP they're disconnecting. Creates a
- 36:31Speaker 2: localized doss against the rogue AP to contain it.
- 36:34Speaker 1: How does the WLC do that?
- 36:36Speaker 2: It identifies rogues like an open SSID in a secure environment.
- 36:40Speaker 2: You classify it as malicious and then use the wlc's
- 36:44Speaker 2: contained feature. But the source warms. Doing this against the
- 36:48Speaker 2: legitimate network you don't own is illegal, needs authorization.
- 36:52Speaker 1: Then there's the Evil Twin authentication attack with MDK three
- 36:56Speaker 1: That sounds offensive it is.
- 36:58Speaker 2: This is creating a cloned AP. It looks identical to
- 37:01Speaker 2: a real one, same name as end. The goal is
- 37:03Speaker 2: to trick users into connecting to your fake.
- 37:05Speaker 1: Twin and then what capture their Wi Fi password.
- 37:07Speaker 2: Often, yeah, you use MDK three to blast the REALAP
- 37:10Speaker 2: with death packets, forcing clients off. They see your identical
- 37:13Speaker 2: evil twin and connect to it instead, then you might
- 37:16Speaker 2: redirect them to a fake captive portal, or, as the
- 37:18Speaker 2: book describes, a fake Rouder security update page that asks
- 37:22Speaker 2: for the WKT two password.
- 37:24Speaker 1: That setup must be even more complex.
- 37:26Speaker 2: Oh yeah, share Internet DHGP server download or create a
- 37:29Speaker 2: fake update web page. Set up a patch in mysequel
- 37:32Speaker 2: to host the page and store captured keys. Find adapter names,
- 37:36Speaker 2: monitor mode, update, aero, dumping OUI database scan for the
- 37:39Speaker 2: target AP, create a blacklist file with its BSSAD.
- 37:42Speaker 1: Then start the Evil Twin AP itself.
- 37:44Speaker 2: Right airbasing to create the Evil Twin on the same channel,
- 37:47Speaker 2: configure it's tunnel interface, routing, IP forwarding, IP tables rules
- 37:51Speaker 2: to redirect webdraft to your fake page, start DHGP.
- 37:54Speaker 1: And finally the MDK three death attack exactly.
- 37:57Speaker 2: MDK three one is e black last peat channel number
- 38:00Speaker 2: to deauthenticate clients from the real AP using the blacklist,
- 38:03Speaker 2: and maybe MDK three monitorate AMI BSSID for authentication dots
- 38:08Speaker 2: two force them over to.
- 38:09Speaker 1: Your twin so the victim gets kicked off wi Fi
- 38:12Speaker 1: connects to the twin, gets a fake update page, enters
- 38:14Speaker 1: to the.
- 38:14Speaker 2: Password, and you check your my sucl database to see
- 38:16Speaker 2: if you capture again. Extremely dangerous illegal without permission, authorization
- 38:21Speaker 2: needed isolated labs only.
- 38:22Speaker 1: MDK three can also just do denial of service.
- 38:25Speaker 2: Yes, a simpler DOSATAC just flood an AP with useless
- 38:28Speaker 2: traffic or generate noise to prevent legitimate users from connecting
- 38:31Speaker 2: or using the network. Overwhelm it steps with attached after
- 38:34Speaker 2: find interface if canfig scan aps I list trait lends
- 38:38Speaker 2: zero scan, create blacklist file with target BSSID, monitor mode
- 38:42Speaker 2: er marcostarbuln zero, then run the MDK three d disassociation
- 38:46Speaker 2: or authentication dos attacks MDK three moment zero, DP blacklist,
- 38:50Speaker 2: dot C channel MDK three money on ami BSSID. Same
- 38:54Speaker 2: warnings apply, severe legal consequences, need authorization.
- 38:58Speaker 1: Okay, shifting gear slightly brute force at with hydra right TCP.
- 39:01Speaker 2: Hydrate is a classic tool for boot forcing logins. You
- 39:04Speaker 2: give it a list of usernames or just one, and
- 39:06Speaker 2: a dictionary of passwords and it just.
- 39:08Speaker 1: Tries them all against a service like telnet or SSH.
- 39:10Speaker 2: YEP systematically tries commodations until it finds one that works,
- 39:14Speaker 2: like hydrate, dash feed dashel username, pactopasswords, dot TXTST sixteen,
- 39:19Speaker 2: target tip tellin the options control verbosity, username, password, file,
- 39:23Speaker 2: number of parallel tasks, target IP and the service likes sash, FTP.
- 39:27Speaker 1: Tell neet and if it succeeds, the hacker logs in.
- 39:30Speaker 1: How does the pent tester analyze this?
- 39:32Speaker 2: In wire shark capture the traffic during the brute force attempt.
- 39:36Speaker 2: If the protocol is unencrypted like telnet or FTP, you
- 39:40Speaker 2: can use follow TCP.
- 39:41Speaker 1: Stream and see the failed attempts.
- 39:43Speaker 2: You'll see all the failed log in attempts and then bam,
- 39:46Speaker 2: the successful log in with the username and password in
- 39:48Speaker 2: clear text. It's a glaring demonstration of why clear text
- 39:52Speaker 2: protocols HTTP, FTP, pop im s, MTP, telnet VIP are
- 39:57Speaker 2: so dangerous and need replacing with secure VERSI, HTTPS, SFTP,
- 40:02Speaker 2: SP etc.
- 40:03Speaker 1: What about Armitage that's related to metasploit.
- 40:05Speaker 2: Yeah. Armitage is a graphical front end for the metasploit framework.
- 40:09Speaker 2: Makes metasploiits powerful capabilities more visual and arguably easier to manage,
- 40:14Speaker 2: especially for beginners or for managing multiple targets. Helps understand
- 40:18Speaker 2: how attacks are deployed.
- 40:19Speaker 1: What can it do?
- 40:19Speaker 2: You launch it Armitage. It connects to metasplits back end.
- 40:22Speaker 2: You get panels from modules, targets, tabs showing console output.
- 40:25Speaker 2: You can run scans MSF scans to find open port services,
- 40:29Speaker 2: use fine attacks to see relevant exploits, configure and launch them.
- 40:32Speaker 1: What's the hail Mary option?
- 40:34Speaker 2: Huh Yeah, if you're stuck, hail Mary throws a bunch
- 40:37Speaker 2: of likely exploits at the target, automatically hoping one sticks.
- 40:40Speaker 2: Less precise, but sometimes effective if you get a shell
- 40:43Speaker 2: like interpret different windows. Armitage gives you graphical ways to
- 40:47Speaker 2: interact browse files, etc. But again needs authorization and.
- 40:51Speaker 1: Metasploit Framework MSF itself the engine behind armitage.
- 40:55Speaker 2: MSF is the open source powerhouse ROVIE based. Its strength
- 40:59Speaker 2: is its modularity. You have different module.
- 41:01Speaker 1: Types like exports and payloads.
- 41:03Speaker 2: Right. Exploit modules target specific volons. Payloads are the code
- 41:06Speaker 2: delivered by the exploit eg A command shell, metipreter. Auxiliary
- 41:10Speaker 2: modules do other things like scanning, fuzzing, sniffing. Post modules
- 41:14Speaker 2: are for post exploitation gathering info after you compromise a system.
- 41:18Speaker 2: Encoders try to bypass avnops. No operations help with buffer overflows.
- 41:23Speaker 1: So how do you use MSF to exploit something?
- 41:26Speaker 2: So process, start the database, post criscal, launch the console
- 41:30Speaker 2: and missif console. Maybe create a workspace search for an exploit.
- 41:34Speaker 2: Search unreal extrty get info info exploit with blotenix, circon
- 41:38Speaker 2: reelers D three two eight one back door select it,
- 41:41Speaker 2: show options, show options, set the target IP, set rho's
- 41:45Speaker 2: target tip, show available payloads, choose one, set payloads the
- 41:48Speaker 2: end of us, reverse set your listening IP, set LA showsterrip.
- 41:52Speaker 1: Then exploit and if it works you get a shell.
- 41:55Speaker 2: Hopefully yeah, a command prompt or meterpreter session on the
- 41:58Speaker 2: target machine.
- 41:59Speaker 1: Then post exploitation gathering more info.
- 42:01Speaker 2: Right assess the environment quickly, find sensitive files, create new accounts,
- 42:05Speaker 2: maybe escalate privileges, vertical movement, pivot to attack other systems,
- 42:09Speaker 2: horizontal movement, install backdoors and crucially cover your tracks.
- 42:13Speaker 1: Metasploit has modules for that too.
- 42:14Speaker 2: Tons of them sessions to list active shells, hashtump to
- 42:18Speaker 2: get password hashes in them configs and m networks, and
- 42:21Speaker 2: in protections find av firewalls in msystem users packages, services
- 42:26Speaker 2: in amuser's history. All require authorization, of course.
- 42:29Speaker 1: Lastly, the social engineering Toolkit asset.
- 42:31Speaker 2: Set is another open source framework, Python based specifically for
- 42:35Speaker 2: social engineering attacks. It integrates tightly with metasploit for payloads
- 42:39Speaker 2: and listeners. Is it easy to use, deceptively easy launch
- 42:42Speaker 2: it set toolkit and its menu driven just pick numbers?
- 42:46Speaker 1: What kinds of attacks are in there?
- 42:47Speaker 2: Lots Under social engineering attacks you have spear phishing, crafting,
- 42:51Speaker 2: targeted emails with exploits. Website attack vectors has things like
- 42:55Speaker 2: Java applet attacks, metasploit browser exploits, The Credential Harvester owans
- 43:00Speaker 2: a website like Facebook or Gmail to steal logins, tab nabbing, webjacking.
- 43:04Speaker 1: Other modules do yeah.
- 43:06Speaker 2: Infectious Media Generator makes malicious autoorun files for USBs payload
- 43:11Speaker 2: and listener setup, mass mailer or ADNO based attacks. Similarly
- 43:14Speaker 2: to keyboard view USB wireless access point attack creates a
- 43:18Speaker 2: fake AP with the HCPD and S redirection QR code
- 43:21Speaker 2: generator for malicious links powershow attacks. It greates third party
- 43:25Speaker 2: tools too.
- 43:26Speaker 1: So it makes complex attacks.
- 43:27Speaker 2: Accessible dangerously accessible. Almost anyone can launch really sophisticated attacks
- 43:32Speaker 2: just by following the menus, which makes it incredibly powerful
- 43:35Speaker 2: but also incredibly risky if misused.
- 43:38Speaker 1: Final warning time.
- 43:39Speaker 2: Absolutely set requires explicit written authorization for any use practice
- 43:44Speaker 2: only in isolated home labs. The potential for real world
- 43:48Speaker 2: harm and legal trouble is immense.
- 43:50Speaker 1: Wow. Okay, and just like that we've covered a ton
- 43:54Speaker 1: of ground. You've really taken a deep dive into the
- 43:56Speaker 1: world of ethical hacking and pen testing.
- 43:59Speaker 2: We sure have.
- 44:00Speaker 1: From the basics of Linux and open source, through all
- 44:02Speaker 1: those stages of a pen test, and into the nitty
- 44:05Speaker 1: gritty of tools like end map, ettercap metasploy CESC. You
- 44:10Speaker 1: should now have a much better picture of what goes
- 44:13Speaker 1: on behind that digital curtain.
- 44:14Speaker 2: Yeah, and hopefully this journey highlights that ethical hacking isn't
- 44:17Speaker 2: just about finding flaws. It's about understanding how things can
- 44:21Speaker 2: be broken so you can ultimately strengthen the defenses.
- 44:24Speaker 1: Knowledge is power, It really.
- 44:25Speaker 2: Is knowledge when you understand it and apply it responsibly,
- 44:28Speaker 2: is your best tool against cyber threats. Critical thinking is
- 44:31Speaker 2: just so vital with all the information overload today, and
- 44:34Speaker 2: hopefully this deep dive gives you a framework for that.
- 44:37Speaker 1: So what does all this mean for you listening right now?
- 44:40Speaker 1: It means you're better equipped to think like a security pro,
- 44:43Speaker 1: to ask the right questions about system vulnerabilities, and to
- 44:47Speaker 1: appreciate that constant back and forth, that dance between attack
- 44:50Speaker 1: and defense.
- 44:51Speaker 2: And the key takeaway something Hugo Hoffmann really emphasizes in
- 44:54Speaker 2: the source is practice, constant practice, but always in a
- 44:59Speaker 2: controlled and environment, and always always for white hat purposes.
- 45:03Speaker 1: Only thinking about the tools we discussed, Knowing how a
- 45:07Speaker 1: depth attack or an evil twin works helps you defend
- 45:09Speaker 1: against it.
- 45:10Speaker 2: Right exactly Understanding the offense informs the defense, which actually
- 45:14Speaker 2: brings up an interesting question to ponder. Yeah, thinking about
- 45:17Speaker 2: everything we covered, all those vulnerabilities, those attack methods, those
- 45:20Speaker 2: defensive postures, what specific vulnerability or maybe what specific defense
- 45:25Speaker 2: mechanism will you choose to explore further in your own learning,
- 45:28Speaker 2: maybe even starting safely, carefully in your own isolated home
- 45:32Speaker 2: lab environment.
- 45:33Speaker 1: Ooh, that's a great provocative thought. To leave everyone with
- 45:36Speaker 1: an excellent challenge. This deep dive was designed to be
- 45:40Speaker 1: your shortcut to being well informed, hopefully with some surprising
- 45:43Speaker 1: facts and maybe just enough humor to keep you hooked.
- 45:46Speaker 2: Hope it was useful.
- 45:47Speaker 1: Absolutely until our next deep dive, Keep learning, keep questioning,
- 45:51Speaker 1: and definitely stay curious.