Skip to content

Instantly share code, notes, and snippets.

@tarlepp

tarlepp/foo-0.sh Secret

Last active February 3, 2021 21:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tarlepp/309d68b161c1f16bb2b21e514145c110 to your computer and use it in GitHub Desktop.
Save tarlepp/309d68b161c1f16bb2b21e514145c110 to your computer and use it in GitHub Desktop.
curl -s https://api.github.com/repos/fabpot/local-php-security-checker/releases/latest | \
grep -E "browser_download_url(.+)linux_amd64" | \
cut -d : -f 2,3 | \
sed 's/"//g' | \
xargs -I{} wget -O local-php-security-checker {} \
&& mv local-php-security-checker /usr/bin/local-php-security-checker \
&& chmod +x /usr/bin/local-php-security-checker
curl -s https://api.github.com/repos/fabpot/local-php-security-checker/releases/latest \
| awk '/browser_download_url(.+)linux_amd64/{ printf $2 "\n" }' \
| xargs -I{} wget {} -O /usr/bin/local-php-security-checker \
&& chmod +x /usr/bin/local-php-security-checker
curl --silent https://api.github.com/repos/fabpot/local-php-security-checker/releases/latest \
| awk '/browser_download_url(.+)linux_amd64/{ printf $2 "\n" }' \
| xargs -I{} curl {} --location --output /usr/bin/local-php-security-checker \
&& chmod +x /usr/bin/local-php-security-checker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment