{"id":19390601,"url":"https://github.com/mandiant/gocat","last_synced_at":"2025-04-24T00:31:24.901Z","repository":{"id":47109124,"uuid":"191823375","full_name":"mandiant/gocat","owner":"mandiant","description":"Provides access to libhashcat","archived":false,"fork":false,"pushed_at":"2024-04-06T11:45:39.000Z","size":89,"stargazers_count":30,"open_issues_count":6,"forks_count":25,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-02T22:51:13.698Z","etag":null,"topics":["fireeye-flare"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mandiant.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-06-13T19:43:28.000Z","updated_at":"2024-12-13T17:24:16.000Z","dependencies_parsed_at":"2022-09-18T16:24:40.803Z","dependency_job_id":"4220a177-7363-4e19-9999-565fa1b1e60e","html_url":"https://github.com/mandiant/gocat","commit_stats":null,"previous_names":["fireeye/gocat"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mandiant%2Fgocat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mandiant%2Fgocat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mandiant%2Fgocat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mandiant%2Fgocat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mandiant","download_url":"https://codeload.github.com/mandiant/gocat/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250539394,"owners_count":21447300,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["fireeye-flare"],"created_at":"2024-11-10T10:22:07.488Z","updated_at":"2025-04-24T00:31:21.225Z","avatar_url":"https://github.com/mandiant.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gocat\n\ngocat is a cgo library for interacting with libhashcat. gocat enables you to create purpose-built password cracking tools that leverage the capabilities of [hashcat](https://hashcat.net/hashcat/).\n\nBelow is a matrix that details which versions of hashcat we support:\n\n| Branch        | Hashcat Version | Go Import                     |\n| ------------- | --------------- | ----------------------------- |\n| `master `     | `v6.1.1`        | `github.com/mandiant/gocat/v6` |\n| `v5`          | `v5.X`          | `github.com/fireeye/gocat`    |\n\n\n## Installation (Please Read)\n\ngocat requires hashcat [v6.X](https://github.com/hashcat/hashcat/releases) or higher to be compiled as a shared library. This can be accomplished by modifying hashcat's `src/Makefile` and setting `SHARED` to `1` . At this time, we also recommend disabling the brain functionality by setting `ENABLE_BRAIN` to `0`\n\n    git clone https://github.com/hashcat/hashcat.git\n    git checkout v6.1.1\n    make install SHARED=1 ENABLE_BRAIN=0\n    cp deps/LZMA-SDK/C/LzmaDec.h /usr/local/include/hashcat/\n    cp deps/LZMA-SDK/C/7zTypes.h /usr/local/include/hashcat/\n    cp deps/LZMA-SDK/C/Lzma2Dec.h /usr/local/include/hashcat/\n    cp -r ./OpenCL/inc_types.h /usr/local/include/hashcat/\n    cp -r ./deps/zlib/contrib /usr/local/include/hashcat\n    ln -s /usr/local/lib/libhashcat.so.6.1.1 /usr/local/lib/libhashcat.so\n\nAt this time, you will also need to set the following environment variables when compiling code that uses this library:\n\n    $ export HASHCAT_SRC_PATH=\u003cPlace path here\u003e\n    $ export CGO_CFLAGS=\"-I$HASHCAT_SRC_PATH/OpenCL -I$HASHCAT_SRC_PATH/deps/LZMA-SDK/C -I$HASHCAT_SRC_PATH/deps/zlib -I$HASHCAT_SRC_PATH/deps/zlib/contrib -I$HASHCAT_SRC_PATH/deps/OpenCL-Headers $CGO_CFLAGS\"\n\n## Testing\n\ngocat tests need to be run from the `/usr/local/share/hashcat/` directory to access all of the shared files needed for testing.\n\n    go test -c\n    cp gocat.test /usr/local/share/hashcat\n    cp -r testdata /usr/local/share/hashcat\n    /usr/local/share/hashcat/gocat.test\n\n## Known Issues\n\n* Lack of Windows Support: This won't work on windows as I haven't figured out how to build hashcat on windows\n* Memory Leaks: hashcat has several (small) memory leaks that could cause increase of process memory over time\n\n## Contributing\n\nContributions are welcome via pull requests provided they meet the following criteria:\n\n1. One feature or bug fix per PR\n1. Code should be properly formatted (using go fmt)\n1. Tests coverage should rarely decrease. All new features should have proper coverage\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmandiant%2Fgocat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmandiant%2Fgocat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmandiant%2Fgocat/lists"}