Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix generic cracker #22

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

fix generic cracker #22

wants to merge 6 commits into from

Conversation

vbalyasnyy
Copy link
Contributor

@vbalyasnyy vbalyasnyy commented Jan 9, 2021

  • remove zap checks, it is not used and crashed on read it;
  • add command line flag "-a" for hashlist file setup in arguments;
  • fix generic cracker benchmark format result, server wait for something in format "digit:digit";
  • add task cmdpars in generic cracker cmd;
  • fix hashlistAlias replace for keyspace execution;

Signed-off-by: Vasilyy Balyasnyy <[email protected]>
need to setup --hash-type=... parameter to generic cracker call

Signed-off-by: Vasilyy Balyasnyy <[email protected]>
Server send hashlistAlias string in attack command.
Client need to replace it with "-a path_to_hashlist_file".
For keyspace execution we need just to remove hashlistAlias string.

Signed-off-by: Vasilyy Balyasnyy <[email protected]>
Signed-off-by: Vasilyy Balyasnyy <[email protected]>
@antnks
Copy link

antnks commented Jun 2, 2021

I can confirm that this pull also resolves the following exception when running a generic cracker:

Client is up-to-date!
Got cracker binary type generic
{'action': 'getChunk', 'token': 'lYsjxWDCGE', 'taskId': 1}
http://localhost:80 "POST /hashtopolis/src/api/server.php HTTP/1.1" 200 71
b'{"action":"getChunk","response":"SUCCESS","status":"keyspace_required"}'
Traceback (most recent call last):
  File "__main__.py", line 343, in <module>
    loop()
  File "__main__.py", line 212, in loop
    if not cracker.measure_keyspace(task, chunk):  # failure case
  File "/home/user/client/htpclient/generic_cracker.py", line 117, in measure_keyspace
    full_cmd = self.callPath + " keyspace " + task['attackcmd'].replace("-a " + task['hashlistAlias'] + " ", "")
TypeError: 'Task' object is not subscriptable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants