mirror of
https://github.com/openwall/john.git
synced 2026-12-03 20:43:49 +07:00
[GH-ISSUE #2118] Create a Snappy Ubuntu package for JtR #1414
Labels
No labels
bug
core branch
documentation
enhancement
enhancement
fixed - pending verify
fuzz bug
good first issue
invalid
invalid
maintenance/cleanup
new cracking mode
new format
new tool
non-trivial
notes/external issues
portability
question
RFC / discussion
testing
WONTFIX
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
openwall/john#1414
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ghost on GitHub (Apr 17, 2016).
Original GitHub issue: https://github.com/openwall/john/issues/2118
So, when we have this available, users can install JtR via Ubuntu Store.
[1] Ubuntu 16.04 LTS introduces the snappy Ubuntu Core experience to the desktop by allowing you to create, install and distribute snaps (snappy apps).
@ghost commented on GitHub (Apr 17, 2016):
Thinking loud:
@ghost commented on GitHub (Apr 17, 2016):
Ubuntu Core (150MB download) running inside kvm.
$ ./john -test=0
[...]
All 343 formats passed self-tests!
The basic stuff works fine, but the overall quality is low. Anyway, when the environment matures, it might be very useful.
$ kvm -m 512 -redir :8090::80 -redir :8022::22 ubuntu-snappy-amd64.img &
$ scp -CP 8022 JtR/*.snap ubuntu@localhost:~
$ ssh -p 8022 ubuntu@localhost
$ sudo snappy install john-the-ripper_1.8.0-Jumbo-2.dev_amd64.snap
@ghost commented on GitHub (Apr 18, 2016):
@ghost commented on GitHub (Apr 19, 2016):
@ghost commented on GitHub (Apr 19, 2016):
the overall quality is lowis a wrong statement. The real problems is the package system.@ghost commented on GitHub (Apr 24, 2016):
Working:
architecturesusable? Find someone eager to try JtR on PI.@ghost commented on GitHub (May 7, 2016):
Just in case something unexpected appears on john-users:
The package itself works (real-world tests needed). No announcement done or planned for a while.
@solardiz commented on GitHub (May 8, 2016):
Claudio, I just want to let you know that I appreciate your work on this. Thank you!
@ghost commented on GitHub (May 10, 2016):
@magnumripper commented on GitHub (May 10, 2016):
Using dlopen for OpenCL would take a fair amount of work but is definitely doable (Hashkill does that).
Now that I think about it, doing the same for MPI should be much easier. I'll open issues for these.
@ghost commented on GitHub (May 10, 2016):
This make sense and is going to be very useful. If you use a fallback executable, it can be much easier, no?
(I might be confused about the real challenge here).
BTW:
Keep this in mind to make your final decision.
@magnumripper commented on GitHub (May 10, 2016):
Wow that is a quick solution... and it should work just fine. I never thought of that!
@magnumripper commented on GitHub (May 10, 2016):
On the other hand we've been discussing doing the opposite: Include code for SSE2/3/4.1, AVX, AVX2 and whatnot in a single binary, that picks code path at run time. That together with real use of
dlopen()for OpenCL and MPI (and perhaps librexgen etc.) would provide a single binary capable of most anything. It would be a bit fatter though.@ghost commented on GitHub (May 10, 2016):
The ugly
The other path (one binary for everything) has pros and cons. An important: Invasive. Could frighten people.
@magnumripper commented on GitHub (May 10, 2016):
We currently have SSE2, SSSE3, SSE4.1, AVX and AVX2 on one hand, and OMP/non-OMP on the other. That's 2x5 == 10 combinations. Adding AVX512, OpenCL and MPI to the mix will mean 2x2x2x6 == 48 combinations... not to mention the time for building them.
@magnumripper commented on GitHub (May 10, 2016):
But for this Snappy thing (which I have yet to get acquainted with) like you said you can just build with OpenCL and MPI support and ensure the run-time libs are included. The functionality will not hurt at all even if unused.
@ghost commented on GitHub (May 10, 2016):
If you need to try it yourself (disclaimer: Ubuntu Core 16.04 is under construction, you will notice that the welcome message is simply wrong).
On a deb base system
$ sudo apt-get install qemu-kvmOn Fedora (my guess)
# yum install kvmOn the fancy OS
no ideaObtain Ubuntu Core image (200MB)
Launch the VM
$ kvm -m 512 -redir :8022::22 amd64-all-snap.img &Access the VM (user and password are "ubuntu")
$ ssh -p 8022 ubuntu@localhostInstall JtR (70MB)
$ sudo snap install john-the-ripperTest if John is working properly
$ john-the-ripper -test=0Obs: John the Ripper Jumbo with CPU and OpenMP fallback.
@ghost commented on GitHub (May 13, 2016):
John the Ripper Jumbo with:
@frank-dittrich commented on GitHub (May 14, 2016):
What happens if you run
--test=0?Will john try to test opencl formats (and fail)?
Should OpenCL formats be listed only
I.e., do we need to adjust the output of
--list=formats,--list=format-details, an may be thein the
--list=hidden-options output?This might be useful for bash completion, for johnny (the gui) or just for somehow letting the jtrTestSuite know that opencl formats can't be tested.
Time to add a
--list=runtime-infoto the hidden options?@ghost commented on GitHub (May 14, 2016):
It works. I already worked around it. But I guess the final solution will be to register (inside john_register_one) an OpenCL format only if (get_number_of_available_devices() > 0).
There are even more use cases requiring to change registering:
Edge cases to be solved otherwise
That said:
[1] (Have to check) this won't happen for a -format=xxx-cpu-only run.
@ghost commented on GitHub (May 14, 2016):
Sorry, read the previous comment on GitHub site.
@ghost commented on GitHub (May 20, 2016):
Well, since I was unable to find a better approach, I intend to:
CPU only (CPU fallback, OMP fallback, regex, etc)
$ john-the-ripper --list=build-infoCPU + OpenCL (CPU fallback, OMP fallback, regex, etc)
$ john-the-ripper.opencl --list=build-infoSo, one snap will have all 16 john binaries.
Of course, we can shrink the package creating one snap for OpenCL, one for MPI, ...
Comments are welcome.
@ghost commented on GitHub (Jun 12, 2016):
Create a JtR package for Windows 10 (zip or Windows Store).
Testing Ubuntu binaries of John the Ripper Jumbo on Windows 10 64bits.
Notice:
PS: not sure if one can publish using a free Vistual Studio.
Working
@ghost commented on GitHub (Jun 12, 2016):
@ghost commented on GitHub (Jun 12, 2016):
Tested so far:
[1] Using the same machine via dual booting. Ubuntu 16.04 LTS snap app.
[2] With OpenMP, 6 threads.
[3] Disable OpenMP via OMP_THREAD_LIMIT=1
@ghost commented on GitHub (Jun 13, 2016):
Since we already have hundreds of installations, I intend to publish this on john-users:
Greetings
For some time now, we have a John the Ripper SNAP package available on Ubuntu Store. The plan is to release it as stable and tested, but offering recent bug fixes and improvements.
To install it, on Ubuntu 16.04 LTS, you only need to run a:
$ sudo snap install john-the-ripper
To test it, do:
$ john-the-ripper --list=build-info
John run confined under a restrictive security sandbox by default. For example, it won't be able to read or write any file outside its "box". So, word-lists, hash files, and so on, should be copied to the "box". Below, an example:
$ export DATA=/home/user/snap/john-the-ripper/5/.john
$ john-the-ripper -list=format-tests | cut -f3 > $DATA/alltests.in
$ john-the-ripper -form=SHA512crypt $DATA/alltests.in
The highlights:
More information at https://github.com/magnumripper/JohnTheRipper/issues/2118. Feedback is welcome.
Happy cracking
@ghost commented on GitHub (Jun 14, 2016):
For the record. More info at: https://lists.ubuntu.com/archives/snapcraft/2016-June/000193.html
@ghost commented on GitHub (Jun 28, 2016):
There is an armhf (arm7) version available on Ubuntu Store for a week or so. It has:
@ghost commented on GitHub (Jul 13, 2016):
Well, I dont have hardware to develop and test the changes needed in Ubuntu Core to allow OpenCL confined. I intend to create a workaround. Notice:
The procedure is:
@ghost commented on GitHub (Jul 29, 2016):
Posting the message below to john-users and closing:
BTW: it is possible to run the JtR openCL binary using the workaround seen below (notice: 12 is the current/desired revision [1]):
~$ /snap/john-the-ripper/12/john-the-ripper.opencl -list=build-info
~$ /snap/john-the-ripper/12/john-the-ripper.opencl -list=opencl-devices
Cracking using the CPU and/or the OpenCL version:
~$ export DATA=$HOME/snap/john-the-ripper/12/.john
~$ john-the-ripper -list=format-tests | cut -f3 > $DATA/alltests.in
~$ /snap/john-the-ripper/12/john-the-ripper.opencl -form=SHA512crypt-opencl $DATA/alltests.in
~$ john-the-ripper -form=SHA512crypt $DATA/alltests.in
Just in case you have ARM hardware, there are armhf and arm64 JtR versions available on Ubuntu Store. They have:
If your distro already accepts the snap format (without a store), it is possible to download the reviewed snap package from: https://uappexplorer.com/app/john-the-ripper.claudioandre-br
Claudio
[1] Rev 12 means commit:
36a7264b2cfrom July 29th. Execute a sudo snap refresh and/or snap list to assure you have the latest version installed.@ghost commented on GitHub (Dec 5, 2016):
I just created a readme file (since I started to wonder details about the package). Everything is there, even the new fancy stuff.
BTW: nice to see; strong foundations, high-quality software engineering.
@ghost commented on GitHub (Mar 2, 2018):
More notes at:
https://snapcraft.io/john-the-ripper