Giter Site home page Giter Site logo

Comments (7)

e-ago avatar e-ago commented on September 4, 2024

Correct. You are using GeForce GTX 560 which has Fermi architecture (too old for us).
https://en.wikipedia.org/wiki/GeForce_500_series

from bitcracker.

turbofiesta avatar turbofiesta commented on September 4, 2024

I'm thinking that the GeForce GTX 560 is too old... But I get the same error when I try Bitcracker with the same system with Palit GeForce GTX 760 (does it have Kepler GPU architecture?)

from bitcracker.

e-ago avatar e-ago commented on September 4, 2024

When it returns such type of error, you are compiling with the wrong arch options. Try building bitcracker_cuda with -gencode arch=compute_35,code=sm_35 only and post here the output.

from bitcracker.

turbofiesta avatar turbofiesta commented on September 4, 2024

System information:
Ubuntu 18.04.1 LTS
Intel® Core™ i7-2600K CPU @ 3.40GHz × 8

+-----------------------------------------------------------------------------+
| NVIDIA-SMI 390.48                 Driver Version: 390.48                    |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce GTX 760     Off  | 00000000:01:00.0 N/A |                  N/A |
| 28%   41C    P8    N/A /  N/A |    266MiB /  1991MiB |     N/A      Default |
+-------------------------------+----------------------+----------------------+

nvcc --version

nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2017 NVIDIA Corporation
Built on Fri_Nov__3_21:07:56_CDT_2017
Cuda compilation tools, release 9.1, V9.1.85

I changed "src-CUDA" Makefile to:

bitcracker_cuda:
	nvcc -gencode arch=compute_35,code=sm_35 -Xptxas -v -o bitcracker_cuda main.cu cuda_attack.cu utils.cu w_blocks.cu
clean:
	rm -rf *.o
	rm -rf ../build/bitcracker_cuda

Build Bitcracker
./build.sh

====== Build BitCracker Hash Extractor ======
rm -rf *.o
rm -rf ../build/bitcracker_hash
gcc bitcracker_hash.c -o bitcracker_hash

====== Build BitCracker Recovery Password generator ======
rm -rf *.o
rm -rf ../build/bitcracker_rpgen
gcc bitcracker_rpgen.c -o bitcracker_rpgen

====== Build BitCracker CUDA version ======
rm -rf *.o
rm -rf ../build/bitcracker_cuda
nvcc -gencode arch=compute_35,code=sm_35 -Xptxas -v -o bitcracker_cuda main.cu cuda_attack.cu utils.cu w_blocks.cu
ptxas info    : 0 bytes gmem, 12584 bytes cmem[3]
ptxas info    : 0 bytes gmem, 12584 bytes cmem[3]
ptxas info    : Compiling entry function '_Z20decrypt_vmk_with_maciPiPhS0_S0_S0_S0_iiiijjjji' for 'sm_35'
ptxas info    : Function properties for _Z20decrypt_vmk_with_maciPiPhS0_S0_S0_S0_iiiijjjji
    400 bytes stack frame, 472 bytes spill stores, 664 bytes spill loads
ptxas info    : Used 64 registers, 420 bytes cmem[0], 8 bytes cmem[2], 2 textures
ptxas info    : Compiling entry function '_Z11decrypt_vmkiPiPhS0_iiiiijjjji' for 'sm_35'
ptxas info    : Function properties for _Z11decrypt_vmkiPiPhS0_iiiiijjjji
    0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info    : Used 64 registers, 400 bytes cmem[0], 12 bytes cmem[2], 2 textures
ptxas info    : 0 bytes gmem, 12584 bytes cmem[3]
ptxas info    : 0 bytes gmem, 12584 bytes cmem[3]
ptxas info    : Compiling entry function '_Z16w_block_evaluatePhiS_Pj' for 'sm_35'
ptxas info    : Function properties for _Z16w_block_evaluatePhiS_Pj
    0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info    : Used 64 registers, 352 bytes cmem[0], 4 bytes cmem[2]

