Skip to content

Commit 546061e

Browse files
committed
Modify coredump_filter of spawned processes so that library contents are included
1 parent 5ebc8b5 commit 546061e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pwnlib/tubes/ssh.py

+7
Original file line numberDiff line numberDiff line change
@@ -872,6 +872,13 @@ def is_exe(path):
872872
873873
resource.setrlimit(resource.RLIMIT_STACK, (-1, -1))
874874
875+
# Attempt to dump ALL core file regions
876+
try:
877+
with open('/proc/self/coredump_filter', 'w') as core_filter:
878+
core_filter.write('0x3f\n')
879+
except Exception:
880+
pass
881+
875882
# Assume that the user would prefer to have core dumps.
876883
resource.setrlimit(resource.RLIMIT_CORE, (-1, -1))
877884

0 commit comments

Comments
 (0)