Detecting Wi-Fi de-authentication Attack With Dakhund

Faik Sevim
2 min readNov 1, 2023

--

Have you ever had one of those moments where your WiFi suddenly drops, and you’re like, “Why, universe, why?!” 🤯 I did. But instead of ranting about it on Twitter, I rolled up my sleeves and built something cool. Say hello to My Dakhund Application! 🚀

Created by DALL·E 3

What’s this Magic Called ‘Packet Sniffing’? 🐕🔍

Imagine your dog trying to sniff out where that delicious cookie smell is coming from. Packet sniffing is the digital version of that! We’re trying to find out who’s talking to whom on a network. And if they’re saying anything interesting (or suspicious).

Purpose of My Creation 🎯

This application doesn’t just sit there; it serves a bigger purpose:

  1. Sniffing Deauth Packets: Yup, we can see if someone’s trying to mess with device connections.
  2. WiFi Signal Strength: It’s like having a weather report, but for WiFi.

Under the Hood: How it Rolls 🚗

  1. Monitor Mode: We’re eavesdropping on all the chatter happening on the WiFi network. But, in a non-creepy way!
  2. A Web Interface: Because why not? It shows Deauth packets and their timestamps. It’s like a live tweet of your network happenings.
  3. Signal Strength Monitoring: This part shows how strong (or weak) the connection is between two devices. Think of it as the friendship level between them.
  4. API Notification: If there’s a lot of Deauth chatter in a short time, we’re like, “Hey, that’s fishy!” and the app will notify an external API.

Diving into the Code 🕵️‍♂️

We leverage Flask, a micro web framework in Python. With the use of scapy, a powerful packet manipulation tool, we can:

  • Listen to packets.
  • Analyze if they’re Deauth packets.
  • Check the signal strength. Oh, and it’s threaded! Multiple tasks happen simultaneously without stepping on each other’s toes.

Use Cases 🎒

This isn’t just a nerdy tool. It’s a superpower for:

  1. Network Admins: Know your network, and know it well.
  2. Cybersecurity Buffs: Keep an eye out for those sneaky attacks.
  3. WiFi Quality Control: Never blame the ISP without reason again!

To Infinity and Beyond! 🚀

This was my deep dive into the fascinating world of packets and networks. There’s a whole universe out there, and trust me, it’s not silent. It’s buzzing with packets, signals, and hidden stories.

So, the next time your WiFi acts funny, don’t just restart the router. Maybe, just maybe, make your packet sniffer and uncover the mysteries of the wireless realm!

For technical details please visit my Github : Dakhund

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

No responses yet

Write a response