[GH-ISSUE #2368] documenting interesting .cap file: pcap2john.py does not produce hash #1582

Closed
opened 2026-10-15 04:20:42 +07:00 by bsakaguchi · 4 comments
Owner

Originally created by @AlekseyCherepanov on GitHub (Dec 26, 2016).
Original GitHub issue: https://github.com/openwall/john/issues/2368

In 3DSCTF, an interesting .cap file was given. pcap2john.py does not
produce any output on this file. I am not sure if pcap2john.py has
to produce a hash. The password is RockYousucks.

But hash may be obtained by other ways:

  • wpapcap2john produces hash well.

  • aircrack-ng with option -J produces .hccap file that can be converted to john's format using hccap2john.

That's all with the following output from configure with john 0ceedb24f4:

checking pcap.h usability... no
checking pcap.h presence... no
checking for pcap.h... no
checking pcap/pcap.h usability... no
checking pcap/pcap.h presence... no
checking for pcap/pcap.h... no
checking for pcap.h... (cached) no
checking for pcap/pcap.h... (cached) no
[...]
PCAP (vncpcap2john and SIPdump) ............ no

zechaveiro.cap.zip

Originally created by @AlekseyCherepanov on GitHub (Dec 26, 2016). Original GitHub issue: https://github.com/openwall/john/issues/2368 In 3DSCTF, an interesting .cap file was given. `pcap2john.py` does not produce any output on this file. I am not sure if `pcap2john.py` has to produce a hash. The password is `RockYousucks`. But hash may be obtained by other ways: - `wpapcap2john` produces hash well. - `aircrack-ng` with option `-J` produces .hccap file that can be converted to john's format using `hccap2john`. That's all with the following output from `configure` with john 0ceedb24f4941bd06ce56b31398df19aa633a7c1: ``` checking pcap.h usability... no checking pcap.h presence... no checking for pcap.h... no checking pcap/pcap.h usability... no checking pcap/pcap.h presence... no checking for pcap/pcap.h... no checking for pcap.h... (cached) no checking for pcap/pcap.h... (cached) no [...] PCAP (vncpcap2john and SIPdump) ............ no ``` [zechaveiro.cap.zip](https://github.com/magnumripper/JohnTheRipper/files/673232/zechaveiro.cap.zip)
bsakaguchi 2026-10-15 04:20:42 +07:00
Author
Owner

@kholia commented on GitHub (Dec 27, 2016):

pcap2john.py does not handle WPA by "design". wpapcap2john is the right tool for this job.

<!-- gh-comment-id:269276006 --> @kholia commented on GitHub (Dec 27, 2016): `pcap2john.py` does not handle WPA by "design". `wpapcap2john` is the right tool for this job.
Author
Owner

@magnumripper commented on GitHub (Dec 28, 2016):

This is sort of a problem though. An ideal pcap2john should handle anything we support or AT LEAST point user to another tool. In this case, it could say something like "run wpapcap2john with this file to get WPA output" or whatever.

<!-- gh-comment-id:269405283 --> @magnumripper commented on GitHub (Dec 28, 2016): This is sort of a problem though. An ideal pcap2john should handle anything we support or AT LEAST point user to another tool. In this case, it could say something like "run wpapcap2john with this file to get WPA output" or whatever.
Author
Owner

@kholia commented on GitHub (Dec 28, 2016):

In addition to recognizing WPA stuff, pcap2john would have to be extended to recognize VNC and SIP stuff as well.

<!-- gh-comment-id:269432199 --> @kholia commented on GitHub (Dec 28, 2016): In addition to recognizing WPA stuff, pcap2john would have to be extended to recognize VNC and SIP stuff as well.
Author
Owner

@kholia commented on GitHub (May 17, 2017):

I tried solving this using code but no luck. How about adding a startup message to pcap2john.py which says something like, "Use wpapcap2john instead of me to extract possible WPA handshakes"?

<!-- gh-comment-id:302019153 --> @kholia commented on GitHub (May 17, 2017): I tried solving this using code but no luck. How about adding a startup message to `pcap2john.py` which says something like, "Use wpapcap2john instead of me to extract possible WPA handshakes"?
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#1582
No description provided.