NyaMisty / fouldecrypt

A lightweight and simpling iOS binary decryptor
271 stars 41 forks source link

Fix ignored error code #11

Open ViRb3 opened 2 years ago

ViRb3 commented 2 years ago

Previously, getting decryption failure would be ignored and return code 0 (success) even though it is not:

mremap_encrypted: Operation not permitted
<continues>
<code 0>

This PR checks for the return code of mremap_encrypted, and if errored, cancels decryption and propagates it back to the shell.