Skip to content

Commit

Permalink
Do not dump PLT emulation data to DEBUG logs unless explicitly set vi…
Browse files Browse the repository at this point in the history
…a PLT_DEBUG
  • Loading branch information
zachriggle committed Mar 5, 2017
1 parent 10ef77b commit 930f2a4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pwnlib/elf/plt.py
Expand Up @@ -2,12 +2,17 @@
"""
import logging

from pwnlib.args import args
from pwnlib.log import getLogger
from pwnlib.util import fiddling
from pwnlib.util import packing

log = getLogger(__name__)

DEBUG = args.PLT_DEBUG or 0

if DEBUG:
log.setLevel(logging.DEBUG - 1)

def emulate_plt_instructions(elf, got, address, data, targets):
"""Emulates instructions in ``data``
Expand Down

0 comments on commit 930f2a4

Please sign in to comment.