just use cat instead of dd
This commit is contained in:
parent
2eef88f3c9
commit
3778aad721
1 changed files with 2 additions and 1 deletions
3
dump.sh
3
dump.sh
|
@ -23,6 +23,7 @@ for line in $(cat /proc/$pid/maps); do
|
|||
fi
|
||||
done
|
||||
|
||||
rm "$target_soname" 2>/dev/null ||:
|
||||
for line in ${lines[@]}; do
|
||||
dd if="/proc/$pid/map_files/$(echo "$line" | awk '{print $1}')" seek="$((16#$(echo "$line" | awk '{print $3}')))" of=$target_soname
|
||||
cat /proc/$pid/map_files/$(echo "$line" | awk '{print $1}') >> $target_soname
|
||||
done
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue