You are not logged in.

#1 2020-11-29 16:03:23

M0th
Member
Registered: 2020-11-29
Posts: 12

John the ripper jumbo patch with opencl support will not compile.

Here are all the warnings and error messages I get, I've looked up some of them and haven't been able to find anything. Thanks in advance for help.

Offline

#2 2020-11-29 17:05:10

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: John the ripper jumbo patch with opencl support will not compile.

Where?

Offline

#3 2020-11-29 21:11:21

M0th
Member
Registered: 2020-11-29
Posts: 12

Re: John the ripper jumbo patch with opencl support will not compile.

Oh the pastebin didn't link for some reason, sorry. https://pastebin.com/hePJMah4 here it is.

Offline

#4 2020-11-30 00:28:08

loqs
Member
Registered: 2014-03-06
Posts: 17,196

Re: John the ripper jumbo patch with opencl support will not compile.

What source are you trying to build with what patch applied?  Please provide step by step instructions or preferably a PKGBUILD that would allow others to repeat the process.
The john package in community is built from the jumbo source with opencl support enabled,  does that not meet your needs?

Last edited by loqs (2020-11-30 00:28:26)

Offline

#5 2020-11-30 08:23:04

M0th
Member
Registered: 2020-11-29
Posts: 12

Re: John the ripper jumbo patch with opencl support will not compile.

I was building it using the make file from this github page, https://github.com/openwall/john. I didn't realise the package had opencl support. Step by step instructions: git clone https://github.com/openwall/john.git, cd john-the-ripper/src make clean linux-x86-64-opencl.

Offline

#6 2020-11-30 14:52:17

loqs
Member
Registered: 2014-03-06
Posts: 17,196

Re: John the ripper jumbo patch with opencl support will not compile.

$ git clone https://github.com/openwall/john.git
Cloning into 'john'...
remote: Enumerating objects: 70, done.
remote: Counting objects: 100% (70/70), done.
remote: Compressing objects: 100% (59/59), done.
remote: Total 92700 (delta 40), reused 11 (delta 11), pack-reused 92630
Receiving objects: 100% (92700/92700), 115.32 MiB | 4.95 MiB/s, done.
Resolving deltas: 100% (72776/72776), done.
$ cd john/src/
$ make clean linux-x86-64-opencl
make: *** No rule to make target 'clean'.  Stop.

Did you skip ./configure?  Also what about the patch mentioned in the thread title?

Offline

#7 2020-11-30 18:56:34

M0th
Member
Registered: 2020-11-29
Posts: 12

Re: John the ripper jumbo patch with opencl support will not compile.

The patch is the one you get when you git clone that link, and I don't know what you mean by ./configure, there's no file of that name in the directory for john the ripper. Is there something I'm missing? And finally I didn't get the same result as you when running make clean linux-x86-64-opencl, so I don't know what's going on there.

Offline

#8 2020-11-30 20:19:09

loqs
Member
Registered: 2014-03-06
Posts: 17,196

Re: John the ripper jumbo patch with opencl support will not compile.

If you start in an empty directory can you reproduce the output I posted?
Edit:
configure is https://github.com/openwall/john/blob/b … /configure
There are no files with a .patch extension in /src
What is the output of the following

git status --ignored
git describe
git remote -v

Last edited by loqs (2020-11-30 20:30:16)

Offline

#9 2020-12-01 15:35:22

M0th
Member
Registered: 2020-11-29
Posts: 12

Re: John the ripper jumbo patch with opencl support will not compile.

I found configure, apparently it wasn't downloaded when I first git cloned it but it was this time, and after running it I got the same output as you did. These are the outputs of the commands you listed: https://imgur.com/8z0lP7w

Offline

#10 2020-12-01 17:07:29

loqs
Member
Registered: 2014-03-06
Posts: 17,196

Re: John the ripper jumbo patch with opencl support will not compile.

loqs wrote:

The john package in community is built from the jumbo source with opencl support enabled,  does that not meet your needs?

Please do not post images of text.  With the updated git tree can you reproduce the issue?  If the patch file is still applicable where can I obtain it from?

Offline

#11 2020-12-02 12:54:00

M0th
Member
Registered: 2020-11-29
Posts: 12

Re: John the ripper jumbo patch with opencl support will not compile.

Thanks for bearing with me, I'm sorry if I haven't expressed everything clearly, there's no patch involved, I made a mistake.

You mentioned that the community package has opencl support, I didn't realise that. I think I should try to use that first instead of building it from source.

What I am trying to do is put my GPU to use to run john on a password file. The John documentation recommended to use the git link and compile with opencl support.

