From 39b365702f884a81cf8cda40425efd05a4afeaf2 Mon Sep 17 00:00:00 2001 From: alhazred Date: Mon, 26 Dec 2011 21:28:25 +1300 Subject: [PATCH] rename non existent local variable 'options' to correct session.options --- lib/net/ssh/service/forward.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/net/ssh/service/forward.rb b/lib/net/ssh/service/forward.rb index 989f574172..9a57a22c7d 100644 --- a/lib/net/ssh/service/forward.rb +++ b/lib/net/ssh/service/forward.rb @@ -249,11 +249,11 @@ module Net; module SSH; module Service 'PeerHost' => remote.host, 'PeerPort' => remote.port, 'Context' => { - 'Msf' => options[:msframework], - 'MsfExploit' => options[:msfmodule] + 'Msf' => session.options[:msframework], + 'MsfExploit' => session.options[:msfmodule] } ) - options[:msfmodule].add_socket(client) if options[:msfmodule] + options[:msfmodule].add_socket(client) if session.options[:msfmodule] info { "connected #{connected_address}:#{connected_port} originator #{originator_address}:#{originator_port}" }