Merge pull request #781 from zeroSteiner/fix/met/java-socket-channel-… #362
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: WindowsMeterpreter | |
| # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions | |
| permissions: | |
| actions: none | |
| checks: none | |
| contents: none | |
| deployments: none | |
| id-token: none | |
| issues: none | |
| discussions: none | |
| packages: none | |
| pages: none | |
| pull-requests: none | |
| repository-projects: none | |
| security-events: none | |
| statuses: none | |
| on: | |
| push: | |
| paths: | |
| - 'c/**' | |
| - '.github/**' | |
| pull_request: | |
| paths: | |
| - 'c/**' | |
| - '.github/**' | |
| jobs: | |
| mingw: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 40 | |
| name: Meterpreter MinGW Docker Build | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| with: | |
| submodules: 'recursive' | |
| - name: Compile | |
| run: | | |
| cd c/meterpreter | |
| script --return --command 'make docker' | |
| windows: | |
| runs-on: windows-2022 | |
| timeout-minutes: 40 | |
| name: Meterpreter Visual Studio 2022 Build | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| with: | |
| submodules: 'recursive' | |
| # https://github.com/actions/runner-images/issues/4051#issuecomment-916971476 | |
| - name: Install Dependencies | |
| shell: pwsh | |
| run: |- | |
| Set-Location "C:\Program Files (x86)\Microsoft Visual Studio\Installer\" | |
| dir | |
| $InstallPath = "C:\Program Files\Microsoft Visual Studio\2022\Enterprise" | |
| $WorkLoads = '--config "D:\a\metasploit-payloads\metasploit-payloads\c\meterpreter\vs-configs\vs2022.vsconfig"' | |
| $Arguments = ('/c', "vs_installer.exe", 'modify', '--installPath', "`"$InstallPath`"", $WorkLoads, '--quiet', '--norestart', '--nocache') | |
| $process = Start-Process -FilePath cmd.exe -ArgumentList $Arguments -Wait -PassThru -WindowStyle Hidden | |
| if ($process.ExitCode -eq 0) { | |
| Write-Host "components have been successfully added" | |
| } else { | |
| Write-Host "components were not installed" | |
| exit 1 | |
| } | |
| - name: Compile | |
| shell: cmd | |
| run: |- | |
| cd c/meterpreter | |
| "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\VsDevCmd.bat" && make.bat |