Skip to content

Official python agent for using the distributed hashcracker Hashtopolis

License

Notifications You must be signed in to change notification settings

gluafamichl/hashtopolis-agent-python

 
 

Repository files navigation

Hashtopolis Python Agent

CodeFactor LoC Build Status

This agent is used with Hashtopolis, read the wiki or create issues there, visit the Forum. This Hashtopolis agent is only compatible with Hashtopolis versions 0.5.0 and higher.

Prerequisites

You need python3 installed on your agent system. Following python packages are required:

  • requests
  • psutil

Manual

You can either download the agent from the Hashtopolis new agent page or you can use the url shown there to download the agent with wget/curl.

Run

To run the agent you simply need to call python3 hashtopolis.zip. The settings/configurations normally are done via the config file, described in one of the following sections.

Please note:

  • The client does not correctly recognize the OS when you are running in Cygwin or similar on Windows. You need to run it in Windows command line.
  • If you unpack the agent out of the .zip file, the automatic updating from the server won't work correctly.

Command Line Arguments

usage: python3 hashtopolis.zip [-h] [--de-register] [--version] [--number-only] [--disable-update] [--debug] [--voucher VOUCHER] [--url URL] [--cert CERT] [--files-path FILES_PATH]
                               [--crackers-path CRACKERS_PATH] [--hashlists-path HASHLISTS_PATH] [--preprocessors-path PREPROCESSORS_PATH] [--zaps-path ZAPS_PATH] [--cpu-only]


Hashtopolis Client v0.7.2

optional arguments:
  -h, --help            show this help message and exit
  --de-register         client should automatically de-register from server now
  --version             show version information
  --number-only         when using --version show only the number
  --disable-update      disable retrieving auto-updates of the client from the server
  --debug, -d           enforce debugging output
  --voucher VOUCHER     voucher to use to automatically register
  --url URL             URL to Hashtopolis client API
  --cert CERT           Client TLS cert bundle for Hashtopolis client API
  --files-path FILES_PATH
                        Use given folder path as files location
  --crackers-path CRACKERS_PATH
                        Use given folder path as crackers location
  --hashlists-path HASHLISTS_PATH
                        Use given folder path as hashlists location
  --preprocessors-path PREPROCESSORS_PATH
                        Use given folder path as preprocessors location
  --zaps-path ZAPS_PATH
                        Use given folder path as zaps location
  --cpu-only            Force client to register as CPU only and also only reading out CPU information

Config

When you run the client for the first time it will ask automatically for all the requirement settings and then saves it automatically to a config file called config.json. This could for example look like this:

{
  "url": "https://example.org/hashtopolis/api/server.php", 
  "token": "ABCDEFGHIJ", 
  "uuid": "49dcd31c-3637-4f2a-8df1-b545202df5b3"
}

Config Options

field type default description
voucher string Used for agent registration (will be prompted on first start)
url string The hashtopolis API endpoint (will be prompted on first start)
token string The access token for the API (sent by server on registration)
uuid string Unique identifier of the agent (generated on registration)
debug boolean false Enables debug output
allow-piping boolean false Allows hashcat to read password candidates from stdin
piping-threshold integer 95 Restarts chunk in piping mode when GPU UTIL is below this value
rsync boolean false Enables download of wordlists and rules via rsync
rsync-path string Remote path to hashtopolis files directory
multicast-device string eth0 Device which is used to retrieve UDP multicast file distribution
file-deletion-disable boolean false Disable requesting the server for files to delete
file-deletion-interval integer 600 Interval time in seconds in which the agent should check for deleted files
proxies object Specify proxies e.g. "proxies": {"https": "localhost:8433"}
auth-user string HTTP Basic Auth user
auth-password string HTTP Basic Auth password
outfile-history boolean false Keep old hashcat outfiles with founds and not getting them overwritten
files-path string Use given folder path as files location
crackers-path string Use given folder path as crackers location
hashlists-path string Use given folder path as hashlists location
preprocessors-path string Use given folder path as preprocessors location
zaps-path string Use given folder path as zaps location
cpu-only boolean false Only send CPU information about agent (for CPU only agents)

Debug example

{
  "url": "https://example.org/hashtopolis/api/server.php", 
  "token": "7RNDqtnPxm",
  "uuid": "49dcd31c-3637-4f2a-8df1-b545202df5b3",
  "debug": true
}

rsync

You need a user on the server which can automatically login (e.g. SSH keys) and has read access to the files directory of hashtopolis. On the client side you need rsync installed and set the following lines in your agent config.

  "rsync": true,
  "rsync-path": "user@yourserver:/path/to/hashtopolis/files"

Multicast

In order to use the multicast distribution for files, please make sure that the agents and server are prepared according to this:https://github.com/hashtopolis/runner

Hashcat Compatibility

The list contains all Hashcat versions with which the client was tested and is able to work with (other versions might work):

  • 6.2.6
  • 6.2.5
  • 6.2.4
  • 6.2.3
  • 6.2.2
  • 6.2.1
  • 6.2.0
  • 6.1.1
  • 6.1.0
  • 6.0.0
  • 5.1.0
  • 5.0.0
  • 4.2.1
  • 4.2.0
  • 4.1.0
  • 4.0.1
  • 4.0.0

Generic Crackers

This client is able to run generic Hashtopolis cracker binaries which fulfill the minimal functionality requirements, described here. An example implementation can be found here

About

Official python agent for using the distributed hashcracker Hashtopolis

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 97.2%
  • Dockerfile 1.4%
  • PowerShell 1.1%
  • Shell 0.3%