openwall / john-packages

Community packages of John the Ripper, the auditing tool and advanced offline password cracker (Docker images, Windows PortableApp, Mac OS, Flatpak, and Ubuntu SNAP packages)
https://www.openwall.com/john/
GNU General Public License v2.0
101 stars 17 forks source link

[FEAT]: activate OpenCL for the flatpak application #499

Open claudioandre-br opened 2 months ago

claudioandre-br commented 2 months ago

Description

Currently, OpenCL flatpak works (could work [1]) for the CPU [2].

At the moment, the only way to use a john "containerized package" with GPU access is via Docker. Offering access to all important john resources securely via flapak [3] is something that offers value to the end user.

It seems this is/will be possible soon (at least for NVIDIA): https://gitlab.com/freedesktop-sdk/freedesktop-sdk/-/issues/1535

[1] OpenCL is disabled in flatpak binaries. [2] I've tested it a bit, but unfortunately I don't own any suitable hardware. I've never tested it with a GPU. [3] I mean, OpenCL in a sandboxed app.

Alternatives Considered

No response

Additional Context

Deploy john with OpenCL support in a secure, sandboxed and containerized way will allow users to use the full power of the tool, protected against a good number of flaws that may exist in the binary during the development process.

claudioandre-br commented 1 month ago

See https://github.com/flathub/com.openwall.John/pull/13