diff --git a/.dockerignore b/.dockerignore deleted file mode 100644 index b60de5b5..00000000 --- a/.dockerignore +++ /dev/null @@ -1 +0,0 @@ -**/target diff --git a/.github/workflows/witch_craft.yml b/.github/workflows/witchcraft.yml similarity index 54% rename from .github/workflows/witch_craft.yml rename to .github/workflows/witchcraft.yml index cf426629..465702a3 100644 --- a/.github/workflows/witch_craft.yml +++ b/.github/workflows/witchcraft.yml @@ -1,4 +1,4 @@ -name: witch_craft +name: witchcraft on: push: @@ -31,23 +31,21 @@ jobs: 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 + libayatana-appindicator3-dev librsvg2-dev chromium-browser git # 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/ + echo && echo "Install spellbook data" + sudo cp -r spellbook/ /var/ + sudo chown -R $(whoami):$(whoami) /var/spellbook + echo 'export WITCH_SPELLS_ROOT_DIR=/var/spellbook/archive/' >> ~/.bash_profile + export WITCH_SPELLS_ROOT_DIR=/var/spellbook/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 + cargo build --release --manifest-path witchcraft/Cargo.toml + sudo chmod +x ./witchcraft/target/release/witchcraft + sudo cp -r ./witchcraft/target/release/witchcraft /bin/witchcraft sudo ln -s /bin/witchcraft /bin/witchy - name: Run tests - run: cargo test --verbose --manifest-path witch_craft/Cargo.toml + run: cargo test --verbose --manifest-path witchcraft/Cargo.toml diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md deleted file mode 100644 index 246d3138..00000000 --- a/CONTRIBUTING.md +++ /dev/null @@ -1,176 +0,0 @@ -# witch_craft Open Source Project Contribution Guidelines - -Welcome to the witch_craft project! witch_craft provides capabilities for -tasks such as forensic research, OSINT (Open Source Intelligence), -scanning, -backup and copying, intrusion testing of applications and APIs, and more. - -To ensure a smooth and collaborative development process, please -follow the -guidelines outlined below when contributing to witch_craft. - -**Contribution Workflow** - -witch_craft follows a Continuous Integration/Continuous Deployment (CI/CD) -model, replacing the traditional Git Flow model. Our development -process is -centered around: push changes on trunk branch, automated testing and -delivery. - -For internal development within your organization, you can leverage -TBD and -build systems running on your servers to speed up the process. This -includes -real-time code reviews using shared programming strategies. - -For community contributions, we conduct manual code reviews and approve -merges after evaluating each pull request. The code must meet certain -quality -standards, including unit and integration tests. - -If a requirement is not present but a pull request adds substantial -value, we -will analyze it and attempt to implement the rest of the -requirements. However, -maintaining good coding practices and consistency are non-negotiable. - -**Trunk-Based Development** - -This project utilizes a Trunk-Based Development (TBD) approach for -its software -development lifecycle. Trunk-Based Development is a software development -methodology that emphasizes continuous integration and collaboration among -developers. Here's a brief overview of how we implement TBD in this -project: -Branching Strategy - -*"In Trunk-Based Development, we maintain a single long-lived branch -called -the "trunk" or "trunk" branch. All developers work directly on this branch -for most of their coding tasks."* - -We greatly appreciate your dedication and contributions to our project. To -ensure that we maintain the highest standards of development practices -and align with our chosen methodology, Trunk-Based Development (TBD), we -kindly request that you take a moment to review the content available on -trunkbaseddevelopment.com before submitting any changes. - -**Here's why this is important:** - -- Alignment with Best Practices: Trunk-Based Development (TBD) is -a cornerstone -of our development process. The website provides comprehensive insights -into -TBD principles, benefits, and practical implementations that can greatly -benefit your contributions. - -- Efficient Collaboration: Understanding TBD principles helps us work -together -more efficiently, reducing the likelihood of merge conflicts and ensuring -a smoother development process. - -- Quality Assurance: By familiarizing yourself with TBD, you can -ensure that -your changes align with the methodology's principles, leading to -higher code -quality and better integration into the main branch. - -- Reduced Disruptions: Proper adherence to TBD minimizes disruptions -to the -main branch, allowing us to maintain a stable and deployable codebase at -all times. - -We believe that taking the time to review the resources available on -trunk-based development -website -will enhance the quality of your contributions and ultimately benefit the -entire project. - -**If you have any questions about our project, please feel free to open an -issue on github.** - -**Branch Strategy for Community** - -- Create a new branch for your feature or bug fix based on the trunk -branch. - - - Branch naming convention: feature/feature_name or - bugfix/bug_description - -- Develop your feature or fix within your branch. - -- Ensure that your code changes are accompanied by appropriate unit tests -and documentation. - -- Commit your changes with clear, concise commit messages following our -commit message conventions. - -- Push your feature branch to the remote repository. - -- Create a pull request (PR) targeting the trunk branch. - Ensure that the PR description includes details about the changes - made and the problem they solve. - -- The CI/CD pipeline will automatically run tests and checks on your PR. - -- Address any feedback or issues raised in the PR review. - -- Once the PR passes all tests and reviews, it will be merged into -the trunk -branch by the project maintainers. - -**Commit Message Conventions** - -*When making commits, please follow these guidelines for clear and -informative -commit messages:* - -- Use the present tense: "Add feature" not "Added feature" or "Adding -feature." -- Use imperative mood: "Fix bug" not "Fixes bug" or "Fixed bug." - -Example commit messages: - -- "Update documentation for new feature" -- "Fix issue with file validation in backup module" -- "Add unit tests for API scanning functionality" - -**Getting Started** - -To get started with contributing to witch_craft, follow these steps: - -1. Fork the witch_craft repository on GitHub. -2. Clone your forked repository to your local machine: - -``` bash -git clone -``` - -Create a new branch for your contribution: - -``` bash -git checkout -b feature/your-feature -``` - -Make your changes and commit them following the commit message -conventions. - -Push your branch to your GitHub fork: - -``` bash -git push origin feature/your-feature -``` - -Create a pull request to the trunk branch of the main witch_craft -repository. - -**Code of Conduct** - -Please adhere to our Code of Conduct when participating in the witch_craft -community. We promote a welcoming and inclusive environment for all -contributors. - -Thank you for contributing to witch_craft. - -Note: This Contribution Guidelines document is subject to change, so make -sure to check it regularly for updates. diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 40a183d1..00000000 --- a/Dockerfile +++ /dev/null @@ -1,4 +0,0 @@ -FROM rust:latest -RUN apt-get update && apt-get install -y git sudo wget p7zip-full -WORKDIR /app -CMD ["bash"] diff --git a/README.md b/README.md index 2b8eed41..3b0a3eb0 100644 --- a/README.md +++ b/README.md @@ -1,25 +1,25 @@ -![banner](witch_docs/media_kit/splited.png) +![banner](docs/documentation/media_kit/splited.png) -![banner](witch_docs/images/lineBar.png) +![banner](docs/documentation/images/lineBar.png) -![witch_craft](https://img.shields.io/github/actions/workflow/status/th3maid/witch_craft/witch_craft.yml) -![GitHub issues](https://img.shields.io/github/issues/th3maid/witch_craft) -![GitHub License](https://img.shields.io/github/license/th3maid/witch_craft) -![GitHub top language](https://img.shields.io/github/languages/top/th3maid/witch_craft) +![witchcraft](https://img.shields.io/github/actions/workflow/status/th3maid/witchcraft/witchcraft.yml) +![GitHub issues](https://img.shields.io/github/issues/th3maid/witchcraft) +![GitHub License](https://img.shields.io/github/license/th3maid/witchcraft) +![GitHub top language](https://img.shields.io/github/languages/top/th3maid/witchcraft)

-

WITCH_CRAFT

+

WITCHCRAFT 0.33.666 Final

- ๐ŸŽ‰ Welcome to the witch_craft Community! + ๐ŸŽ‰ Welcome to the witchcraft Community!

