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