mirror of
https://github.com/openwall/john.git
synced 2026-12-03 18:45:21 +07:00
[GH-ISSUE #2735] No status after "kill -SIGUSR1 pid" in Ubuntu when running with --stdin or --pipe #1758
Labels
No labels
bug
core branch
documentation
enhancement
enhancement
fixed - pending verify
fuzz bug
good first issue
invalid
invalid
maintenance/cleanup
new cracking mode
new format
new tool
non-trivial
notes/external issues
portability
question
RFC / discussion
testing
WONTFIX
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
openwall/john#1758
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @anderhil on GitHub (Sep 7, 2017).
Original GitHub issue: https://github.com/openwall/john/issues/2735
Hello,
I am quite new to the JohnTheRipper and maybe I am doing something wrong but I run this Python code:
Outputs this:
I run some custom password generation algorithm written in Python:
The CPU in the resources monitor shows spikes, and load on the cores -> seems like john is running.
However when I do any of these:
sudo kill -SIGUSR1 pidorkill -10 pidorkill -s USR1 pidos.kill(pid, 10)oros.kill(pid, signal.SIGUSR1)p.send_signal(signal.SIGUSR1)and then try to read stdout in either
print p.stdout.readline()orprint p.stdout.read(1)it blocks and nothing happens as like john didn't receive any signal.
I tried to run in separate terminal just
kill pidand thenprint p.stdout.readline()unblocks and I receiveSession aborted@magnumripper commented on GitHub (Sep 7, 2017):
This is an invalid topic for a GitHub issue. We discuss bugs and new features here. You should discuss this on john-users mailing list. Or perhaps john-dev, given you try to code some wrapper.
Having said that, what you see is JtR blocking for input on stdin until it has enough candidates to run a batch of them on GPU.
Try sending that USR1, and then, before expecting an answer, send enough candidates on stdin to get the "load spike" you mention. The status will be printed only after a batch is processed.
@roycewilliams commented on GitHub (Sep 7, 2017):
In @anderhil's defense, the observed behavior could have been a bug (as far as they knew). I think that it's understandable that it was initially reported here. 😄
@magnumripper commented on GitHub (Sep 7, 2017):
Sure, I have seen much dumber issues for sure. And I have banned people forever several times for opening stupid fuk issues that just eat our time, but this was not the case here at all. No offense please, and none taken here. Peace, love and understanding, and all 🌷 😆