-
Notifications
You must be signed in to change notification settings - Fork 14.9k
Resolve additional test failures for c2 branch #21656
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -30,11 +30,11 @@ on: | |
| type: boolean | ||
|
|
||
| jobs: | ||
| # Compile the Meterpreter payloads via docker if required, we can't always do this on the | ||
| # host environment (i.e. for macos). So it instead gets compiled first on a linux | ||
| # host, then the artifacts are copied back to the host later | ||
| # Compile Java Meterpreter and prepare PHP/Python payloads via docker if required, we can't | ||
| # always do this on the host environment (i.e. for macos). So it instead gets compiled first | ||
| # on a linux host, then the artifacts are copied back to the host later | ||
| meterpreter_compilation: | ||
| name: Compile Meterpreter | ||
| name: Build Meterpreter Gem (optional) | ||
| runs-on: ubuntu-latest | ||
| if: ${{ inputs.build_metasploit_payloads }} | ||
|
|
||
|
|
@@ -141,19 +141,22 @@ jobs: | |
| java-version: ${{ matrix.meterpreter.runtime_version }} | ||
|
|
||
| - name: Install system dependencies (Windows) | ||
| shell: cmd | ||
| shell: pwsh | ||
| if: runner.os == 'Windows' | ||
| run: | | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This was silently broken when pointing towards the custom 6.5 branches |
||
| REM pcap dependencies | ||
| powershell -Command "[System.Net.ServicePointManager]::ServerCertificateValidationCallback = {$true} ; [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; (New-Object System.Net.WebClient).DownloadFile('https://www.winpcap.org/install/bin/WpdPack_4_1_2.zip', 'C:\Windows\Temp\WpdPack_4_1_2.zip')" | ||
| $ErrorActionPreference = 'Stop' | ||
| # pcap dependencies | ||
| [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 | ||
| Invoke-WebRequest -Uri 'https://www.winpcap.org/install/bin/WpdPack_4_1_2.zip' -OutFile 'C:\Windows\Temp\WpdPack_4_1_2.zip' -SkipCertificateCheck | ||
| $expected = 'ea799cf2f26e4afb1892938070fd2b1ca37ce5cf75fec4349247df12b784edbd' | ||
| $actual = (Get-FileHash 'C:\Windows\Temp\WpdPack_4_1_2.zip' -Algorithm SHA256).Hash.ToLower() | ||
| if ($actual -ne $expected) { throw "WpdPack_4_1_2.zip SHA256 mismatch: expected $expected, got $actual" } | ||
|
|
||
| choco install 7zip.installServerCertificateValidationCallback | ||
| 7z x "C:\Windows\Temp\WpdPack_4_1_2.zip" -o"C:\" | ||
| choco install 7zip -y --no-progress | ||
| if ($LASTEXITCODE -ne 0) { throw "choco install 7zip failed with exit code $LASTEXITCODE" } | ||
|
|
||
| dir C:\\ | ||
|
|
||
| dir %WINDIR% | ||
| type %WINDIR%\\system32\\drivers\\etc\\hosts | ||
| 7z x "C:\Windows\Temp\WpdPack_4_1_2.zip" -o"C:\" | ||
| if ($LASTEXITCODE -ne 0) { throw "7z extraction failed with exit code $LASTEXITCODE" } | ||
|
|
||
| # The job checkout structure is: | ||
| # . | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -61,9 +61,9 @@ PATH | |
| metasploit-concern | ||
| metasploit-credential (>= 6.0.21) | ||
| metasploit-model | ||
| metasploit-payloads (= 2.0.245) | ||
| metasploit-payloads (= 2.0.246.pre.7) | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Looks like windows 2022 has been failing since pre5, but passed on pre4 - will merge this in, and resolve/debug that separately |
||
| metasploit_data_models (>= 6.0.15) | ||
| metasploit_payloads-mettle (= 1.0.46) | ||
| metasploit_payloads-mettle (= 1.0.48.pre.3) | ||
| mqtt | ||
| msgpack (~> 1.6.0) | ||
| mutex_m | ||
|
|
@@ -369,7 +369,7 @@ GEM | |
| drb | ||
| mutex_m | ||
| railties (>= 7.0, < 8.1) | ||
| metasploit-payloads (2.0.245) | ||
| metasploit-payloads (2.0.246.pre.7) | ||
| metasploit_data_models (6.0.18) | ||
| activerecord (>= 7.0, < 8.1) | ||
| activesupport (>= 7.0, < 8.1) | ||
|
|
@@ -383,7 +383,7 @@ GEM | |
| railties (>= 7.0, < 8.1) | ||
| recog | ||
| webrick | ||
| metasploit_payloads-mettle (1.0.46) | ||
| metasploit_payloads-mettle (1.0.48.pre.3) | ||
| method_source (1.1.0) | ||
| mime-types (3.7.0) | ||
| logger | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -135,7 +135,7 @@ def generate_config(opts = {}) | |
| # Mettle reserves a fixed 8 KB slot in the binary for the config | ||
| # block. Catch the overflow here with a useful message instead of | ||
| # letting the gem's `to_binary` raise a generic "config block too | ||
| # large" — baked-in EXTENSIONS= is the usual culprit. | ||
| # large" -- baked-in EXTENSIONS= is the usual culprit. | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Getting rid of non-ascii chars which aren't allowed in modules |
||
| if opts[:config_block].length > MetasploitPayloads::Mettle::CONFIG_BLOCK_MAX | ||
| raise ArgumentError, "Mettle config block (#{opts[:config_block].length} bytes) exceeds the #{MetasploitPayloads::Mettle::CONFIG_BLOCK_MAX}-byte embedded slot. " \ | ||
| "Drop EXTENSIONS= and `load <ext>` once the session is up." | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -144,9 +144,7 @@ module Acceptance::Session::Php | |
| known_failures: [] | ||
| }, | ||
| osx: { | ||
| known_failures: [ | ||
| "[-] FAILED: should return a list of processes" | ||
| ] | ||
| known_failures: [] | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Resolved: rapid7/metasploit-payloads#802 |
||
| }, | ||
| windows: { | ||
| known_failures: [] | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was silently broken when pointing towards the custom 6.5 branches