-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (46 loc) · 1.74 KB
/
witch_craft.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
name: witch_craft
on:
push:
branches:
- "trunk"
- "main"
- "stable"
pull_request:
branches:
- "*/*"
- "trunk"
- "main"
- "stable"
schedule:
- cron: "0 0 28-31 * *"
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Depedencies
run: |
echo && echo "Install dependencies"
sudo apt update
sudo apt install -y nmap whois dirb dnsenum libc-bin iproute2 xxd iptables coreutils wget curl \
dnsutils traceroute openssl openssh-server xattr libimage-exiftool-perl tor foremost pkg-config \
libssl-dev steghide libwebkit2gtk-4.1-dev build-essential curl wget file libxdo-dev 7zip \
libayatana-appindicator3-dev librsvg2-dev chromium-browser
# Install data
echo && echo "Install witch_spells data"
sudo cp -r witch_spells/ /var/
sudo chown -R $(whoami):$(whoami) /var/witch_spells
7z x /var/witch_spells/archive/osint/Archive.7z.001 -o/var/witch_spells/archive/osint/
7z x /var/witch_spells/archive/malware/full.7z.001 -o/var/witch_spells/archive/malware/
echo 'export WITCH_SPELLS_ROOT_DIR=/var/witch_spells/archive/' >> ~/.bash_profile
export WITCH_SPELLS_ROOT_DIR=/var/witch_spells/archive/
- name: Build
run: |
cargo build --release --manifest-path witch_craft/Cargo.toml
sudo chmod +x ./witch_craft/target/release/witch_craft
sudo cp -r ./witch_craft/target/release/witch_craft /bin/witchcraft
sudo ln -s /bin/witchcraft /bin/witchy
- name: Run tests
run: cargo test --verbose --manifest-path witch_craft/Cargo.toml