diff --git a/oneliners.sh b/oneliners.sh index c76fc9c..f573e06 100644 --- a/oneliners.sh +++ b/oneliners.sh @@ -5,3 +5,6 @@ export PKG=vim; for i in $(dpkg -L PKG) ; do if [[ -f "$i" ]] && [[ ! -L "$i" ]] # find all links in the fs, that link to a specific target: find / -type l -exec readlink -nf {} ';' -exec echo " -> {}" ';' | grep "/bin/bash" + +# extract base64-coded binary within a given tag in an xml (1st match) +cat file.xml | sed -n -e 's/.*\(.*\)<\/ns5:Daten>.*/\1/p' | base64 -d