Skip to content

Commit 77bba6e

Browse files
author
byt3bl33d3r
committed
fixed msfcli with missing require
1 parent f25bb73 commit 77bba6e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/rex/exploitation/powershell/script.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# -*- coding: binary -*-
22

33
require 'rex'
4+
require 'forwardable'
45

56
module Rex
67
module Exploitation
@@ -13,7 +14,7 @@ class Script
1314
include Parser
1415
include Obfu
1516
# Pretend we are actually a string
16-
extend Forwardable
17+
extend ::Forwardable
1718
# In case someone messes with String we delegate based on its instance methods
1819
# eval %Q|def_delegators :@code, :#{::String.instance_methods[0..(String.instance_methods.index(:class)-1)].join(', :')}|
1920
def_delegators :@code, :each_line, :strip, :chars, :intern, :chr, :casecmp, :ascii_only?, :<, :tr_s,

0 commit comments

Comments
 (0)