/usr/lib/radare/bin/boomerang is in radare-common 1:1.5.2-6.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | #!/bin/sh
#
# Usage: !rsc boomerang $FILE $XOFFSET
#
# author: pancake <@youterm.com>
#
FILE=$1
XOFFSET=$2
VERBOSE=$4
if [ -z "$XOFFSET" ]; then
echo "Usage: rsc boomerang [file] [offset]"
exit 1
fi
DIR=.boomerang-output
mkdir -p ${DIR}
rm -rf ${DIR}/*
if [ -n "${VERBOSE}" ]; then
boomerang -o ${DIR} -E $XOFFSET $FILE
less -r ${DIR}/*/*.c
else
boomerang -o ${DIR} -E $XOFFSET $FILE 2>&1 > /dev/null
cat ${DIR}/*/*.c
fi
rm -rf ${DIR}
|