Giter Site home page Giter Site logo

Comments (10)

kc9jud avatar kc9jud commented on June 22, 2024

It might also be helpful to modify docker-entrypoint.sh to give access to the conversion scripts instead of needing to use docker run --entrypoint=....

from john-packages.

claudioandre-br avatar claudioandre-br commented on June 22, 2024

Thank you for participating.

I agree that a new image can be useful but I'm afraid it can be overwhelming, I mean that to be used by all 2john tools we need python, perl, ruby, node and lua. Would this large image be used?

Anyway, we will keep thinking and discussing how users would use it and how we can improve (probably create a new) image.

from john-packages.

kc9jud avatar kc9jud commented on June 22, 2024

Looking through the scripts in https://github.com/openwall/john/tree/bleeding-jumbo/run, it seems we need only Python, Perl, and Ruby. mongodb2john.js is for use with the mongo command from MongoDB (which I don't think we would want to include in an image!) and the network2john.lua is to be run by tshark.

from john-packages.

kc9jud avatar kc9jud commented on June 22, 2024

It looks like adding the scripting languages adds about 54% to the image size:

REPOSITORY                            TAG               IMAGE ID       CREATED          SIZE
ghcr.io/kc9jud/john                   latest-script     7bfefac15c1b   47 seconds ago   386MB
ghcr.io/openwall/john                 latest            bf99e8de2299   12 days ago      251MB

The build log is consistent, with the additional layer being 135.45 MB.

from john-packages.

kc9jud avatar kc9jud commented on June 22, 2024

Reduced to ~90MB.

from john-packages.

claudioandre-br avatar claudioandre-br commented on June 22, 2024

@solardiz, @magnumripper do you guys have anything to say about this?

What would be the best for a random user?

  • wget script.py && python script.py (requires to run pip, sometimes).
  • docker run -v [...] john 2john-tool /host/archive > hashes.txt (requires to be ok with docker tools and to download 300MB).

For example, I do not intend to add "libraries" to distro packages like the Ubuntu snap. The idea is keep everything small and simple as it could be. That said:

  • I use the snap packaged scripts in my machine like /snap/john-the-ripper/current/run/2john-tool archive > hash.txt because it is simple and good to me.
  • I never did the same using the docker image. The syntax would be clunky.

Not a lot of people uses john's Docker image. I agree that a new Docker image aimed only at 2john tools would be interesting because people would have something able to handle all these conversions without any software installation.

[edited]
The question is, is anyone interested in having it?

from john-packages.

magnumripper avatar magnumripper commented on June 22, 2024

I really have no idea. Perhaps raise the topic on john-users and see what response we get?

from john-packages.

solardiz avatar solardiz commented on June 22, 2024

The question is, is anyone interested in having it?

It looks like @kc9jud is? I think it makes sense to listen to the (very few) users we have for this, and especially to prospective contributors.

from john-packages.

claudioandre-br avatar claudioandre-br commented on June 22, 2024

It looks like @kc9jud is?

@kc9jud, please make a PR so we can review and accept it.

from john-packages.

claudioandre-br avatar claudioandre-br commented on June 22, 2024

I'm afraid I want to concentrate on the use case where the executables are the focus, without having to test or worry about installing programming language(s) and packages needed by the 2john tools.

In this way, the packages present in this repository serve to run a real cracking session (safely, sand boxed, without internet access, away from your files/secrets dealing only with a 'hash', ...). All preparation for running john can be done with the help of the package, but that would NOT be the goal.

I regret to inform I'm going to close this as "wontfix".

from john-packages.

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.