Git Product home page Git Product logo

Comments (4)

skelsec avatar skelsec commented on July 22, 2024

I do not see the reason why you want to parse the "logfiles" (assuming you mean the default text output), can you clarify?
I have added --json and --grep output options specifically for parsing the output programmatically. Is there a problem parsing those?

from pypykatz.

voidnecron avatar voidnecron commented on July 22, 2024

Edit: I didn't know about the --grep flag (It doesn't show up in -h either?) but this is nice! Thanks for the pointer.

TL;DR: Pypykatz output is a different syntax as Mimikatz (For instance NT: for pypykatz; * NTLM: for mimikatz) and therefor my regex fails for extracting needed parts (username, password, domain, NTLM hash).

I dug a little deeper and found it wasn't (only) because of the missing CRLF lines, but the output created by Pypykatz is different from Mimikatz.
Reason I do this is to automate the process as much as possible, by dropping a lsass memory dumpfile a cronjob will run which executes pypykatz (lsa minidump $inputfile -o $outfile).
After this a second part will execute, the parser, which extracts usernames with cleartext credentials in one file, and usernames with NTLM hashes in a second file. The cleartext credentials will be put in the dictionary file. The second file will be fed to Hashcat to be cracked.

from pypykatz.

skelsec avatar skelsec commented on July 22, 2024

The grep flag does show up in the help. pypykatz lsa -h
The normal text output was not meant for automatic parsing, JSON output is the one that has all the information in a structured manner -except for the kerberos tickets-, please use that.
pypykatz's output was never intended to mimic minikatz's output.

from pypykatz.

voidnecron avatar voidnecron commented on July 22, 2024

Thanks for your patience and explanations! Appreciate your time and effort!

from pypykatz.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.