An insecure su command for macOS, that doesn't need a password and allows login as service accounts. Keep in mind this isn't an exploit, and it still requires sudo to be set up.
Clone the repo, sh install.sh
Precompiled binaries can be found in the Releases page (universal, arm64, x86_64 -amd64- ).
They must be unquarantined with xattr -c path/to/hsu, set ownership to root with sudo chown root:wheel path/to/hsu and given the setuid bit with sudo chmod u+s path/to/hsu