Results 1 to 2 of 2

Thread: Kgm1 crackme - gdb segmentation fault

  1. #1
    Registered User
    Join Date
    Mar 2010
    Location
    Warsaw, Poland
    Posts
    5

    Kgm1 crackme - gdb segmentation fault

    By debugging kgm1 crackme from: http://www.crackmes.de/users/ascii/kgm1/ site, I encountered on such a problem. When I'm trying to debug crackme with gdb (anything else I'm not trying - I'm on linux), debugger shows segmentation fault.

    tomasz@darkstar:~/Pobrane/kgm1/ascii_kgm1$ objdump -d --section .text -M intel kgm1 | head -n 20

    kgm1: file format elf32-i386


    Disassembly of section .text:

    08048380 <.text>:
    8048380: 31 ed xor ebp,ebp
    8048382: 5e pop esi
    8048383: 89 e1 mov ecx,esp
    8048385: 83 e4 f0 and esp,0xfffffff0
    8048388: 50 push eax
    8048389: 54 push esp
    804838a: 52 push edx
    804838b: 68 ec 84 04 08 push 0x80484ec
    8048390: 68 f1 84 04 08 push 0x80484f1
    8048395: 51 push ecx
    8048396: 56 push esi
    8048397: 68 22 84 04 08 push 0x8048422
    804839c: e8 a7 ff ff ff call 8048348 <__libc_start_main@plt>
    So I'm asking what I'm doing wrong.

    I'm setting breakpoint on entrypoint and it shows error on push eax
    Last edited by Xgrzyb90; October 25th, 2010 at 02:06. Reason: place of error
    I promise that I have read the FAQ and tried to use the Search to answer my question.

  2. #2
    <script>alert(0)</script> disavowed's Avatar
    Join Date
    Apr 2002
    Posts
    1,281
    If "push eax" is throwing a segmentation fault then it means that the value of ESP is bad.

Similar Threads

  1. problem hooking page fault handler on x64
    By wavec in forum The Newbie Forum
    Replies: 9
    Last Post: June 11th, 2013, 11:18
  2. Fantastic : bypass segmentation AND paging, access phys memory
    By Czernobyl in forum Advanced Reversing and Programming
    Replies: 21
    Last Post: January 6th, 2011, 04:56
  3. Replies: 8
    Last Post: June 1st, 2010, 06:44
  4. Found what is that "long mode segmentation"
    By OpenRCE_EliCZ in forum Blogs Forum
    Replies: 0
    Last Post: April 3rd, 2009, 10:17
  5. A little crackme
    By raven58 in forum Advanced Reversing and Programming
    Replies: 1
    Last Post: February 14th, 2001, 18:19

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •