Skip to content

Commit

Permalink
Merge pull request #38 from bcoles/patch-1
Browse files Browse the repository at this point in the history
Ignore memory regions mapped from file
  • Loading branch information
huntergregal authored Jul 8, 2018
2 parents 69a2ee6 + 7a42f50 commit b090da8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mimipenguin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function dump_pid () {
if [[ $system == "kali" ]]; then
mem_maps=$(grep -E "^[0-9a-f-]* r" /proc/"$pid"/maps | grep -E 'heap|stack' | cut -d' ' -f 1)
else
mem_maps=$(grep -E "^[0-9a-f-]* r" /proc/"$pid"/maps | cut -d' ' -f 1)
mem_maps=$(grep -E "^[0-9a-f-]* r" /proc/"$pid"/maps | grep -E -v 'lib|usr|bin' | cut -d' ' -f 1)
fi
while read -r memrange; do
memrange_start=$(echo "$memrange" | cut -d"-" -f 1)
Expand Down

0 comments on commit b090da8

Please sign in to comment.