Skip to content

Instantly share code, notes, and snippets.

@radare
Created August 8, 2014 00:39
Show Gist options
  • Save radare/fd1a3ea41d31073311b8 to your computer and use it in GitHub Desktop.
Save radare/fd1a3ea41d31073311b8 to your computer and use it in GitHub Desktop.
esil bug
$ r2 -
-- ASLR stands for Age/Sex/Location/Reverser.
[0x00000000]> ae 2,1,==,%z,zf,=,zf,?{,80,}
zf=0x0
zf=0x0
zf=0x0
StackDump:
[1] }
[0] 80
[0x00000000]> ae 1,1,==,%z,zf,=,zf,?{,80,}
zf=0x0
zf=0x1
zf=0x1
[0x00000000]> ae 1,1,-,?{,80,}
StackDump:
[1] }
[0] 80
[0x00000000]> ae 2,1,-,?{,80,}
[0x00000000]>
@radare
Copy link
Author

radare commented Aug 8, 2014

[0x00000000]> ae 1,1,==,%z,?{,80,}
[0x00000000]> ae 2,1,==,%z,?{,80,}
[0x00000000]>

@radare
Copy link
Author

radare commented Aug 8, 2014

Looks like %z is only updated when there's an '=' operation involved. ?{ seems to work fine, but internal reg access seems not correct

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment