Giter Site home page Giter Site logo

sqlcipher-password-cracker-opencl's People

Contributors

whiteblackitty avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

sqlcipher-password-cracker-opencl's Issues

TypeError encountered during initial test

During the initial testing cracking the generated DB, I encountered following message after some 20 cycles. For a DB with default password, this message appears immediately. So I presume it's an issue with the final result.

Traceback (most recent call last):
File "Run.py", line 202, in
main(sys.argv)
File "Run.py", line 177, in main
if(tryDecryptSQLiteDB(result)==True): # validation
File "Run.py", line 41, in tryDecryptSQLiteDB
passphrase+=chr(pword)
TypeError: only integer scalar arrays can be converted to a scalar index

LogicError: clEnqueueNDRangeKernel failed: INVALID_WORK_GROUP_SIZE

Hi bro, the program running normal use my CPU Core i7-6500U,
but when i run with my graphic HD 520, then report error below:

sam@sam-900X5L:~/Downloads/SQLCipher-Password-Cracker-OpenCL-master$ python3 Run.py 0
sh: 1: title: not found

        ____  _____  _    _ _______ ______      _____  ____  _  _______  ______ ___  
        |  _ \|  __ \| |  | |__   __|  ____|    |  __ \|  _ \| |/ /  __ \|  ____|__ \ 
        | |_) | |__) | |  | |  | |  | |__       | |__) | |_) | ' /| |  | | |__     ) |
        |  _ <|  _  /| |  | |  | |  |  __|      |  ___/|  _ <|  < | |  | |  __|   / / 
        | |_) | | \ \| |__| |  | |  | |____     | |    | |_) | . \| |__| | |     / /_ 
        |____/|_|  \_\\____/   |_|  |______|    |_|    |____/|_|\_\_____/|_|    |____|
                                                                               
            
Encrypted Database: EnCrypted_keyis_0000121.db
Reading encrypted data...
Init OpenCL...
 
Using Platform 0:
--------------------------------------------------------------------------
 Device - Name: Intel(R) Gen9 HD Graphics NEO
 Device - Type: ALL | GPU
 Device - Compute Units: 24
 Device - Max Work Group Size: 256
 
Compiling OpenCL Code...
 
Starting OpenCL Kernel...
 
Traceback (most recent call last):
  File "Run.py", line 202, in <module>
    main(sys.argv)
  File "Run.py", line 175, in main
    result=opencl_ctx.run(Innercycle*i,Innercycle,False) # core function, it's suggested that the Innercycle should be integer number of workgroupsize
  File "/home/sam/Downloads/SQLCipher-Password-Cracker-OpenCL-master/Lib/opencl.py", line 132, in run
    finish_event=self.prg.func_pbkdf2(self.queue, pwdim,(512,), pass_g, salt_g, iv_g, data_g, result_g)
  File "/home/sam/.local/lib/python3.8/site-packages/pyopencl/__init__.py", line 901, in kernel_call
    return self._enqueue(self, queue, global_size, local_size, *args, **kwargs)
  File "<pyopencl invoker for 'func_pbkdf2'>", line 8, in enqueue_knl_func_pbkdf2
pyopencl._cl.LogicError: clEnqueueNDRangeKernel failed: INVALID_WORK_GROUP_SIZE

RuntimeError: clWaitForEvents failed: OUT_OF_RESOURCES

When I run python Run.py 1, it goes wrong.
This is my configuration and error message

Encrypted Database: EnMicroMsg.db
Reading encrypted data...
Init OpenCL...

Using Platform 1:
--------------------------------------------------------------------------
 Device - Name: GeForce GT 755M
 Device - Type: ALL | GPU
 Device - Compute Units: 2
 Device - Max Work Group Size: 1024

Compiling OpenCL Code...

Starting OpenCL Kernel...

Traceback (most recent call last):
  File ".\Run.py", line 202, in <module>
    main(sys.argv)
  File ".\Run.py", line 175, in main
    result=opencl_ctx.run(Innercycle*i,Innercycle,False) # core function, it's suggested that the Innercycle should be integer number of workgroupsize
  File "D:\SQLCipher-Password-Cracker-OpenCL-master\Lib\opencl.py", line 133, in run
    finish_event.wait()
pyopencl._cl.RuntimeError: clWaitForEvents failed: OUT_OF_RESOURCES



PBKDF2-noHMAC-SHA1--AES-256-CBC encrypted SQLite database cracking v2018

============================================================
OpenCL Platforms and Devices
============================================================
Platform 0 - Name: Intel(R) OpenCL
Platform 0 - Vendor: Intel(R) Corporation
Platform 0 - Version: OpenCL 1.2
Platform 0 - Profile: FULL_PROFILE
 --------------------------------------------------------
 Device - Name: Intel(R) HD Graphics 4600
 Device - Type: ALL | GPU
 Device - Max Clock Speed: 1150 Mhz
 Device - Compute Units: 20
 Device - Local Memory: 64 KB
 Device - Constant Memory: 64 KB
 Device - Global Memory: 2 GB
 Device - Max Buffer/Image Size: 407 MB
 Device - Max Work Group Size: 512


 --------------------------------------------------------
 Device - Name: Intel(R) Core(TM) i5-4200M CPU @ 2.50GHz
 Device - Type: ALL | CPU
 Device - Max Clock Speed: 2500 Mhz
 Device - Compute Units: 4
 Device - Local Memory: 32 KB
 Device - Constant Memory: 128 KB
 Device - Global Memory: 8 GB
 Device - Max Buffer/Image Size: 2026 MB
 Device - Max Work Group Size: 8192


============================================================
Platform 1 - Name: NVIDIA CUDA
Platform 1 - Vendor: NVIDIA Corporation
Platform 1 - Version: OpenCL 1.2 CUDA 8.0.0
Platform 1 - Profile: FULL_PROFILE
 --------------------------------------------------------
 Device - Name: GeForce GT 755M
 Device - Type: ALL | GPU
 Device - Max Clock Speed: 1019 Mhz
 Device - Compute Units: 2
 Device - Local Memory: 48 KB
 Device - Constant Memory: 64 KB
 Device - Global Memory: 2 GB
 Device - Max Buffer/Image Size: 512 MB
 Device - Max Work Group Size: 1024


============================================================
Platform 0 - Name Intel(R) OpenCL, Vendor Intel(R) Corporation
Platform 1 - Name NVIDIA CUDA, Vendor NVIDIA Corporation
============================================================

Please run as: python opencl_test.py [platform number]

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.