--- -### WITCH_CRAFT +### WITCHCRAFT -WITCH_CRAFT is a task automation tool for cybersecurity. It handles forensic research, OSINT, scanning, backups, data copying, and penetration testing for apps and APIs, serving as a flexible platform for diverse security tasks. +WITCHCRAFT is a task automation tool for cybersecurity. It handles forensic research, OSINT, scanning, backups, data copying, and penetration testing for apps and APIs, serving as a flexible platform for diverse security tasks. ### Visit the wiki: @@ -31,7 +31,7 @@ The project initially includes a set of default files. These files are created using the best possible data analysis techniques, and their final versions are merged into the main project. -The witch_spells package also provide: +The spellbook package also provide: - **Advanced osint search in over 1000 sources** - **Default Credentials Database** @@ -59,7 +59,7 @@ The witch_spells package also provide: #### After installed add a snap alias: ```console -sudo snap alias witchcraft-cybersecurity.witchcraft witch_craft +sudo snap alias witchcraft-cybersecurity.witchcraft witchcraft ``` ### Build from source using docker @@ -81,8 +81,8 @@ To build the project, follow these instructions: **Step 1: Clone the Repository** ```bash -git clone https://github.com/th3Maid/witch_craft.git --branch=trunk --depth 1 -cd witch_craft +git clone https://github.com/th3Maid/witchcraft.git --branch=trunk --depth 1 +cd witchcraft ``` **Step 2: Run the Build Script** @@ -98,10 +98,10 @@ The script will prompt you to enter the root password, create a folder called 'r **Running Witch_Craft** -Execute the following command to run the witch_craft application: +Execute the following command to run the witchcraft application: ```bash -witch_craft +witchcraft ``` **Note**: The first argument will always not have a "-" (minus) before it. @@ -109,22 +109,22 @@ witch_craft #### This script will run like: ```bash -witch_craft nuke.hd --device /dev/sdx1 +witchcraft nuke.hd --device /dev/sdx1 ``` ```bash -witch_craft search.meta --keywork "Anonymous" +witchcraft search.meta --keywork "Anonymous" ``` ```bash -witch_craft search.ipscore --ip 127.0.0.1 +witchcraft search.ipscore --ip 127.0.0.1 ``` ### Plugins -The witch_craft project is extensible through static files and Rust code. Moreover, it is possible to extend its functionalities using `db.json`. This file contains a list of small shell scripts, which means you can integrate anything that interacts with the terminal using ARGS (argsv, readargs(), sys.args(), etc). +The witchcraft project is extensible through static files and Rust code. Moreover, it is possible to extend its functionalities using `db.json`. This file contains a list of small shell scripts, which means you can integrate anything that interacts with the terminal using ARGS (argsv, readargs(), sys.args(), etc). -**Note**: There is a Python script called sort.py inside /var/witch_craft/witch_spells/dataset. It is used to create a sorted version of the dataset. +**Note**: There is a Python script called sort.py inside /var/witchcraft/spellbook/dataset. It is used to create a sorted version of the dataset. ```json { @@ -136,7 +136,7 @@ The witch_craft project is extensible through static files and Rust code. Moreov ### Evilpages -Put your cloned pages in /var/witch_craft/witch_spells/evilpages. Use the SingleFile extension or a similar tool to clone webpages: +Put your cloned pages in /var/witchcraft/spellbook/evilpages. Use the SingleFile extension or a similar tool to clone webpages: https://addons.mozilla.org/en-US/firefox/addon/single-file/ @@ -160,6 +160,6 @@ path_log_file=/path/to/my/file.jsonl ๐ŸŽ‰ This project is licensed under the GNU General Public License v3.0.

-**WITCH_CRAFT includes IP2Proxy LITE data available from https://www.ip2location.com/proxy-database** +**WITCHCRAFT includes IP2Proxy LITE data available from https://www.ip2location.com/proxy-database** -**WITCH_CRAFT includes cinsscore data available from https://www.cinsscore.com** +**WITCHCRAFT includes cinsscore data available from https://www.cinsscore.com** diff --git a/SECURITY.md b/SECURITY.md deleted file mode 100644 index 47494b1b..00000000 --- a/SECURITY.md +++ /dev/null @@ -1,17 +0,0 @@ -# Security Policy - -Although we do our best to prevent vulnerabilities, and have tools to help -catch most of them, we are humans after all, and there will be inevitably -issues slipping through the cracks. - -They can fall into two categories, either in any of the tools in the -witch_craft suite, or in our presence online (website, forum, emails, -DNS, etc.). - -Depending on which category they fall into, different information is -needed. We do believe in coordinated disclosure, so in order to address them, and -coordinate disclosure with you (and properly credit you for the -discovery), report them to us. Do not open bug reports or pull requests. - -Bug found? Questions? Access witch_craft community: -[discussions](https://github.com/cosmic-zip/witch_craft/discussions) diff --git a/build-devel.sh b/build-devel.sh new file mode 100755 index 00000000..d0f2fa10 --- /dev/null +++ b/build-devel.sh @@ -0,0 +1,47 @@ +#!/bin/bash +set -e + +# Install deps +echo && echo "Install dependencies" +sudo apt update > /dev/null +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 git > /dev/null + +# Install rust if not exists +if ! command -v rustc &> /dev/null; then + curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh +fi + +# Install data +echo && echo "Install spellbook data" +sudo cp -r --update=none spellbook/ /var/ +sudo chown -R $(whoami):$(whoami) /var/spellbook +echo 'export WITCH_SPELLS_ROOT_DIR=/var/spellbook/archive/' >> ~/.bash_profile +export WITCH_SPELLS_ROOT_DIR=/var/spellbook/archive/ + +# Wordlist +echo && echo "Wordlists and Malware sigs are too big 700Mb so, if you want or need then, just run:" +echo "git clone https://github.com/cosmic-zip/witchcraft-wordlists /var/spellbook/" + +# Build binary +echo && echo "Cargo build" +cargo build --release --manifest-path witchcraft/Cargo.toml +chmod +x ./witchcraft/target/release/witchcraft +sudo cp -r ./witchcraft/target/release/witchcraft /bin/witchcraft + +echo && echo "Build dist packages" +rm -rf ./dist +mkdir ./dist + +echo && echo "Creating the installer" +cp spellbook/archive/scripts/installer.sh dist/ +cp spellbook/archive/scripts/uninstall.sh dist/ +cp -r ./witchcraft/target/release/witchcraft ./dist/ +cp -r spellbook ./dist +zip -r witchcraft.zip dist/ > /dev/null +mv witchcraft.zip dist/ +rm -r dist/spellbook dist/witchcraft + +echo && echo "Done!" diff --git a/build-dist.sh b/build-dist.sh deleted file mode 100755 index 443c3ee2..00000000 --- a/build-dist.sh +++ /dev/null @@ -1,18 +0,0 @@ -echo && echo "Build packages" -mkdir ./dist - -cp -r ./witch_craft/target/release/witch_craft ./dist/ -cp witch_spells ./dist - -zip -r witch_craft-full.zip dist/ -mv witch_craft-full.zip dist/ - -rm -r dist/witch_spells/archive/wordlists/ -rm -r dist/witch_spells/archive/malware/ -rm dist/witch_spells/archive/osint/Archive.7z.00* -zip -r witch_craft-lite.zip dist/ -mv witch_craft-lite.zip dist/ - -rm -r dist/witch_spells -rm witch_craft -rm install.sh diff --git a/build.sh b/build.sh deleted file mode 100755 index 0a2f2a82..00000000 --- a/build.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/bin/bash -set -e - -# Install deps -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 rust if not exists -if ! command -v rustc &> /dev/null; then - curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -fi - -# Install data -echo && echo "Install witch_spells data" -sudo cp -nr 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/ - -# Wordlist -echo && echo "Wordlists are big (16GB) so, if you want or need then, just run:" -echo "7z x /var/witch_craft/witch_spells/wordlists/ladybug.pwned" -echo "7z x /var/witch_craft/witch_spells/wordlists/moth.pwned.7z.001" - -# Build binary -echo && echo "Cargo build" -cargo build --release --manifest-path witch_craft/Cargo.toml -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 diff --git a/docker-compose.yml b/docker-compose.yml deleted file mode 100644 index b90681b5..00000000 --- a/docker-compose.yml +++ /dev/null @@ -1,9 +0,0 @@ -version: "3.8" - -services: - app: - build: . - volumes: - - .:/app - working_dir: /app - command: bash -c "chmod +x build.sh && ./build.sh && tail -f /dev/null" diff --git a/docs/assets/style.css b/docs/assets/style.css index 60ecc084..72e71d75 100644 --- a/docs/assets/style.css +++ b/docs/assets/style.css @@ -1,326 +1,327 @@ :root { - --font-xl: 42px; - --font-lg: 24px; - --font-md: 20px; - --font-sm: 18px; - --font-xs: 16px; - --font-xxs: 14px; + --font-xl: 42px; + --font-lg: 24px; + --font-md: 20px; + --font-sm: 18px; + --font-xs: 16px; + --font-xxs: 14px; } @media (max-width: 768px) { - :root { - --font-xl: 18px; - --font-lg: 16px; - --font-md: 14px; - --font-sm: 12px; - --font-xs: 12px; - --font-xxs: 12px; - } + :root { + --font-xl: 18px; + --font-lg: 16px; + --font-md: 14px; + --font-sm: 12px; + --font-xs: 12px; + --font-xxs: 12px; + } } body { - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; - color: #222; - display: flex; - min-height: 100vh; - flex-direction: column; - font-size: var(--font-md); - background-color: #fff; - background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQ4MCIgaGVpZ2h0PSI2NTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+ICAgIDxwYXRoIGQ9Ik03MzEuMjA3IDY0OS44MDJDOTM1LjQ4NCA2NDIuMTQgMTQ4MCAzMzcuMzI1IDE0ODAgMTgwLjg4OGMwLTE1Ni40MzgtMzA5Ljc0NC0zNi4wNTUtNzIwLTM2LjA1NVMwLTE3NC40ODMgMCAxMzUuMTQ0YzAgMzA5LjYyNyA1MjYuOTMgNTIyLjMyIDczMS4yMDcgNTE0LjY1OHoiIGZpbGw9IiNGNkY4RkEiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==); - background-size: cover; - background-position-x: 20vw; - background-position-y: -10vh; - background-repeat: no-repeat; - line-height: 1.4; + font-family: mono; + color: #fff; + display: flex; + min-height: 100vh; + flex-direction: column; + font-size: var(--font-md); + background-color: #000; + /* background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQ4MCIgaGVpZ2h0PSI2NTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+ICAgIDxwYXRoIGQ9Ik03MzEuMjA3IDY0OS44MDJDOTM1LjQ4NCA2NDIuMTQgMTQ4MCAzMzcuMzI1IDE0ODAgMTgwLjg4OGMwLTE1Ni40MzgtMzA5Ljc0NC0zNi4wNTUtNzIwLTM2LjA1NVMwLTE3NC40ODMgMCAxMzUuMTQ0YzAgMzA5LjYyNyA1MjYuOTMgNTIyLjMyIDczMS4yMDcgNTE0LjY1OHoiIGZpbGw9IiNGNkY4RkEiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==); */ + background-size: cover; + background-position-x: 20vw; + background-position-y: -10vh; + background-repeat: no-repeat; + line-height: 1.4; } main { - flex: 1; - width: 100%; + flex: 1; + width: 100%; } a { - color: #65638f; - text-decoration: none; + color: #65638f; + text-decoration: none; } a:hover { - color: #5A51FE; + color: #5a51fe; } .button { - display: flex; - background: linear-gradient(65deg, #DA552F, #ea8e39); - font-family: "Heebo", sans-serif; - color: #fff; - display: inline-flex; - font-size: var(--font-xxs); - letter-spacing: 0px; - font-weight: 700; - line-height: 16px; - text-transform: uppercase; - text-decoration: none !important; - border: none; - border-radius: 2px; - cursor: pointer; - justify-content: center; - padding: 16px 32px; - text-align: center; - white-space: nowrap; - box-shadow: 0 8px 24px rgba(32, 43, 54, 0.12); - mix-blend-mode: multiply; - transition: all 0.15s ease; + display: flex; + background: linear-gradient(65deg, #da552f, #ea8e39); + font-family: "Heebo", sans-serif; + color: #fff; + display: inline-flex; + font-size: var(--font-xxs); + letter-spacing: 0px; + font-weight: 700; + line-height: 16px; + text-transform: uppercase; + text-decoration: none !important; + border: none; + border-radius: 2px; + cursor: pointer; + justify-content: center; + padding: 16px 32px; + text-align: center; + white-space: nowrap; + box-shadow: 0 8px 24px rgba(32, 43, 54, 0.12); + mix-blend-mode: multiply; + transition: all 0.15s ease; } .button:hover { - color: #fff; - box-shadow: 0 8px 24px rgba(32, 43, 54, 0.25); + color: #fff; + box-shadow: 0 8px 24px rgba(32, 43, 54, 0.25); } .button--link { - background: rgba(0, 0, 0, 0); - color: #5A51FE; - box-shadow: none; + background: rgba(0, 0, 0, 0); + color: #5a51fe; + box-shadow: none; } .button--link:hover { - color: #8751FE; - box-shadow: none; + color: #8751fe; + box-shadow: none; } .accent { - color: #5A51FE; + color: #5a51fe; } .container { - max-width: 960px; - padding: 0 30px; - margin: auto; + max-width: 960px; + padding: 0 30px; + margin: auto; } -h1, h2 { - font-family: "Heebo", sans-serif; +h1, +h2 { + font-family: "Heebo", sans-serif; } .container-desktop { - max-width: 960px; - padding: 0 30px; - margin: auto; + max-width: 960px; + padding: 0 30px; + margin: auto; } @media (max-width: 768px) { - .container-desktop { - max-width: 100%; - padding: 0; - } + .container-desktop { + max-width: 100%; + padding: 0; + } } .tobi-zoom__icon { - display: none; + display: none; } .app__header { - display: flex; - flex-direction: row; - margin-top: 128px; - margin-bottom: 128px; - align-items: center; + display: flex; + flex-direction: row; + margin-top: 128px; + margin-bottom: 128px; + align-items: center; } @media (max-width: 768px) { - .app__header { - align-items: flex-start; - margin-top: 32px; - margin-bottom: 16px; - } + .app__header { + align-items: flex-start; + margin-top: 32px; + margin-bottom: 16px; + } } .app__logo-wrapper { - display: inline-block; - background-image: url("ios-mask-border-128.svg"); - background-size: contain; - max-width: 250px; - max-height: 250px; - padding: 1px; - margin-right: 64px; - width: 100%; - height: 100%; - background-repeat: no-repeat; -} -html[dir=rtl] .app__logo-wrapper { - margin-left: 64px; - margin-right: 0; + display: inline-block; + background-image: url("ios-mask-border-128.svg"); + background-size: contain; + max-width: 250px; + max-height: 250px; + padding: 1px; + margin-right: 64px; + width: 100%; + height: 100%; + background-repeat: no-repeat; +} +html[dir="rtl"] .app__logo-wrapper { + margin-left: 64px; + margin-right: 0; } @media (max-width: 768px) { - .app__logo-wrapper { - max-width: 100px; - max-height: 100px; - margin-right: 16px; - } + .app__logo-wrapper { + max-width: 100px; + max-height: 100px; + margin-right: 16px; + } } .app__logo { - border-radius: 22.5%; - mask-size: cover; - width: 100%; - height: auto; + border-radius: 22.5%; + mask-size: cover; + width: 100%; + height: auto; } .app__name { - font-size: var(--font-xl); - margin: 0; + font-size: var(--font-xl); + margin: 0; } .app__description { - font-size: var(--font-lg); + font-size: var(--font-lg); } @media (max-width: 768px) { - .app__description { - margin-top: 8px; - margin-bottom: 0; - } + .app__description { + margin-top: 8px; + margin-bottom: 0; + } } .app__screenshots-list { - display: grid; - grid-template-columns: 200px 200px 200px 200px 200px 200px; - grid-column-gap: 20px; - padding: 30px 0; + display: grid; + grid-template-columns: 200px 200px 200px 200px 200px 200px; + grid-column-gap: 20px; + padding: 30px 0; } @media (max-width: 768px) { - .app__screenshots-list { - padding: 32px; - width: 800px; - } + .app__screenshots-list { + padding: 32px; + width: 800px; + } } .app__screenshot { - width: 100%; - border-radius: 16px; - box-shadow: 0 12px 48px rgba(17, 16, 62, 0.12); - transition: all 0.3s ease-in-out; - transform: scale(1); - cursor: pointer; + width: 100%; + border-radius: 16px; + box-shadow: 0 12px 48px rgba(17, 16, 62, 0.12); + transition: all 0.3s ease-in-out; + transform: scale(1); + cursor: pointer; } .app__screenshot:hover { - box-shadow: 0 24px 48px rgba(17, 16, 62, 0.12); - transform: scale(1.05); + box-shadow: 0 24px 48px rgba(17, 16, 62, 0.12); + transform: scale(1.05); } .app__screenshots-wrapper { - overflow-y: auto; + overflow-y: auto; } .app__buttons { - display: flex; - flex-direction: row; - align-items: center; - margin-left: -9.8px; + display: flex; + flex-direction: row; + align-items: center; + margin-left: -9.8px; } .app__buttons--mobile { - display: none; + display: none; } @media (max-width: 768px) { - .app__buttons { - margin-left: 0; - margin-bottom: 64px; - } - .app__buttons--mobile { - display: flex; - justify-content: center; - } - .app__buttons--desktop { - display: none; - } + .app__buttons { + margin-left: 0; + margin-bottom: 64px; + } + .app__buttons--mobile { + display: flex; + justify-content: center; + } + .app__buttons--desktop { + display: none; + } } .app__button-play img { - width: 176.4px; + width: 176.4px; } .app__button-ios img { - width: 140px; + width: 140px; } .app__button-web { - margin-left: 12px; + margin-left: 12px; } .app__button-web img { - width: 157px; + width: 157px; } @media (max-width: 768px) { - .app__button-play img { - width: 126px; - } - .app__button-ios img { - width: 100px; - } - .app__button-web { - margin-left: 8px; - } - .app__button-web img { - width: 112px; - } + .app__button-play img { + width: 126px; + } + .app__button-ios img { + width: 100px; + } + .app__button-web { + margin-left: 8px; + } + .app__button-web img { + width: 112px; + } } .app__section-title { - font-size: var(--font-lg); + font-size: var(--font-lg); } .app__section { - margin-bottom: 128px; + margin-bottom: 128px; } @media (max-width: 768px) { - .app__section { - margin-bottom: 64px; - } + .app__section { + margin-bottom: 64px; + } } .app__featured-content { - display: grid; - grid-template-columns: 1fr 1fr 1fr 1fr; - grid-column-gap: 32px; - align-items: center; + display: grid; + grid-template-columns: 1fr 1fr 1fr 1fr; + grid-column-gap: 32px; + align-items: center; } @media (max-width: 768px) { - .app__featured-content { - display: block; - padding: 32px; - } + .app__featured-content { + display: block; + padding: 32px; + } } .app__featured-image { - width: 100%; - margin: auto; + width: 100%; + margin: auto; } .footer { - padding: 16px 0; - font-size: var(--font-xs) !important; + padding: 16px 0; + font-size: var(--font-xs) !important; } .footer a { - font-size: var(--font-xs) !important; + font-size: var(--font-xs) !important; } .footer__container { - color: #65638f; - display: flex; - width: 100%; - justify-content: space-between; - align-items: center; + color: #65638f; + display: flex; + width: 100%; + justify-content: space-between; + align-items: center; } @media (max-width: 768px) { - .footer__container { - flex-direction: column-reverse; - align-items: flex-start; - } + .footer__container { + flex-direction: column-reverse; + align-items: flex-start; + } } .footer__links { - list-style: none; - display: flex; - padding-left: 0; + list-style: none; + display: flex; + padding-left: 0; } .footer__link { - margin-left: 32px; + margin-left: 32px; } @media (max-width: 768px) { - .footer__link { - margin-left: 0; - margin-right: 8px; - } + .footer__link { + margin-left: 0; + margin-right: 8px; + } } .page { - max-width: 960px; - padding: 0 30px; - margin: auto; + max-width: 960px; + padding: 0 30px; + margin: auto; } .darkmode-toggle { - z-index: 500; + z-index: 500; } .darkmode-background { - background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQ4MCIgaGVpZ2h0PSI2NTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+ICAgIDxwYXRoIGQ9Ik03MzEuMjA3IDY0OS44MDJDOTM1LjQ4NCA2NDIuMTQgMTQ4MCAzMzcuMzI1IDE0ODAgMTgwLjg4OGMwLTE1Ni40MzgtMzA5Ljc0NC0zNi4wNTUtNzIwLTM2LjA1NVMwLTE3NC40ODMgMCAxMzUuMTQ0YzAgMzA5LjYyNyA1MjYuOTMgNTIyLjMyIDczMS4yMDcgNTE0LjY1OHoiIGZpbGw9IiNGNkY4RkEiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==) !important; - background-size: cover !important; - background-position-x: 20vw !important; - background-position-y: -10vh !important; - background-repeat: no-repeat !important; + background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQ4MCIgaGVpZ2h0PSI2NTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+ICAgIDxwYXRoIGQ9Ik03MzEuMjA3IDY0OS44MDJDOTM1LjQ4NCA2NDIuMTQgMTQ4MCAzMzcuMzI1IDE0ODAgMTgwLjg4OGMwLTE1Ni40MzgtMzA5Ljc0NC0zNi4wNTUtNzIwLTM2LjA1NVMwLTE3NC40ODMgMCAxMzUuMTQ0YzAgMzA5LjYyNyA1MjYuOTMgNTIyLjMyIDczMS4yMDcgNTE0LjY1OHoiIGZpbGw9IiNGNkY4RkEiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==) !important; + background-size: cover !important; + background-position-x: 20vw !important; + background-position-y: -10vh !important; + background-repeat: no-repeat !important; } diff --git a/witch_docs/changelog.md b/docs/documentation/changelog.md similarity index 97% rename from witch_docs/changelog.md rename to docs/documentation/changelog.md index 31e3bd51..5f582b33 100644 --- a/witch_docs/changelog.md +++ b/docs/documentation/changelog.md @@ -319,17 +319,17 @@ Date: sex 29 dez 2023 20:51:45 -03 - Hardcoded debug option to force take_system_args return an empty string instead of an error message -Version: 0.15.0 Rebranding witch_craft +Version: 0.15.0 Rebranding witchcraft Date: sรกb 06 jan 2024 13:32:33 -03 -- Rebrand all projects to witch_craft. +- Rebrand all projects to witchcraft. - Add a new proper media kit inside witch_docs/media_kit. - Change the default prefix from maid*\* to witch*\*. - Implements all modules, even if they are empty. - Implements private modules using a private module name - Partially implements the blood_moon backend module inside the attack module. -- Change the data installation folder to /var/witch_craft/witch_spells. +- Change the data installation folder to /var/witchcraft/spellbook. - Replace maid_visual using witch_oracle with next. js - Replaced core.manual.rs with a manual module; the new module has its own section. - Removed maid_api, maid_builder, and maid_workflows @@ -337,7 +337,7 @@ Date: sรกb 06 jan 2024 13:32:33 -03 Version 0.16.0 Backend rebuild from scretch -- All witch_craft backend has been rewritten from scratch. +- All witchcraft backend has been rewritten from scratch. - All old config files, documentation, and media have been dropped. - All sample files have been dropped. - Hosts files have been unified. @@ -349,7 +349,7 @@ Version 0.17.1 Date: Sun Aug 11 04:23:53 PM -03 2024 -- Alive2 update - back witch_craft development +- Alive2 update - back witchcraft development - Add netrunner wiki and manual - Change dataset from Rust struct to db.json - Update functions documentation, run, and code cleanup @@ -403,7 +403,7 @@ Date: Mon Sep 9 11:42:09 AM -03 2024 - Added moth (large) wordlist - Updated malware db - Updated snapcraft -- Updated witch_craft version +- Updated witchcraft version Version 0.18.0 @@ -488,13 +488,13 @@ Date: Thu Nov 7 18:06:53 -03 2024 - Added chkrootkit binding - Remove unused files -- Move archive/witch_spells to witch_spells/archive +- Move archive/spellbook to spellbook/archive - Update version - Removed unused dependencies Revision 0.20.56 -- Added build-dist.sh to build a binary a compiled version of witch_craft +- Added build-dist.sh to build a binary a compiled version of witchcraft - Fixed github CI - Fixed missing file errors - Fixed snap builds diff --git a/witch_docs/exemples.md b/docs/documentation/exemples.md similarity index 100% rename from witch_docs/exemples.md rename to docs/documentation/exemples.md diff --git a/witch_docs/images/lineBar.png b/docs/documentation/images/lineBar.png similarity index 100% rename from witch_docs/images/lineBar.png rename to docs/documentation/images/lineBar.png diff --git a/witch_docs/images/maid.png b/docs/documentation/images/maid.png similarity index 100% rename from witch_docs/images/maid.png rename to docs/documentation/images/maid.png diff --git a/witch_docs/images/maid_ui.png b/docs/documentation/images/maid_ui.png similarity index 100% rename from witch_docs/images/maid_ui.png rename to docs/documentation/images/maid_ui.png diff --git a/witch_docs/media_kit/1.jpg b/docs/documentation/media_kit/1.jpg similarity index 100% rename from witch_docs/media_kit/1.jpg rename to docs/documentation/media_kit/1.jpg diff --git a/witch_docs/media_kit/2.jpg b/docs/documentation/media_kit/2.jpg similarity index 100% rename from witch_docs/media_kit/2.jpg rename to docs/documentation/media_kit/2.jpg diff --git a/witch_docs/media_kit/3.jpg b/docs/documentation/media_kit/3.jpg similarity index 100% rename from witch_docs/media_kit/3.jpg rename to docs/documentation/media_kit/3.jpg diff --git a/witch_docs/media_kit/4.jpg b/docs/documentation/media_kit/4.jpg similarity index 100% rename from witch_docs/media_kit/4.jpg rename to docs/documentation/media_kit/4.jpg diff --git a/witch_docs/media_kit/logo-1.jpg b/docs/documentation/media_kit/logo-1.jpg similarity index 100% rename from witch_docs/media_kit/logo-1.jpg rename to docs/documentation/media_kit/logo-1.jpg diff --git a/witch_docs/media_kit/logo-2.jpg b/docs/documentation/media_kit/logo-2.jpg similarity index 100% rename from witch_docs/media_kit/logo-2.jpg rename to docs/documentation/media_kit/logo-2.jpg diff --git a/witch_docs/media_kit/splited.png b/docs/documentation/media_kit/splited.png similarity index 100% rename from witch_docs/media_kit/splited.png rename to docs/documentation/media_kit/splited.png diff --git a/witch_docs/old_media_kit/banners/WITCH_CRAFT_black.png b/docs/documentation/old_media_kit/banners/WITCH_CRAFT_black.png similarity index 100% rename from witch_docs/old_media_kit/banners/WITCH_CRAFT_black.png rename to docs/documentation/old_media_kit/banners/WITCH_CRAFT_black.png diff --git a/witch_docs/old_media_kit/banners/witch_craft-featured.png b/docs/documentation/old_media_kit/banners/witch_craft-featured.png similarity index 100% rename from witch_docs/old_media_kit/banners/witch_craft-featured.png rename to docs/documentation/old_media_kit/banners/witch_craft-featured.png diff --git a/witch_docs/old_media_kit/banners/witch_craft-retrowave.jpg b/docs/documentation/old_media_kit/banners/witch_craft-retrowave.jpg similarity index 100% rename from witch_docs/old_media_kit/banners/witch_craft-retrowave.jpg rename to docs/documentation/old_media_kit/banners/witch_craft-retrowave.jpg diff --git a/witch_docs/old_media_kit/black_white/WITCH_CRAFT_black.png b/docs/documentation/old_media_kit/black_white/WITCH_CRAFT_black.png similarity index 100% rename from witch_docs/old_media_kit/black_white/WITCH_CRAFT_black.png rename to docs/documentation/old_media_kit/black_white/WITCH_CRAFT_black.png diff --git a/witch_docs/old_media_kit/black_white/WITCH_CRAFT_white.png b/docs/documentation/old_media_kit/black_white/WITCH_CRAFT_white.png similarity index 100% rename from witch_docs/old_media_kit/black_white/WITCH_CRAFT_white.png rename to docs/documentation/old_media_kit/black_white/WITCH_CRAFT_white.png diff --git a/witch_docs/old_media_kit/black_white/witch_logo_black.png b/docs/documentation/old_media_kit/black_white/witch_logo_black.png similarity index 100% rename from witch_docs/old_media_kit/black_white/witch_logo_black.png rename to docs/documentation/old_media_kit/black_white/witch_logo_black.png diff --git a/witch_docs/old_media_kit/black_white/witch_logo_white.png b/docs/documentation/old_media_kit/black_white/witch_logo_white.png similarity index 100% rename from witch_docs/old_media_kit/black_white/witch_logo_white.png rename to docs/documentation/old_media_kit/black_white/witch_logo_white.png diff --git a/witch_docs/old_media_kit/logo_green/transp_with_logo.png b/docs/documentation/old_media_kit/logo_green/transp_with_logo.png similarity index 100% rename from witch_docs/old_media_kit/logo_green/transp_with_logo.png rename to docs/documentation/old_media_kit/logo_green/transp_with_logo.png diff --git a/witch_docs/old_media_kit/logo_green/transp_with_logo_white.png b/docs/documentation/old_media_kit/logo_green/transp_with_logo_white.png similarity index 100% rename from witch_docs/old_media_kit/logo_green/transp_with_logo_white.png rename to docs/documentation/old_media_kit/logo_green/transp_with_logo_white.png diff --git a/witch_docs/old_media_kit/trans_banner/witch_craft_banner_transp.png b/docs/documentation/old_media_kit/trans_banner/witch_craft_banner_transp.png similarity index 100% rename from witch_docs/old_media_kit/trans_banner/witch_craft_banner_transp.png rename to docs/documentation/old_media_kit/trans_banner/witch_craft_banner_transp.png diff --git a/witch_docs/old_media_kit/trans_logo/transp_with_logo-removebg.png b/docs/documentation/old_media_kit/trans_logo/transp_with_logo-removebg.png similarity index 100% rename from witch_docs/old_media_kit/trans_logo/transp_with_logo-removebg.png rename to docs/documentation/old_media_kit/trans_logo/transp_with_logo-removebg.png diff --git a/witch_docs/old_media_kit/trans_logo/transp_with_logo_white-removebg-preview.png b/docs/documentation/old_media_kit/trans_logo/transp_with_logo_white-removebg-preview.png similarity index 100% rename from witch_docs/old_media_kit/trans_logo/transp_with_logo_white-removebg-preview.png rename to docs/documentation/old_media_kit/trans_logo/transp_with_logo_white-removebg-preview.png diff --git a/witch_docs/showcase.md b/docs/documentation/showcase.md similarity index 100% rename from witch_docs/showcase.md rename to docs/documentation/showcase.md diff --git a/docs/index.html b/docs/index.html index 39974ec7..9099cba8 100644 --- a/docs/index.html +++ b/docs/index.html @@ -2,17 +2,17 @@ - WITCH_CRAFT :: Your OPSEC companion + WITCHCRAFT :: Your OPSEC companion - - - + @@ -25,20 +25,14 @@
-
+
-

WITCH_CRAFT

+

WITCHCRAFT

Your OPSEC companion

@@ -46,10 +40,10 @@

WITCH_CRAFT

Get on Google Play - + Get on Appstore - + Go to website @@ -77,8 +71,8 @@

Screenshots

Description

-

WITCH_CRAFT

-

WITCH_CRAFT is a versatile task automation software designed to serve as the +

WITCHCRAFT

+

WITCHCRAFT is a versatile task automation software designed to serve as the foundation for various cybersecurity 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.

@@ -86,12 +80,12 @@

Description

https://cosmic-zip.github.io/wiki/wiki.html

Plugins

The Witch_Craft project is extensible through static files and Rust code. Moreover, it is possible to extend its functionalities using db.json. This file contains a list of small shell scripts, which means you can integrate anything that interacts with the terminal using ARGS (argsv, readargs(), sys.args(), etc).

-

Note: There is a Python script called sort.py inside /var/witch_craft/witch_spells/dataset. It is used to create a sorted version of the dataset.

+

Note: There is a Python script called sort.py inside /var/witchcraft/spellbook/dataset. It is used to create a sorted version of the dataset.

Instalation

The project initially includes a set of default files. These files are created using the best possible data analysis techniques, and their final versions are merged into the main project.

-

The witch_spells package also provide:

