Discover Hidden SSID – Scapy

In this article I will talk about how you can find a hidden ssid value with scapy. But there is one thing you should know before that:

  • If you want to discover a hidden SSID, you should analyze the probe requests vs probe response packets.

Because, the SSID value is being sent in probe packets (Response and Request)  for communication

Source Code:

#!/usr/bin/env python

import logging
from scapy.all import *
import argparse

hiddenlist = []

parser = argparse.ArgumentParser(description=helpme)
parser.add_argument('-a', action='store', dest='bssid',
                    help='Hidden Access Point mac address')
parser.add_argument('-i', action='store', dest='iface',
                    help='Interface name (Monitor mode)\n') 
args = parser.parse_args()

hidden = args.bssid
iface  = args.iface

def FindHiddenSSID(pkt):
  if pkt.haslayer(Dot11ProbeResp) and (pkt.addr2).upper() in hiddenlist:
    print " Hidden SSID Broadcast Detected : \n", 
    print "  * MAC Address : ", pkt.addr2
    print "  * SSID info   : ",




Cyber Security Researcher

Discover Hidden SSID – Scapy” hakkında 1 yorum

Bir Cevap Yazın

E-posta hesabınız yayımlanmayacak. Gerekli alanlar * ile işaretlenmişlerdir