[GH-ISSUE #2276] wpapcap2john is unable to extract hashes from the attached .pcap file #1522

Closed
opened 2026-10-15 04:19:23 +07:00 by bsakaguchi · 5 comments
Owner

Originally created by @kholia on GitHub (Sep 16, 2016).
Original GitHub issue: https://github.com/openwall/john/issues/2276

wpa_psk.cap.zip

Originally created by @kholia on GitHub (Sep 16, 2016). Original GitHub issue: https://github.com/openwall/john/issues/2276 [wpa_psk.cap.zip](https://github.com/magnumripper/JohnTheRipper/files/476869/wpa_psk.cap.zip)
bsakaguchi 2026-10-15 04:19:23 +07:00
Author
Owner

@magnumripper commented on GitHub (Sep 16, 2016):

$ tshark -r wpa_psk.cap
  1   0.000000 AsustekC_de:23:3f -> IntelCor_e3:18:3a 802.11 98 Probe Response, SN=1731, FN=0, Flags=........, BI=100, SSID=Z
  2   0.008192 AsustekC_de:23:3f -> IntelCor_e3:18:3a 802.11 38 Authentication, SN=1732, FN=0, Flags=........
  3   0.008718 IntelCor_e3:18:3a -> AsustekC_de:23:3f 802.11 30 Authentication, SN=0, FN=0, Flags=....R...
  4   0.009216 AsustekC_de:23:3f -> IntelCor_e3:18:3a 802.11 38 Authentication, SN=1733, FN=0, Flags=........
  5   0.011264 AsustekC_de:23:3f -> IntelCor_e3:18:3a 802.11 54 Association Response, SN=1734, FN=0, Flags=........
  6   0.012288 AsustekC_de:23:3f -> IntelCor_e3:18:3a EAPOL 131 Key (Message 1 of 4)
  7   0.018956 IntelCor_e3:18:3a -> AsustekC_de:23:3f EAPOL 37 Start
  8   0.019980 IntelCor_e3:18:3a -> AsustekC_de:23:3f EAPOL 157 Key (Message 2 of 4)
  9   0.022540 IntelCor_e3:18:3a -> AsustekC_de:23:3f EAPOL 131 Key (Message 4 of 4)
 10   0.335434 IntelCor_e3:18:3a -> Broadcast    802.11 380 Data, SN=6, FN=0, Flags=.p.....T
 11   0.343114 IntelCor_e3:18:3a -> Broadcast    802.11 394 Data, SN=7, FN=0, Flags=.p.....T
 12   0.388684 IntelCor_e3:18:3a -> Broadcast    802.11 80 Data, SN=8, FN=0, Flags=.p..R..T
 13   0.499774 IntelCor_e3:18:3a -> Broadcast    802.11 380 Data, SN=1745, FN=0, Flags=.pm...F.
 14   0.503360 IntelCor_e3:18:3a -> Broadcast    802.11 394 Data, SN=1746, FN=0, Flags=.pm...F.
 15   0.504384 IntelCor_e3:18:3a -> Broadcast    802.11 80 Data, SN=1747, FN=0, Flags=.p....F.
 16   0.977993 IntelCor_e3:18:3a -> Broadcast    802.11 80 Data, SN=9, FN=0, Flags=.p.....T
 17   1.111625 IntelCor_e3:18:3a -> Broadcast    802.11 80 Data, SN=1754, FN=0, Flags=.p....F.

Seems to be missing message 3/4. Can't remember right now but we might be able to do fine without it.

<!-- gh-comment-id:247602786 --> @magnumripper commented on GitHub (Sep 16, 2016): ``` $ tshark -r wpa_psk.cap 1 0.000000 AsustekC_de:23:3f -> IntelCor_e3:18:3a 802.11 98 Probe Response, SN=1731, FN=0, Flags=........, BI=100, SSID=Z 2 0.008192 AsustekC_de:23:3f -> IntelCor_e3:18:3a 802.11 38 Authentication, SN=1732, FN=0, Flags=........ 3 0.008718 IntelCor_e3:18:3a -> AsustekC_de:23:3f 802.11 30 Authentication, SN=0, FN=0, Flags=....R... 4 0.009216 AsustekC_de:23:3f -> IntelCor_e3:18:3a 802.11 38 Authentication, SN=1733, FN=0, Flags=........ 5 0.011264 AsustekC_de:23:3f -> IntelCor_e3:18:3a 802.11 54 Association Response, SN=1734, FN=0, Flags=........ 6 0.012288 AsustekC_de:23:3f -> IntelCor_e3:18:3a EAPOL 131 Key (Message 1 of 4) 7 0.018956 IntelCor_e3:18:3a -> AsustekC_de:23:3f EAPOL 37 Start 8 0.019980 IntelCor_e3:18:3a -> AsustekC_de:23:3f EAPOL 157 Key (Message 2 of 4) 9 0.022540 IntelCor_e3:18:3a -> AsustekC_de:23:3f EAPOL 131 Key (Message 4 of 4) 10 0.335434 IntelCor_e3:18:3a -> Broadcast 802.11 380 Data, SN=6, FN=0, Flags=.p.....T 11 0.343114 IntelCor_e3:18:3a -> Broadcast 802.11 394 Data, SN=7, FN=0, Flags=.p.....T 12 0.388684 IntelCor_e3:18:3a -> Broadcast 802.11 80 Data, SN=8, FN=0, Flags=.p..R..T 13 0.499774 IntelCor_e3:18:3a -> Broadcast 802.11 380 Data, SN=1745, FN=0, Flags=.pm...F. 14 0.503360 IntelCor_e3:18:3a -> Broadcast 802.11 394 Data, SN=1746, FN=0, Flags=.pm...F. 15 0.504384 IntelCor_e3:18:3a -> Broadcast 802.11 80 Data, SN=1747, FN=0, Flags=.p....F. 16 0.977993 IntelCor_e3:18:3a -> Broadcast 802.11 80 Data, SN=9, FN=0, Flags=.p.....T 17 1.111625 IntelCor_e3:18:3a -> Broadcast 802.11 80 Data, SN=1754, FN=0, Flags=.p....F. ``` Seems to be missing message 3/4. Can't remember right now but we might be able to do fine without it.
Author
Owner

@magnumripper commented on GitHub (Sep 16, 2016):

Seems to be missing message 3/4

That was not it. The file seems to be lacking beacons. We already have functionality to add it with a command line option:

$ ../run/wpapcap2john -e Z:00:11:2f:de:23:3f wpa_psk.cap
Manually adding ESSID 'Z' BSSID '00:11:2F:DE:23:3F'
wpa_psk.cap: raw 802.11

Key1/Key2 hit (unverified), for ESSID:Z (wpa_psk.cap)
Dumping key 1 at time:  0.19980 BSSID 00:11:2F:DE:23:3F  ESSID=Z
unVerified key stored, pending verification
Dumping 1 unverified keys, which were not verified
Z:$WPAPSK$Z#./2jrWAz./A0slUu0CU/CtXciS4KQZEZDXYJlfTuOoLKvZwR.TzncMUPulvqaJCcenk47kNr2WzLY9LA61HBHLjerBmvGIBovmZUHU21.5by.EY.............0CU/CtXciS4KQZEZDXYJlfTuOoLKvZwR.TzncMUPuls.................................................................4hoM.31m.E2..31m.U2..31m.U2..31m.Xk.............................................................................................................................................................................../x.....E...58NX8d9HeI88oqjAPcaBkU:00-11-2f-de-23-3f:00-13-02-e3-18-3a:00112fde233f::WPA:password not verified:wpa_psk.cap

However, that ESSID:BSSID info is present in the file, just not as a beacon. So we should enhance wpapcap2john so it can use that probe response (1st packet).

<!-- gh-comment-id:247604081 --> @magnumripper commented on GitHub (Sep 16, 2016): > Seems to be missing message 3/4 That was not it. The file seems to be lacking beacons. We already have functionality to add it with a command line option: ``` $ ../run/wpapcap2john -e Z:00:11:2f:de:23:3f wpa_psk.cap Manually adding ESSID 'Z' BSSID '00:11:2F:DE:23:3F' wpa_psk.cap: raw 802.11 Key1/Key2 hit (unverified), for ESSID:Z (wpa_psk.cap) Dumping key 1 at time: 0.19980 BSSID 00:11:2F:DE:23:3F ESSID=Z unVerified key stored, pending verification Dumping 1 unverified keys, which were not verified Z:$WPAPSK$Z#./2jrWAz./A0slUu0CU/CtXciS4KQZEZDXYJlfTuOoLKvZwR.TzncMUPulvqaJCcenk47kNr2WzLY9LA61HBHLjerBmvGIBovmZUHU21.5by.EY.............0CU/CtXciS4KQZEZDXYJlfTuOoLKvZwR.TzncMUPuls.................................................................4hoM.31m.E2..31m.U2..31m.U2..31m.Xk.............................................................................................................................................................................../x.....E...58NX8d9HeI88oqjAPcaBkU:00-11-2f-de-23-3f:00-13-02-e3-18-3a:00112fde233f::WPA:password not verified:wpa_psk.cap ``` However, that ESSID:BSSID info **is** present in the file, just not as a beacon. So we should enhance wpapcap2john so it can use that probe response (1st packet).
Author
Owner

@magnumripper commented on GitHub (Sep 16, 2016):

Dumping 1 unverified keys, which were not verified

Pretty silly message 😆

<!-- gh-comment-id:247604924 --> @magnumripper commented on GitHub (Sep 16, 2016): > `Dumping 1 unverified keys, which were not verified` Pretty silly message 😆
Author
Owner

@jfoug commented on GitHub (Sep 16, 2016):

You have to love the Easter eggs I always dump out there ;)

<!-- gh-comment-id:247607337 --> @jfoug commented on GitHub (Sep 16, 2016): You have to love the Easter eggs I always dump out there ;)
Author
Owner

@magnumripper commented on GitHub (Sep 19, 2016):

I could crack the sample after 47d00bc, using wpapcap2john with no extra options.

<!-- gh-comment-id:248114486 --> @magnumripper commented on GitHub (Sep 19, 2016): I could crack the sample after 47d00bc, using wpapcap2john with no extra options.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
openwall/john#1522
No description provided.