Kerala Cyber Warriors
KCW Uploader V1.1

Path : /usr/lib/rpm/
File Upload :
Current File : //usr/lib/rpm/script.req

#!/bin/sh

# TODO: handle "#!/usr/bin/env foo" somehow
while read filename; do
    # common cases 
    sed -n -e '1s:^#![[:space:]]*\(/[^[:space:]]\{1,\}\).*:\1:p' "$filename"
    #!/usr/bin/env /foo/bar
    sed -n -e '1s:^#![[:space:]]*[^[:space:]]*/bin/env[[:space:]]\{1,\}\(/[^[:space:]]\{1,\}\):\1:p' "$filename"
done

-=[ KCW uplo4d3r c0ded by cJ_n4p573r ]=-
Ⓒ2017 ҠЄГѦLѦ СүѣЄГ ЩѦГГіѺГՏ