News for hackers. Stuff that matters.
Re:Asciinema by maccard on Sunday June 21, 2015 @03:07PM (#9754536)
Once you've installed it you've given local privileges (or even root) to the app, so you're hosed anyway.
Re:Asciinema by vezzy-fnord on Sunday June 21, 2015 @03:31PM (#9754637)
I think the bigger danger is that since you're instructing a direct pipe-to-sh over the network without regard to exit status, you're running the risk of executing truncated code that could trash your system state.
Re:Asciinema by verteu on Sunday June 21, 2015 @03:42PM (#9754681)
The author addresses this issue by wrapping the script [1] in {} braces:

    { # Prevent execution if this script was only partially downloaded
    # installation code here
    } # End of wrapping
I'm not sure if this is a bulletproof solution.

[1] https://asciinema.org/install

Re:Asciinema by sickill on Sunday June 21, 2015 @05:19PM (#9755025)
That's correct. In case bash doesn't see closing braces it will error out with "syntax error" and won't execute anything.
Re:Asciinema by e12e on Monday June 22, 2015 @02:33AM (#9756542)
It's pretty rare for an app to need root privileges. You typically need root to write to the system dirs (/usr/* /bin etc). And in this particular case, the app has access (by design) to your terminal, so yeah, you need to trust the app a bit. But why would you need to demand all users of your system (even if that's just system users) also trust it?

Put it in ~/opt with xstow, and add ~/opt/bin to your path, ~/opt/man to your man-path, ~/opt/include, ~/opt/lib... to the various paths.

In this case, it seems like a lot of effort to get a tgz-archive just to download a single executable. I gather it's distributed as an archive in order for the Changelog, Readme and License to be available -- but as it's all downloaded from github anyway, it's hard to see why that really matters (rather than just have -h spit out a link or two).

As, if you're using a normal, full-featured web browser, there's no way of knowing if what you select, is what you copy and then paste -- it would probably be better to just link directly to the latest binary release for the various platforms (linux32, linux64, linux-arm, OSX 32bit, OSX 64bit) -- and let the user save the binary somewhere.

Limit the "command line instructions" to:

  go get github.com/asciinema/asciinema
rather than fighting idiomatic go practices.

If you really want to be clever, why not just use 0install?

http://0install.net/