Skip to content

Commit

Permalink
Modify coredump_filter of spawned processes so that library contents …
Browse files Browse the repository at this point in the history
…are included
  • Loading branch information
zachriggle committed Dec 13, 2016
1 parent 5ebc8b5 commit 546061e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pwnlib/tubes/ssh.py
Expand Up @@ -872,6 +872,13 @@ def is_exe(path):
resource.setrlimit(resource.RLIMIT_STACK, (-1, -1))
# Attempt to dump ALL core file regions
try:
with open('/proc/self/coredump_filter', 'w') as core_filter:
core_filter.write('0x3f\n')
except Exception:
pass
# Assume that the user would prefer to have core dumps.
resource.setrlimit(resource.RLIMIT_CORE, (-1, -1))
Expand Down

0 comments on commit 546061e

Please sign in to comment.