Path: blob/master/spec/support/acceptance/session/java.rb
31349 views
require_relative './shared'12module Acceptance::Session::Java3JAVA_METERPRETER = {4payloads: [5{6name: "java/meterpreter/reverse_tcp",7extension: ".jar",8platforms: [:osx, :linux, :windows],9execute_cmd: ["java", "-jar", "${payload_path}"],10generate_options: {11'-f': "jar"12},13datastore: {14global: {},15module: {16spawn: 017}18}19}20],21module_tests: [22{23name: "post/test/services",24platforms: [25[26:linux,27{28skip: true,29reason: "Windows only test"30}31],32[33:osx,34{35skip: true,36reason: "Windows only test"37}38],39:windows40],41skipped: false,42lines: {43linux: {44known_failures: []45},46osx: {47known_failures: []48},49windows: {50known_failures: [51"[-] [should start W32Time] FAILED: should start W32Time",52"[-] [should start W32Time] Exception: Rex::Post::Meterpreter::RequestError: stdapi_railgun_api: Operation failed: The command is not supported by this Meterpreter type (java/windows)",53"[-] [should stop W32Time] FAILED: should stop W32Time",54"[-] [should stop W32Time] Exception: Rex::Post::Meterpreter::RequestError: stdapi_railgun_api: Operation failed: The command is not supported by this Meterpreter type (java/windows)",55"[-] [should create a service testes] FAILED: should create a service testes",56"[-] [should create a service testes] Exception: Rex::Post::Meterpreter::RequestError: stdapi_railgun_api: Operation failed: The command is not supported by this Meterpreter type (java/windows)",57"[-] [should return info on the newly-created service testes] Could not retrieve the start type of the testes service!",58"[-] FAILED: should return info on the newly-created service testes",59"[-] [should delete the new service testes] FAILED: should delete the new service testes",60"[-] [should delete the new service testes] Exception: Rex::Post::Meterpreter::RequestError: stdapi_railgun_api: Operation failed: The command is not supported by this Meterpreter type (java/windows)",61"[-] [should return status on a given service winmgmt] FAILED: should return status on a given service winmgmt",62"[-] [should return status on a given service winmgmt] Exception: Rex::Post::Meterpreter::RequestError: stdapi_railgun_api: Operation failed: The command is not supported by this Meterpreter type (java/windows)",63"[-] [should modify config on a given service] FAILED: should modify config on a given service",64"[-] [should modify config on a given service] Exception: Rex::Post::Meterpreter::RequestError: stdapi_railgun_api: Operation failed: The command is not supported by this Meterpreter type (java/windows)",65"[-] [should start a disabled service] FAILED: should start a disabled service",66"[-] [should start a disabled service] Exception: Rex::Post::Meterpreter::RequestError: stdapi_railgun_api: Operation failed: The command is not supported by this Meterpreter type (java/windows)",67"[-] [should restart a started service W32Time] FAILED: should restart a started service W32Time",68"[-] [should restart a started service W32Time] Exception: Rex::Post::Meterpreter::RequestError: stdapi_railgun_api: Operation failed: The command is not supported by this Meterpreter type (java/windows)",69"[-] [should raise a runtime exception if no access to service] FAILED: should raise a runtime exception if no access to service",70"[-] [should raise a runtime exception if no access to service] Exception: Rex::Post::Meterpreter::RequestError: stdapi_railgun_api: Operation failed: The command is not supported by this Meterpreter type (java/windows)",71"[-] [should raise a runtime exception if services doesnt exist] FAILED: should raise a runtime exception if services doesnt exist",72"[-] [should raise a runtime exception if services doesnt exist] Exception: Rex::Post::Meterpreter::RequestError: stdapi_railgun_api: Operation failed: The command is not supported by this Meterpreter type (java/windows)"73]74}75}76},77{78name: "post/test/cmd_exec",79platforms: [:linux, :osx, :windows],80skipped: false,81lines: {82linux: {83known_failures: []84},85osx: {86known_failures: []87},88windows: {89known_failures: []90}91}92},93{94name: "post/test/extapi",95platforms: [:linux, :osx, :windows],96skipped: false,97lines: {98linux: {99known_failures: []100},101osx: {102known_failures: []103},104windows: {105known_failures: []106}107}108},109{110name: "post/test/file",111platforms: [:linux, :osx, :windows],112skipped: false,113lines: {114linux: {115known_failures: []116},117osx: {118known_failures: []119},120windows: {121known_failures: []122}123}124},125{126name: "post/test/get_env",127platforms: [:linux, :osx, :windows],128skipped: false,129lines: {130linux: {131known_failures: []132},133osx: {134known_failures: []135},136windows: {137known_failures: []138}139}140},141{142name: "post/test/meterpreter",143platforms: [:linux, :osx, :windows],144skipped: false,145lines: {146linux: {147known_failures: []148},149osx: {150known_failures: []151},152windows: {153known_failures: []154}155}156},157{158name: "post/test/railgun",159platforms: [:linux, :osx, :windows],160skipped: false,161lines: {162linux: {163known_failures: []164},165osx: {166known_failures: []167},168windows: {169known_failures: []170}171}172},173{174name: "post/test/railgun_reverse_lookups",175platforms: [:linux, :osx, :windows],176skipped: false,177lines: {178linux: {179known_failures: []180},181osx: {182known_failures: []183},184windows: {185known_failures: []186}187}188},189{190name: "post/test/registry",191platforms: [192[193:linux,194{195skip: true,196reason: "Windows only test"197}198],199[200:osx,201{202skip: true,203reason: "Windows only test"204}205],206:windows207],208skipped: false,209lines: {210linux: {211known_failures: []212},213osx: {214known_failures: []215},216windows: {217known_failures: [218"[-] FAILED: should write REG_EXPAND_SZ values",219"[-] FAILED: should write REG_SZ unicode values"220]221}222}223},224{225name: "post/test/search",226platforms: [:linux, :osx, :windows],227skipped: false,228lines: {229linux: {230known_failures: []231},232osx: {233known_failures: []234},235windows: {236known_failures: []237}238}239},240{241name: "post/test/socket_channels",242platforms: [:linux, :osx, :windows],243skipped: false,244lines: {245linux: {246known_failures: [247"[-] FAILED: [UDP] Has the correct peer information",248*Acceptance::Session::Shared::SOCKET_CHANNEL_FLAKES249]250},251osx: {252known_failures: [253"[-] FAILED: [UDP] Has the correct peer information",254*Acceptance::Session::Shared::SOCKET_CHANNEL_FLAKES255]256},257windows: {258known_failures: [259"[-] FAILED: [UDP] Has the correct peer information",260*Acceptance::Session::Shared::SOCKET_CHANNEL_FLAKES261]262}263}264},265{266name: "post/test/unix",267platforms: [268:linux,269:osx,270[271:windows,272{273skip: true,274reason: "Unix only test"275}276]277],278skipped: false,279lines: {280linux: {281known_failures: []282},283osx: {284known_failures: []285},286windows: {287known_failures: []288}289}290}291]292}293end294295296