termux-packages/check-pie.sh
Fredrik Fornwall 59f0d218a6 Initial push
2015-06-13 01:03:31 +02:00

10 lines
248 B
Bash
Executable File

#!/bin/sh
# check-pie.sh - script to detect non-PIE binaries (which does not work on Android)
cd /data/data/com.termux/files/usr/bin/
for file in *; do
if readelf -h $file 2>/dev/null | grep -q 'Type:[[:space:]]*EXEC'; then
echo $file
fi
done