/usr/lib/radare/bin/start2bin 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 | #!/bin/sh
#
# author: pancake <pancake@youterm.com>
#
FILE=$1
if [ -z "$FILE" ]; then
echo "Usage: start2bin [program|source.S]"
exit 1
fi
if [ "`echo $FILE|grep -e '\.S$' -e '\.s$'`" ]; then
gcc -fPIC -nostdlib $FILE -o /tmp/a.out
FILE="/tmp/a.out"
fi
if [ -x "$FILE" ]; then
strip $FILE
echo `objdump -d $FILE | cut -f 2| grep -v :`
else
echo "Oops. not a valid target file";
exit 1
fi
|