mirror of
https://github.com/openwall/john.git
synced 2026-12-03 20:43:49 +07:00
[GH-ISSUE #2299] krbpa2john.py fix for broken user extraction #1538
Labels
No labels
bug
core branch
documentation
enhancement
enhancement
fixed - pending verify
fuzz bug
good first issue
invalid
invalid
maintenance/cleanup
new cracking mode
new format
new tool
non-trivial
notes/external issues
portability
question
RFC / discussion
testing
WONTFIX
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
openwall/john#1538
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ghostop14 on GitHub (Oct 6, 2016).
Original GitHub issue: https://github.com/openwall/john/issues/2299
Originally assigned to: @kholia on GitHub.
Recently the tshark conversion of pcap files was failing on Kali rolling when extracting the user field from the packets. Some troubleshooting found that the field name has changed in the pdml output.
In krbpa2john.py, the field name "kerberos.KerberosString" should be changed to "kerberos.CNameString" in the line:
r = msg.xpath('.//field[@name="kerberos.req_body_element"]//field[@name="kerberos.KerberosString"]') or msg.xpath('.//field[@name="kerberos.kdc_req_body"]//field[@name="kerberos.name_string"]')
@magnumripper commented on GitHub (Oct 6, 2016):
Thanks for reporting. Would this change break older stuff?
@ghostop14 commented on GitHub (Oct 6, 2016):
Possibly. It may be best to add it as an additional "or" clause for
backward compatibility. It just showed up as an issue in Kali rolling
within the past few months. I had just used the script back in August as
it is in the git repo and it had worked fine, so something's changed,
possibly in tshark since then to produce the field name change.
On Thu, Oct 6, 2016 at 3:07 PM, magnum notifications@github.com wrote:
@magnumripper commented on GitHub (Oct 6, 2016):
@kholia will you do this please? I'd probably just break something 😝
@kholia commented on GitHub (Oct 7, 2016):
This code is quite fragile due to its dependency on tshark (which keeps changing its field names). I have already spent quite some time on this program.
@ghostop14 Does the following patch work for you on Kali Linux?
@ghostop14 commented on GitHub (Oct 8, 2016):
Yes worked great. Thanks!
On Fri, Oct 7, 2016 at 1:20 AM, Dhiru Kholia notifications@github.com
wrote: