Skip to content

Password change functions cause INVALID_PARAMETER with -n -h #26

@Tronic

Description

@Tronic

Trying to use the password hash to change SID and Admin1 passwords to plain text passwords (for compatibility with other tools), I get INVALID_PARAMETER. Apparently the password change functions somehow mishandle the hex hash mode. The hex hash works fine with other commands.

I solved this issue by hacking the source code to skip hashing of the new password, and then using the plain password as both old and new password on command line input. Notably the SID password change function already had support for skipping the hash, while the Admin1 change function always hashes the new password.

It would be good to have a separate option to specify which (or no) hashing to use with the new password, while allowing a different choice for the old password. Otherwise migration between different tools is extremely difficult if not impossible, without losing data anyway. I observe at least four different choices in use:

  • Plain text (UEFI firmware Opal unlocking prompt)
  • SHA-1 75000 iterations (original sedutil)
  • SHA-512 75000 iterations (ladar fork)
  • SHA-512 500000 iterations (ChubbyAnt fork)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions