Path: blob/master/spec/support/acceptance/session/php.rb
27862 views
module Acceptance::Session1PHP_METERPRETER = {2payloads: [3{4name: "php/meterpreter_reverse_tcp",5extension: ".php",6platforms: [:osx, :linux, :windows],7execute_cmd: ["php", "${payload_path}"],8generate_options: {9'-f': "raw"10},11datastore: {12global: {},13module: {14MeterpreterDebugBuild: true15}16}17}18],19module_tests: [20{21name: "post/test/services",22platforms: [23[24:linux,25{26skip: true,27reason: "Windows only test"28}29],30[31:osx,32{33skip: true,34reason: "Windows only test"35}36],37[38:windows,39{40skip: [41:meterpreter_runtime_version,42:==,43"php5.3"44],45reason: "Skip PHP 5.3 as the tests timeout - due to cmd_exec taking 15 seconds for each call. Caused by failure to detect feof correctly - https://github.com/rapid7/metasploit-payloads/blame/c7f7bc2fc0b86e17c3bc078149c71745c5e478b3/php/meterpreter/meterpreter.php#L1127-L1145"46}47]48],49skipped: false,50lines: {51linux: {52known_failures: []53},54osx: {55known_failures: []56},57windows: {58known_failures: []59}60}61},62{63name: "post/test/cmd_exec",64platforms: [:linux, :osx, :windows],65skipped: false,66lines: {67linux: {68known_failures: []69},70osx: {71known_failures: []72},73windows: {74known_failures: [75]76}77}78},79{80name: "post/test/extapi",81platforms: [:linux, :osx, :windows],82skipped: false,83lines: {84linux: {85known_failures: []86},87osx: {88known_failures: []89},90windows: {91known_failures: []92}93}94},95{96name: "post/test/file",97platforms: [:linux, :osx, :windows],98skipped: false,99lines: {100linux: {101known_failures: [102"[-] FAILED: should read the binary data we just wrote"103]104},105osx: {106known_failures: [107"[-] FAILED: should read the binary data we just wrote"108]109},110windows: {111known_failures: [112"[-] [should delete a symbolic link target] FAILED: should delete a symbolic link target",113"[-] [should delete a symbolic link target] Exception: Rex::Post::Meterpreter::RequestError: stdapi_fs_delete_dir: Operation failed: 1",114"[-] FAILED: should read the binary data we just wrote"115]116}117}118},119{120name: "post/test/get_env",121platforms: [:linux, :osx, :windows],122skipped: false,123lines: {124linux: {125known_failures: []126},127osx: {128known_failures: []129},130windows: {131known_failures: []132}133}134},135{136name: "post/test/meterpreter",137platforms: [:linux, :osx, :windows],138skipped: false,139lines: {140linux: {141known_failures: []142},143osx: {144known_failures: [145"[-] FAILED: should return a list of processes"146]147},148windows: {149known_failures: []150}151}152},153{154name: "post/test/railgun",155platforms: [:linux, :osx, :windows],156skipped: false,157lines: {158linux: {159known_failures: []160},161osx: {162known_failures: []163},164windows: {165known_failures: []166}167}168},169{170name: "post/test/railgun_reverse_lookups",171platforms: [:linux, :osx, :windows],172skipped: false,173lines: {174linux: {175known_failures: []176},177osx: {178known_failures: []179},180windows: {181known_failures: []182}183}184},185{186name: "post/test/registry",187platforms: [188[189:linux,190{191skip: true,192reason: "Windows only test"193}194],195[196:osx,197{198skip: true,199reason: "Windows only test"200}201],202[203:windows,204{205skip: [206:meterpreter_runtime_version,207:==,208"php5.3"209],210reason: "Skip PHP 5.3 as the tests timeout - due to cmd_exec taking 15 seconds for each call. Caused by failure to detect feof correctly - https://github.com/rapid7/metasploit-payloads/blame/c7f7bc2fc0b86e17c3bc078149c71745c5e478b3/php/meterpreter/meterpreter.php#L1127-L1145"211}212]213],214skipped: false,215lines: {216linux: {217known_failures: []218},219osx: {220known_failures: []221},222windows: {223known_failures: []224}225}226},227{228name: "post/test/search",229platforms: [:linux, :osx, :windows],230skipped: false,231lines: {232linux: {233known_failures: []234},235osx: {236known_failures: []237},238windows: {239known_failures: []240}241}242},243{244name: "post/test/socket_channels",245platforms: [:linux, :osx, :windows],246skipped: false,247lines: {248linux: {249known_failures: [250"[-] [[TCP-Server] Allows binding to port 0] FAILED: [TCP-Server] Allows binding to port 0",251"[-] [[TCP-Server] Allows binding to port 0] Exception: Rex::Post::Meterpreter::RequestError: core_channel_open: Operation failed: 1",252"[-] [[TCP-Server] Accepts a connection] FAILED: [TCP-Server] Accepts a connection",253"[-] [[TCP-Server] Accepts a connection] Exception: Rex::Post::Meterpreter::RequestError: core_channel_open: Operation failed: 1",254"[-] [[TCP-Server] Has the correct peer information] FAILED: [TCP-Server] Has the correct peer information",255"[-] [[TCP-Server] Has the correct peer information] Exception: Rex::Post::Meterpreter::RequestError: core_channel_open: Operation failed: 1",256"[-] [[TCP-Server] Receives data from the peer] FAILED: [TCP-Server] Receives data from the peer",257"[-] [[TCP-Server] Receives data from the peer] Exception: Rex::Post::Meterpreter::RequestError: core_channel_open: Operation failed: 1",258"[-] [[TCP-Server] Sends data to the peer] FAILED: [TCP-Server] Sends data to the peer",259"[-] [[TCP-Server] Sends data to the peer] Exception: Rex::Post::Meterpreter::RequestError: core_channel_open: Operation failed: 1",260"[-] [[TCP-Server] Propagates close events to the server] FAILED: [TCP-Server] Propagates close events to the server",261"[-] [[TCP-Server] Propagates close events to the server] Exception: Rex::Post::Meterpreter::RequestError: core_channel_open: Operation failed: 1",262"[-] [[TCP-Server] Propagates close events to the peer] FAILED: [TCP-Server] Propagates close events to the peer",263"[-] [[TCP-Server] Propagates close events to the peer] Exception: Rex::Post::Meterpreter::RequestError: core_channel_open: Operation failed: 1",264"[-] [[TCP-Server] Propagates close events from the peer] FAILED: [TCP-Server] Propagates close events from the peer",265"[-] [[TCP-Server] Propagates close events from the peer] Exception: Rex::Post::Meterpreter::RequestError: core_channel_open: Operation failed: 1",266"[-] FAILED: [UDP] Has the correct peer information"267]268},269osx: {270known_failures: [271"[-] [[TCP-Server] Allows binding to port 0] FAILED: [TCP-Server] Allows binding to port 0",272"[-] [[TCP-Server] Allows binding to port 0] Exception: Rex::Post::Meterpreter::RequestError: core_channel_open: Operation failed: 1",273"[-] [[TCP-Server] Accepts a connection] FAILED: [TCP-Server] Accepts a connection",274"[-] [[TCP-Server] Accepts a connection] Exception: Rex::Post::Meterpreter::RequestError: core_channel_open: Operation failed: 1",275"[-] [[TCP-Server] Has the correct peer information] FAILED: [TCP-Server] Has the correct peer information",276"[-] [[TCP-Server] Has the correct peer information] Exception: Rex::Post::Meterpreter::RequestError: core_channel_open: Operation failed: 1",277"[-] [[TCP-Server] Receives data from the peer] FAILED: [TCP-Server] Receives data from the peer",278"[-] [[TCP-Server] Receives data from the peer] Exception: Rex::Post::Meterpreter::RequestError: core_channel_open: Operation failed: 1",279"[-] [[TCP-Server] Sends data to the peer] FAILED: [TCP-Server] Sends data to the peer",280"[-] [[TCP-Server] Sends data to the peer] Exception: Rex::Post::Meterpreter::RequestError: core_channel_open: Operation failed: 1",281"[-] [[TCP-Server] Propagates close events to the server] FAILED: [TCP-Server] Propagates close events to the server",282"[-] [[TCP-Server] Propagates close events to the server] Exception: Rex::Post::Meterpreter::RequestError: core_channel_open: Operation failed: 1",283"[-] [[TCP-Server] Propagates close events to the peer] FAILED: [TCP-Server] Propagates close events to the peer",284"[-] [[TCP-Server] Propagates close events to the peer] Exception: Rex::Post::Meterpreter::RequestError: core_channel_open: Operation failed: 1",285"[-] [[TCP-Server] Propagates close events from the peer] FAILED: [TCP-Server] Propagates close events from the peer",286"[-] [[TCP-Server] Propagates close events from the peer] Exception: Rex::Post::Meterpreter::RequestError: core_channel_open: Operation failed: 1",287"[-] FAILED: [UDP] Has the correct peer information"288]289},290windows: {291known_failures: [292"[-] [[TCP-Server] Allows binding to port 0] FAILED: [TCP-Server] Allows binding to port 0",293"[-] [[TCP-Server] Allows binding to port 0] Exception: Rex::Post::Meterpreter::RequestError: core_channel_open: Operation failed: 1",294"[-] [[TCP-Server] Accepts a connection] FAILED: [TCP-Server] Accepts a connection",295"[-] [[TCP-Server] Accepts a connection] Exception: Rex::Post::Meterpreter::RequestError: core_channel_open: Operation failed: 1",296"[-] [[TCP-Server] Has the correct peer information] FAILED: [TCP-Server] Has the correct peer information",297"[-] [[TCP-Server] Has the correct peer information] Exception: Rex::Post::Meterpreter::RequestError: core_channel_open: Operation failed: 1",298"[-] [[TCP-Server] Receives data from the peer] FAILED: [TCP-Server] Receives data from the peer",299"[-] [[TCP-Server] Receives data from the peer] Exception: Rex::Post::Meterpreter::RequestError: core_channel_open: Operation failed: 1",300"[-] [[TCP-Server] Sends data to the peer] FAILED: [TCP-Server] Sends data to the peer",301"[-] [[TCP-Server] Sends data to the peer] Exception: Rex::Post::Meterpreter::RequestError: core_channel_open: Operation failed: 1",302"[-] [[TCP-Server] Propagates close events to the server] FAILED: [TCP-Server] Propagates close events to the server",303"[-] [[TCP-Server] Propagates close events to the server] Exception: Rex::Post::Meterpreter::RequestError: core_channel_open: Operation failed: 1",304"[-] [[TCP-Server] Propagates close events to the peer] FAILED: [TCP-Server] Propagates close events to the peer",305"[-] [[TCP-Server] Propagates close events to the peer] Exception: Rex::Post::Meterpreter::RequestError: core_channel_open: Operation failed: 1",306"[-] [[TCP-Server] Propagates close events from the peer] FAILED: [TCP-Server] Propagates close events from the peer",307"[-] [[TCP-Server] Propagates close events from the peer] Exception: Rex::Post::Meterpreter::RequestError: core_channel_open: Operation failed: 1",308"[-] FAILED: [UDP] Has the correct peer information"309]310}311}312},313{314name: "post/test/unix",315platforms: [316:linux,317:osx,318[319:windows,320{321skip: true,322reason: "Unix only test"323}324]325],326skipped: false,327lines: {328linux: {329known_failures: []330},331osx: {332known_failures: []333},334windows: {335known_failures: []336}337}338}339]340}341end342343344