Skip to content

[ERROR] END IsLowerOrEqual START #2

Description

@rodrigomj87

When using the --keyspace parameter with a range such as e808e08585e522400:e808e09585e5223ff, the application throws the error:
[ERROR] END IsLowerOrEqual START

Expected Behavior:
The application should correctly interpret the keyspace range and process it without triggering the error.

Actual Behavior:
The error occurs due to an issue in main.cpp at line 171:
if (scanf(&item[2 * i], "%02hhX", &my1ch)) {};

Since scanf does not return the expected value, the end variable is always set to 0, causing the condition END IsLowerOrEqual START to fail.

Proposed Fix:
The issue can be resolved by replacing scanf with sscanf, as shown below:
if (sscanf(&item[2 * i], "%02hhX", &my1ch)) {};
This ensures that the variable end is correctly assigned based on the parsed input.

Other Fixes
Private Key HEX Padding: Ensures private keys are always 64 characters long by padding with leading zeros.

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