Land #3618, @byt3bl33d3r's powershell require fix

bug/bundler_fix
Meatballs 2014-08-06 18:24:16 +01:00
commit 1c6b74467f
No known key found for this signature in database
GPG Key ID: 5380EAF01F2F8B38
1 changed files with 2 additions and 1 deletions

View File

@ -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,