[GH-ISSUE #1380] Kerberos - pcap2john.py #873

Closed
opened 2026-10-14 03:26:21 +07:00 by bsakaguchi · 13 comments
Owner

Originally created by @FrankSpierings on GitHub (Jun 4, 2015).
Original GitHub issue: https://github.com/openwall/john/issues/1380

pcap2john.py receives a pcap file, but in function pcap_parser_krbpa it expects a .pdml file. This obviously will never result in a win, for this part of the code.

Originally created by @FrankSpierings on GitHub (Jun 4, 2015). Original GitHub issue: https://github.com/openwall/john/issues/1380 pcap2john.py receives a pcap file, but in function pcap_parser_krbpa it expects a .pdml file. This obviously will never result in a win, for this part of the code.
bsakaguchi 2026-10-14 03:26:21 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@magnumripper commented on GitHub (Jun 5, 2015):

Ouch. Thanks for reporting. We once had a krbpa2john that was accidentally incorporated into pcap2john.

@kholia can this be rewritten to read pcap? Or do we need to strip this from pcap2john and restore the old krbpa2john tool?

<!-- gh-comment-id:109100598 --> @magnumripper commented on GitHub (Jun 5, 2015): Ouch. Thanks for reporting. We once had a krbpa2john that was accidentally incorporated into pcap2john. @kholia can this be rewritten to read pcap? Or do we need to strip this from pcap2john and restore the old krbpa2john tool?
Author
Owner

@FrankSpierings commented on GitHub (Jun 5, 2015):

magnum,

I think I will be able to rewrite the code, since there are more problems. My tshark, seems to use different names. So it will probably be better to use the pcap format. But I need some sample captures. Also to be sure, I need that other (cracking) issue fixed (or at least know whats missing).

<!-- gh-comment-id:109167925 --> @FrankSpierings commented on GitHub (Jun 5, 2015): magnum, I think I will be able to rewrite the code, since there are more problems. My tshark, seems to use different names. So it will probably be better to use the pcap format. But I need some sample captures. Also to be sure, I need that other (cracking) issue fixed (or at least know whats missing).
Author
Owner

@kholia commented on GitHub (Jun 5, 2015):

@FrankSpierings thanks for taking a look! I will try to find some sample .pcap files!

@magnumripper restoring the old file might be a good idea (for now).

<!-- gh-comment-id:109176789 --> @kholia commented on GitHub (Jun 5, 2015): @FrankSpierings thanks for taking a look! I will try to find some sample .pcap files! @magnumripper restoring the old file might be a good idea (for now).
Author
Owner

@magnumripper commented on GitHub (Jun 5, 2015):

There are sample pcaps in http://openwall.info/wiki/john/sample-non-hashes?&#Kerberos-v5-Pre-Authentication

And here's the writeup I think I used when writing the format way back in 2011 or something:
http://www.securiteam.com/windowsntfocus/5BP0H0A6KM.html

<!-- gh-comment-id:109180676 --> @magnumripper commented on GitHub (Jun 5, 2015): There are sample pcaps in http://openwall.info/wiki/john/sample-non-hashes?&#Kerberos-v5-Pre-Authentication And here's the writeup I think I used when writing the format way back in 2011 or something: http://www.securiteam.com/windowsntfocus/5BP0H0A6KM.html
Author
Owner

@FrankSpierings commented on GitHub (Jun 5, 2015):

The following will extract the kerberos hashes correctly:
https://github.com/lgandx/PCredz/

Maybe better to not reinvent the wheel?

<!-- gh-comment-id:109202659 --> @FrankSpierings commented on GitHub (Jun 5, 2015): The following will extract the kerberos hashes correctly: https://github.com/lgandx/PCredz/ Maybe better to not reinvent the wheel?
Author
Owner

@kholia commented on GitHub (Jun 5, 2015):

@FrankSpierings great find (again). I will pull stuff from "PCredz" now.

<!-- gh-comment-id:109203018 --> @kholia commented on GitHub (Jun 5, 2015): @FrankSpierings great find (again). I will pull stuff from "PCredz" now.
Author
Owner

@FrankSpierings commented on GitHub (Jun 5, 2015):

Excellent! thanks!

<!-- gh-comment-id:109203125 --> @FrankSpierings commented on GitHub (Jun 5, 2015): Excellent! thanks!
Author
Owner

@kholia commented on GitHub (Jun 5, 2015):

@FrankSpierings ;(

https://github.com/lgandx/PCredz/blob/master/Pcredz#L171 looks super shaky, and doesn't work on our sample files (in fact, it shouldn't work at all).

<!-- gh-comment-id:109212773 --> @kholia commented on GitHub (Jun 5, 2015): @FrankSpierings ;( https://github.com/lgandx/PCredz/blob/master/Pcredz#L171 looks super shaky, and doesn't work on our sample files (in fact, it shouldn't work at all).
Author
Owner

@FrankSpierings commented on GitHub (Jun 5, 2015):

I see what you mean. It did work for my own captures. I'll have a look at what we can fix with scapy.

<!-- gh-comment-id:109214508 --> @FrankSpierings commented on GitHub (Jun 5, 2015): I see what you mean. It did work for my own captures. I'll have a look at what we can fix with scapy.
Author
Owner

@kholia commented on GitHub (Jun 5, 2015):

@FrankSpierings I don't think that it can work with "kerberos" packets at all! it doesn't even extract the "encrypted timestamp" from the packets.

<!-- gh-comment-id:109215268 --> @kholia commented on GitHub (Jun 5, 2015): @FrankSpierings I don't think that it can work with "kerberos" packets at all! it doesn't even extract the "encrypted timestamp" from the packets.
Author
Owner

@FrankSpierings commented on GitHub (Jun 6, 2015):

It's not as dodgy as it seems. I'm currently adding code to detect the sample hashes, using PCredz. Standby ;)

<!-- gh-comment-id:109565117 --> @FrankSpierings commented on GitHub (Jun 6, 2015): It's not as dodgy as it seems. I'm currently adding code to detect the sample hashes, using PCredz. Standby ;)
Author
Owner

@kholia commented on GitHub (Jun 6, 2015):

@FrankSpierings does commit c03a665663 work for you?

<!-- gh-comment-id:109654402 --> @kholia commented on GitHub (Jun 6, 2015): @FrankSpierings does commit c03a665663108f4ddded23df4ae4beb1699730a7 work for you?
Author
Owner

@kholia commented on GitHub (Jun 9, 2015):

Things should be working now (with all the multiple recent commits).

<!-- gh-comment-id:110338693 --> @kholia commented on GitHub (Jun 9, 2015): Things should be working now (with all the multiple recent commits).
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#873
No description provided.