Advertisement
Guest User

pwnable.kr_passcode_login

a guest
Apr 16th, 2019
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. login function from pwnable.kr > level: passcode  
  2.  
  3.    0x08048564 <+0>:     push   %ebp
  4.    0x08048565 <+1>:     mov    %esp,%ebp
  5.    0x08048567 <+3>:     sub    $0x28,%esp
  6. => 0x0804856a <+6>:     mov    $0x8048770,%eax
  7.    0x0804856f <+11>:    mov    %eax,(%esp)
  8.    0x08048572 <+14>:    call   0x8048420 <printf@plt>
  9.    0x08048577 <+19>:    mov    $0x8048783,%eax
  10.    0x0804857c <+24>:    mov    -0x10(%ebp),%edx
  11.    0x0804857f <+27>:    mov    %edx,0x4(%esp)
  12.    0x08048583 <+31>:    mov    %eax,(%esp)
  13.    0x08048586 <+34>:    call   0x80484a0 <__isoc99_scanf@plt>
  14.    0x0804858b <+39>:    mov    0x804a02c,%eax
  15.    0x08048590 <+44>:    mov    %eax,(%esp)
  16.    0x08048593 <+47>:    call   0x8048430 <fflush@plt>
  17.    0x08048598 <+52>:    mov    $0x8048786,%eax
  18.    0x0804859d <+57>:    mov    %eax,(%esp)
  19.    0x080485a0 <+60>:    call   0x8048420 <printf@plt>
  20.    0x080485a5 <+65>:    mov    $0x8048783,%eax
  21.    0x080485aa <+70>:    mov    -0xc(%ebp),%edx
  22.    0x080485ad <+73>:    mov    %edx,0x4(%esp)
  23.    0x080485b1 <+77>:    mov    %eax,(%esp)
  24.    0x080485b4 <+80>:    call   0x80484a0 <__isoc99_scanf@plt>
  25.    0x080485b9 <+85>:    movl   $0x8048799,(%esp)
  26.    0x080485c0 <+92>:    call   0x8048450 <puts@plt>
  27.    0x080485c5 <+97>:    cmpl   $0x528e6,-0x10(%ebp)
  28.    0x080485cc <+104>:   jne    0x80485f1 <login+141>
  29.    0x080485ce <+106>:   cmpl   $0xcc07c9,-0xc(%ebp)
  30.    0x080485d5 <+113>:   jne    0x80485f1 <login+141>
  31.    0x080485d7 <+115>:   movl   $0x80487a5,(%esp)
  32.    0x080485de <+122>:   call   0x8048450 <puts@plt>
  33.    0x080485e3 <+127>:   movl   $0x80487af,(%esp)
  34.    0x080485ea <+134>:   call   0x8048460 <system@plt>
  35.    0x080485ef <+139>:   leave  
  36.    0x080485f0 <+140>:   ret    
  37.    0x080485f1 <+141>:   movl   $0x80487bd,(%esp)
  38.    0x080485f8 <+148>:   call   0x8048450 <puts@plt>
  39.    0x080485fd <+153>:   movl   $0x0,(%esp)
  40.    0x08048604 <+160>:   call   0x8048480 <exit@plt>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement