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