Skip to content

Commit d11e41d

Browse files
authored
Merge pull request #21143 from SaiSakthidar/php-meterpreter-tcp-server-tests
Php meterpreter tcp server tests
2 parents 8858537 + 75f94fd commit d11e41d

File tree

5 files changed

+5
-53
lines changed

5 files changed

+5
-53
lines changed

Gemfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ PATH
4646
metasploit-concern
4747
metasploit-credential
4848
metasploit-model
49-
metasploit-payloads (= 2.0.242)
49+
metasploit-payloads (= 2.0.244)
5050
metasploit_data_models (>= 6.0.15)
5151
metasploit_payloads-mettle (= 1.0.46)
5252
mqtt
@@ -352,7 +352,7 @@ GEM
352352
drb
353353
mutex_m
354354
railties (~> 7.0)
355-
metasploit-payloads (2.0.242)
355+
metasploit-payloads (2.0.244)
356356
metasploit_data_models (6.0.15)
357357
activerecord (~> 7.0)
358358
activesupport (~> 7.0)

LICENSE_GEMS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ metasploit-concern, 5.0.5, "New BSD"
9999
metasploit-credential, 6.0.20, "New BSD"
100100
metasploit-framework, 6.4.126, "New BSD"
101101
metasploit-model, 5.0.4, "New BSD"
102-
metasploit-payloads, 2.0.242, "3-clause (or ""modified"") BSD"
102+
metasploit-payloads, 2.0.244, "3-clause (or ""modified"") BSD"
103103
metasploit_data_models, 6.0.15, "New BSD"
104104
metasploit_payloads-mettle, 1.0.46, "3-clause (or ""modified"") BSD"
105105
method_source, 1.1.0, MIT

metasploit-framework.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ Gem::Specification.new do |spec|
7474
# are needed when there's no database
7575
spec.add_runtime_dependency 'metasploit-model'
7676
# Needed for Meterpreter
77-
spec.add_runtime_dependency 'metasploit-payloads', '2.0.242'
77+
spec.add_runtime_dependency 'metasploit-payloads', '2.0.244'
7878
# Needed for the next-generation POSIX Meterpreter
7979
spec.add_runtime_dependency 'metasploit_payloads-mettle', '1.0.46'
8080
# Needed by msfgui and other rpc components

modules/payloads/singles/php/meterpreter_reverse_tcp.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
##
55

66
module MetasploitModule
7-
CachedSize = 36978
7+
CachedSize = 39726
88

99
include Msf::Payload::Single
1010
include Msf::Payload::Php::ReverseTcp