Installing John from the AUR seems like it would be easier than compiling it but when I did that it used my CPU instead of my GPU, do you know how I can make it use my GPU? Thanks for your help.

Offline

#12 2020-12-02 16:07:56

loqs
Member
Registered: 2014-03-06
Posts: 17,196

Re: John the ripper jumbo patch with opencl support will not compile.

After installing the john package from community,  what is the output of:

john --list=opencl-devices

Offline

#13 2020-12-02 21:09:00

M0th
Member
Registered: 2020-11-29
Posts: 12

Re: John the ripper jumbo patch with opencl support will not compile.

Platform #0 name: NVIDIA CUDA, version: OpenCL 1.2 CUDA 11.1.114
    Device #0 (1) name:     GeForce GTX 1650
    Device vendor:          NVIDIA Corporation
    Device type:            GPU (LE)
    Device version:         OpenCL 1.2 CUDA
    Driver version:         455.45.01 [recommended]
    Native vector widths:   char 1, short 1, int 1, long 1
    Preferred vector width: char 1, short 1, int 1, long 1
    Global Memory:          3910 MB
    Global Memory Cache:    448 KB
    Local Memory:           48 KB (Local)
    Constant Buffer size:   64 KB
    Max memory alloc. size: 977 MB
    Max clock (MHz):        1680
    Profiling timer res.:   1000 ns
    Max Work Group Size:    1024
    Parallel compute cores: 14
    CUDA cores:             896  (14 x 64)
    Speed index:            1505280
    Warp size:              32
    Max. GPRs/work-group:   65536
    Compute capability:     7.5 (sm_75)
    Kernel exec. timeout:   yes
    NVML id:                0
    PCI device topology:    29:00.0
    PCI lanes:              16/16
    Fan speed:              37%
    Temperature:            72°C
    Utilization:            71%

Offline

#14 2020-12-03 20:21:07

loqs
Member
Registered: 2014-03-06
Posts: 17,196

Re: John the ripper jumbo patch with opencl support will not compile.

If you run john with the option --devices=0 is OpenCL used?

Offline

#15 2020-12-03 20:50:25

M0th
Member
Registered: 2020-11-29
Posts: 12

Re: John the ripper jumbo patch with opencl support will not compile.

john --devices=0 passwordthing
stat: --devices=0: No such file or directory

is the result

Offline

#16 2020-12-03 21:28:24

loqs
Member
Registered: 2014-03-06
Posts: 17,196

Re: John the ripper jumbo patch with opencl support will not compile.

type -a john

Offline

#17 2020-12-03 22:17:37

M0th
Member
Registered: 2020-11-29
Posts: 12

Re: John the ripper jumbo patch with opencl support will not compile.

john is /usr/bin/john

Offline

#18 2020-12-03 22:46:27

loqs
Member
Registered: 2014-03-06
Posts: 17,196

Re: John the ripper jumbo patch with opencl support will not compile.

This is the output from my system with an empty file:

$ touch passwordfile
$ john --devices=0 passwordfile
Using default input encoding: UTF-8
No password hashes loaded (see FAQ)

Last edited by loqs (2020-12-03 22:46:44)

Offline

#19 2020-12-03 22:51:49

M0th
Member
Registered: 2020-11-29
Posts: 12

Re: John the ripper jumbo patch with opencl support will not compile.

The file I'm using isn't empty, it contains hashes. I don't know why I'm getting a different output though.

Offline

#20 2020-12-03 23:13:06

loqs
Member
Registered: 2014-03-06
Posts: 17,196

Re: John the ripper jumbo patch with opencl support will not compile.

What about

john --test --format=wpapsk-opencl

Offline

#21 2020-12-04 08:06:12

M0th
Member
Registered: 2020-11-29
Posts: 12

Re: John the ripper jumbo patch with opencl support will not compile.

Device 1@ahab: GeForce GTX 1650
Benchmarking: wpapsk-opencl, WPA/WPA2/PMF/PMKID PSK [PBKDF2-SHA1 OpenCL]... DONE
Speed for cost 1 (key version [0:PMKID 1:WPA 2:WPA2 3:802.11w]) of 2
Raw:    160777 c/s real, 160777 c/s virtual, Dev#1 util: 100%

Offline

#22 2020-12-04 12:06:51

loqs
Member
Registered: 2014-03-06
Posts: 17,196

Re: John the ripper jumbo patch with opencl support will not compile.

The last output appears to show working OpenCL functionality.

Offline

#23 2020-12-04 16:06:40

M0th
Member
Registered: 2020-11-29
Posts: 12

Re: John the ripper jumbo patch with opencl support will not compile.

Weird that it doesn't work when used on an actual file.

Offline

Board footer

Powered by FluxBB