Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pcap2john.py: improvements for htdigest, gadu, cleanup #5508

Merged
merged 3 commits into from
Jul 7, 2024

Conversation

exploide
Copy link
Contributor

@exploide exploide commented Jul 7, 2024

Some enhancements for pcap2john.py.

  • Rewrote pcap_parser_htdigest function to use scapy for parsing. Prior to this change, it was crashing on pcapng files (as opposed to pcap). Furthermore, it was not compatible with Python 3, now it is. While I was at it, I decided to print Basic Auth credentials directly to stderr. Could be interesting too, but no cracking required. Renamed the function to pcap_parser_http_authorization in this course. Since there was no example file for testing I created Added example capture for HTTP Authorization header john-samples#26.

  • A cleanup commit removes an annoying call to sleep and adds a few comments.

  • Accidentally, I discovered pcap_parser_gadu was not compatible with Python 3, now it is. I refactored the function a bit to make it more conformant to the remainder of the script. Tested with the available sample files.

…ization

the prior implementation was not compatible with python3 and crashed on pcapng files.
the new implementation also outputs basic auth credentials.
@solardiz solardiz merged commit 19d731b into openwall:bleeding-jumbo Jul 7, 2024
31 of 32 checks passed
@solardiz
Copy link
Member

solardiz commented Jul 7, 2024

Thank you very much for your contributions, @exploide!

@exploide exploide deleted the pcap branch July 7, 2024 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants