Cannot commuincate with oclHashcat process - Printable Version +- hashcat Forum (https://hashcat.net/forum) +-- Forum: Deprecated; Previous versions (https://hashcat.net/forum/forum-29.html) +--- Forum: Old oclHashcat Support (https://hashcat.net/forum/forum-38.html) +--- Thread: Cannot commuincate with oclHashcat process (/thread-4073.html) |
Cannot commuincate with oclHashcat process - ubtks - 02-14-2015 Hello everyone, I am trying to run oclHashcat as a subprocess in Python. I can start it up just fine, but I cannot pass the usual commands ([s]tatus, [q]uit, etc) by simply writing that character to STDIN. Code: import time I should be getting a status response (that will be shown if I remove "--quiet"), but I want to be able to send commands to it. Is oclHashcat not using STDIN and/or only expecting a single character? I have been googling this for some time, found others that have had a similar issue, and can't view the source to figure it out myself, I would really appreciate any feedback you may have. Thank you in advanced for any help or ideas! RE: Cannot commuincate with oclHashcat process - undeath - 02-15-2015 To read the status it is recommended to parse the restore file. RE: Cannot commuincate with oclHashcat process - philsmd - 02-15-2015 reading the restore file is one possibility, the other one would be (and afaik most "wrappers" choose this way) to use --status --status-automat (see also https://hashcat.net/trac/ticket/406 ). Btw. also next version of cpu hashcat will ship with the --status-automat feature (see https://hashcat.net/trac/ticket/534 ). RE: Cannot commuincate with oclHashcat process - ubtks - 02-16-2015 Thanks for those tips! But, what about pausing and resuming? I would like to have full functionality over oclHashcat if possible. With some further research I would guess that in linux that it will read keypresses from TTY directly, and does not use STDIN, is that true? |