Giter Site home page Giter Site logo

Allow selecting of GPUs about crackerjack HOT 6 CLOSED

ctxis avatar ctxis commented on July 19, 2024
Allow selecting of GPUs

from crackerjack.

Comments (6)

sadreck avatar sadreck commented on July 19, 2024 1

Thanks for reporting it! I've just pushed a fix to the develop branch.

from crackerjack.

sadreck avatar sadreck commented on July 19, 2024

That's a great idea and I like the profile approach.

Thanks for the recommendation, I'll see what I can do.

from crackerjack.

sadreck avatar sadreck commented on July 19, 2024

I pushed this feature to the develop branch - if you have time give it a go and let me know if there are any issues. Profile creation is in the admin panel under "Device Profiles", and you will see a select box in the "Hashcat" session setup step. If a profile is deleted or disabled, the fallback will use all GPUs available (as it does now).

Don't forget to run the db migration for this, instructions at: https://github.com/ctxis/crackerjack/blob/master/docs/installation.md#update-to-latest-version (but checkout the develop instead of the master branch)

from crackerjack.

tiahgar avatar tiahgar commented on July 19, 2024

Heya, when you clone a fresh version of the develop branch and attemp to log in after creating an admin account, you get the following stack trace:

Traceback (most recent call last):
  File "/tmp/crackerjack/venv/lib/python3.9/site-packages/flask/app.py", line 2464, in __call__
    return self.wsgi_app(environ, start_response)
  File "/tmp/crackerjack/venv/lib/python3.9/site-packages/flask/app.py", line 2450, in wsgi_app
    response = self.handle_exception(e)
  File "/tmp/crackerjack/venv/lib/python3.9/site-packages/flask/app.py", line 1867, in handle_exception
    reraise(exc_type, exc_value, tb)
  File "/tmp/crackerjack/venv/lib/python3.9/site-packages/flask/_compat.py", line 39, in reraise
    raise value
  File "/tmp/crackerjack/venv/lib/python3.9/site-packages/flask/app.py", line 2447, in wsgi_app
    response = self.full_dispatch_request()
  File "/tmp/crackerjack/venv/lib/python3.9/site-packages/flask/app.py", line 1952, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/tmp/crackerjack/venv/lib/python3.9/site-packages/flask/app.py", line 1821, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/tmp/crackerjack/venv/lib/python3.9/site-packages/flask/_compat.py", line 39, in reraise
    raise value
  File "/tmp/crackerjack/venv/lib/python3.9/site-packages/flask/app.py", line 1950, in full_dispatch_request
    rv = self.dispatch_request()
  File "/tmp/crackerjack/venv/lib/python3.9/site-packages/flask/app.py", line 1936, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/tmp/crackerjack/app/controllers/home.py", line 26, in index
    errors = healthcheck.run(provider)
  File "/tmp/crackerjack/app/lib/base/healthcheck.py", line 12, in run
    sessions = provider.sessions()
  File "/tmp/crackerjack/app/lib/base/provider.py", line 39, in sessions
    self.device_profiles()
  File "/tmp/crackerjack/app/lib/base/provider.py", line 148, in device_profiles
    return DeviceProfileManager(hashcat.get_detected_devices())
  File "/tmp/crackerjack/app/lib/hashcat/manager.py", line 518, in get_detected_devices
    output = self.shell.execute([self.hashcat_binary, '-I', '--force'], user_id=0, log_to_db=False)
  File "/tmp/crackerjack/app/lib/base/shell.py", line 21, in execute
    output = subprocess.run(command, stdout=subprocess.PIPE).stdout.decode().strip()
  File "/usr/lib/python3.9/subprocess.py", line 505, in run
    with Popen(*popenargs, **kwargs) as process:
  File "/usr/lib/python3.9/subprocess.py", line 951, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.9/subprocess.py", line 1821, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
PermissionError: [Errno 13] Permission denied: ''

This is probably caused by the healthcheck assuming that the hashcat binary has been set, but it hasn't yet (the admin has to log on first and go to settings).

from crackerjack.

sadreck avatar sadreck commented on July 19, 2024

I've pushed this to master, let me know if there are any issues with it. Thanks.

from crackerjack.

tautology0 avatar tautology0 commented on July 19, 2024

Yep, it all looks good. Thanks!

from crackerjack.

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.