diff options
author | Niklas Baumstark <niklas.baumstark@gmail.com> | 2015-03-16 22:32:07 +0100 |
---|---|---|
committer | Niklas Baumstark <niklas.baumstark@gmail.com> | 2015-03-16 22:32:07 +0100 |
commit | 9616996dcd623a094bbe975f7e11118d33523afb (patch) | |
tree | f74a84eb8d47f67e29ac7431d42ee49d7cb7d269 /dump | |
download | libc-database-9616996dcd623a094bbe975f7e11118d33523afb.tar.gz libc-database-9616996dcd623a094bbe975f7e11118d33523afb.zip |
initial commit
Diffstat (limited to 'dump')
-rwxr-xr-x | dump | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -0,0 +1,16 @@ +#!/bin/bash +if [[ $# < 1 ]]; then + echo >&2 "Usage: $0 id [name1 [name2 ...]]" + exit 2 +fi +id=$1 +shift 1 +if [[ $# == 0 ]]; then + names="__libc_start_main_ret system dup2 recv str_bin_sh" +else + names="$@" +fi +for name in $names; do + offset=`cat db/${id}.symbols | grep "^$name " | cut -d' ' -f2` + echo "offset_${name} = 0x${offset}" +done |