File tree Expand file tree Collapse file tree 2 files changed +22
-2
lines changed
lib/metasploit/framework/spec Expand file tree Collapse file tree 2 files changed +22
-2
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ def self.define_task
44
44
untested_payloads_pathname = Pathname . new 'log/untested-payloads.log'
45
45
46
46
if untested_payloads_pathname . exist?
47
- tool_path = 'tools/missing_payload_tests.rb'
47
+ tool_path = 'tools/modules/ missing_payload_tests.rb'
48
48
49
49
$stderr. puts "Untested payload detected. Running `#{ tool_path } ` to see contexts to add to " \
50
50
"`spec/modules/payloads_spec.rb` to test those payload ancestor reference names."
@@ -58,4 +58,4 @@ def self.define_task
58
58
end
59
59
end
60
60
end
61
- end
61
+ end
Original file line number Diff line number Diff line change 2245
2245
reference_name : 'python/meterpreter/reverse_tcp_uuid'
2246
2246
end
2247
2247
2248
+ context 'python/meterpreter_bind_tcp' do
2249
+ it_should_behave_like 'payload cached size is consistent' ,
2250
+ ancestor_reference_names : [
2251
+ 'singles/python/meterpreter_bind_tcp'
2252
+ ] ,
2253
+ dynamic_size : false ,
2254
+ modules_pathname : modules_pathname ,
2255
+ reference_name : 'python/meterpreter_bind_tcp'
2256
+ end
2257
+
2258
+ context 'python/meterpreter_reverse_tcp' do
2259
+ it_should_behave_like 'payload cached size is consistent' ,
2260
+ ancestor_reference_names : [
2261
+ 'singles/python/meterpreter_reverse_tcp'
2262
+ ] ,
2263
+ dynamic_size : false ,
2264
+ modules_pathname : modules_pathname ,
2265
+ reference_name : 'python/meterpreter_reverse_tcp'
2266
+ end
2267
+
2248
2268
context 'python/shell_reverse_tcp' do
2249
2269
it_should_behave_like 'payload cached size is consistent' ,
2250
2270
ancestor_reference_names : [
You can’t perform that action at this time.
0 commit comments