gdbaslrpwntools

When I try to debug my program with gdb through pwntools, gdb insert a breakpoint at 0xXXX address


When I try to debug my program with gdb through pwntools, gdb insert a breakpoint at 0xc0f address.

This address corresponds to the beginning of my program without the randomized part.

Below, my python script with pwntools:

#! /usr/bin/python2.7
# -*- coding: utf-8 -*-

from pwn import *

p = gdb.debug('./lab6A','''
break main
continue <= I forgot to write this command in my first post.
''')

And a screenshot of my problem:

enter image description here


Solution

  • The problem is solved after a big upgrade.

    Before this, I reinstall gdb through apt-get.