Skip to content

Commit 8e642d4

Browse files
authored
Merge pull request #20689 from zeroSteiner/feat/mod/socket-channel-tests
Add socket channel tests
2 parents 8062673 + f2a05ad commit 8e642d4

File tree

6 files changed

+530
-0
lines changed

6 files changed

+530
-0
lines changed

spec/support/acceptance/session/java.rb

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,28 @@ module Acceptance::Session
236236
}
237237
}
238238
},
239+
{
240+
name: "post/test/socket_channels",
241+
platforms: [:linux, :osx, :windows],
242+
skipped: false,
243+
lines: {
244+
linux: {
245+
known_failures: [
246+
"[-] FAILED: [UDP] Has the correct peer information"
247+
]
248+
},
249+
osx: {
250+
known_failures: [
251+
"[-] FAILED: [UDP] Has the correct peer information"
252+
]
253+
},
254+
windows: {
255+
known_failures: [
256+
"[-] FAILED: [UDP] Has the correct peer information"
257+
]
258+
}
259+
}
260+
},
239261
{
240262
name: "post/test/unix",
241263
platforms: [

spec/support/acceptance/session/mettle.rb

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,28 @@ module Acceptance::Session
318318
}
319319
}
320320
},
321+
{
322+
name: "post/test/socket_channels",
323+
platforms: [:linux, :osx, :windows],
324+
skipped: false,
325+
lines: {
326+
linux: {
327+
known_failures: [
328+
"[-] FAILED: [UDP] Has the correct peer information"
329+
]
330+
},
331+
osx: {
332+
known_failures: [
333+
"[-] FAILED: [UDP] Has the correct peer information"
334+
]
335+
},
336+
windows: {
337+
known_failures: [
338+
"[-] FAILED: [UDP] Has the correct peer information"
339+
]
340+
}
341+
}
342+
},
321343
{
322344
name: "post/test/unix",
323345
platforms: [

spec/support/acceptance/session/php.rb

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,76 @@ module Acceptance::Session
241241
}
242242
}
243243
},
244+
{
245+
name: "post/test/socket_channels",
246+
platforms: [:linux, :osx, :windows],
247+
skipped: false,
248+
lines: {
249+
linux: {
250+
known_failures: [
251+
"[-] [[TCP-Server] Allows binding to port 0] FAILED: [TCP-Server] Allows binding to port 0",
252+
"[-] [[TCP-Server] Allows binding to port 0] Exception: Rex::Post::Meterpreter::RequestError: core_channel_open: Operation failed: 1",
253+
"[-] [[TCP-Server] Accepts a connection] FAILED: [TCP-Server] Accepts a connection",
254+
"[-] [[TCP-Server] Accepts a connection] Exception: Rex::Post::Meterpreter::RequestError: core_channel_open: Operation failed: 1",
255+
"[-] [[TCP-Server] Has the correct peer information] FAILED: [TCP-Server] Has the correct peer information",
256+
"[-] [[TCP-Server] Has the correct peer information] Exception: Rex::Post::Meterpreter::RequestError: core_channel_open: Operation failed: 1",
257+
"[-] [[TCP-Server] Receives data from the peer] FAILED: [TCP-Server] Receives data from the peer",
258+
"[-] [[TCP-Server] Receives data from the peer] Exception: Rex::Post::Meterpreter::RequestError: core_channel_open: Operation failed: 1",
259+
"[-] [[TCP-Server] Sends data to the peer] FAILED: [TCP-Server] Sends data to the peer",
260+
"[-] [[TCP-Server] Sends data to the peer] Exception: Rex::Post::Meterpreter::RequestError: core_channel_open: Operation failed: 1",
261+
"[-] [[TCP-Server] Propagates close events to the server] FAILED: [TCP-Server] Propagates close events to the server",
262+
"[-] [[TCP-Server] Propagates close events to the server] Exception: Rex::Post::Meterpreter::RequestError: core_channel_open: Operation failed: 1",
263+
"[-] [[TCP-Server] Propagates close events to the peer] FAILED: [TCP-Server] Propagates close events to the peer",
264+
"[-] [[TCP-Server] Propagates close events to the peer] Exception: Rex::Post::Meterpreter::RequestError: core_channel_open: Operation failed: 1",
265+
"[-] [[TCP-Server] Propagates close events from the peer] FAILED: [TCP-Server] Propagates close events from the peer",
266+
"[-] [[TCP-Server] Propagates close events from the peer] Exception: Rex::Post::Meterpreter::RequestError: core_channel_open: Operation failed: 1",
267+
"[-] FAILED: [UDP] Has the correct peer information"
268+
]
269+
},
270+
osx: {
271+
known_failures: [
272+
"[-] [[TCP-Server] Allows binding to port 0] FAILED: [TCP-Server] Allows binding to port 0",
273+
"[-] [[TCP-Server] Allows binding to port 0] Exception: Rex::Post::Meterpreter::RequestError: core_channel_open: Operation failed: 1",
274+
"[-] [[TCP-Server] Accepts a connection] FAILED: [TCP-Server] Accepts a connection",
275+
"[-] [[TCP-Server] Accepts a connection] Exception: Rex::Post::Meterpreter::RequestError: core_channel_open: Operation failed: 1",
276+
"[-] [[TCP-Server] Has the correct peer information] FAILED: [TCP-Server] Has the correct peer information",
277+
"[-] [[TCP-Server] Has the correct peer information] Exception: Rex::Post::Meterpreter::RequestError: core_channel_open: Operation failed: 1",
278+
"[-] [[TCP-Server] Receives data from the peer] FAILED: [TCP-Server] Receives data from the peer",
279+
"[-] [[TCP-Server] Receives data from the peer] Exception: Rex::Post::Meterpreter::RequestError: core_channel_open: Operation failed: 1",
280+
"[-] [[TCP-Server] Sends data to the peer] FAILED: [TCP-Server] Sends data to the peer",
281+
"[-] [[TCP-Server] Sends data to the peer] Exception: Rex::Post::Meterpreter::RequestError: core_channel_open: Operation failed: 1",
282+
"[-] [[TCP-Server] Propagates close events to the server] FAILED: [TCP-Server] Propagates close events to the server",
283+
"[-] [[TCP-Server] Propagates close events to the server] Exception: Rex::Post::Meterpreter::RequestError: core_channel_open: Operation failed: 1",
284+
"[-] [[TCP-Server] Propagates close events to the peer] FAILED: [TCP-Server] Propagates close events to the peer",
285+
"[-] [[TCP-Server] Propagates close events to the peer] Exception: Rex::Post::Meterpreter::RequestError: core_channel_open: Operation failed: 1",
286+
"[-] [[TCP-Server] Propagates close events from the peer] FAILED: [TCP-Server] Propagates close events from the peer",
287+
"[-] [[TCP-Server] Propagates close events from the peer] Exception: Rex::Post::Meterpreter::RequestError: core_channel_open: Operation failed: 1",
288+
"[-] FAILED: [UDP] Has the correct peer information"
289+
]
290+
},
291+
windows: {
292+
known_failures: [
293+
"[-] [[TCP-Server] Allows binding to port 0] FAILED: [TCP-Server] Allows binding to port 0",
294+
"[-] [[TCP-Server] Allows binding to port 0] Exception: Rex::Post::Meterpreter::RequestError: core_channel_open: Operation failed: 1",
295+
"[-] [[TCP-Server] Accepts a connection] FAILED: [TCP-Server] Accepts a connection",
296+
"[-] [[TCP-Server] Accepts a connection] Exception: Rex::Post::Meterpreter::RequestError: core_channel_open: Operation failed: 1",
297+
"[-] [[TCP-Server] Has the correct peer information] FAILED: [TCP-Server] Has the correct peer information",
298+
"[-] [[TCP-Server] Has the correct peer information] Exception: Rex::Post::Meterpreter::RequestError: core_channel_open: Operation failed: 1",
299+
"[-] [[TCP-Server] Receives data from the peer] FAILED: [TCP-Server] Receives data from the peer",
300+
"[-] [[TCP-Server] Receives data from the peer] Exception: Rex::Post::Meterpreter::RequestError: core_channel_open: Operation failed: 1",
301+
"[-] [[TCP-Server] Sends data to the peer] FAILED: [TCP-Server] Sends data to the peer",
302+
"[-] [[TCP-Server] Sends data to the peer] Exception: Rex::Post::Meterpreter::RequestError: core_channel_open: Operation failed: 1",
303+
"[-] [[TCP-Server] Propagates close events to the server] FAILED: [TCP-Server] Propagates close events to the server",
304+
"[-] [[TCP-Server] Propagates close events to the server] Exception: Rex::Post::Meterpreter::RequestError: core_channel_open: Operation failed: 1",
305+
"[-] [[TCP-Server] Propagates close events to the peer] FAILED: [TCP-Server] Propagates close events to the peer",
306+
"[-] [[TCP-Server] Propagates close events to the peer] Exception: Rex::Post::Meterpreter::RequestError: core_channel_open: Operation failed: 1",
307+
"[-] [[TCP-Server] Propagates close events from the peer] FAILED: [TCP-Server] Propagates close events from the peer",
308+
"[-] [[TCP-Server] Propagates close events from the peer] Exception: Rex::Post::Meterpreter::RequestError: core_channel_open: Operation failed: 1",
309+
"[-] FAILED: [UDP] Has the correct peer information"
310+
]
311+
}
312+
}
313+
},
244314
{
245315
name: "post/test/unix",
246316
platforms: [

spec/support/acceptance/session/python.rb

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,28 @@ module Acceptance::Session
253253
}
254254
}
255255
},
256+
{
257+
name: "post/test/socket_channels",
258+
platforms: [:linux, :osx, :windows],
259+
skipped: false,
260+
lines: {
261+
linux: {
262+
known_failures: [
263+
"[-] FAILED: [UDP] Has the correct peer information"
264+
]
265+
},
266+
osx: {
267+
known_failures: [
268+
"[-] FAILED: [UDP] Has the correct peer information"
269+
]
270+
},
271+
windows: {
272+
known_failures: [
273+
"[-] FAILED: [UDP] Has the correct peer information"
274+
]
275+
}
276+
}
277+
},
256278
{
257279
name: "post/test/unix",
258280
platforms: [

spec/support/acceptance/session/windows_meterpreter.rb

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,24 @@ module Acceptance::Session
359359
}
360360
}
361361
},
362+
{
363+
name: "post/test/socket_channels",
364+
platforms: [:linux, :osx, :windows],
365+
skipped: false,
366+
lines: {
367+
linux: {
368+
known_failures: []
369+
},
370+
osx: {
371+
known_failures: []
372+
},
373+
windows: {
374+
known_failures: [
375+
"[-] FAILED: [UDP] Has the correct peer information"
376+
]
377+
}
378+
}
379+
},
362380
{
363381
name: "post/test/unix",
364382
platforms: [

0 commit comments

Comments
 (0)