mirror of https://github.com/pwndbg/pwndbg.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
800 B
Python
38 lines
800 B
Python
#!/usr/bin/env python
|
|
# -*- coding: utf-8 -*-
|
|
"""
|
|
Runs a few useful commands which are available under "info".
|
|
|
|
We probably don't need this anymore.
|
|
"""
|
|
from __future__ import absolute_import
|
|
from __future__ import division
|
|
from __future__ import print_function
|
|
from __future__ import unicode_literals
|
|
|
|
import gdb
|
|
|
|
import pwndbg.memoize
|
|
|
|
|
|
@pwndbg.memoize.reset_on_exit
|
|
def proc_mapping():
|
|
try:
|
|
return gdb.execute('info proc mapping', to_string=True)
|
|
except gdb.error:
|
|
return ''
|
|
|
|
@pwndbg.memoize.reset_on_exit
|
|
def auxv():
|
|
try:
|
|
return gdb.execute('info auxv', to_string=True)
|
|
except gdb.error:
|
|
return ''
|
|
|
|
@pwndbg.memoize.reset_on_stop
|
|
def files():
|
|
try:
|
|
return gdb.execute('info files', to_string=True)
|
|
except gdb.error:
|
|
return ''
|