agent-python icon indicating copy to clipboard operation
agent-python copied to clipboard

fix generic cracker

Open vbalyasnyy opened this issue 4 years ago • 1 comments

  • 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;

vbalyasnyy avatar Jan 09 '21 22:01 vbalyasnyy

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

antnks avatar Jun 02 '21 12:06 antnks