Created
November 19, 2014 14:41
-
-
Save fersingb/efba648a1dcf9b5bdfb1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--> r2 crackme0x07 | |
-- Better than an eel in the ass. | |
[0x08048400]> aa | |
[0x08048400]> pdf@0x804867d | |
Cannot find function at 0x0804867d | |
[0x08048400]> | |
`--> r2 crackme0x07 | |
-- Rename a function using the 'afr <newname> @ <offset>' command. | |
[0x08048400]> e anal.eobjmp=false | |
[0x08048400]> aa | |
[0x08048400]> pdf@0x804867d | |
| ; DATA XREF from 0x08048417 (entry0) | |
/ (fcn) main 99 | |
| 0x0804867d 55 push ebp | |
| 0x0804867e 89e5 mov ebp, esp | |
| 0x08048680 81ec88000000 sub esp, 0x88 | |
| 0x08048686 83e4f0 and esp, 0xfffffff0 | |
| 0x08048689 b800000000 mov eax, 0 | |
| 0x0804868e 83c00f add eax, 0xf | |
| 0x08048691 83c00f add eax, 0xf | |
| 0x08048694 c1e804 shr eax, 4 | |
| 0x08048697 c1e004 shl eax, 4 | |
| 0x0804869a 29c4 sub esp, eax | |
| 0x0804869c c70424d9870. mov dword [esp], str.IOLI_Crackme_Level_0x07_n | |
| 0x080486a3 e810fdffff call sym.imp.printf ; (sym.imp.__libc_start_main) | |
| sym.imp.__libc_start_main(unk) ; sym.imp.printf | |
| 0x080486a8 c70424f2870. mov dword [esp], str.Password_ | |
| 0x080486af e804fdffff call sym.imp.printf ; (sym.imp.__libc_start_main) | |
| sym.imp.__libc_start_main() ; sym.imp.printf | |
| 0x080486b4 8d4588 lea eax, dword [ebp - 0x78] | |
| 0x080486b7 89442404 mov dword [esp + 4], eax ; [:4]=0x10100 | |
| 0x080486bb c70424fd870. mov dword [esp], 0x80487fd | |
| 0x080486c2 e8d1fcffff call sym.imp.scanf ; (sym.imp.__libc_start_main) | |
| sym.imp.__libc_start_main() ; sym.imp.scanf | |
| 0x080486c7 8b4510 mov eax, dword [ebp + 0x10] ; [:4]=0x30000 | |
| 0x080486ca 89442404 mov dword [esp + 4], eax ; [:4]=0x10100 | |
| 0x080486ce 8d4588 lea eax, dword [ebp - 0x78] | |
| 0x080486d1 890424 mov dword [esp], eax | |
| 0x080486d4 e8e0feffff call sub.strlen_5b9 | |
| sub.strlen_5b9() | |
| 0x080486d9 b800000000 mov eax, 0 | |
| 0x080486de c9 leave | |
\ 0x080486df c3 ret | |
[0x08048400]> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment