Skip to content

Commit a9e43c3

Browse files
committed
removes lingering debug lines, changes word script to module
1 parent 8bbaecc commit a9e43c3

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

lib/msf/base/sessions/scriptable.rb

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def execute_script(script_name, *args)
8686
copy_of_orig_exploit_datastore = original_exploit_datastore.clone
8787
# convert datastore opts to a hash to normalize casing issues
8888
local_exploit_opts = {}
89-
copy_of_orig_exploit_datastore.each do |k,v|
89+
copy_of_orig_exploit_datastore.each do |k,v|
9090
local_exploit_opts[k.downcase] = v
9191
end
9292
# we don't want to inherit a couple things, like AutoRunScript's
@@ -98,15 +98,7 @@ def execute_script(script_name, *args)
9898
# merge in any opts that were passed in, defaulting all other settings
9999
# to the values from the datastore (of the exploit) that spawned the
100100
# session
101-
print_debug "local_exploit_opts"
102-
print_error local_exploit_opts.inspect
103-
print_error "lport:#{local_exploit_opts['lport']},LPORT:#{local_exploit_opts['LPORT']}"
104-
print_error "payload:#{local_exploit_opts['payload']},PAYLOAD:#{local_exploit_opts['PAYLOAD']}"
105101
local_exploit_opts = local_exploit_opts.merge(opts)
106-
print_error "after merge"
107-
print_error local_exploit_opts.inspect
108-
print_error "lport:#{local_exploit_opts['lport']},LPORT:#{local_exploit_opts['LPORT']}"
109-
print_error "payload:#{local_exploit_opts['payload']},PAYLOAD:#{local_exploit_opts['PAYLOAD']}"
110102

111103
# try to run this local exploit, which is likely to be exception prone
112104
begin
@@ -139,7 +131,7 @@ def execute_script(script_name, *args)
139131

140132
# No path found? Weak.
141133
if full_path.nil?
142-
print_error("The specified script could not be found: #{script_name}")
134+
print_error("The specified module could not be found: #{script_name}")
143135
return true
144136
end
145137
framework.events.on_session_script_run(self, full_path)

0 commit comments

Comments
 (0)