Wireshark-dev: [Wireshark-dev] R: [Wireshark-commits] rev 20318: /trunk/epan/dissectors/ /trunk
From: "Davide Schiera" <davide.schiera@xxxxxxxxx>
Date: Mon, 8 Jan 2007 20:18:21 +0100

DS>-----Messaggio originale-----
DS>Da: wireshark-dev-bounces@xxxxxxxxxxxxx [mailto:wireshark-dev-
DS>bounces@xxxxxxxxxxxxx] Per conto di Gerald Combs
DS>Inviato: lunedì 8 gennaio 2007 20.09
DS>A: Developer support list for Wireshark
DS>Oggetto: Re: [Wireshark-dev] [Wireshark-commits] rev 20318:
DS>/trunk/epan/dissectors/ /trunk/epan/dissectors/: packet-ieee80211.c
DS>
DS>Joerg Mayer wrote:
DS>> On Sun, Jan 07, 2007 at 10:28:46PM -0800, Gerald Combs wrote:
DS>>>>>  Don't lower-case our SSID and passphrase, otherwise we'll create an
DS>>>>>  incorrect PSK hash.
DS>>>> The code still makes another mistake: The SSID is not a string - it's
DS>a
DS>>>> binary object which may even contain 0x00 in the middle. The current
DS>>>> airpcap code doesn't provide for that.
DS>>> True.  The workarounds right now are to either omit the SSID (in which
DS>>> case the passphrase will be matched against every SSID), or to use the
DS>>> PSK hash directly, e.g. "wpa-pwd:MyPassword" or "wpa-psk:01020304...".
DS>>> Is this sufficient, or should we add support for a hexadecimal form of
DS>>> the SSID?
DS>>
DS>> I'd like to have a binary way of entering them too. Maybe just
DS>> \x53\0x53\x49\x44\x20\x57\x49\x54\x48\0x00\x49\x4e\x53\x49\x44\x45
DS>> would be OK. Of course, the ssid pref handling would still need to
DS>> be fixed.
DS>
DS>Would a separate prefix for a text passphrase plus a hex SSID work?
DS>Your example above would be represented as
DS>"wpa-phx:MyPassword:53534944205749544800494e53494445".

What about "wpa-phx:MyPassword:SSID WITH\x00INSIDE"?
And for the ":" -> "\x3A" or \:"?


Davide

DS>
DS>BTW, a passphrase containing a colon (:) isn't allowed with the current
DS>wpa-pwd form.  We'll probably want to fix that.
DS>_______________________________________________
DS>Wireshark-dev mailing list
DS>Wireshark-dev@xxxxxxxxxxxxx
DS>http://www.wireshark.org/mailman/listinfo/wireshark-dev