Path: blob/master/spec/support/acceptance/session/python.rb
31327 views
require_relative './shared'12module Acceptance::Session::Python3PYTHON_METERPRETER = {4payloads: [5{6name: "python/meterpreter_reverse_tcp",7extension: ".py",8platforms: [:osx, :linux, :windows],9execute_cmd: ["python", "${payload_path}"],10generate_options: {11'-f': "raw"12},13datastore: {14global: {},15module: {16MeterpreterTryToFork: false,17PythonMeterpreterDebug: true18}19}20}21],22module_tests: [23{24name: "post/test/services",25platforms: [26[27:linux,28{29skip: true,30reason: "Windows only test"31}32],33[34:osx,35{36skip: true,37reason: "Windows only test"38}39],40:windows41],42skipped: false,43lines: {44linux: {45known_failures: []46},47osx: {48known_failures: []49},50windows: {51known_failures: [52"[-] [should start W32Time] FAILED: should start W32Time",53"[-] [should start W32Time] Exception: RuntimeError: Could not open service. OpenServiceA error: FormatMessage failed to retrieve the error for value 0x6.",54"[-] [should stop W32Time] FAILED: should stop W32Time",55"[-] [should stop W32Time] Exception: RuntimeError: Could not open service. OpenServiceA error: FormatMessage failed to retrieve the error for value 0x6.",56"[-] [should list services] FAILED: should list services",57# Ruby 3.258["[-] [should list services] Exception: NoMethodError: undefined method `service' for nil:NilClass", { flaky: true }],59# Ruby 3.4 - https://www.ruby-lang.org/en/news/2024/12/25/ruby-3-4-0-released/#Compatibility%20issues60["[-] [should list services] Exception: NoMethodError: undefined method 'service' for nil", { flaky: true }],61"[-] [should return info on a given service winmgmt] FAILED: should return info on a given service winmgmt",62# Ruby 3.263["[-] [should return info on a given service winmgmt] Exception: NoMethodError: undefined method `service' for nil:NilClass", { flaky: true }],64# Ruby 3.4 - https://www.ruby-lang.org/en/news/2024/12/25/ruby-3-4-0-released/#Compatibility%20issues65["[-] [should return info on a given service winmgmt] Exception: NoMethodError: undefined method 'service' for nil", { flaky: true }],66"[-] FAILED: should create a service testes",67"[-] [should return info on the newly-created service testes] FAILED: should return info on the newly-created service testes",68# Ruby 3.269["[-] [should return info on the newly-created service testes] Exception: NoMethodError: undefined method `service' for nil:NilClass", { flaky: true }],70# Ruby 3.4 - https://www.ruby-lang.org/en/news/2024/12/25/ruby-3-4-0-released/#Compatibility%20issues71["[-] [should return info on the newly-created service testes] Exception: NoMethodError: undefined method 'service' for nil", { flaky: true }],72"[-] [should delete the new service testes] FAILED: should delete the new service testes",73"[-] [should delete the new service testes] Exception: RuntimeError: Could not open service. OpenServiceA error: FormatMessage failed to retrieve the error for value 0x6.",74"[-] [should return status on a given service winmgmt] FAILED: should return status on a given service winmgmt",75"[-] [should return status on a given service winmgmt] Exception: RuntimeError: Could not open service. OpenServiceA error: FormatMessage failed to retrieve the error for value 0x6.",76"[-] [should modify config on a given service] FAILED: should modify config on a given service",77"[-] [should modify config on a given service] Exception: RuntimeError: Could not open service. OpenServiceA error: FormatMessage failed to retrieve the error for value 0x6.",78"[-] FAILED: should start a disabled service",79"[-] [should restart a started service W32Time] FAILED: should restart a started service W32Time",80"[-] [should restart a started service W32Time] Exception: RuntimeError: Could not open service. OpenServiceA error: FormatMessage failed to retrieve the error for value 0x6."81]82}83}84},85{86name: "post/test/cmd_exec",87platforms: [:linux, :osx, :windows],88skipped: false,89lines: {90linux: {91known_failures: []92},93osx: {94known_failures: []95},96windows: {97known_failures: []98}99}100},101{102name: "post/test/extapi",103platforms: [:linux, :osx, :windows],104skipped: false,105lines: {106linux: {107known_failures: []108},109osx: {110known_failures: []111},112windows: {113known_failures: [114# Ruby 3.2115["[-] [should return clipboard jpg dimensions] FAILED: should return clipboard jpg dimensions", { flaky: true }],116["[-] [should return clipboard jpg dimensions] Exception: NoMethodError: undefined method `clipboard' for nil:NilClass", { flaky: true }],117["[-] [should download clipboard jpg data] FAILED: should download clipboard jpg data", { flaky: true }],118["[-] [should download clipboard jpg data] Exception: NoMethodError: undefined method `clipboard' for nil:NilClass", { flaky: true }],119# Ruby 3.4 - https://www.ruby-lang.org/en/news/2024/12/25/ruby-3-4-0-released/#Compatibility%20issues120["[-] [should return clipboard jpg dimensions] FAILED: should return clipboard jpg dimensions", { flaky: true }],121["[-] [should return clipboard jpg dimensions] Exception: NoMethodError: undefined method 'clipboard' for nil", { flaky: true }],122["[-] [should download clipboard jpg data] FAILED: should download clipboard jpg data", { flaky: true }],123["[-] [should download clipboard jpg data] Exception: NoMethodError: undefined method 'clipboard' for nil", { flaky: true }],124]125}126}127},128{129name: "post/test/file",130platforms: [:linux, :osx, :windows],131skipped: false,132lines: {133linux: {134known_failures: []135},136osx: {137known_failures: []138},139windows: {140known_failures: []141}142}143},144{145name: "post/test/get_env",146platforms: [:linux, :osx, :windows],147skipped: false,148lines: {149linux: {150known_failures: []151},152osx: {153known_failures: []154},155windows: {156known_failures: []157}158}159},160{161name: "post/test/meterpreter",162platforms: [:linux, :osx, :windows],163skipped: false,164lines: {165linux: {166known_failures: []167},168osx: {169known_failures: []170},171windows: {172known_failures: [173]174}175}176},177{178name: "post/test/railgun",179platforms: [:linux, :osx, :windows],180skipped: false,181lines: {182linux: {183known_failures: []184},185osx: {186known_failures: []187},188windows: {189known_failures: []190}191}192},193{194name: "post/test/railgun_reverse_lookups",195platforms: [:linux, :osx, :windows],196skipped: false,197lines: {198linux: {199known_failures: []200},201osx: {202known_failures: []203},204windows: {205known_failures: []206}207}208},209{210name: "post/test/registry",211platforms: [212[213:linux,214{215skip: true,216reason: "Windows only test"217}218],219[220:osx,221{222skip: true,223reason: "Windows only test"224}225],226:windows227],228skipped: false,229lines: {230linux: {231known_failures: []232},233osx: {234known_failures: []235},236windows: {237known_failures: []238}239}240},241{242name: "post/test/search",243platforms: [:linux, :osx, :windows],244skipped: false,245lines: {246linux: {247known_failures: []248},249osx: {250known_failures: []251},252windows: {253known_failures: []254}255}256},257{258name: "post/test/socket_channels",259platforms: [:linux, :osx, :windows],260skipped: false,261lines: {262linux: {263known_failures: [264"[-] FAILED: [UDP] Has the correct peer information",265*Acceptance::Session::Shared::SOCKET_CHANNEL_FLAKES266]267},268osx: {269known_failures: [270"[-] FAILED: [UDP] Has the correct peer information",271*Acceptance::Session::Shared::SOCKET_CHANNEL_FLAKES272]273},274windows: {275known_failures: [276"[-] FAILED: [UDP] Has the correct peer information",277*Acceptance::Session::Shared::SOCKET_CHANNEL_FLAKES278]279}280}281},282{283name: "post/test/unix",284platforms: [285:linux,286:osx,287[288:windows,289{290skip: true,291reason: "Unix only test"292}293]294],295skipped: false,296lines: {297linux: {298known_failures: []299},300osx: {301known_failures: []302},303windows: {304known_failures: []305}306}307}308]309}310end311312313