From 77bba6e4ee735e12a1299d9733b55d6dd7da460c Mon Sep 17 00:00:00 2001 From: byt3bl33d3r Date: Tue, 5 Aug 2014 09:38:33 +0200 Subject: [PATCH] fixed msfcli with missing require --- lib/rex/exploitation/powershell/script.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/rex/exploitation/powershell/script.rb b/lib/rex/exploitation/powershell/script.rb index 0892b6b676..d793553cfb 100644 --- a/lib/rex/exploitation/powershell/script.rb +++ b/lib/rex/exploitation/powershell/script.rb @@ -1,6 +1,7 @@ # -*- coding: binary -*- require 'rex' +require 'forwardable' module Rex module Exploitation @@ -13,7 +14,7 @@ module Powershell include Parser include Obfu # Pretend we are actually a string - extend Forwardable + extend ::Forwardable # In case someone messes with String we delegate based on its instance methods # eval %Q|def_delegators :@code, :#{::String.instance_methods[0..(String.instance_methods.index(:class)-1)].join(', :')}| def_delegators :@code, :each_line, :strip, :chars, :intern, :chr, :casecmp, :ascii_only?, :<, :tr_s,