Giter Site home page Giter Site logo

gdb_commands's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

gdb_commands's Issues

Fix parsing of shared libraries

GDB indicates an SO is missing debugging information with an asterisk in its info sharedlibrary output (at least on 7.9):

(gdb) info sharedlibrary
From        To          Syms Read   Shared Object Library
0xb7fdd5f2  0xb7ff6d5e  Yes (*)     /lib/ld-linux.so.2
(*): Shared library is missing debugging information.

gdb-checksec.py doesn't parse this correctly because of an alphanumeric token (\w) in its regex:

mobjs = re.findall("(0x[a-zA-Z0-9]+)\s+(0x[a-zA-Z0-9]+)\s+(\w+)(\s+\w+)?\s+([^\s]+)", sharedlibrary_output)

Improve "NX" detection

It's not sufficient to test for the existence of a GNU_STACK program header. If it exists, it must also be checked for an executable flag.

ELFs should be classified into two groups:

  • NX=no: missing GNU_STACK header or GNU_STACK header with 'E' flag
  • NX=yes: GNU_STACK header without 'E' flag.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.