Add github actions for Windows Visual Studio 2019 C Meterpreter payload #79
Workflow file for this run
This file contains 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-2019 | |
timeout-minutes: 40 | |
name: Meterpreter vsdev build | |
steps: | |
# - name: Checkout code | |
# uses: actions/checkout@v3 | |
# with: | |
# submodules: 'recursive' | |
# - name: Install Visual Studio Dependencies | |
# shell: powershell | |
# # https://github.com/actions/runner-images/issues/4051#issuecomment-916971476 | |
# run: |- | |
# Set-Location "C:\Program Files (x86)\Microsoft Visual Studio\Installer\" | |
# $InstallPath = "C:\Program Files\Microsoft Visual Studio\2022\Preview" | |
# $WorkLoads = '--add Microsoft.VisualStudio.Component.WinXP' | |
# $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: |- | |
dir "C:\Program Files (x86)" | |
dir "C:\Program Files" | |
dir "C:\Program Files (x86)\Microsoft Visual Studio" | |
dir "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\" | |
dir "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7" | |
dir "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\Tools" | |
cd c/meterpreter | |
"C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\Tools\VsDevCmd.bat" && make.bat |