Ullaakut / Gorsair

Gorsair gives root access on remote docker containers that expose their APIs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fail when downloading Gorsair: syntax error near unexpected token `<'

mydockergit opened this issue · comments

After I run:
curl https://github.com/Ullaakut/Gorsair/releases/download/1.1.0/gorsair_linux_amd64 --output /usr/local/bin/gorsair

and chmod 777 /usr/local/bin/gorsair.

I run gorsair and I get an error:

/usr/local/bin/gorsair: line 1: syntax error near unexpected token `<'
/usr/local/bin/gorsair: line 1: `<html><body>You are being <a href="https://github-production-release-asset-2e65be.s3.amazonaws.com/143321747/f74b3900-2d70-11e9-8129-9506787cd596?X-Amz-Algorithm=AWS4-HMAC-SHA256&amp;X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20190214%2Fus-east-1%2Fs3%2Faws4_request&amp;X-Amz-Date=20190214T143347Z&amp;X-Amz-Expires=300&amp;X-Amz-Signature=0783c1cf5b49ae9ce92c677a923efa3f613060f1d9e67719f35d4e5801a33c4f&amp;X-Amz-SignedHeaders=host&amp;actor_id=0&amp;response-content-disposition=attachment%3B%20filename%3Dgorsair_linux_amd64&amp;response-content-type=application%2Foctet-stream">redirected</a>.</body></html>'

It seems that the command you mentioned on the main page doesn't download the file correctly.

Hey @mydockergit !

Sorry about that, a stupid mistake on my part :)

Can you try with curl -sSL https://github.com/Ullaakut/Gorsair/releases/download/1.1.0/gorsair_darwin_amd64 --output /usr/local/bin/gorsair && chmod +x /usr/local/bin/gorsair ?

🙏🏽Thanks!

Great, it works.
I just needed to change the ARC to linux because I am using Ubuntu:
curl -sSL https://github.com/Ullaakut/Gorsair/releases/download/1.1.0/gorsair_linux_amd64 --output /usr/local/bin/gorsair && chmod +x /usr/local/bin/gorsair

Thank you for the quick respond !