Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. 8048550: c7 45 f8 00 00 00 00 mov DWORD PTR [ebp-0x8],0x0 # Initialization of i (see pseudo-code below)
  2. 8048557: 83 7d f8 09 cmp DWORD PTR [ebp-0x8],0x9
  3. 804855b: 7f 29 jg 8048586
  4. 804855d: 8b 45 fc mov eax,DWORD PTR [ebp-0x4] # Handling password's parity check
  5. 8048560: 83 e0 01 and eax,0x1
  6. 8048563: 85 c0 test eax,eax
  7. 8048565: 75 18 jne 804857f <parell+0x65>
  8. 8048567: c7 04 24 40 87 04 08 mov DWORD PTR [esp],0x8048740
  9. 804856e: e8 45 fe ff ff call 80483b8 <printf@plt>
  10. 8048573: c7 04 24 00 00 00 00 mov DWORD PTR [esp],0x0
  11. 804857a: e8 69 fe ff ff call 80483e8 <exit@plt>
  12.  
  13. for (int i = 0; i <= 9; ++i)
  14. if LSB (password) is 0 // ie if password is an even number
  15. printf("Password OK!n");
  16. exit(0);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement