Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/spec/support/acceptance/session/php.rb
Views: 11784
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/unix",245platforms: [246:linux,247:osx,248[249:windows,250{251skip: true,252reason: "Unix only test"253}254]255],256skipped: false,257lines: {258linux: {259known_failures: []260},261osx: {262known_failures: []263},264windows: {265known_failures: []266}267}268}269]270}271end272273274