Coder Social home page Coder Social logo

thatonepasswordwas40passwords / vast-hashtopolis-runner Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 16 KB

Docker container built to be one click runnable Hashtopolis agent on VastAI.

License: MIT License

Dockerfile 33.48% Makefile 18.06% Shell 48.46%
cracking docker docker-image hashcat hashtopolis password-cracking

vast-hashtopolis-runner's Introduction

vast-hashtopolis-runner

Based off Thenaaaa forked off of original Milz0 repo.

TODO:

  • Github CI + container publish

Requirements

  • docker cli
  • Container engine (tested with colima on macOS)
  • GNU Make and GNU utils

Build

make

... verbosely:

make VERBOSE=y

... with arbitrary docker CLI args, use envar EXTRA_DOCKER_ARGS:

make VERBOSE=y EXTRA_DOCKER_ARGS="--no-cache <etc.>"

Publish

Need access to Github Container Registry set up, then:

make PUBLISH=y

Github Container Registry setup

TODO

Running

Local CLI:

docker run --rm \
    -it \
    --platform linux/amd64 \
    ghcr.io/thatonepasswordwas40passwords/vast-hashtopolis-runner

Via Vast.ai

Edit Image & Config and use ghcr.io/thatonepasswordwas40passwords/vast-hashtopolis-runner as your custom image.

Your onstart-script should be written out as so in vast.ai, not before replacing both values <server> and <voucher_id> with your own:

cd htpclient
python3 hashtopolis.zip --url <server> --voucher <voucher_id>

Hashtopolis, Hashcat v6.x.x, Vast.ai

This container is useful for quickly! deploying lots of agents from vast.ai to your hashtopolis server with single clicks for an on-demand hash cracking session.

You should be familiar with the prerequisites for hashcat and hashtopolis, this isn't a step-by-step guide as such, It's half the battle is if you already have access to a hashtopolis server.

Prerequisites

In order to fully utilise this container you'll require the following...

Usage and Information

This is a one click set-up with vast.ai. Just click "Rent" button and your client will auto register with your hashtopolis server and will instantly start working on any available tasks you have waiting.

This container takes the pain out of manually checking boxes and adding in additional parameters for each agent if you want to register a lot of agents at one time.

Hashtopolis Modifications

You'll notice that each time you register an agent to your HTP server that you need to manually update the Agent Trust Status and you'll also receive a hashcat error clGetPlatformIDs(): CL_PLATFORM_NOT_FOUND_KHR, but we can fix this easily in hashtopolis the whitelist feature for errors.

Normally hashcat itself will ignore this error and continue but in hashtopolis's case it will take the error as fatal and halt the agent as by default the agent is set to be deactivated on any errors returned by hashcat.

whitelist this error in hashtopolis server settings. Enter clGetPlatformIDs(): CL_PLATFORM_NOT_FOUND_KHR in Server Settings page config.php where it says Ignore error messages from crackers which contain given strings (multiple values are separated by comma)

Workaround for Trust Agent

Add a cron script on your hashtopolis server to periodically update the your hashtopolis MySQL database every 1 minute or so to set new agents as trusted. modify this line to suit your own environment if need be.

cd ~/
echo mysql -D your_hashtopolis_db -e \"UPDATE Agent SET isTrusted = '1'\" > set_trust.sh && chmod +x set_trust.sh

type crontab -e and add...

* * * * * /root/set_trust.sh >/dev/null 2>&1

Alt text

config.json

You need to have reusable voucher codes checked in your hashtopolis install. Go to https://{your_domain}/config.php?view=5 and check box to allow vouchers to be use multiple times.

Vast.ai

Edit Image & Config and use ghcr.io/thatonepasswordwas40passwords/vast-hashtopolis-runner as your custom image

Your onstart-script should be written out as so in vast.ai, not before replacing both values {server} and {voucher_id} with your own:

cd htpclient
python3 hashtopolis.zip --url {server} --voucher {voucher_id}

Alt text

Miscellaneous

For additional parameters like -w4 (workload) and -O (optimized kernels), You can set these globally per task in the command box #HL#

Demo

Demo

Enjoy!

vast-hashtopolis-runner's People

Contributors

bigpick avatar

Stargazers

MadDi avatar

Watchers

 avatar

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.