Skip to content

Conversation

@magnumripper
Copy link
Member

Also add missing newlines to some python calls to sys.*.write.

Usage to stderr isn't always the norm but in this case we're normally running redirected to file and the usage blob may be caused by options/syntax problems.

Copy link
Member

@solardiz solardiz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes look good to me, but seem incomplete. At least this is still missing the newlines:

fvde2john.py:    sys.stderr.write("cryptography is missing, run 'pip install --user cryptography' to install it!")
fvde2john.py:    sys.stderr.write("pytsk3 is missing, run 'pip install --user pytsk3' to install it!")
fvde2john.py:        sys.stderr.write("Error reading out of bounds of file, exiting.")
fvde2john.py:        sys.stderr.write(f"[!] Invalid sector size {sector_size} (not 512 or 4096 bytes). Exiting.")
fvde2john.py:            sys.stderr.write("[!] No CoreStorage volumes found, exiting.")

@magnumripper
Copy link
Member Author

Oh, I fixed those but dropped/postponed it because of #5895. I see now I even mentioned it in #5900 (comment).

I'll fix them and add here. I'll also retry some grep-fu.

magnumripper and others added 2 commits December 21, 2025 10:54
Also print usage to stderr, which isn't always the norm but in this
case we're normally running redirected to file and the usage blob may
be caused by options/syntax problems.
@magnumripper
Copy link
Member Author

Will add yet some to this, I found more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants