From c93a907f13e117937bae4f047dcd658fc0629207 Mon Sep 17 00:00:00 2001 From: th3maid <36008397+th3maid@users.noreply.github.com> Date: Thu, 4 Jan 2024 12:09:30 -0300 Subject: [PATCH] removed build files --- witch_builder/Dockerfile | 13 ------ witch_builder/build.sh | 55 ----------------------- witch_builder/snapcraft.yaml | 87 ------------------------------------ 3 files changed, 155 deletions(-) delete mode 100644 witch_builder/Dockerfile delete mode 100755 witch_builder/build.sh delete mode 100644 witch_builder/snapcraft.yaml diff --git a/witch_builder/Dockerfile b/witch_builder/Dockerfile deleted file mode 100644 index e9af080..0000000 --- a/witch_builder/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -# Use a Rust base image -FROM ubuntu:latest - -# Set the working directory inside the container -WORKDIR /app - -# Copy the entire mono repo into the container -COPY . /app - -# Run your build script -RUN apt update && apt install -y sudo -RUN chmod +x build.sh -RUN ./build.sh diff --git a/witch_builder/build.sh b/witch_builder/build.sh deleted file mode 100755 index 0deb26c..0000000 --- a/witch_builder/build.sh +++ /dev/null @@ -1,55 +0,0 @@ -#!/bin/bash -set -e - -echo "MR Build System" - -echo && echo "Install dependencies" -sudo apt update -y -sudo apt install -y aptitude p7zip-full nmap curl xxd libc6 exiftool \ -traceroute wget iproute2 whois dnsutils dirb dnsenum tree htop iftop \ -clang sudo libwebkit2gtk-4.0-dev build-essential curl wget file libssl-dev \ -libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev - -echo && echo "Move config folders to /var" -sudo mkdir -p /var/witch_craft -sudo cp -r witch_spells/ /var/witch_craft -sudo chown -R $(whoami):$(whoami) /var/witch_craft - -echo && echo "Uncompress files" -7z x /var/witch_craft/witch_spells/malware/malware.csv.7z.001 -o/var/witch_craft/witch_spells/general/ -mv /var/witch_craft/witch_spells/general/full.csv /var/witch_craft/witch_spells/general/malware_hash.config - -echo && echo "SNAP Setup" -sudo apt install snapd -y - -echo && echo "Install virtualization" -sudo apt install virt-manager docker -y - -echo && echo "Cargo build monorepo" -cargo build --release --manifest-path witch_oracle/src-tauri/Cargo.toml -cargo build --release --manifest-path witch_craft/Cargo.toml - -echo && echo "Move applications to release" -mkdir -p ./release - -cp -r ./witch_oracle/src-tauri/target/release/witch_oracle ./release/ -cp -r ./witch_craft/target/release/witch_craft ./release/ - -echo && echo "TEST THE BINARY EXIT CODES" - -chmod +x ./release/* -cd ./release - -# Test and print status for each binary -test_binary() { - ./$1 - status=$? - if [ $status -eq 0 ]; then - echo "$1 exited successfully." - else - echo "$1 exited with an error code." - fi -} - -test_binary "witch_craft" -test_binary "witch_oracle" diff --git a/witch_builder/snapcraft.yaml b/witch_builder/snapcraft.yaml deleted file mode 100644 index bb507bd..0000000 --- a/witch_builder/snapcraft.yaml +++ /dev/null @@ -1,87 +0,0 @@ -name: maid-runner -base: core22 -version: '0.13.9' -summary: Maid Runner is a companion for cyber security tasks. -description: | - Maid Runner is a versatile task automation software designed to serve as the foundation for various cyber security modules. It provides capabilities for tasks such as forensic research, OSINT (Open Source Intelligence), scanning, backup and copying, intrusion testing of applications and APIs, and more. -license: GPL-3.0+ -architectures: - - build-on: amd64 -grade: devel -confinement: devmode -compression: lzo - -layout: - /var/maid: - bind: $SNAP/var/maid - -parts: - maid-lists: - plugin: dump - source: witch_spells/ - organize: - "*": /var/maid/ - maid-visual: - plugin: rust - rust-channel: "1.70" - source: witch_oracle/src-tauri/ - build-packages: - - libwebkit2gtk-4.0-dev - - build-essential - - libssl-dev - - libgtk-3-dev - - libayatana-appindicator3-dev - - librsvg2-dev - - cargo - - rustc - stage-packages: - - curl - - wget - - file - override-build: | - cargo build --release - maid-runner: - plugin: rust - source: witch_craft/ - build-packages: - - build-essential - - rustc - - cargo - stage-packages: - - p7zip-full - - nmap - - curl - - xxd - - libc6 - - exiftool - - traceroute - - wget - - iproute2 - - whois - - dnsutils - - dirb - - dnsenum - maid-api: - plugin: rust - source: maid_api/ - build-packages: - - build-essential - - rustc - - cargo - -apps: - maid-runner: - command: bin/witch_craft - plugs: - - home - - network - - maid-visual: - command: bin/witch_oracle - plugs: - - x11 - - wayland - - maid-api: - command: bin/maid_api -