Closed Rich5 closed 7 years ago
hashcat now uses an eventing system to notify of state changes. These events need to be incorporated into pyhashcat. A list of events can be found here: https://github.com/hashcat/hashcat/blob/1f266fb0f2ecfb4e1b94494f8f9b70acd020faf9/include/types.h#L82
One event has been implemented internally to trigger on a cracked hash here as an example https://github.com/Rich5/pyHashcat/blob/bindings/pyhashcat/pyhashcat.c#L61
Developers should be able to subscribe to any event and write their own callbacks as necessary. Maybe something like this
def show_cracked(hc): print hc.status_get_status_string() # print out cracked hashes hc = hashcat() hc.dispatcher_connect(show_cracked, signal=hc.events['EVENT_CRACKER_HASH_CRACKED']) ...
Event support has been added.
hashcat now uses an eventing system to notify of state changes. These events need to be incorporated into pyhashcat. A list of events can be found here: https://github.com/hashcat/hashcat/blob/1f266fb0f2ecfb4e1b94494f8f9b70acd020faf9/include/types.h#L82
One event has been implemented internally to trigger on a cracked hash here as an example https://github.com/Rich5/pyHashcat/blob/bindings/pyhashcat/pyhashcat.c#L61
Developers should be able to subscribe to any event and write their own callbacks as necessary. Maybe something like this