+

The spellbook package also provide:

* Unique Wordlists : _moth_ (16Gb) and _ladybug_ (1Gb)
 * Default Credentials Database
 * IP Geolocation
@@ -111,7 +105,7 @@ 

Featured in

- +
@@ -127,13 +121,7 @@

Featured in

diff --git a/snapcraft.yaml b/snapcraft.yaml index 68f937d8..a8f4f345 100644 --- a/snapcraft.yaml +++ b/snapcraft.yaml @@ -1,5 +1,5 @@ name: witchcraft-cybersecurity -version: "0.20.56" +version: "0.33.666" summary: Your OPSEC companion! icon: "witch_docs/media_kit/logo-1.png" grade: stable @@ -8,11 +8,11 @@ base: core24 type: app compression: lzo license: GPL-3.0+ -source-code: https://github.com/cosmic-zip/witch_craft +source-code: https://github.com/cosmic-zip/witchcraft description: | - **WITCH_CRAFT** + **WITCHCRAFT** - WITCH_CRAFT is a task automation tool for cybersecurity. It handles forensic research, OSINT, scanning, backups, data copying, and penetration testing for apps and APIs, serving as a flexible platform for diverse security tasks. + WITCHCRAFT is a task automation tool for cybersecurity. It handles forensic research, OSINT, scanning, backups, data copying, and penetration testing for apps and APIs, serving as a flexible platform for diverse security tasks. **Visit the wiki:** @@ -22,7 +22,7 @@ description: | The Witch_Craft project is extensible through static files and Rust code. Moreover, it is possible to extend its functionalities using `db.json`. This file contains a list of small shell scripts, which means you can integrate anything that interacts with the terminal using ARGS (argsv, readargs(), sys.args(), etc). - **Note**: There is a Python script called sort.py inside /var/witch_craft/witch_spells/dataset. It is used to create a sorted version of the dataset. + **Note**: There is a Python script called sort.py inside /var/witchcraft/spellbook/dataset. It is used to create a sorted version of the dataset. **RC File** @@ -41,7 +41,7 @@ description: | are created using the best possible data analysis techniques, and their final versions are merged into the main project. - The witch_spells package also provide: + The spellbook package also provide: * Unique Wordlists : _moth_ (16Gb) and _ladybug_ (1Gb) * Default Credentials Database @@ -64,13 +64,13 @@ environment: parts: witchspells: - source: witch_spells + source: spellbook plugin: dump witchcraft: after: [witchspells] plugin: rust - source: ./witch_craft + source: ./witchcraft stage-packages: - chromium - nmap @@ -117,5 +117,5 @@ parts: apps: witchcraft: - command: bin/witch_craft + command: bin/witchcraft plugs: [home, network, network-bind, removable-media] diff --git a/witch_spells/archive/catfish/br_social_media.ct b/spellbook/archive/catfish/br_social_media.ct similarity index 100% rename from witch_spells/archive/catfish/br_social_media.ct rename to spellbook/archive/catfish/br_social_media.ct diff --git a/witch_spells/archive/catfish/us_email_gmail.ct b/spellbook/archive/catfish/us_email_gmail.ct similarity index 100% rename from witch_spells/archive/catfish/us_email_gmail.ct rename to spellbook/archive/catfish/us_email_gmail.ct diff --git a/witch_spells/archive/catfish/us_email_hr_fish.ct b/spellbook/archive/catfish/us_email_hr_fish.ct similarity index 100% rename from witch_spells/archive/catfish/us_email_hr_fish.ct rename to spellbook/archive/catfish/us_email_hr_fish.ct diff --git a/witch_spells/archive/catfish/us_pron_content.ct b/spellbook/archive/catfish/us_pron_content.ct similarity index 100% rename from witch_spells/archive/catfish/us_pron_content.ct rename to spellbook/archive/catfish/us_pron_content.ct diff --git a/witch_spells/archive/catfish/us_social_media.ct b/spellbook/archive/catfish/us_social_media.ct similarity index 100% rename from witch_spells/archive/catfish/us_social_media.ct rename to spellbook/archive/catfish/us_social_media.ct diff --git a/witch_spells/archive/dataset/db.json b/spellbook/archive/dataset/db.json similarity index 100% rename from witch_spells/archive/dataset/db.json rename to spellbook/archive/dataset/db.json diff --git a/witch_spells/archive/dataset/sort.py b/spellbook/archive/dataset/sort.py similarity index 100% rename from witch_spells/archive/dataset/sort.py rename to spellbook/archive/dataset/sort.py diff --git a/witch_spells/archive/default-credentials/default-passwords.csv b/spellbook/archive/default-credentials/default-passwords.csv similarity index 100% rename from witch_spells/archive/default-credentials/default-passwords.csv rename to spellbook/archive/default-credentials/default-passwords.csv diff --git a/witch_spells/archive/default-credentials/scada-pass.csv b/spellbook/archive/default-credentials/scada-pass.csv similarity index 100% rename from witch_spells/archive/default-credentials/scada-pass.csv rename to spellbook/archive/default-credentials/scada-pass.csv diff --git a/witch_spells/archive/evilpages/Put Your Cloned Pages Here.txt b/spellbook/archive/evilpages/Put Your Cloned Pages Here.txt similarity index 100% rename from witch_spells/archive/evilpages/Put Your Cloned Pages Here.txt rename to spellbook/archive/evilpages/Put Your Cloned Pages Here.txt diff --git a/witch_spells/archive/evilpages/default/index.html b/spellbook/archive/evilpages/default/index.html similarity index 100% rename from witch_spells/archive/evilpages/default/index.html rename to spellbook/archive/evilpages/default/index.html diff --git a/witch_spells/archive/general/countries.json b/spellbook/archive/general/countries.json similarity index 100% rename from witch_spells/archive/general/countries.json rename to spellbook/archive/general/countries.json diff --git a/witch_spells/archive/general/dice_eff_words.list b/spellbook/archive/general/dice_eff_words.list similarity index 100% rename from witch_spells/archive/general/dice_eff_words.list rename to spellbook/archive/general/dice_eff_words.list diff --git a/witch_spells/archive/general/directories.list b/spellbook/archive/general/directories.list similarity index 100% rename from witch_spells/archive/general/directories.list rename to spellbook/archive/general/directories.list diff --git a/witch_spells/archive/general/domain_complete.list b/spellbook/archive/general/domain_complete.list similarity index 100% rename from witch_spells/archive/general/domain_complete.list rename to spellbook/archive/general/domain_complete.list diff --git a/witch_spells/archive/general/domain_fast.list b/spellbook/archive/general/domain_fast.list similarity index 100% rename from witch_spells/archive/general/domain_fast.list rename to spellbook/archive/general/domain_fast.list diff --git a/witch_spells/archive/general/email_disposable.list b/spellbook/archive/general/email_disposable.list similarity index 100% rename from witch_spells/archive/general/email_disposable.list rename to spellbook/archive/general/email_disposable.list diff --git a/witch_spells/archive/general/email_trusted_list.list b/spellbook/archive/general/email_trusted_list.list similarity index 100% rename from witch_spells/archive/general/email_trusted_list.list rename to spellbook/archive/general/email_trusted_list.list diff --git a/witch_spells/archive/general/files_extensions.list b/spellbook/archive/general/files_extensions.list similarity index 100% rename from witch_spells/archive/general/files_extensions.list rename to spellbook/archive/general/files_extensions.list diff --git a/witch_spells/archive/general/languages.json b/spellbook/archive/general/languages.json similarity index 100% rename from witch_spells/archive/general/languages.json rename to spellbook/archive/general/languages.json diff --git a/witch_spells/archive/general/mac_addres_lockup.list b/spellbook/archive/general/mac_addres_lockup.list similarity index 100% rename from witch_spells/archive/general/mac_addres_lockup.list rename to spellbook/archive/general/mac_addres_lockup.list diff --git a/witch_spells/archive/general/repo_keyword_scan.list b/spellbook/archive/general/repo_keyword_scan.list similarity index 100% rename from witch_spells/archive/general/repo_keyword_scan.list rename to spellbook/archive/general/repo_keyword_scan.list diff --git a/witch_spells/archive/general/tlds.list b/spellbook/archive/general/tlds.list similarity index 100% rename from witch_spells/archive/general/tlds.list rename to spellbook/archive/general/tlds.list diff --git a/witch_spells/archive/general/user_names.list b/spellbook/archive/general/user_names.list similarity index 100% rename from witch_spells/archive/general/user_names.list rename to spellbook/archive/general/user_names.list diff --git a/witch_spells/archive/general/witchy_sqli.list b/spellbook/archive/general/witchy_sqli.list similarity index 100% rename from witch_spells/archive/general/witchy_sqli.list rename to spellbook/archive/general/witchy_sqli.list diff --git a/witch_spells/archive/general/xss-payload-list.list b/spellbook/archive/general/xss-payload-list.list similarity index 100% rename from witch_spells/archive/general/xss-payload-list.list rename to spellbook/archive/general/xss-payload-list.list diff --git a/witch_spells/archive/hosts/hosts b/spellbook/archive/hosts/hosts similarity index 100% rename from witch_spells/archive/hosts/hosts rename to spellbook/archive/hosts/hosts diff --git a/witch_craft/src/modules/social/catfish.rs b/spellbook/archive/malware/.gitkeep similarity index 100% rename from witch_craft/src/modules/social/catfish.rs rename to spellbook/archive/malware/.gitkeep diff --git a/witch_spells/archive/osint/ci-badguys.txt b/spellbook/archive/osint/ci-badguys.txt similarity index 100% rename from witch_spells/archive/osint/ci-badguys.txt rename to spellbook/archive/osint/ci-badguys.txt diff --git a/witch_spells/archive/osint/osintdb.json b/spellbook/archive/osint/osintdb.json similarity index 100% rename from witch_spells/archive/osint/osintdb.json rename to spellbook/archive/osint/osintdb.json diff --git a/spellbook/archive/scripts/installer.sh b/spellbook/archive/scripts/installer.sh new file mode 100644 index 00000000..b4fa37d9 --- /dev/null +++ b/spellbook/archive/scripts/installer.sh @@ -0,0 +1,8 @@ +#!/bin/bash +set -e +echo && echo "Installer" +sudo cp -nr spellbook/ /var/ +sudo chown -R $(whoami):$(whoami) /var/spellbook +echo 'export WITCH_SPELLS_ROOT_DIR=/var/spellbook/archive/' >> ~/.bash_profile +export WITCH_SPELLS_ROOT_DIR=/var/spellbook/archive/ +sudo cp -r witchcraft /bin/witchcraft diff --git a/spellbook/archive/scripts/uninstall.sh b/spellbook/archive/scripts/uninstall.sh new file mode 100644 index 00000000..5f7bc001 --- /dev/null +++ b/spellbook/archive/scripts/uninstall.sh @@ -0,0 +1,2 @@ +sudo rm -f /bin/witchcraft +sudo rm -rf /var/spellbook diff --git a/witch_spells/archive/testing/osint_test.json b/spellbook/archive/testing/osint_test.json similarity index 100% rename from witch_spells/archive/testing/osint_test.json rename to spellbook/archive/testing/osint_test.json diff --git a/spellbook/archive/wordlists/.gitkeep b/spellbook/archive/wordlists/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/witch_spells/metadata.txt b/spellbook/metadata.txt similarity index 65% rename from witch_spells/metadata.txt rename to spellbook/metadata.txt index 6cca4e18..b7460817 100644 --- a/witch_spells/metadata.txt +++ b/spellbook/metadata.txt @@ -1,29 +1,29 @@ File contents: -archive/witch_spells/catfish: +archive/spellbook/catfish: br_social_media.ct us_email_gmail.ct us_email_hr_fish.ct us_pron_content.ct us_social_media.ct -archive/witch_spells/dataset: +archive/spellbook/dataset: db.json sort.py -archive/witch_spells/default-credentials: +archive/spellbook/default-credentials: default-passwords.csv defaults.pwned scada-pass.csv -archive/witch_spells/evilpages: +archive/spellbook/evilpages: default Put Your Cloned Pages Here.txt -archive/witch_spells/evilpages/default: +archive/spellbook/evilpages/default: index.html -archive/witch_spells/general: +archive/spellbook/general: dice_eff_words.list directories.list domain_complete.list @@ -37,18 +37,18 @@ tlds.list user_names.list xss-payload-list.list -archive/witch_spells/hosts: +archive/spellbook/hosts: hosts -archive/witch_spells/malware: +archive/spellbook/malware: malware.list -archive/witch_spells/osint: +archive/spellbook/osint: Archive.7z.001 Archive.7z.002 ci-badguys.txt -archive/witch_spells/wordlists: +archive/spellbook/wordlists: ladybug.pwned.7z moth.pwned.7z.001 moth.pwned.7z.002 diff --git a/witch_spells/archive/malware/full.7z.001 b/witch_spells/archive/malware/full.7z.001 deleted file mode 100644 index fb62840f..00000000 Binary files a/witch_spells/archive/malware/full.7z.001 and /dev/null differ diff --git a/witch_spells/archive/malware/full.7z.002 b/witch_spells/archive/malware/full.7z.002 deleted file mode 100644 index e7846fcb..00000000 Binary files a/witch_spells/archive/malware/full.7z.002 and /dev/null differ diff --git a/witch_spells/archive/osint/Archive.7z.001 b/witch_spells/archive/osint/Archive.7z.001 deleted file mode 100644 index d4ad30ab..00000000 Binary files a/witch_spells/archive/osint/Archive.7z.001 and /dev/null differ diff --git a/witch_spells/archive/osint/Archive.7z.002 b/witch_spells/archive/osint/Archive.7z.002 deleted file mode 100644 index 972a5b7d..00000000 Binary files a/witch_spells/archive/osint/Archive.7z.002 and /dev/null differ diff --git a/witch_spells/archive/wordlists/ladybug.pwned.7z b/witch_spells/archive/wordlists/ladybug.pwned.7z deleted file mode 100644 index 8f6ab6dc..00000000 Binary files a/witch_spells/archive/wordlists/ladybug.pwned.7z and /dev/null differ diff --git a/witch_spells/archive/wordlists/moth.pwned.7z.001 b/witch_spells/archive/wordlists/moth.pwned.7z.001 deleted file mode 100644 index 6223a6ba..00000000 Binary files a/witch_spells/archive/wordlists/moth.pwned.7z.001 and /dev/null differ diff --git a/witch_spells/archive/wordlists/moth.pwned.7z.002 b/witch_spells/archive/wordlists/moth.pwned.7z.002 deleted file mode 100644 index e0fd5f04..00000000 Binary files a/witch_spells/archive/wordlists/moth.pwned.7z.002 and /dev/null differ diff --git a/witch_spells/archive/wordlists/moth.pwned.7z.003 b/witch_spells/archive/wordlists/moth.pwned.7z.003 deleted file mode 100644 index 1f11d930..00000000 Binary files a/witch_spells/archive/wordlists/moth.pwned.7z.003 and /dev/null differ diff --git a/witch_craft/.rustfmt.toml b/witchcraft/.rustfmt.toml similarity index 100% rename from witch_craft/.rustfmt.toml rename to witchcraft/.rustfmt.toml diff --git a/witch_craft/Cargo.toml b/witchcraft/Cargo.toml similarity index 94% rename from witch_craft/Cargo.toml rename to witchcraft/Cargo.toml index 3279340e..9238d21c 100644 --- a/witch_craft/Cargo.toml +++ b/witchcraft/Cargo.toml @@ -1,6 +1,6 @@ [package] -name = "witch_craft" -version = "0.20.56" +name = "witchcraft" +version = "0.33.666" edition = "2021" readme = "README.md" homepage = "https://cosmic-zip.github.io/wiki/wiki.html" diff --git a/witch_craft/src/core/consts.rs b/witchcraft/src/core/consts.rs similarity index 99% rename from witch_craft/src/core/consts.rs rename to witchcraft/src/core/consts.rs index 1aa58f25..84edce14 100644 --- a/witch_craft/src/core/consts.rs +++ b/witchcraft/src/core/consts.rs @@ -2,8 +2,8 @@ pub const TONK: &str = "@@"; pub const SPLIT_II: &str = "--"; pub const SPLIT_I: &str = "-"; pub const DBPATH: &str = "dataset/db.json"; -pub const WITCH_SPELLS_ROOT_DIR: &str = "/var/witch_spells/archive/"; -pub const VERSION: &str = "Version: 0.20.56 by cosmic-zip"; +pub const WITCH_SPELLS_ROOT_DIR: &str = "/var/spellbook/archive/"; +pub const VERSION: &str = "Version: 0.33.666 by cosmic-zip"; pub const MAGIC_DOCS: &[(&str, &str)] = &[ ("account", "Generic arguments for account info or token"), @@ -65,15 +65,15 @@ pub const MAGIC_DOCS: &[(&str, &str)] = &[ pub const MAN_HEADER: &str = r#" NAME - witch_craft - A versatile task automation software designed to serve + witchcraft - A versatile task automation software designed to serve as the foundation for various cyber security modules SYNOPSIS - witch_craft [MODULE] [OPTION]... [FILE]... + witchcraft [MODULE] [OPTION]... [FILE]... DESCRIPTION - WITCH_CRAFT is a task automation tool for cybersecurity. It handles + WITCHCRAFT is a task automation tool for cybersecurity. It handles forensic research, OSINT, scanning, backups, data copying, and penetration testing for apps and APIs, serving as a flexible platform for diverse security tasks. @@ -86,9 +86,9 @@ PLUGINS using ARGS (argsv, readargs(), sys.args()). OPTIONS SUMMARY - This options summary is printed when witch_craft is run with + This options summary is printed when witchcraft is run with no arguments, and the latest version is always available at - https://github.com/cosmic-zip/witch_craft. It helps people remember + https://github.com/cosmic-zip/witchcraft. It helps people remember the most common options, but is no substitute for the in-depth documentation in the rest of this manual. Some obscure options aren't even included here. diff --git a/witch_craft/src/core/core.rs b/witchcraft/src/core/core.rs similarity index 98% rename from witch_craft/src/core/core.rs rename to witchcraft/src/core/core.rs index ab531c65..117c6e02 100644 --- a/witch_craft/src/core/core.rs +++ b/witchcraft/src/core/core.rs @@ -27,13 +27,13 @@ pub fn readargs() -> Vec { env::args().collect() } -/// Returns the full path to the `witch_spells` folder by appending the given `path` to the +/// Returns the full path to the `spellbook` folder by appending the given `path` to the /// root directory path defined by `WITCH_SPELLS_ROOT_DIR`. /// /// # Arguments /// /// * `path` - A string slice representing the relative path to a specific file or folder within -/// the `witch_spells` directory. +/// the `spellbook` directory. /// /// # Returns /// @@ -42,13 +42,13 @@ pub fn readargs() -> Vec { /// # Example /// /// ```rust -/// let spell_path = get_witch_spells_path("ancient_spells.txt"); -/// assert_eq!(spell_path, "/var/witch_craft/witch_spells/ancient_spells.txt"); +/// let spell_path = get_spellbook_path("ancient_spells.txt"); +/// assert_eq!(spell_path, "/var/witchcraft/spellbook/ancient_spells.txt"); /// ``` /// -/// Note: Ensure `WITCH_SPELLS_ROOT_DIR` is set to the root path (e.g., "/var/witch_craft/witch_spells/") +/// Note: Ensure `WITCH_SPELLS_ROOT_DIR` is set to the root path (e.g., "/var/witchcraft/spellbook/") /// for the returned path to be accurate. -pub fn get_witch_spells_path(path: &str) -> String { +pub fn get_spellbook_path(path: &str) -> String { let if_root = get_os_env("WITCH_SPELLS_ROOT_DIR"); // raise(&if_root, "good"); Show WITCH_SPELLS_ROOT_DIR value if they exists if if_root.is_empty() { @@ -691,7 +691,7 @@ pub fn get_os_env(key: &str) -> String { } } -/// Show witch_craft software version! +/// Show witchcraft software version! pub fn show_version() -> i32 { raise(VERSION, ""); return 0; diff --git a/witch_craft/src/core/data.rs b/witchcraft/src/core/data.rs similarity index 90% rename from witch_craft/src/core/data.rs rename to witchcraft/src/core/data.rs index 9018466a..7fb394a0 100644 --- a/witch_craft/src/core/data.rs +++ b/witchcraft/src/core/data.rs @@ -1,6 +1,6 @@ use crate::core::consts::*; use crate::core::structs::DataSet; -use crate::get_witch_spells_path; +use crate::get_spellbook_path; use serde::Deserialize; use std::fs::File; use std::io::Read; @@ -20,13 +20,13 @@ struct JsonData { } fn read_dataset() -> Option> { - let mut file = match File::open(get_witch_spells_path(DBPATH)) { + let mut file = match File::open(get_spellbook_path(DBPATH)) { Ok(file) => file, Err(err) => { raise( &format!( "read_dataset :: path โ†’ {} :: {}", - get_witch_spells_path(DBPATH), + get_spellbook_path(DBPATH), err.to_string() ), "fail", diff --git a/witch_craft/src/core/logger.rs b/witchcraft/src/core/logger.rs similarity index 100% rename from witch_craft/src/core/logger.rs rename to witchcraft/src/core/logger.rs diff --git a/witch_craft/src/core/mod.rs b/witchcraft/src/core/mod.rs similarity index 100% rename from witch_craft/src/core/mod.rs rename to witchcraft/src/core/mod.rs diff --git a/witch_craft/src/core/structs.rs b/witchcraft/src/core/structs.rs similarity index 100% rename from witch_craft/src/core/structs.rs rename to witchcraft/src/core/structs.rs diff --git a/witch_craft/src/core/types.rs b/witchcraft/src/core/types.rs similarity index 100% rename from witch_craft/src/core/types.rs rename to witchcraft/src/core/types.rs diff --git a/witch_craft/src/core/witchrc.rs b/witchcraft/src/core/witchrc.rs similarity index 100% rename from witch_craft/src/core/witchrc.rs rename to witchcraft/src/core/witchrc.rs diff --git a/witch_craft/src/main.rs b/witchcraft/src/main.rs similarity index 100% rename from witch_craft/src/main.rs rename to witchcraft/src/main.rs diff --git a/witch_craft/src/modules/binds/binds.rs b/witchcraft/src/modules/binds/binds.rs similarity index 100% rename from witch_craft/src/modules/binds/binds.rs rename to witchcraft/src/modules/binds/binds.rs diff --git a/witch_craft/src/modules/binds/caller.rs b/witchcraft/src/modules/binds/caller.rs similarity index 100% rename from witch_craft/src/modules/binds/caller.rs rename to witchcraft/src/modules/binds/caller.rs diff --git a/witch_craft/src/modules/binds/mod.rs b/witchcraft/src/modules/binds/mod.rs similarity index 100% rename from witch_craft/src/modules/binds/mod.rs rename to witchcraft/src/modules/binds/mod.rs diff --git a/witch_craft/src/modules/binds/sysinfo.rs b/witchcraft/src/modules/binds/sysinfo.rs similarity index 100% rename from witch_craft/src/modules/binds/sysinfo.rs rename to witchcraft/src/modules/binds/sysinfo.rs diff --git a/witch_craft/src/modules/blackcat/backend.rs b/witchcraft/src/modules/blackcat/backend.rs similarity index 91% rename from witch_craft/src/modules/blackcat/backend.rs rename to witchcraft/src/modules/blackcat/backend.rs index 2192f017..ce93c59b 100644 --- a/witch_craft/src/modules/blackcat/backend.rs +++ b/witchcraft/src/modules/blackcat/backend.rs @@ -4,23 +4,22 @@ use std::fs; use std::fs::File; use std::io::{self, BufRead}; use std::path::Path; -use std::process::exit; pub fn malware_scanner(path: String) -> Vec<(String, String)> { - let malware_signatures: Vec = - match File::open(&get_witch_spells_path("malware/full.csv")) { - Ok(value) => { - let lines = io::BufReader::new(value).lines(); - lines.collect::, _>>().unwrap_or_else(|err| { - raise(&format!("malware_scanner :: {}", err.to_string()), "error"); - Vec::new() - }) - } - Err(err) => { + let malware_signatures: Vec = match File::open(&get_spellbook_path("malware/full.csv")) + { + Ok(value) => { + let lines = io::BufReader::new(value).lines(); + lines.collect::, _>>().unwrap_or_else(|err| { raise(&format!("malware_scanner :: {}", err.to_string()), "error"); Vec::new() - } - }; + }) + } + Err(err) => { + raise(&format!("malware_scanner :: {}", err.to_string()), "error"); + Vec::new() + } + }; let metadata = match fs::metadata(&path) { Ok(value) => value, @@ -32,7 +31,7 @@ pub fn malware_scanner(path: String) -> Vec<(String, String)> { ), "error", ); - exit(1); + return Vec::new(); } }; let mut malware_found = Vec::new(); diff --git a/witch_craft/src/modules/blackcat/blackcat.rs b/witchcraft/src/modules/blackcat/blackcat.rs similarity index 100% rename from witch_craft/src/modules/blackcat/blackcat.rs rename to witchcraft/src/modules/blackcat/blackcat.rs diff --git a/witch_craft/src/modules/blackcat/mod.rs b/witchcraft/src/modules/blackcat/mod.rs similarity index 100% rename from witch_craft/src/modules/blackcat/mod.rs rename to witchcraft/src/modules/blackcat/mod.rs diff --git a/witch_craft/src/modules/icebreaker/data.rs b/witchcraft/src/modules/icebreaker/data.rs similarity index 100% rename from witch_craft/src/modules/icebreaker/data.rs rename to witchcraft/src/modules/icebreaker/data.rs diff --git a/witch_craft/src/modules/icebreaker/icebreaker.rs b/witchcraft/src/modules/icebreaker/icebreaker.rs similarity index 100% rename from witch_craft/src/modules/icebreaker/icebreaker.rs rename to witchcraft/src/modules/icebreaker/icebreaker.rs diff --git a/witch_craft/src/modules/icebreaker/mod.rs b/witchcraft/src/modules/icebreaker/mod.rs similarity index 100% rename from witch_craft/src/modules/icebreaker/mod.rs rename to witchcraft/src/modules/icebreaker/mod.rs diff --git a/witch_craft/src/modules/llm/llm.rs b/witchcraft/src/modules/llm/llm.rs similarity index 100% rename from witch_craft/src/modules/llm/llm.rs rename to witchcraft/src/modules/llm/llm.rs diff --git a/witch_craft/src/modules/llm/mod.rs b/witchcraft/src/modules/llm/mod.rs similarity index 100% rename from witch_craft/src/modules/llm/mod.rs rename to witchcraft/src/modules/llm/mod.rs diff --git a/witch_craft/src/modules/mod.rs b/witchcraft/src/modules/mod.rs similarity index 100% rename from witch_craft/src/modules/mod.rs rename to witchcraft/src/modules/mod.rs diff --git a/witch_craft/src/modules/network/ddos.rs b/witchcraft/src/modules/network/ddos.rs similarity index 100% rename from witch_craft/src/modules/network/ddos.rs rename to witchcraft/src/modules/network/ddos.rs diff --git a/witch_craft/src/modules/network/map_network.rs b/witchcraft/src/modules/network/map_network.rs similarity index 100% rename from witch_craft/src/modules/network/map_network.rs rename to witchcraft/src/modules/network/map_network.rs diff --git a/witch_craft/src/modules/network/mod.rs b/witchcraft/src/modules/network/mod.rs similarity index 100% rename from witch_craft/src/modules/network/mod.rs rename to witchcraft/src/modules/network/mod.rs diff --git a/witch_craft/src/modules/network/network.rs b/witchcraft/src/modules/network/network.rs similarity index 100% rename from witch_craft/src/modules/network/network.rs rename to witchcraft/src/modules/network/network.rs diff --git a/witch_craft/src/modules/network/server.rs b/witchcraft/src/modules/network/server.rs similarity index 95% rename from witch_craft/src/modules/network/server.rs rename to witchcraft/src/modules/network/server.rs index 205aee69..e50b6975 100644 --- a/witch_craft/src/modules/network/server.rs +++ b/witchcraft/src/modules/network/server.rs @@ -8,7 +8,7 @@ fn handle_client(mut stream: TcpStream, file_path: &str) { stream.read(&mut buffer).unwrap(); let mut path = file_path; - let default = &get_witch_spells_path("evilpages/default/index.html"); + let default = &get_spellbook_path("evilpages/default/index.html"); if file_path.is_empty() { path = default; } diff --git a/witch_craft/src/modules/network/structs.rs b/witchcraft/src/modules/network/structs.rs similarity index 100% rename from witch_craft/src/modules/network/structs.rs rename to witchcraft/src/modules/network/structs.rs diff --git a/witch_craft/src/modules/osint/lookup.rs b/witchcraft/src/modules/osint/lookup.rs similarity index 78% rename from witch_craft/src/modules/osint/lookup.rs rename to witchcraft/src/modules/osint/lookup.rs index 8b9e0a5c..7fd2e27f 100644 --- a/witch_craft/src/modules/osint/lookup.rs +++ b/witchcraft/src/modules/osint/lookup.rs @@ -6,7 +6,7 @@ pub fn search_ans(argsv: &[String]) -> i32 { if ans_number.len() <= 10 { let ans_ipv4: Vec = - read_file_to_lines(&get_witch_spells_path("osint/ans/ans.ipv4.csv")); + read_file_to_lines(&get_spellbook_path("osint/ans/ans.ipv4.csv")); for line in ans_ipv4 { if line.as_str().contains(&ans_number) { @@ -17,7 +17,7 @@ pub fn search_ans(argsv: &[String]) -> i32 { } let ans_ipv6: Vec = - read_file_to_lines(&get_witch_spells_path("osint/ans/ans.ipv6.csv")); + read_file_to_lines(&get_spellbook_path("osint/ans/ans.ipv6.csv")); for line in ans_ipv6 { if line.as_str().contains(&ans_number) { @@ -33,7 +33,7 @@ pub fn search_geoloc(argsv: &[String]) -> i32 { if local.len() <= 10 { let ans_ipv4: Vec = - read_file_to_lines(&get_witch_spells_path("osint/geolocation/geodata.ipv4.csv")); + read_file_to_lines(&get_spellbook_path("osint/geolocation/geodata.ipv4.csv")); for line in ans_ipv4 { if line.as_str().contains(&local) { @@ -44,7 +44,7 @@ pub fn search_geoloc(argsv: &[String]) -> i32 { } let ans_ipv6: Vec = - read_file_to_lines(&get_witch_spells_path("osint/geolocation/geodata.ipv6.csv")); + read_file_to_lines(&get_spellbook_path("osint/geolocation/geodata.ipv6.csv")); for line in ans_ipv6 { if line.as_str().contains(&local) { @@ -60,7 +60,7 @@ pub fn search_proxy(argsv: &[String]) -> i32 { if proxy.len() <= 10 { let ans_ipv4: Vec = - read_file_to_lines(&get_witch_spells_path("osint/proxy/proxy.ipv4.csv")); + read_file_to_lines(&get_spellbook_path("osint/proxy/proxy.ipv4.csv")); for line in ans_ipv4 { if line.as_str().contains(&proxy) { @@ -71,7 +71,7 @@ pub fn search_proxy(argsv: &[String]) -> i32 { } let ans_ipv6: Vec = - read_file_to_lines(&get_witch_spells_path("osint/proxy/proxy.ipv6.csv")); + read_file_to_lines(&get_spellbook_path("osint/proxy/proxy.ipv6.csv")); for line in ans_ipv6 { if line.as_str().contains(&proxy) { @@ -83,7 +83,7 @@ pub fn search_proxy(argsv: &[String]) -> i32 { pub fn cinsscore(argsv: &[String]) -> i32 { let ip = search_value("ip", argsv); - let file = read_file_to_lines(&get_witch_spells_path("osint/ci-badguys.txt")); + let file = read_file_to_lines(&get_spellbook_path("osint/ci-badguys.txt")); for line in file { if line.as_str().contains(&ip) { diff --git a/witch_craft/src/modules/osint/meta_search.rs b/witchcraft/src/modules/osint/meta_search.rs similarity index 98% rename from witch_craft/src/modules/osint/meta_search.rs rename to witchcraft/src/modules/osint/meta_search.rs index 9611c981..30c381a7 100644 --- a/witch_craft/src/modules/osint/meta_search.rs +++ b/witchcraft/src/modules/osint/meta_search.rs @@ -123,7 +123,7 @@ pub fn exec_meta_search(data: OsintEntry, keyword: &str) { pub fn social_links(argsv: &[String]) -> i32 { let keyword = search_value("keyword", argsv); - let data = read_json_file(&get_witch_spells_path("osint/osintdb.json")); + let data = read_json_file(&get_spellbook_path("osint/osintdb.json")); raise("Start scanning, this will take a while...\n", "message"); for dt in data.index { diff --git a/witch_craft/src/modules/osint/mod.rs b/witchcraft/src/modules/osint/mod.rs similarity index 100% rename from witch_craft/src/modules/osint/mod.rs rename to witchcraft/src/modules/osint/mod.rs diff --git a/witch_craft/src/modules/osint/osint.rs b/witchcraft/src/modules/osint/osint.rs similarity index 100% rename from witch_craft/src/modules/osint/osint.rs rename to witchcraft/src/modules/osint/osint.rs diff --git a/witch_craft/src/modules/osint/structs.rs b/witchcraft/src/modules/osint/structs.rs similarity index 100% rename from witch_craft/src/modules/osint/structs.rs rename to witchcraft/src/modules/osint/structs.rs diff --git a/witchcraft/src/modules/social/catfish.rs b/witchcraft/src/modules/social/catfish.rs new file mode 100644 index 00000000..e69de29b diff --git a/witch_craft/src/modules/social/mod.rs b/witchcraft/src/modules/social/mod.rs similarity index 100% rename from witch_craft/src/modules/social/mod.rs rename to witchcraft/src/modules/social/mod.rs diff --git a/witch_craft/src/modules/social/qrcode.rs b/witchcraft/src/modules/social/qrcode.rs similarity index 100% rename from witch_craft/src/modules/social/qrcode.rs rename to witchcraft/src/modules/social/qrcode.rs diff --git a/witch_craft/src/modules/social/social.rs b/witchcraft/src/modules/social/social.rs similarity index 100% rename from witch_craft/src/modules/social/social.rs rename to witchcraft/src/modules/social/social.rs diff --git a/witch_craft/src/test/mod.rs b/witchcraft/src/test/mod.rs similarity index 100% rename from witch_craft/src/test/mod.rs rename to witchcraft/src/test/mod.rs diff --git a/witch_craft/src/test/test_start.rs b/witchcraft/src/test/test_start.rs similarity index 98% rename from witch_craft/src/test/test_start.rs rename to witchcraft/src/test/test_start.rs index f515f95d..d7d9d668 100644 --- a/witch_craft/src/test/test_start.rs +++ b/witchcraft/src/test/test_start.rs @@ -158,7 +158,7 @@ fn test_magic_docs() { #[test] fn test_exec_meat_search() { let keyword = "anon"; - let data = read_json_file(&get_witch_spells_path("testing/osint_test.json")); + let data = read_json_file(&get_spellbook_path("testing/osint_test.json")); raise( "Start scanning test, this will take a while...\n",