MIC computation wpa_supplicant -> python script
seb2 at gmx.at
Sun Mar 3 10:45:18 PST 2013
Hello Mailing List!
I am trying to write a script, that produces a wpa 4 way handshake, but unfortunatelly the MIC fails to compute. I think I am doing it correct, with the correct input (I reference to the following page):
This is the relevant Python code:
mic = hmac.new(ptk[0:16],data)
print "mic: " + mic.hexdigest() + "\n"
Where hmac.new is taken from the hmac lib:
Further, I am sure that the PTK is correct, since I confirmed it by using cowPatty...
This is my 802.1x data:
This would be the whole packet:
The MIC that Wireshark calculates is:
The MIC that I calculate is:
I hope, that I have found the right mailing list now (after I tried some programming boards- without success...)
More information about the Hostap