Files
metasploit-gs/data/msfweb/app/controllers/ide_controller.rb
T
lmh 280c314a35 IDE being reworked.
git-svn-id: file:///home/svn/framework3/trunk@4049 4d416f70-5f16-0410-b530-b9f4589650da
2006-10-20 09:29:57 +00:00

51 lines
1.1 KiB
Ruby

# Author: L.M.H <lmh@info-pull.com>
# Description: The IDE controller of msfweb v.3. Handles views, processing,
# help and all actions related to the msfweb IDE for exploit development.
# Now Metasploit has a multi-platform IDE. Find bug. Click. Profit. (tm)
class IdeController < ApplicationController
layout 'msfide'
def index
redirect_to :action => "start"
end
def start
end
def advanced
end
def wizard
if params[:exploit]
@the_exploit = session[:exploit] = params[:exploit]
@step = @the_exploit["step"].to_i
elsif @step.nil?
@step = 0
@the_exploit = {}
end
flash[:error] = ""
end
def dump_current()
unless params[:format]
render_text "Missing format parameter."
return false
end
unless session[:exploit]
render_text "Missing exploit data."
return false
end
case params[:format]
when "yaml"
send_data YAML.dump(session[:exploit]), :type => "text/plain"
else
render_text "Missing format parameter."
return false
end
end
end