Latest / CyberCode Academy / Course 23 - WiFi Hacking with Raspberry Pi | Episode 4: WiFi Jamming Techniques Using Raspberry
Transcript
- 0:00Speaker 1: Imagine for a second the space around you, I mean
- 0:03Speaker 1: right now to your eyes, it's probably just empty air
- 0:06Speaker 1: between you and.
- 0:07Speaker 2: The wall right see a desk, maybe a window.
- 0:10Speaker 1: Exactly what if you could put on a pair of
- 0:13Speaker 1: I don't know, radio glasses, suddenly that empty space would
- 0:16Speaker 1: just erupt into this chaotic storm of invisible threads.
- 0:20Speaker 2: Oh, it'd be a complete mess a laser show. You'd
- 0:22Speaker 2: see threads from your phone to your router, from your
- 0:25Speaker 2: laptop to everywhere.
- 0:27Speaker 1: A huge, messy invisible web. And we trust this web
- 0:31Speaker 1: with everything, our banking, our work, our private messages. But
- 0:34Speaker 1: what if I told you that a tiny device like
- 0:37Speaker 1: the size of a credit card could just snip those threads.
- 0:40Speaker 2: It's a pretty scary thought, but it's not science fiction.
- 0:44Speaker 2: You're talking about the Raspberry Pie.
- 0:46Speaker 1: I am that little thirty five dollars computer that's supposed
- 0:48Speaker 1: to be for kids learning to code. But today we're
- 0:50Speaker 1: looking at it through a let's say, a darker lens.
- 0:53Speaker 1: We're doing a deep dive into using it as a
- 0:55Speaker 1: portable invisible network jammer.
- 0:57Speaker 2: And we should be really clear right from the start,
- 1:00Speaker 2: this is about understanding the mechanics we're looking at, how
- 1:03Speaker 2: this is done based on you know, technical walkthroughs. Right,
- 1:07Speaker 2: there are two distinct methods. One is basically a push
- 1:10Speaker 2: button script requires almost zero skill. The other is a
- 1:15Speaker 2: much more manual command line approach that actually teaches you
- 1:18Speaker 2: how Wi Fi works and.
- 1:20Speaker 1: Maybe more importantly, why it breaks exactly.
- 1:22Speaker 2: This is purely educational. We want to understand the vulnerability,
- 1:26Speaker 2: to respect the tech, and see the security implications. It's
- 1:29Speaker 2: all about the logic of the attack.
- 1:31Speaker 1: So let's set the stage. Yeah, you know in movies,
- 1:35Speaker 1: the hacker is always in some dark room with a
- 1:37Speaker 1: dozen monitors.
- 1:38Speaker 2: Hmmm, green techs scrolling everywhere.
- 1:40Speaker 1: Yeah, but what we're talking about here is way way stealthier.
- 1:43Speaker 1: The sources call it running headless.
- 1:45Speaker 2: Headless just means the computer has no head so no monitor,
- 1:48Speaker 2: no keyboard, no mouse, It's just the circuit board itself.
- 1:51Speaker 1: Which is perfect for this. Right. You could hide it
- 1:53Speaker 1: behind a plant in an office lobby and no one
- 1:55Speaker 1: would even know it's a computer. Yeah, but that sounds
- 1:58Speaker 1: like a logistical nightmare. I mean, if it has no screen,
- 2:01Speaker 1: how do you even tell it what to do?
- 2:03Speaker 2: That's the first major hurdle. You have to set up
- 2:06Speaker 2: a line of communication. You need to control it remotely
- 2:09Speaker 2: from another device like your laptop or or even your phone.
- 2:14Speaker 1: Okay, walk me through that. I've got my Raspberry Pie.
- 2:17Speaker 1: It's plugged in, just sitting there blinking on my laptop.
- 2:21Speaker 1: How do I even find it on the network?
- 2:23Speaker 2: Well, first, it needs to be on the network, so
- 2:24Speaker 2: you plug it into your router with a cable, at
- 2:26Speaker 2: least at first. Once it's on, it's kind of hiding
- 2:28Speaker 2: in the crowd. You need its address.
- 2:30Speaker 1: It's IP address, correct, so.
- 2:31Speaker 2: You have to play detective. You log into your router's
- 2:34Speaker 2: admin panel, that scary place.
- 2:36Speaker 1: Everyone's afraid they'll break the Internet if they touch anything.
- 2:39Speaker 2: The very same but inside there's usually a list called
- 2:42Speaker 2: DHCP clients. Think of it like a sign in sheet
- 2:46Speaker 2: for the network. Okay, you just scan down that list,
- 2:49Speaker 2: look for Raspberry Pie and boom. Right next to it
- 2:51Speaker 2: is the IP address. That's your target, and.
- 2:54Speaker 1: It's usually something like one ninety two point one six'
- 2:57Speaker 1: eight on something not something Usually.
- 2:59Speaker 2: Yeah once you have that, number you can knock on its.
- 3:01Speaker 1: Door and there are two ways to knock, right one
- 3:04Speaker 1: for visual people and one for the uh the matrix.
- 3:07Speaker 2: Fans the matrix way is definitely what professionals. Use it's
- 3:10Speaker 2: CALLED ssh or secure.
- 3:12Speaker 1: Shell i've heard that. Term basically like just text messaging the.
- 3:16Speaker 1: Computer that is a.
- 3:17Speaker 2: Perfect way to put. It you use a little program On,
- 3:19Speaker 2: WINDOWS a common one is called putt t y and
- 3:22Speaker 2: you just type in THAT ip, address you hit, enter
- 3:25Speaker 2: and a black window pops, out.
- 3:26Speaker 1: No, icons no, mouse just a blinking, cursor just.
- 3:30Speaker 2: A prompt waiting for a.
- 3:31Speaker 1: Command, okay and this is where it gets kind of.
- 3:33Speaker 1: Funny you'd think a hacking machine would be locked down
- 3:36Speaker 1: Like Fort. Knox but what happens when that black screen
- 3:39Speaker 1: asks for a log?
- 3:40Speaker 2: In it? Does it asks for a username and a,
- 3:43Speaker 2: password and the default unless you've changed it is username
- 3:47Speaker 2: pi pi.
- 3:48Speaker 1: And the password Also. Pie's that's.
- 3:51Speaker 2: It, seriously it's a huge security. Hole it's the ultimate. Irony,
- 3:55Speaker 2: really the attacker can become the victim because they were
- 3:58Speaker 2: too lazy to change the default.
- 3:59Speaker 1: Password so less than one change your defaults. People, okay
- 4:04Speaker 1: so THAT'S. Ssh but what If i'm terrified of that black?
- 4:07Speaker 2: Screen then you use the other, METHOD vnc virtual network.
- 4:11Speaker 2: Computing you open A vnc viewer, program type in THE
- 4:14Speaker 2: ip and a window pops up on your. Screen that
- 4:17Speaker 2: is literally The Raspberry pie's.
- 4:19Speaker 1: Desktop so it's like screen sharing.
- 4:21Speaker 2: Exactly it's a remote. Desktop it's a bit, slower but it's.
- 4:24Speaker 2: Familiar you can click on, menus open, folders whatever you.
- 4:28Speaker 1: Need, okay so we're. In we're gone. Headless we're controlling
- 4:32Speaker 1: The pie from our. Laptop now for the main, event
- 4:35Speaker 1: let's start with What i'm calling the easy button.
- 4:37Speaker 2: Method method, one the automated.
- 4:39Speaker 1: Script it seems almost disappointingly. Simple you open the terminal
- 4:44Speaker 1: and you just type wife you. Jam that's really.
- 4:47Speaker 2: It is, it and that's what makes it so. Dangerous you,
- 4:49Speaker 2: know it lowers the barrier to entry to basically. Nothing
- 4:52Speaker 2: you don't need to understand anything about. Networks you just
- 4:54Speaker 2: have to top those two.
- 4:55Speaker 1: Words so what's happening under the Hood when you hit, enter.
- 4:57Speaker 2: It's a fire and forget. Weapon the script automatically looks
- 5:01Speaker 2: for the most Powerful Wi fi card attached to the.
- 5:03Speaker 1: Pot it takes, yep grabs the biggest gun it can.
- 5:06Speaker 1: Find then it scans the air for all the nearby
- 5:09Speaker 1: networks and just starts. Jamming so it's not.
- 5:13Speaker 2: Targeted it's just a blanket attack on everything in.
- 5:15Speaker 1: Range, exactly kick a blunt, instrument like trying to stop
- 5:19Speaker 1: one conversation in a room by setting off an air.
- 5:22Speaker 1: Horn it, works but it's messy and you don't learn
- 5:25Speaker 1: a thing about why it.
- 5:26Speaker 2: Works it's a black. Box command goes, in chaos comes, out.
- 5:29Speaker 1: Which is why the second method we're looking at is
- 5:32Speaker 1: so much more. Interesting this one is about peeling back
- 5:35Speaker 1: the layers and seeing the gears. Inside this is the manual,
- 5:38Speaker 1: method using a tool CALLED mdk.
- 5:41Speaker 2: THREE mdk three that already sounds more serious it, Is.
- 5:44Speaker 1: But before you can even use, it you have to
- 5:46Speaker 1: do something really. Important you have to enable a special
- 5:49Speaker 1: state called monitor.
- 5:50Speaker 2: Mode, okay monitor, mode what's the difference between that and
- 5:53Speaker 2: the normal mode my phone is in right?
- 5:54Speaker 1: Now great. Question so your Phone's Wi fi card is.
- 5:58Speaker 1: Polite it's in what's called managed. Mode it only listens
- 6:01Speaker 1: to traffic that's specifically addressed to. It everything else is
- 6:04Speaker 1: just ignored as, noise.
- 6:05Speaker 2: So it minds its own business. Precisely monitor mode is.
- 6:09Speaker 2: Rude it removes that. Filter it turns The Wi fi
- 6:12Speaker 2: card into a giant ear that listens to, everything every,
- 6:16Speaker 2: packet every, handshake every piece of data flying through the,
- 6:20Speaker 2: air whether it's for you or.
- 6:21Speaker 1: Not it's the ultimate eavesdropper.
- 6:23Speaker 2: And that's what we need to enable on the.
- 6:25Speaker 1: Pie so how do you do? That the sources get
- 6:28Speaker 1: a bit technical.
- 6:28Speaker 2: Here it's a couple of. Commands first you might type
- 6:31Speaker 2: iconfig just to check the. Status we'll probably say mode.
- 6:34Speaker 2: Managed then you use a tool to switch. It common
- 6:37Speaker 2: command is airmone Start why on one airmone, right that's
- 6:41Speaker 2: the command that flips the. Switch after you run, That
- 6:43Speaker 2: if you check it, In i'll say mode. Monitor now
- 6:48Speaker 2: the ears are, open the pie is hearing, everything.
- 6:51Speaker 1: And now that it's, listening it can start. Lying this
- 6:54Speaker 1: is the part that really blew my. MIND i always
- 6:56Speaker 1: thought jamming was just about creating noise like.
- 6:58Speaker 2: Static that's one WAY rif, jamming but it's. Crude WHAT
- 7:02Speaker 2: mdk three does is so much more. Elegant it's a protocol.
- 7:05Speaker 2: Attack it doesn't shout over the. Conversation it whispers a
- 7:08Speaker 2: very specific.
- 7:09Speaker 1: Lie and that lie is the authentication, packet the death.
- 7:13Speaker 2: Packet. See The Wi fi protocol itself has a built
- 7:16Speaker 2: in command for the router to tell a, device, hey
- 7:19Speaker 2: you need to. Disconnect it's a legitimate.
- 7:22Speaker 1: Function, okay that makes.
- 7:23Speaker 2: Sense, WELL mdk three abuses that The Raspberry pie pretends
- 7:27Speaker 2: to be the. Router it crafts one of those disconnect
- 7:30Speaker 2: packets and sends it.
- 7:31Speaker 1: To your, phone and my phone just believes it without.
- 7:34Speaker 2: Check that's the terrifying. Part, yes in many Common Wi fi,
- 7:38Speaker 2: standards these management commands aren't encrypted or. Authenticated your phone
- 7:44Speaker 2: sees a packet that looks, official assumes it's from the,
- 7:47Speaker 2: boss and just obeys it drops.
- 7:49Speaker 1: The connection so it's not overpowering the. Signal it's like
- 7:53Speaker 1: walking around a, party tapping everyone on the shoulder and
- 7:55Speaker 1: saying the host says you have to.
- 7:56Speaker 2: Leave, now and because all the devices are programmed to be,
- 7:59Speaker 2: polite they just. Leave then they immediately try to reconnect
- 8:02Speaker 2: AND ndk three is right there to tap them on
- 8:03Speaker 2: the shoulder. Again, nope you have to leave.
- 8:05Speaker 1: Again it creates an endless loop of being kicked.
- 8:08Speaker 2: Out brutally.
- 8:08Speaker 1: Effective so what's the command we're in monitor? Mode what
- 8:12Speaker 1: do we type to start this mass?
- 8:13Speaker 2: Eviction it's PSEUDO mdk, three then the name of your monitor,
- 8:17Speaker 2: interface and then the LETTER d.
- 8:20Speaker 1: JUST d JUST d for. Authentication it's kind of scary
- 8:23Speaker 1: that a single letter can do all. That what does
- 8:26Speaker 1: it look like when you run?
- 8:27Speaker 2: It the screen just starts scrolling, Fast it lists all
- 8:30Speaker 2: the device, ideas it finds THE maac, addresses and just
- 8:33Speaker 2: is sending, death sending death over and.
- 8:35Speaker 1: Over on my, End My netflix just.
- 8:38Speaker 2: Stops Your netflix, stops your music, buffers your emails won't.
- 8:42Speaker 2: Sink Your Wi fi icon might even look like it's,
- 8:45Speaker 2: connected but the actual data connection.
- 8:47Speaker 1: Is dead because you're stuck in that disconnect reconnect. Loop. Exactly,
- 8:50Speaker 1: Wow so this brings us to the so what? Moment
- 8:55Speaker 1: why does this actually matter to someone who isn't planning
- 8:58Speaker 1: on doing this?
- 8:59Speaker 2: Right why should you? Care you should care because this
- 9:01Speaker 2: shows a fundamental weakness in a technology we depend on for.
- 9:05Speaker 2: Everything we all think a super, long complicated password makes us.
- 9:09Speaker 1: Safe but this attack never even tried to guess the.
- 9:12Speaker 2: Password that's the whole. Point it completely bypasses password. Security
- 9:17Speaker 2: you can have the strongest lock on your front, door
- 9:19Speaker 2: but if the protocol itself is gullible enough to believe
- 9:22Speaker 2: anyone with a fake uniform who says everyone out your
- 9:25Speaker 2: lock is.
- 9:25Speaker 1: Useless it's an attack on, trust not an Encryption.
- 9:28Speaker 2: Precisely, now newer standards LIKE wpa three are designed to fix,
- 9:32Speaker 2: this to protect those management commands but just think about
- 9:35Speaker 2: how many billions of devices are still out there running older,
- 9:38Speaker 2: standards smart, plugs old, phones, laptops they are all vulnerable to.
- 9:44Speaker 1: This it definitely changes how you see those Little Wi
- 9:47Speaker 1: fi bars on your. Screen it's not a solid. Connection
- 9:50Speaker 1: it's just a series of polite handshakes that can be
- 9:52Speaker 1: broken by a rude, stranger.
- 9:53Speaker 2: A very fragile social contract between.
- 9:56Speaker 1: Machines so we've covered a ton of. Ground we started
- 9:59Speaker 1: with a headless hunting for ITS ip.
- 10:01Speaker 2: Address and we logged in with those ridiculously simple default
- 10:04Speaker 2: password USING, ssh and then.
- 10:05Speaker 1: We unleashed, chaos first with the blunt force of The
- 10:08Speaker 1: WiFi jamscript and.
- 10:09Speaker 2: Then with the surgical eyes OF mdk.
- 10:11Speaker 1: Three it was a complete. Tour now to make sure
- 10:14Speaker 1: this all sinks in for, you the, listener we have
- 10:17Speaker 1: a little mental, challenge a pop.
- 10:18Speaker 2: Quiz don't, worry it's not.
- 10:20Speaker 1: Graded, okay here's the. Scenario you're at the command. Line
- 10:24Speaker 1: you want to run that manual, attack the clever one
- 10:26Speaker 1: where you pretend to be the. Router we need.
- 10:28Speaker 2: Two key pieces of information from.
- 10:30Speaker 1: You question one to even hear all the network. Traffic
- 10:34Speaker 1: what specific mode does Your Wi fi card? Need to
- 10:37Speaker 1: be In in question, two what is this specific type
- 10:41Speaker 1: of packet you're sending to kick everyone?
- 10:43Speaker 2: Off just think about the rude eavesdropper and the fake
- 10:46Speaker 2: command it's.
- 10:47Speaker 1: Whispering take a, second got?
- 10:48Speaker 2: It the answers are monitor mode for the, adapter and
- 10:51Speaker 2: you are sending touthentication.
- 10:53Speaker 1: Packets if you got, that, Congratulations you now officially understand
- 10:57Speaker 1: more about How Wi fi security works and fails than
- 11:00Speaker 1: about ninety nine percent of the.
- 11:01Speaker 2: Population just use that knowledge, wisely, right and we'll leave.
- 11:06Speaker 1: You with a final. Thought we live our lives surrounded
- 11:09Speaker 1: by these invisible. Signals we trust them, completely but we've
- 11:14Speaker 1: just learned that a thirty five dollars computer can dismantle
- 11:16Speaker 1: that trust in. Seconds so it makes you wonder as
- 11:20Speaker 1: we build smart cities and autonomous cars and fully connected,
- 11:24Speaker 1: homes are we building our future on a foundation of
- 11:27Speaker 1: concrete or on a foundation of, polite gullible.
- 11:30Speaker 2: Handshakes it's a question that keeps a lot of security
- 11:33Speaker 2: people up at, night and.
- 11:34Speaker 1: Maybe i'll keep you up a little bit, Too Tay,
- 11:36Speaker 1: curious stay, ethical and thanks for listening to the Deep.
- 11:39Speaker 2: Dive goodbye, everyone