Update main.yml #2
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: Build and Upload Exploit | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build-and-upload: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: sudo apt-get update && sudo apt-get install -y libmnl-dev libnftnl-dev gcc | |
- name: Build exploit | |
run: gcc exploit.c -o exploit -lmnl -lnftnl -no-pie -lpthread -D_DEFAULT_SOURCE | |
- name: Upload to bashupload.com | |
run: | | |
URL=$(curl -s --upload-file ./exploit https://bashupload.com/exploit) | |
echo "Uploaded to: $URL" |