spec/support/acceptance/session/php.rb

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -250,66 +250,18 @@ module Acceptance::Session::Php
250250
lines: {
251251
linux: {
252252
known_failures: [
253-
"[-] [[TCP-Server] Allows binding to port 0] FAILED: [TCP-Server] Allows binding to port 0",
254-
"[-] [[TCP-Server] Allows binding to port 0] Exception: Rex::Post::Meterpreter::RequestError: core_channel_open: Operation failed: 1",
255-
"[-] [[TCP-Server] Accepts a connection] FAILED: [TCP-Server] Accepts a connection",
256-
"[-] [[TCP-Server] Accepts a connection] Exception: Rex::Post::Meterpreter::RequestError: core_channel_open: Operation failed: 1",
257-
"[-] [[TCP-Server] Has the correct peer information] FAILED: [TCP-Server] Has the correct peer information",
258-
"[-] [[TCP-Server] Has the correct peer information] Exception: Rex::Post::Meterpreter::RequestError: core_channel_open: Operation failed: 1",
259-
"[-] [[TCP-Server] Receives data from the peer] FAILED: [TCP-Server] Receives data from the peer",
260-
"[-] [[TCP-Server] Receives data from the peer] Exception: Rex::Post::Meterpreter::RequestError: core_channel_open: Operation failed: 1",
261-
"[-] [[TCP-Server] Sends data to the peer] FAILED: [TCP-Server] Sends data to the peer",
262-
"[-] [[TCP-Server] Sends data to the peer] Exception: Rex::Post::Meterpreter::RequestError: core_channel_open: Operation failed: 1",
263-
"[-] [[TCP-Server] Propagates close events to the server] FAILED: [TCP-Server] Propagates close events to the server",
264-
"[-] [[TCP-Server] Propagates close events to the server] Exception: Rex::Post::Meterpreter::RequestError: core_channel_open: Operation failed: 1",
265-
"[-] [[TCP-Server] Propagates close events to the peer] FAILED: [TCP-Server] Propagates close events to the peer",
266-
"[-] [[TCP-Server] Propagates close events to the peer] Exception: Rex::Post::Meterpreter::RequestError: core_channel_open: Operation failed: 1",
267-
"[-] [[TCP-Server] Propagates close events from the peer] FAILED: [TCP-Server] Propagates close events from the peer",
268-
"[-] [[TCP-Server] Propagates close events from the peer] Exception: Rex::Post::Meterpreter::RequestError: core_channel_open: Operation failed: 1",
269253
"[-] FAILED: [UDP] Has the correct peer information",
270254
*Acceptance::Session::Shared::SOCKET_CHANNEL_FLAKES
271255
]
272256
},
273257
osx: {
274258
known_failures: [
275-
"[-] [[TCP-Server] Allows binding to port 0] FAILED: [TCP-Server] Allows binding to port 0",
276-
"[-] [[TCP-Server] Allows binding to port 0] Exception: Rex::Post::Meterpreter::RequestError: core_channel_open: Operation failed: 1",
277-
"[-] [[TCP-Server] Accepts a connection] FAILED: [TCP-Server] Accepts a connection",
278-
"[-] [[TCP-Server] Accepts a connection] Exception: Rex::Post::Meterpreter::RequestError: core_channel_open: Operation failed: 1",
279-
"[-] [[TCP-Server] Has the correct peer information] FAILED: [TCP-Server] Has the correct peer information",
280-
"[-] [[TCP-Server] Has the correct peer information] Exception: Rex::Post::Meterpreter::RequestError: core_channel_open: Operation failed: 1",
281-
"[-] [[TCP-Server] Receives data from the peer] FAILED: [TCP-Server] Receives data from the peer",
282-
"[-] [[TCP-Server] Receives data from the peer] Exception: Rex::Post::Meterpreter::RequestError: core_channel_open: Operation failed: 1",
283-
"[-] [[TCP-Server] Sends data to the peer] FAILED: [TCP-Server] Sends data to the peer",
284-
"[-] [[TCP-Server] Sends data to the peer] Exception: Rex::Post::Meterpreter::RequestError: core_channel_open: Operation failed: 1",
285-
"[-] [[TCP-Server] Propagates close events to the server] FAILED: [TCP-Server] Propagates close events to the server",
286-
"[-] [[TCP-Server] Propagates close events to the server] Exception: Rex::Post::Meterpreter::RequestError: core_channel_open: Operation failed: 1",
287-
"[-] [[TCP-Server] Propagates close events to the peer] FAILED: [TCP-Server] Propagates close events to the peer",
288-
"[-] [[TCP-Server] Propagates close events to the peer] Exception: Rex::Post::Meterpreter::RequestError: core_channel_open: Operation failed: 1",
289-
"[-] [[TCP-Server] Propagates close events from the peer] FAILED: [TCP-Server] Propagates close events from the peer",
290-
"[-] [[TCP-Server] Propagates close events from the peer] Exception: Rex::Post::Meterpreter::RequestError: core_channel_open: Operation failed: 1",
291259
"[-] FAILED: [UDP] Has the correct peer information",
292260
*Acceptance::Session::Shared::SOCKET_CHANNEL_FLAKES
293261
]
294262
},
295263
windows: {
296264
known_failures: [
297-
"[-] [[TCP-Server] Allows binding to port 0] FAILED: [TCP-Server] Allows binding to port 0",
298-
"[-] [[TCP-Server] Allows binding to port 0] Exception: Rex::Post::Meterpreter::RequestError: core_channel_open: Operation failed: 1",
299-
"[-] [[TCP-Server] Accepts a connection] FAILED: [TCP-Server] Accepts a connection",
300-
"[-] [[TCP-Server] Accepts a connection] Exception: Rex::Post::Meterpreter::RequestError: core_channel_open: Operation failed: 1",
301-
"[-] [[TCP-Server] Has the correct peer information] FAILED: [TCP-Server] Has the correct peer information",
302-
"[-] [[TCP-Server] Has the correct peer information] Exception: Rex::Post::Meterpreter::RequestError: core_channel_open: Operation failed: 1",
303-
"[-] [[TCP-Server] Receives data from the peer] FAILED: [TCP-Server] Receives data from the peer",
304-
"[-] [[TCP-Server] Receives data from the peer] Exception: Rex::Post::Meterpreter::RequestError: core_channel_open: Operation failed: 1",
305-
"[-] [[TCP-Server] Sends data to the peer] FAILED: [TCP-Server] Sends data to the peer",
306-
"[-] [[TCP-Server] Sends data to the peer] Exception: Rex::Post::Meterpreter::RequestError: core_channel_open: Operation failed: 1",
307-
"[-] [[TCP-Server] Propagates close events to the server] FAILED: [TCP-Server] Propagates close events to the server",
308-
"[-] [[TCP-Server] Propagates close events to the server] Exception: Rex::Post::Meterpreter::RequestError: core_channel_open: Operation failed: 1",
309-
"[-] [[TCP-Server] Propagates close events to the peer] FAILED: [TCP-Server] Propagates close events to the peer",
310-
"[-] [[TCP-Server] Propagates close events to the peer] Exception: Rex::Post::Meterpreter::RequestError: core_channel_open: Operation failed: 1",
311-
"[-] [[TCP-Server] Propagates close events from the peer] FAILED: [TCP-Server] Propagates close events from the peer",
312-
"[-] [[TCP-Server] Propagates close events from the peer] Exception: Rex::Post::Meterpreter::RequestError: core_channel_open: Operation failed: 1",
313265
"[-] FAILED: [UDP] Has the correct peer information",
314266
*Acceptance::Session::Shared::SOCKET_CHANNEL_FLAKES
315267
]

0 commit comments

Comments
 (0)