Latest / CyberSecurity Summary / Windows and Linux Penetration Testing from Scratch
Transcript
- 0:00Speaker 1: Hey, there looks like we're diving deep into pen testing
- 0:03Speaker 1: this time, especially for Windows and Linux.
- 0:06Speaker 2: Yeah, some fascinating stuff here, it really is.
- 0:08Speaker 1: We've got sources on everything, open source intelligence, shell coding,
- 0:12Speaker 1: the works. Think of this deep dive ash like a
- 0:17Speaker 1: crash course in hacker thinking, so.
- 0:19Speaker 2: You can build up some serious defenses.
- 0:21Speaker 1: Exactly.
- 0:22Speaker 2: What I find fascinating is how much this stuff shows
- 0:25Speaker 2: us about, you know, flaws that are just baked into operating.
- 0:29Speaker 1: Systems like they were designed with blind spots.
- 0:31Speaker 2: Yeah, and ethical hackers they're basically pointing those out.
- 0:34Speaker 1: Before the bad guys do.
- 0:35Speaker 2: Exactly.
- 0:36Speaker 1: Okay, let's unpack this first up, this whole world of
- 0:39Speaker 1: open source intelligence os ocent. Right, It's crazy how much
- 0:44Speaker 1: information is just out there.
- 0:45Speaker 2: It's not just out there, it's often shockingly easy to
- 0:47Speaker 2: get to.
- 0:48Speaker 1: Like what kind of stuff are we talking?
- 0:49Speaker 2: Well, some of the sources mentioned cases where like employee passports,
- 0:54Speaker 2: no way thanks returns. Yeah, seriously, just sitting in poorly
- 0:57Speaker 2: secured directories online.
- 0:59Speaker 1: So it's not even about being some master hacker. It's
- 1:02Speaker 1: just knowing where to look.
- 1:04Speaker 2: That's a big part of it. Yeah, and then there
- 1:06Speaker 2: are tools like showdand they can find these vulnerable systems.
- 1:09Speaker 1: We were talking like power plants, traffic control, that kind
- 1:13Speaker 1: of all of that.
- 1:14Speaker 2: Yeah, the kind of stuff that could cause real chaos
- 1:17Speaker 2: if it fell into the wrong hands.
- 1:19Speaker 1: So showed in. It's like a search engine, but for
- 1:21Speaker 1: like vulnerable systems.
- 1:23Speaker 2: Kind of think of it as like a hacker's Google.
- 1:26Speaker 1: Okay, I get you.
- 1:27Speaker 2: It finds Internet connected devices and shows you their weaknesses.
- 1:31Speaker 1: Wow.
- 1:31Speaker 2: And then there's Google dorking, which is, you know, using
- 1:34Speaker 2: specific search queries to find hidden information.
- 1:37Speaker 1: So if I wanted to see how much of IY
- 1:40Speaker 1: info is out there, could I use that on myself?
- 1:42Speaker 2: Well? Absolutely, really, you could use showdan to search for
- 1:45Speaker 2: your own IP address, see what pops up.
- 1:47Speaker 1: Might be surprised, take a digital background check on yourself exactly.
- 1:50Speaker 2: You never know what skeletons are hiding in your online closet.
- 1:53Speaker 1: Speaking of skeletons, these sources also talk about going beyond
- 1:57Speaker 1: the firewall. What does that even mean?
- 2:00Speaker 2: So traditional firewalls they're great at controlling traffic, right, but
- 2:04Speaker 2: they assume the attackers outside trying to get in. Makes sense, Well,
- 2:08Speaker 2: what if they're already inside?
- 2:10Speaker 1: Ooh, sneaky.
- 2:11Speaker 2: These sources describe scenarios where attackers set of their own.
- 2:14Speaker 1: Entry points, like what sneaking in a laptop or something.
- 2:17Speaker 2: Well, they talk about things like setting up a malicious
- 2:20Speaker 2: IP phone A phone, Yeah, that acts as a rogue
- 2:23Speaker 2: access point.
- 2:24Speaker 1: So it's like smuggling in a weapon, but disguised as
- 2:27Speaker 1: something harmless.
- 2:28Speaker 2: You got it. And once they're in, they can use
- 2:30Speaker 2: stuff like ARP poisoning to get sensitive.
- 2:32Speaker 1: Data even on a switch network. Even then, remind me
- 2:36Speaker 1: how AIRP poisoning works again, I always mix that one up.
- 2:39Speaker 2: It exploits how devices find each other on a network.
- 2:42Speaker 2: Think of it like changing the address on a letter.
- 2:45Speaker 1: So it goes to the wrong place exactly.
- 2:48Speaker 2: An attacker can poison the ARP cash and trick devices
- 2:51Speaker 2: into sending their traffic to the attacker's.
- 2:53Speaker 1: Machine instead of where it's supposed to go.
- 2:55Speaker 2: Yep. So even with good network security, if they have
- 2:59Speaker 2: physical apps access, it's game over pretty much. It's a
- 3:02Speaker 2: reminder that security isn't just about the tech. It's physical
- 3:05Speaker 2: security too, and user awareness. I bet, oh absolutely, that's
- 3:09Speaker 2: why training is so important.
- 3:10Speaker 1: Yes, so you're saying, even with fire walls and all
- 3:12Speaker 1: that fancy stuff, the weakest link is often a careless.
- 3:16Speaker 2: Employee or a poorly secured office. Yeah, and that brings
- 3:20Speaker 2: us to something that's been plaguing computer systems forever, passwords.
- 3:25Speaker 1: You'd think in twenty twenty four we'd have that figured.
- 3:27Speaker 2: Out, but the sources paint a different picture.
- 3:30Speaker 1: What are we still doing wrong? Everyone knows to use
- 3:32Speaker 1: upper case, levercase, numbers, symbols.
- 3:35Speaker 2: All that, right, It's not just about complexity, it's understanding
- 3:38Speaker 2: how attackers actually target passwords. Okay, interesting, they mentioned this
- 3:42Speaker 2: thing called LM hash vulnerabilities. Uh oh, which is a
- 3:47Speaker 2: legacy issue that still pops up.
- 3:48Speaker 1: Okay, back up for a sec. What even is an
- 3:50Speaker 1: LM hash? Why is that still a problem in twenty
- 3:53Speaker 1: twenty four?
- 3:54Speaker 2: So LM hashes it's an old way Windows US to
- 3:57Speaker 2: store passwords.
- 3:58Speaker 1: How old?
- 3:59Speaker 2: Old enough? That a super weak and easy to crack? Like,
- 4:01Speaker 2: how easy even with today's hardware it takes seconds?
- 4:04Speaker 1: You're kidding?
- 4:05Speaker 2: Nope, And here's the kicker. Some systems still use them.
- 4:10Speaker 1: For like backwards compatibility exactly. So, even if you have
- 4:12Speaker 1: a strong password, if it's stored as an LM hash,
- 4:15Speaker 1: it's basically useless pretty much.
- 4:17Speaker 2: Yeah, it's like leaving your front door wide open. Hikes,
- 4:20Speaker 2: and then there's network sniffing techniques, things like smb relay attacks.
- 4:23Speaker 1: Okay, now you're just using jargon.
- 4:25Speaker 2: Uh huh. Sorry. Basically, it's exploiting how Windows shares files
- 4:29Speaker 2: and resolves names on the network.
- 4:30Speaker 1: So tricking systems into giving up sensitive info.
- 4:34Speaker 2: Yep. And once an attacker has those passwords, they use
- 4:38Speaker 2: tools like John the Ripper and hashcat to crack them.
- 4:41Speaker 1: We talk in like brute force attacks.
- 4:43Speaker 2: That's one way. Yeah, they can turn through millions of
- 4:46Speaker 2: passwords per second.
- 4:47Speaker 1: So even with good password policies, attackers have ways around them.
- 4:51Speaker 2: That's why the sources emphasize multi factor authentication.
- 4:55Speaker 1: That extra layer of security.
- 4:56Speaker 2: Exactly makes it way harder for attackers even if they
- 4:59Speaker 2: have your password.
- 5:00Speaker 1: Like having a dead bolt and d a regular law exactly.
- 5:04Speaker 2: And of course security awareness training is huge so people.
- 5:06Speaker 1: Don't fall for phishing scams and all that.
- 5:08Speaker 2: Exactly. It's not just tea about technology, it's about creating
- 5:12Speaker 2: a culture of security.
- 5:13Speaker 1: Okay, so we've got open source intel bypassing firewalls and
- 5:18Speaker 1: weak passwords. What else is in the hacker playbook?
- 5:21Speaker 2: Well this might surprise you, but attackers rely a lot
- 5:24Speaker 2: on tools built right into Windows willie like what PowerShell.
- 5:29Speaker 2: The sources describe it as a double edged sword.
- 5:31Speaker 1: PowerShell isn't that just for system admins? What makes it
- 5:35Speaker 1: so dangerous?
- 5:36Speaker 2: That's incredibly powerful and versatile. It can automate tasks, manage systems,
- 5:40Speaker 2: all that right, But attackers have figured out how to
- 5:43Speaker 2: use it for their purposes.
- 5:44Speaker 1: The sources mentioned some techniques that sound kind of scary,
- 5:47Speaker 1: like encoding and decoding binaries within PowerShell.
- 5:50Speaker 2: It's like smuggling contraband. They take malicious code, make it
- 5:54Speaker 2: look harmless, then transferred to the target, and once it's there,
- 5:57Speaker 2: they use PowerShell to decode it back into executable code
- 6:00Speaker 2: and run it.
- 6:00Speaker 1: So it's like hiding a weapon and plane sight.
- 6:03Speaker 2: You got it. And the sources point out that PowerShell
- 6:05Speaker 2: can interact directly with the Windows API, making it even.
- 6:08Speaker 1: More dangerous, so they can bypass security, escalate privileges, all
- 6:13Speaker 1: that nasty stuff.
- 6:14Speaker 2: All without installing traditional malware.
- 6:16Speaker 1: This is starting to feel like a theme. You know,
- 6:19Speaker 1: attackers using legitimate tools for bad stuff.
- 6:22Speaker 2: Exactly, and that's what makes defending against them so much harder.
- 6:25Speaker 2: You can't just block specific files.
- 6:27Speaker 1: You have to understand how those tools can be misused.
- 6:30Speaker 2: And monitor for suspicious activity.
- 6:32Speaker 1: Okay, so we've got ocent firewalls, passwords, now PowerShell, what else?
- 6:38Speaker 2: Let's talk about shell code. The sources get into this
- 6:41Speaker 2: whole world of low level instructions.
- 6:43Speaker 1: Shell could always sound so intimidating, like Hollywood hacker stuff.
- 6:47Speaker 2: It has a certain mystique. Yeah, but really it's just
- 6:50Speaker 2: instructions that telecomputer what to do, and it can be.
- 6:52Speaker 1: Used for more than just you know, gaining a shell.
- 6:54Speaker 2: Oh yeah, way more. It's like a Swiss army knife
- 6:57Speaker 2: for attackers. Like what else can you do bypass security,
- 7:01Speaker 2: steal data, install back doors, even attack other systems?
- 7:04Speaker 1: Sounds pretty versatile, it is, and.
- 7:07Speaker 2: The sources mentioned techniques for bypassing dep and ASLR.
- 7:11Speaker 1: Uh oh more acronyms.
- 7:13Speaker 2: Sorry, dep is Data execution prevention makes it harder to
- 7:17Speaker 2: run shell code in memory ASLR address space layout randomization
- 7:21Speaker 2: scrambles things up, makes.
- 7:22Speaker 1: It harder to hit the target exactly.
- 7:24Speaker 2: But the attackers are always coming up with ways around these,
- 7:27Speaker 2: like what they mentioned something called return oriented programming or ROP.
- 7:33Speaker 2: What's that? Basically chaining together existing code snippets to get
- 7:37Speaker 2: their shell code to run.
- 7:39Speaker 1: So it's like a hacker macguivering their way around security
- 7:42Speaker 1: measures exactly.
- 7:43Speaker 2: They use whatever's available, and the sources really highlight how
- 7:46Speaker 2: important it is to stay ahead of the curve with
- 7:49Speaker 2: shell code.
- 7:49Speaker 1: Because the attackers are always innovating.
- 7:51Speaker 2: Absolutely, you need layered security to make exploitation much harder.
- 7:55Speaker 1: It's like that constant arms race attackers and defenders.
- 7:58Speaker 2: You got it. And that brings us to another technique
- 8:01Speaker 2: for finding vulnerabilities, fuzzing.
- 8:04Speaker 1: Fuzzing that sounds kind of messy. What is that?
- 8:07Speaker 2: It's about throwing random data at a target, seeing what breaks.
- 8:10Speaker 1: Like deliberately trying to make the software crash.
- 8:13Speaker 2: Pretty much by analyzing those crashes you can find vulnerabilities.
- 8:17Speaker 1: I see the sources describe a network fuzzing scenario using
- 8:20Speaker 1: tie off and Python, but then they talk about fuzzing
- 8:23Speaker 1: at a low level. What's the difference.
- 8:25Speaker 2: So network fuzzing is sending weird packets over the network
- 8:29Speaker 2: looking for.
- 8:29Speaker 1: Flaws, and the low level stuff.
- 8:31Speaker 2: That's targeting specific parts of the software or even hardware.
- 8:36Speaker 1: So you can fuzz pretty much anything that processes data.
- 8:39Speaker 2: Yeah, that's the cool thing about it, but it's important
- 8:42Speaker 2: to use it responsibly.
- 8:43Speaker 1: Otherwise you could cause more problems than you solve.
- 8:46Speaker 2: Exactly, uncontrolled fuzzing could crash systems or even reveal vulnerabilities
- 8:52Speaker 2: to other attackers.
- 8:54Speaker 1: So it's powerful, but you got to be careful.
- 8:56Speaker 2: Absolutely. Now, imagine an attacker has spent like days gaining
- 9:02Speaker 2: access to.
- 9:02Speaker 1: A system using some of these techniques we've been talking about.
- 9:05Speaker 2: Yeah, what do you think happens next?
- 9:07Speaker 1: Well, if they went through all that trouble, they probably
- 9:10Speaker 1: want to make sure they can come.
- 9:11Speaker 2: Back right exactly. That's where persistence comes in.
- 9:14Speaker 1: Okay, I'm intrigued. Tell me more about this persistence thing.
- 9:18Speaker 2: So the sources talk about how attackers maintain access to
- 9:21Speaker 2: a system.
- 9:22Speaker 1: Even if their initial access is blocked.
- 9:24Speaker 2: Exactly, it's about setting up a back door.
- 9:26Speaker 1: So you kick them out the front door, they've already
- 9:27Speaker 1: found a way in the back.
- 9:29Speaker 2: That's the idea. They use things like materpreter, persistence, netcat,
- 9:33Speaker 2: back doors.
- 9:34Speaker 1: Netcat isn't that a pretty basic networking tool?
- 9:38Speaker 2: It is, but it can be used for sneaky stuff too.
- 9:40Speaker 1: And this interpreter thing, what's that all about.
- 9:42Speaker 2: It's part of the Metasclite framework, a really powerful tool
- 9:46Speaker 2: for penetration.
- 9:46Speaker 1: Testing, and attackers use it too.
- 9:48Speaker 2: I bet Oh, absolutely, It's got all sorts of features
- 9:51Speaker 2: for maintaining access to a system.
- 9:53Speaker 1: Sounds pretty scary and PowerShell empire persistence.
- 9:57Speaker 2: What's that leveraging the power of scripts based.
- 10:00Speaker 1: So they can set up all sorts of automated tasks
- 10:02Speaker 1: to keep their access going.
- 10:04Speaker 2: You got it. And the sources point out that to
- 10:06Speaker 2: combat this you need proactive.
- 10:08Speaker 1: Monitoring, strong security control.
- 10:10Speaker 2: And understanding how the attackers work.
- 10:12Speaker 1: So it's about making it as hard as possible for
- 10:15Speaker 1: them to gain a foothold in the first place.
- 10:17Speaker 2: Exactly, but even then they might find a way. That's
- 10:20Speaker 2: why layered security is so important.
- 10:22Speaker 1: Multiple lines of defense, you got it.
- 10:23Speaker 2: It's like a castle with moats, walls guards.
- 10:26Speaker 1: Each layer, making it harder to penetrate deeper precisely.
- 10:30Speaker 2: And we've already talked about ARP poisoning, but the sources
- 10:34Speaker 2: really go into how that exploits trust at a fundamental level. Yeah,
- 10:39Speaker 2: remind me again of how that works. It always trips
- 10:41Speaker 2: me up.
- 10:42Speaker 1: It's like the network's phone book, right, mapping IP addresses
- 10:45Speaker 1: to make addresses.
- 10:47Speaker 2: Exactly when a device wants to send data, it uses
- 10:50Speaker 2: ARP to find the MPa address for.
- 10:52Speaker 1: That IP address, so it knows where to send the data, right.
- 10:55Speaker 2: But the problem is ARP was designed with trust in mind.
- 10:59Speaker 1: It is soon everyone's being honest.
- 11:01Speaker 2: Exactly, and an attacker can exploit that by sending fake
- 11:05Speaker 2: ARP replies.
- 11:06Speaker 1: Claiming to be another device on the network.
- 11:08Speaker 2: You got it. They hijack the communication.
- 11:10Speaker 1: Like setting up a fake detour sign, redirecting traffic to
- 11:13Speaker 1: a dead end exactly.
- 11:14Speaker 2: And this happens at a low level, so firewalls often
- 11:17Speaker 2: can't stop it.
- 11:18Speaker 1: That's terrifying. But the sources mention ways to mitigate this
- 11:21Speaker 1: right absolutely.
- 11:22Speaker 2: They talk about using static ARP entries.
- 11:24Speaker 1: So you create a fixed mapping between IP and MP
- 11:27Speaker 1: addresses exactly.
- 11:29Speaker 2: It's like writing the correct address in permanent.
- 11:31Speaker 1: Marker so it can't be changed easily.
- 11:33Speaker 2: That's the idea. They also mentioned implementing ARP inspection on
- 11:36Speaker 2: network devices.
- 11:38Speaker 1: So it verifies the ARP requests and replies exactly.
- 11:41Speaker 2: It's like having a security guard checking IDs to make.
- 11:44Speaker 1: Sure everyone is who they say.
- 11:46Speaker 2: They are, You got it. It's a reminder that even
- 11:49Speaker 2: simple protocols can have vulnerabilities.
- 11:52Speaker 1: That attackers can exploit.
- 11:54Speaker 2: Always got to be thinking a few steps ahead.
- 11:56Speaker 1: Okay, we've got to be careful about ARP poisoning. What
- 12:00Speaker 1: else do these sources tell us about how attackers think?
- 12:02Speaker 2: Well, let's talk about fingerprinting in network security.
- 12:06Speaker 1: Okay, I'm listening. What's that.
- 12:07Speaker 2: Basically, attackers use techniques to identify the operating system.
- 12:11Speaker 1: And software versions.
- 12:13Speaker 2: Often. Yeah, it's like a digital detective work.
- 12:15Speaker 1: So they're gathering clues about their target exactly, And.
- 12:18Speaker 2: They do this by sending carefully crafted network packets.
- 12:21Speaker 1: And analyzing the responses precisely.
- 12:24Speaker 2: They look for subtle differences that reveal info about the system.
- 12:27Speaker 1: The sources mention a tool called p zero F that
- 12:30Speaker 1: can fingerprint systems passively.
- 12:32Speaker 2: Oh yeah, p zeros cool. It just deserves network traffic.
- 12:35Speaker 1: And figures out what OS is running.
- 12:37Speaker 2: Yep. It takes advantage of the fact that different OS
- 12:39Speaker 2: implement protocols a little differently.
- 12:42Speaker 1: Leaving behind unique fingerprints.
- 12:44Speaker 2: Exactly. It's like analyzing the wear and tear on a
- 12:46Speaker 2: letter to figure out where it came from.
- 12:48Speaker 1: What other techniques do attackers use.
- 12:50Speaker 2: Well, they can use active probing techniques.
- 12:52Speaker 1: So actually sending packets to the target yep.
- 12:55Speaker 2: And they can look at things like the time to
- 12:57Speaker 2: live values in IP packets.
- 12:59Speaker 1: The TTL isn't that just to prevent packets from endlessly
- 13:02Speaker 1: bouncing around.
- 13:03Speaker 2: It is, but different ocs have default TTL values, so
- 13:07Speaker 2: it can be used for fingerprinting.
- 13:10Speaker 1: Sneaky. Okay, so they've fingerprinted the system.
- 13:12Speaker 2: Now what that information helps them target their attacks. They
- 13:16Speaker 2: can choose the right exploits based on the OS and
- 13:19Speaker 2: software versions.
- 13:20Speaker 1: It's like a tailor making a custom suit.
- 13:22Speaker 2: Exactly. The better they know the measurements, the better the fit.
- 13:25Speaker 1: So fingerprinting is about intel gathering and customizing the attack precisely.
- 13:30Speaker 2: The sources also talk about stack fingerprinting, which is even more.
- 13:33Speaker 1: Advanced stack finger printing. What's that.
- 13:36Speaker 2: It's like analyzing the bruststrokes of a painting to identify
- 13:39Speaker 2: the artist.
- 13:39Speaker 1: So going deeper than just the surface.
- 13:41Speaker 2: Level exactly, they're looking at the TCPIP stack implementation.
- 13:45Speaker 1: Which is like the foundation of Internet communication yep, And.
- 13:49Speaker 2: By analyzing those subtle differences they can get an even
- 13:52Speaker 2: more precise fingerprint.
- 13:53Speaker 1: The sources mention a tool called spapy that can do this.
- 13:57Speaker 2: Scapey is awesome. It's a really powerful tool for manipulating
- 14:01Speaker 2: network packets.
- 14:02Speaker 1: It's written in Python.
- 14:03Speaker 2: Right, Yeah, you can create your own custom packets and
- 14:06Speaker 2: see how the target responds.
- 14:07Speaker 1: Sounds incredibly powerful, but also kind of dangerous.
- 14:10Speaker 2: Definitely in the wrong hands, it could be used for
- 14:13Speaker 2: malicious purposes.
- 14:15Speaker 1: The sources mentioned using stapy to create a stack masquerade.
- 14:20Speaker 1: What's that about.
- 14:21Speaker 2: Basically, it's crafting packets that mimic a specific OS or
- 14:24Speaker 2: software version.
- 14:25Speaker 1: So creating a fake ID exactly.
- 14:28Speaker 2: They can fool security tools or bypass finger printing defenses.
- 14:31Speaker 1: It's like a digital disguise, you got it.
- 14:34Speaker 2: In cybersecurity, sometimes the best offense is a good defense.
- 14:38Speaker 1: Or a convincing fake.
- 14:39Speaker 2: Uh huh exactly.
- 14:41Speaker 1: Speaking of defense, the sources also talk about ways to
- 14:43Speaker 1: protect against finger printing.
- 14:45Speaker 2: Oh yeah, absolutely. It's all about making it hard for
- 14:47Speaker 2: attackers to gather information like what kind of stuff, blocking
- 14:50Speaker 2: suspicious probes, using network address translation yeat, yeah, NAT, to
- 14:55Speaker 2: hide internal systems, or even using intrusion detection systems.
- 14:59Speaker 1: So basically putting up barriers and watching for intruders exactly.
- 15:02Speaker 2: But remember security is a constant process.
- 15:05Speaker 1: Attackers are always finding new.
- 15:07Speaker 2: Ways in and defenders need to adapt.
- 15:09Speaker 1: Okay, so we've got ARP, poisoning, fingerprinting, stack masquerading. It's
- 15:15Speaker 1: clear attackers can exploit a lot of flaws and.
- 15:18Speaker 2: It's important to understand these things from a defender's.
- 15:20Speaker 1: Perspective too, so you can build better defenses.
- 15:22Speaker 2: Precisely, it's like studying your opponent's moves in chess.
- 15:26Speaker 1: The better you understand them, the better you can counter them.
- 15:29Speaker 2: Exactly. Okay, let's shift gears and talk about edtter cap.
- 15:32Speaker 1: Better cap sounds kind of ominous. What is that?
- 15:36Speaker 2: It's a tool for man in the middle attacks. Oh,
- 15:39Speaker 2: it can intercept traffic, modify it, even inject new traffic.
- 15:42Speaker 1: Sounds pretty powerful.
- 15:43Speaker 2: It is. It's like a hacker's toolbox.
- 15:45Speaker 1: What makes it so effective for these man in the
- 15:47Speaker 1: middle attacks.
- 15:48Speaker 2: It can do ARP poisoning, sniffing, code injection, even create
- 15:53Speaker 2: fake captive portals.
- 15:54Speaker 1: So it's a one stop shop for malicious network activity
- 15:58Speaker 1: pretty much.
- 15:59Speaker 2: And talk about using it for bridged.
- 16:02Speaker 1: Sniffing bridge sniffing. What's that?
- 16:04Speaker 2: Regular sniffing is like listening to a conversation right in
- 16:06Speaker 2: front of you. Okay, Bridge sniffing is like setting up
- 16:09Speaker 2: a listening post at a busy intersection.
- 16:11Speaker 1: So you can hear conversations from all directions.
- 16:13Speaker 2: Exactly. By bridging two network interfaces, edtercap can capture traffic
- 16:18Speaker 2: that would normally be invisible, So even.
- 16:20Speaker 1: If devices aren't talking directly to the attacker's machine, attercap
- 16:24Speaker 1: can still listen in yep.
- 16:26Speaker 2: It's especially effective on switch networks.
- 16:29Speaker 1: Where traffic is usually isolated.
- 16:31Speaker 2: Right. They also talk about creating a malicious access point.
- 16:34Speaker 1: With edertercap, like a fake Wi Fi hotspot.
- 16:36Speaker 2: Exactly. They can intercept traffic, capture credentials, all sorts of
- 16:40Speaker 2: nasty stuff.
- 16:41Speaker 1: So if you're at a coffee shop, be careful what
- 16:43Speaker 1: Wi Fi you connect to.
- 16:45Speaker 2: Absolutely, always good advice. Yeah. The sources also get into
- 16:49Speaker 2: edtercap filters, which are pretty.
- 16:51Speaker 1: Interesting filters, like for filtering traffic kinda.
- 16:55Speaker 2: There are rules that define how edercap interacts with traffic.
- 16:58Speaker 1: So you can customize its behavior exactly.
- 17:00Speaker 2: You can modify packets, drop connections, even run scripts based
- 17:04Speaker 2: on certain criteria.
- 17:05Speaker 1: That sounds powerful.
- 17:06Speaker 2: It is. It's like setting up traps on a network.
- 17:09Speaker 1: But filters can be used for good too, right.
- 17:11Speaker 2: Absolutely. Defenders can use them to detect and block suspicious activity.
- 17:15Speaker 1: So like a security guard who can spot troublemakers.
- 17:19Speaker 2: Exactly. It's all about understanding the capabilities of.
- 17:21Speaker 1: These tools and using them to your advantage.
- 17:24Speaker 2: Precisely, the source is even mentioned as scripting language for
- 17:27Speaker 2: edttercap filters, so you.
- 17:29Speaker 1: Can program them for even more complex tasks.
- 17:31Speaker 2: Yep, it gives you a lot of control.
- 17:33Speaker 1: Okay, so we've got etter cap bridged sniffing malicious access
- 17:37Speaker 1: points filters. It's a lot to take in.
- 17:40Speaker 2: It is, and it's just the tip of the iceberg.
- 17:43Speaker 2: The sources also introduce us to a tool called better Cap.
- 17:46Speaker 1: Better Cap is that like tter cap, but better.
- 17:50Speaker 2: You could say that. It's got a more modern design,
- 17:52Speaker 2: a nice web interfo and a ton.
- 17:54Speaker 1: Of modules, modules for doing what.
- 17:56Speaker 2: Sniffing traffic, injecting code, all sorts of stuff, Twiss army
- 18:00Speaker 2: knife for man in the middle of attacks.
- 18:02Speaker 1: They mentioned something called transparent proxying. What's that all about.
- 18:06Speaker 2: Regular proxying is like a toll booth you have to
- 18:08Speaker 2: choose to go through.
- 18:09Speaker 1: It makes sense.
- 18:10Speaker 2: Transparent proxy is like a hidden camera tracking cars without
- 18:14Speaker 2: them knowing.
- 18:15Speaker 1: So with transparent proxying, you don't even know your traffic
- 18:18Speaker 1: is being intercepted exactly.
- 18:20Speaker 2: It makes better cap very stealthy.
- 18:22Speaker 1: And they talk about hijacking HTTP and HTTPS connections. How
- 18:26Speaker 1: do they pull that off?
- 18:27Speaker 2: Well, they can do something called SSL stripping.
- 18:29Speaker 1: Which down grades HTTPS.
- 18:32Speaker 2: To HTTP right, so they can intercept the traffic. They
- 18:35Speaker 2: can also inject code, steel credentials redirect users to bad websites.
- 18:41Speaker 1: So it's like a digital con artist tricking you into
- 18:44Speaker 1: giving up your secrets exactly.
- 18:45Speaker 2: And it works on both HTTP and HTTPS, so it's
- 18:48Speaker 2: pretty effective.
- 18:49Speaker 1: They also mentioned better caps modular design and these things
- 18:52Speaker 1: called caplets.
- 18:53Speaker 2: Caplets are like attachments for a power drill. You swap
- 18:55Speaker 2: them out depending on.
- 18:56Speaker 1: The job, so it's customizable exactly.
- 18:59Speaker 2: They are capitalets for code injection, denial of service attacks,
- 19:02Speaker 2: all sorts of stuff.
- 19:03Speaker 1: And they mentioned a caplet called download auto pound That
- 19:08Speaker 1: sounds bad.
- 19:09Speaker 2: It is basically, it swaps out a downloaded file.
- 19:12Speaker 1: With a malicious file without you knowing.
- 19:14Speaker 2: Yep. It's like ordering a pizza and having someone tamper
- 19:18Speaker 2: with it before it arrives.
- 19:19Speaker 1: That's a disturbing analogy, but I get it.
- 19:21Speaker 2: It's a reminder to be careful about what you download,
- 19:23Speaker 2: even from trusted sources.
- 19:25Speaker 1: So what can you do?
- 19:26Speaker 2: Be cautious, use antivirus software, keep your system updated.
- 19:30Speaker 1: So better cap can also scan for and exploit vulnerabilities.
- 19:34Speaker 2: Oh yeah, it integrates with tools like m.
- 19:36Speaker 1: Map which maps out the network and finds weaknesses.
- 19:39Speaker 2: Exactly, and once those weaknesses are found, better cap can
- 19:43Speaker 2: exploit them.
- 19:43Speaker 1: It's like a scout and a saboteur.
- 19:45Speaker 2: You got it, Find the weak points, then attack.
- 19:48Speaker 1: We've covered a lot here, Better Cap, better CAPP. It's
- 19:52Speaker 1: clear these tools can be really dangerous, and.
- 19:54Speaker 2: It's crucial to understand them from a defender's.
- 19:56Speaker 1: Perspective, so we know what we're up against exactly.
- 19:59Speaker 2: It's like studying the Tom's.
- 20:00Speaker 1: Playbook so you can learn their tactics and weaknesses.
- 20:03Speaker 2: You got it. Okay, ready to move on to the
- 20:05Speaker 2: next topic.
- 20:06Speaker 1: Hit me with it. What else do these sources have
- 20:07Speaker 1: in store for us?
- 20:08Speaker 2: We've talked a lot about how attackers exploit weaknesses like
- 20:11Speaker 2: in protocols and operating systems, right, but let's look at
- 20:15Speaker 2: an area that's often overlooked cryptography.
- 20:18Speaker 1: Okay, now you're going to lose me.
- 20:20Speaker 2: Your source material gets into some interesting stuff here, like
- 20:23Speaker 2: bitflipping attacks, hash length extension attacks.
- 20:26Speaker 1: Oh tho, sound complicated, and padding oracle attacks.
- 20:29Speaker 2: Cryptography always seems so, I don't know, mysterious, like it's
- 20:34Speaker 2: a secret language for math geniuses.
- 20:36Speaker 1: It can be complex, Yeah, but at its heart, it's
- 20:39Speaker 1: about protecting information.
- 20:40Speaker 2: Makes sense, and.
- 20:41Speaker 1: These attacks they show how even strong encryption can be
- 20:45Speaker 1: vulnerable if it's not implemented correctly.
- 20:47Speaker 2: Okay, so let's start simple bitflipping attacks. What are those?
- 20:50Speaker 1: They target a specific way encryption works called cipher blockchaining
- 20:55Speaker 1: or CBC CBC.
- 20:56Speaker 2: Okay.
- 20:57Speaker 1: In CBC, each block of plaintext is XRD with the
- 21:01Speaker 1: previous ciphertext block before being encrypted.
- 21:04Speaker 2: Hold on XOR. What is that some kind of Star
- 21:06Speaker 2: Wars thing?
- 21:06Speaker 1: Uh? Huh? No, it stands for exclusive or. It's a
- 21:10Speaker 1: logical operation, a way of combining bits like ones and zeros.
- 21:14Speaker 2: Exactly. If both bits are the same, the result is zero.
- 21:18Speaker 2: If they're different, it's one. It's used in a lot
- 21:20Speaker 2: of cryptography.
- 21:21Speaker 1: So in CBC mode, you're mixing the plaintext with the
- 21:24Speaker 1: previous ciphertext using this XOR thing.
- 21:27Speaker 2: Right, And that's what makes it more secure. It creates
- 21:29Speaker 2: a dependency between blocks, so.
- 21:31Speaker 1: If you mess with one block, it affects the others.
- 21:33Speaker 2: Exactly, and that's where the attack comes in. An attacker
- 21:36Speaker 2: can flip bits in a ciphertext.
- 21:37Speaker 1: Block knowing it'll cause specific changes in the decrypted plaintext.
- 21:42Speaker 2: Yep, it's like a domino effect. One small change can
- 21:45Speaker 2: mess up the whole thing.
- 21:46Speaker 1: So what can an attacker actually do.
- 21:48Speaker 2: With this modified data? Corrupt files bypass security.
- 21:53Speaker 1: Checks sounds bad? The sources mentioned in an example with
- 21:56Speaker 1: a web application.
- 21:57Speaker 2: Yeah, imagine a web app that uses CBC incryption to
- 22:00Speaker 2: protect sensitive data like user IDs. Okay, the encryption key
- 22:04Speaker 2: might be safe, but sometimes the initialization vector or IV
- 22:08Speaker 2: is sent along with the ciphertext.
- 22:10Speaker 1: Five. What's that?
- 22:11Speaker 2: It's a random value used to start the encryption.
- 22:14Speaker 1: Process, like a secret ingredient exactly.
- 22:17Speaker 2: But if the IV is predictable or the attacker can change.
- 22:21Speaker 1: It, they can use this bitflipping attack exactly.
- 22:25Speaker 2: By flipping bits in the IV, they can change the
- 22:28Speaker 2: decrypted data.
- 22:29Speaker 1: So it's like changing the recipe. By messing with one ingredient,
- 22:32Speaker 1: you get a whole different dish.
- 22:34Speaker 2: Perfect analogy. They could grant themselves higher privileges, access sensitive info,
- 22:39Speaker 2: all sorts of things.
- 22:40Speaker 1: So we need to be careful about how we use
- 22:42Speaker 1: encryption and protect things like the IV.
- 22:45Speaker 2: Absolutely, even small mistakes can create big vulnerabilities.
- 22:49Speaker 1: It seems like cryptography is a lot like chess. One
- 22:51Speaker 1: wrong move and your toast.
- 22:53Speaker 2: That's a good way to put it. Okay, ready for
- 22:55Speaker 2: hash length extension attacks?
- 22:57Speaker 1: Sure, hit me with it.
- 22:58Speaker 2: They exploit a quirk in how some hash functions work,
- 23:01Speaker 2: like MD five and SAHA one.
- 23:04Speaker 1: Those are used for like verifying file integrity.
- 23:06Speaker 2: Right, among other things. Yeah, they're supposed to be one
- 23:09Speaker 2: way functions.
- 23:09Speaker 1: You can create a hash from data, but you can't
- 23:11Speaker 1: go back.
- 23:12Speaker 2: Right, like scrambling an egg, you can't unscramble it. But
- 23:15Speaker 2: with these attacks, it's not about reversing the hash. It's
- 23:18Speaker 2: about extending it.
- 23:19Speaker 1: Extending it. How do you extend something that's supposed to
- 23:22Speaker 1: be one way?
- 23:23Speaker 2: The attacker can take an existing hash, add their own
- 23:26Speaker 2: data to the original input, and create a new hash.
- 23:30Speaker 1: And that new hash still includes the original data exactly.
- 23:34Speaker 2: And the crazy part is they don't even need to
- 23:36Speaker 2: know the original.
- 23:37Speaker 1: Input wright What how is that even possible?
- 23:39Speaker 2: It's because of how these specific hash functions work internally.
- 23:43Speaker 1: Okay, now you're really losing me.
- 23:46Speaker 2: Basically, you can use the hash itself, the length of
- 23:49Speaker 2: the original data, and the algorithm to craft a new
- 23:52Speaker 2: input that adds your malicious payload.
- 23:54Speaker 1: And the resulting hash still looks legit.
- 23:56Speaker 2: Yep. It's like opening a sealed envelope, adding a note
- 23:59Speaker 2: and recale it perfectly.
- 24:00Speaker 1: Nobody would know it was tampered.
- 24:02Speaker 2: With exactly, and this can be used to bypass authentication
- 24:05Speaker 2: checks modify data without anyone knowing.
- 24:08Speaker 1: The sources mentioned an example with web applications and himac's
- 24:13Speaker 1: what's an HMAC.
- 24:14Speaker 2: It stands for hash based message authentication code. It's used
- 24:18Speaker 2: to verify both the integrity and authenticity of a.
- 24:20Speaker 1: Message, like a digital signature.
- 24:22Speaker 2: You got it. So an attacker could use this attack
- 24:25Speaker 2: to slip in malicious code, but the HMAC would still
- 24:29Speaker 2: say it's all good.
- 24:30Speaker 1: That's scary. So what can we do to protect against
- 24:33Speaker 1: these attacks?
- 24:34Speaker 2: Use more modern hash functions like SAHA two fifty six
- 24:38Speaker 2: or SAHA three.
- 24:39Speaker 1: Those aren't vulnerable.
- 24:40Speaker 2: Nope. It's also important to know the limitations of older
- 24:43Speaker 2: hash functions and not use them for anything critical.
- 24:46Speaker 1: Okay, good to know. What about padding oracle attacks?
- 24:49Speaker 2: Those target block siteer algorithms that use padding. Padding it's
- 24:53Speaker 2: extra data added to the plaintext. Make sure it aligns
- 24:55Speaker 2: with the block size, like packing peanuts exactly. But the
- 24:58Speaker 2: vulnerability is in how the server handles incorrect padding.
- 25:02Speaker 1: So the attacker sends bad ciphertext and the server gives
- 25:05Speaker 1: them clues based on its response.
- 25:07Speaker 2: Precisely, they can figure out the plain text without knowing
- 25:10Speaker 2: the key.
- 25:10Speaker 1: It's like they're playing twenty questions with the server.
- 25:13Speaker 2: Great analogy, and they can use this to decrypt data,
- 25:17Speaker 2: modify ciphertext, even forge new ciphertext.
- 25:20Speaker 1: So what's the defense against this?
- 25:21Speaker 2: Use secure padding schemes, make sure the IV is random
- 25:24Speaker 2: and secret, and.
- 25:25Speaker 1: Always validate data integrity exactly.
- 25:28Speaker 2: Catch those tampering attempts early.
- 25:30Speaker 1: Okay, we've covered a lot of ground here. It's clear
- 25:33Speaker 1: that even cryptography can be attacked if we're not careful.
- 25:36Speaker 2: Absolutely. Security is about understanding the whole system, not just
- 25:40Speaker 2: individual components.
- 25:41Speaker 1: And attackers are always looking for those weak points exactly.
- 25:44Speaker 2: So we need to be vigilant and stay ahead of
- 25:47Speaker 2: the game.
- 25:47Speaker 1: Speaking of staying ahead, the source material emphasizes practicing these
- 25:52Speaker 1: techniques in a safe environment.
- 25:53Speaker 2: Oh yeah, that's crucial. You wouldn't want to learn to
- 25:56Speaker 2: drive on a busy highway, right, makes sense. Same with cybersecurity.
- 26:00Speaker 2: Need to practice in a controlled environment.
- 26:02Speaker 1: They mentioned using virtual machines and deliberately vulnerable software.
- 26:06Speaker 2: Yeah, those are great tools. Virtual machines isolate your experiments,
- 26:10Speaker 2: so you don't mess up your real system.
- 26:12Speaker 1: And vulnerable software lets you practice attacks without breaking the
- 26:15Speaker 1: law exactly.
- 26:17Speaker 2: It's like a cybersecurity dojo.
- 26:18Speaker 1: Where you can spar without getting hurt precisely.
- 26:21Speaker 2: And there are tons of resources online for this kind
- 26:24Speaker 2: of practice.
- 26:24Speaker 1: So you can learn from others and test your skills exactly.
- 26:28Speaker 2: It's a whole community of ethical hackers dedicated to making
- 26:31Speaker 2: systems more secure.
- 26:32Speaker 1: It's pretty cool that there are people out there actively
- 26:35Speaker 1: trying to break things in order to make them stronger.
- 26:38Speaker 2: That's the essence of ethical hacking. By understanding the attacker's mindset,
- 26:43Speaker 2: we can build better defenses.
- 26:45Speaker 1: So it's not just about building walls, it's about understanding
- 26:48Speaker 1: how those walls can be breached.
- 26:49Speaker 2: And finding ways to reinforce them.
- 26:51Speaker 1: This whole deep dive has been eye opening. It's a
- 26:54Speaker 1: lot more complex than I ever imagined.
- 26:56Speaker 2: It is, but it's also fascinating, isn't it. There's always
- 26:59Speaker 2: something new to learn.
- 27:00Speaker 1: Okay, so we've learned about all sorts of attacks, from
- 27:03Speaker 1: exploiting open source intelligence to messing with cryptography.
- 27:08Speaker 2: What do you think is the most important takeaway from
- 27:10Speaker 2: all this?
- 27:11Speaker 1: I think it's that security is a journey not a destination.
- 27:14Speaker 1: I like that you can't just set it and forget it.
- 27:16Speaker 2: Absolutely, attackers are always.
- 27:18Speaker 1: Evolving, so we have to evolve too.
- 27:19Speaker 2: We need to be proactive, always learning, always adapting, and.
- 27:23Speaker 1: Never underestimating our opponent.
- 27:25Speaker 2: Well said, It's a constant arms race.
- 27:28Speaker 1: So what can our listeners do to stay ahead in
- 27:30Speaker 1: this arms race?
- 27:32Speaker 2: Stay curious, stay informed, and never stop learning. The world
- 27:37Speaker 2: of cybersecurity is constantly changing, so you need to keep up.
- 27:40Speaker 1: It's not just about the technology either, right.
- 27:42Speaker 2: Definitely not. It's also about awareness, training, and building a
- 27:47Speaker 2: culture of security.
- 27:48Speaker 1: In organizations and in our personal lives.
- 27:51Speaker 2: Exactly. Everyone has a role to play in making the
- 27:54Speaker 2: digital world safer.
- 27:55Speaker 1: Well said, this deep dive has been incredible. It's given
- 27:59Speaker 1: us a glimpse into the mind kind of an.
- 28:00Speaker 2: Attacker, and hopefully it's empowered our listeners to take their
- 28:03Speaker 2: security to the next level.
- 28:05Speaker 1: Absolutely, thanks for joining us on this wild ride, and remember,
- 28:09Speaker 1: stay vigilant, stay curious, and stay secure.
- 28:12Speaker 2: We've gone deep on hacking techniques for sure, but the
- 28:14Speaker 2: sources also point out something crucial. Oh, it's not enough
- 28:18Speaker 2: to just know this stuff. You need hands on practice.
- 28:21Speaker 1: To really get it.
- 28:22Speaker 2: Exactly like imagine trying to learn martial arts from a book.
- 28:25Speaker 1: You might understand the moves, but could.
- 28:27Speaker 2: You actually defend yourself. It's the same with cybersecurity.
- 28:30Speaker 1: So how do we get that hands on experience safely?
- 28:33Speaker 1: I don't want to accidently cause a blackout or something.
- 28:36Speaker 2: Your sources have the answer. Virtual machines and deliberately vulnerable software. Okay,
- 28:42Speaker 2: it's like having your own cybersecurity dojo, a dojo you
- 28:45Speaker 2: can spar without causing real damage.
- 28:47Speaker 1: I love that. So I spin up a virtual machine,
- 28:50Speaker 1: install something like what was it, damn vulnerable web app? Yeah, exactly,
- 28:54Speaker 1: and just go nuts with all these attacks we've been
- 28:56Speaker 1: talking about.
- 28:57Speaker 2: Exactly. You can experiment freely, see how it work, test your.
- 29:01Speaker 1: Defenses without breaking anything important.
- 29:03Speaker 2: We're breaking the law. There's a ton of resources online too,
- 29:07Speaker 2: community sharing tips and challenges.
- 29:09Speaker 1: So it's like a whole underground world of learning it is.
- 29:12Speaker 2: It's all about making security stronger through responsible experimentation.
- 29:17Speaker 1: This is blowing my mind. There's a whole ethical hacking
- 29:19Speaker 1: ecosystem out there.
- 29:21Speaker 2: Yep. By understanding how attackers think and the tools they use,
- 29:25Speaker 2: we build better defenses.
- 29:27Speaker 1: It's like the best offense is a good defense.
- 29:30Speaker 2: But in this case, a good offense makes an even
- 29:32Speaker 2: better defense.
- 29:33Speaker 1: Okay, we've covered so much ground here, from open source
- 29:37Speaker 1: intelligence to cryptography. What's the one big thing you want
- 29:41Speaker 1: our listener to remember?
- 29:43Speaker 2: Security is a journey, not a destination. I like that
- 29:46Speaker 2: attackers never stop. They're creative, They're relentless, constantly evolving their tactics.
- 29:53Speaker 1: So we have to be just as relentless in learning.
- 29:55Speaker 2: And adapting exactly and never underestimate their inginuity.
- 29:58Speaker 1: Gotta stay sharp and.
- 30:00Speaker 2: Forget the human element is often the weakest link.
- 30:03Speaker 1: People make mistakes, they.
- 30:05Speaker 2: Fall for phishing scams, use weak passwords. So strong security
- 30:10Speaker 2: is about tech, but it's also about awareness and training.
- 30:13Speaker 1: Creating a culture of security exactly. This deep dive has
- 30:16Speaker 1: been wild. We've really gotten a look behind the curtain
- 30:18Speaker 1: at how attacks actually.
- 30:20Speaker 2: Happen and how to defend against them.
- 30:21Speaker 1: It's been a pleasure exploring all this with you.
- 30:23Speaker 2: Likewise, hopefully our listener feels empowered to take this knowledge
- 30:27Speaker 2: and make the digital world a little bit safer.
- 30:29Speaker 1: That's the goal. Thanks for joining us on this deep dive,
- 30:32Speaker 1: and remember, stay vigilant, stay curious, and stay secure.