====== Build BitCracker OpenCL version ======
rm -rf *.o
rm -rf bitcracker_opencl
gcc -I/usr/include -L/usr/lib64 -L/usr/lib -I/usr/local/cuda/include -L/usr/local/cuda/lib64 -cl-std=CL1.2 -O3 -Wextra -o bitcracker_opencl main.c opencl_attack.c utils.c w_blocks.c -lOpenCL
gcc: error: unrecognized command line option ‘-cl-std=CL1.2’; did you mean ‘--std=c11’?
Makefile:9: recipe for target 'all' failed
make: *** [all] Error 1

====== Executables in build directory ======

Run the tests and I get error "Cuda error in file 'cuda_attack.cu' in line 168 : invalid texture reference." in all tests
./run_tests.sh

====================================
Selected device: GPU GeForce GTX 760 (ID: 0)
====================================

Compute capability: 3.0
Clock rate: 1032500
Clock rate: 1032 MHz (1.03 GHz)
Memory Clock Rate (KHz): 3004000
Memory Bus Width (bits): 256
Peak Memory Bandwidth (GB/s): 192.256000
Device copy overlap: Enabled
Async memory engine count: 1
Concurrent kernels: 1
Kernel execition timeout: Enabled
Total global mem:  2087714816 bytes
Free memory: 1773469696 bytes
Texture Alignment:  512
Multiprocessor count:  6
Shared mem per mp:  49152
Registers per mp:  65536
Threads in warp:  32
Max threads per block:  1024
Max thread dimensions:  (1024, 1024, 64)
Max grid dimensions:  (2147483647, 65535, 65535)

For this session, BitCracker requires at least 268566528 bytes of memory

====================================
Retrieving Info
====================================

Reading hash file "./test_hash/imgWin8_user_password.txt"
$bitlocker$0$16$0a8b9d0655d3900e9f67280adc27b5d7$1048576$12$b0599ad6c6a1cf0103000000$60$c16658f54140b3d90be6de9e03b1fe90033a2c7df7127bcd16cb013cf778c12072142c484c9c291a496fc0ebd8c21c33b595a9c1587acfc6d8bb9663


====================================
Attack
====================================

Cuda error in file 'cuda_attack.cu' in line 168 : invalid texture reference.
+ ./build/bitcracker_cuda -f ./test_hash/imgWin8_user_password.txt -d ./Dictionary/user_passwords.txt -t 1 -b 1 -g 0 -m -u

from bitcracker.

e-ago avatar e-ago commented on September 4, 2024

As you may notice Compute capability: 3.0 so you need to compile with _30 instead of _35

from bitcracker.

turbofiesta avatar turbofiesta commented on September 4, 2024

Thanks. Now error "in line 168 : invalid texture reference" is gone. I can successfully run run_tests.sh. But after attack I get message Password not found!, like issues #11...
Maybe my ubuntu version is unsupported or nvidia driver, cuda version ?

====================================
Retrieving Info
====================================

Reading hash file "./test_hash/imgWin7_user_password.txt"
$bitlocker$0$16$89a5bad722db4a729d3c7b9ee8e76a29$1048576$12$304a4ac192a2cf0103000000$60$24de9a6128e8f8ffb97ac72d21de40f63dbc44acf101e68ac0f7e52ecb1be4a8ee30ca1e69fbe98400707ba3977d5f09b14e388c885f312edc5c85c2


====================================
Attack
====================================

Type of attack: User Password
CUDA Threads: 1024
CUDA Blocks: 1
Psw per thread: 1
Max Psw per kernel: 1024
Dictionary: ./Dictionary/user_passwords.txt
Strict Check (-s): No
MAC Comparison (-m): No

CUDA Kernel execution:
	Effective passwords: 16
	Passwords Range:
		abcdefshhf
		.....
		blablablablabla
	Time: 30.526145 sec
	Passwords x second:     0.52 pw/sec


================================================
CUDA attack completed
Passwords evaluated: 16
Password not found!
================================================

from bitcracker.

e-ago avatar e-ago commented on September 4, 2024

I'm closing this issue because now it's the same of #11

from bitcracker.

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.