File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
modules/exploits/linux/local Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ class MetasploitModule < Msf::Exploit::Local
10
10
include Msf ::Post ::Linux ::System
11
11
include Msf ::Post ::Linux ::Kernel
12
12
include Msf ::Post ::File
13
+ include Msf ::Exploit ::EXE
13
14
14
15
def initialize ( info = { } )
15
16
super (
@@ -123,7 +124,7 @@ def write_payload
123
124
124
125
payload_dir = datastore [ 'Writable_Dir' ]
125
126
126
- payload_dir += '/' unless pay_dir . ends_with? '/'
127
+ payload_dir += '/' unless payload_dir . ends_with? '/'
127
128
128
129
payload_file = datastore [ 'Payload_Filename' ]
129
130
@@ -132,9 +133,9 @@ def write_payload
132
133
# create the payload
133
134
if target . arch . first == ARCH_CMD
134
135
payload = payload . encoded
135
- upload_and_chmodx pay_dest , payload
136
+ upload_and_chmodx @payload_dest , payload
136
137
else
137
- upload_and_chmodx pay_dest , generate_payload_exe
138
+ upload_and_chmodx @payload_dest , generate_payload_exe
138
139
end
139
140
end
140
141
You can’t perform that action at this time.
0 commit comments