Skip to content

Commit b090da8

Browse files
authored
Merge pull request #38 from bcoles/patch-1
Ignore memory regions mapped from file
2 parents 69a2ee6 + 7a42f50 commit b090da8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mimipenguin.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function dump_pid () {
2424
if [[ $system == "kali" ]]; then
2525
mem_maps=$(grep -E "^[0-9a-f-]* r" /proc/"$pid"/maps | grep -E 'heap|stack' | cut -d' ' -f 1)
2626
else
27-
mem_maps=$(grep -E "^[0-9a-f-]* r" /proc/"$pid"/maps | cut -d' ' -f 1)
27+
mem_maps=$(grep -E "^[0-9a-f-]* r" /proc/"$pid"/maps | grep -E -v 'lib|usr|bin' | cut -d' ' -f 1)
2828
fi
2929
while read -r memrange; do
3030
memrange_start=$(echo "$memrange" | cut -d"-" -f 1)

0 commit comments

Comments
 (0)