Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SyntaxError: leading zeros in decimal integer literals are not permitted; use an 0o prefix for octal integers #13

Open
noraj opened this issue Feb 18, 2023 · 1 comment

Comments

@noraj
Copy link

noraj commented Feb 18, 2023

$ cli2man haiti
  File "/tmp/venv/bin/cli2man", line 1376
    os.chmod(opt['--create-script'], st.st_mode | 0111 )
                                                  ^
SyntaxError: leading zeros in decimal integer literals are not permitted; use an 0o prefix for octal integers

haiti use docopt

$ haiti --help
HAITI (HAsh IdenTifIer) v1.4.1

Usage:
  haiti [options] <hash>
  haiti samples (<ref> | <name>)
  haiti -h | --help
  haiti --version

Commands:
  samples         Display hash samples for the given type

Parameters:
  <hash>          Hash string to identify, read from STDIN if equal to "-"
  <ref>           hashcat or john the ripper reference
  <name>          Hash type name

Options:
  --no-color      Disable colorized output
  -e, --extended  List all possible hash algorithms including ones using salt
  --short         Display in a short format: do not display hashcat and john the ripper references
  --hashcat-only  Show only hashcat references
  --john-only     Show only john the ripper references
  --debug         Display arguments
  -h, --help      Show this screen
  --version       Show version

Examples:
  haiti -e d41d8cd98f00b204e9800998ecf8427e
  haiti --no-color --short d41d8cd98f00b204e9800998ecf8427e
  b2sum /etc/os-release | awk '{print $1}' | haiti -
  haiti samples crc32

But I guess it's rather due to using python 2 cf. #11

@Freed-Wu
Copy link

Freed-Wu commented Mar 7, 2023

I try to realize this project with python3, perhaps you can take a try.

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

No branches or pull requests

2 participants