mirror of
https://github.com/BishopFox/asminject.git
synced 2026-11-07 09:35:57 -10:00
5 lines
359 B
Bash
5 lines
359 B
Bash
#!/bin/bash
|
|
# Shortcut for creating relative offset lists for use with asminject.py
|
|
# You may need to install binutils (e.g. apt install binutils) if the readelf binary is not already present
|
|
|
|
readelf -a --wide "$1" | grep DEFAULT | grep -P '(FUNC|OBJECT)' | sed 's/ / /g' | sed 's/ / /g' | sed 's/ / /g' | sed 's/ / /g' | sed 's/ / /g' | cut -d" " -f3,9 |