There's a little bug that prevents to run the program with fw parameter values other than "base" ones (702 for example).
In line 159 you determine the "base" offset by calling
auto offset = getFirmwareOffset(fw);
but later, in line 176 you try to set firmware offset with:
if (exploit->setFirmwareVersion((FirmwareVersion) fw)) return 1;
But that function only accepts "base" firmware versions, so it should be
if (exploit->setFirmwareVersion((FirmwareVersion) offset)) return 1;
There's a little bug that prevents to run the program with fw parameter values other than "base" ones (702 for example). In line 159 you determine the "base" offset by calling
auto offset = getFirmwareOffset(fw);
but later, in line 176 you try to set firmware offset with:if (exploit->setFirmwareVersion((FirmwareVersion) fw)) return 1;
But that function only accepts "base" firmware versions, so it should beif (exploit->setFirmwareVersion((FirmwareVersion) offset)) return 1;