diff --git a/.github/workflows/code-check.yml b/.github/workflows/code-check.yml new file mode 100644 index 0000000..664b129 --- /dev/null +++ b/.github/workflows/code-check.yml @@ -0,0 +1,50 @@ +name: Code Quality Check + +on: + push: + paths: + - '**.py' + - '**.sh' + pull_request: + paths: + - '**.py' + - '**.sh' + +jobs: + lint-python: + name: Python Code Linting + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.x' + + - name: Install Python linters + run: | + pip install black flake8 + + - name: Run black + run: black --check . + + - name: Run flake8 + run: flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics + + lint-shell: + name: Shell Script Linting + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Install shellcheck + run: sudo apt-get install -y shellcheck + + - name: Run shellcheck + run: | + find . -type f -name "*.sh" -exec shellcheck {} + \ No newline at end of file diff --git a/.idea/.gitignore b/.idea/.gitignore deleted file mode 100644 index 13566b8..0000000 --- a/.idea/.gitignore +++ /dev/null @@ -1,8 +0,0 @@ -# Default ignored files -/shelf/ -/workspace.xml -# Editor-based HTTP Client requests -/httpRequests/ -# Datasource local storage ignored files -/dataSources/ -/dataSources.local.xml diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml deleted file mode 100644 index 105ce2d..0000000 --- a/.idea/inspectionProfiles/profiles_settings.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml deleted file mode 100644 index d56657a..0000000 --- a/.idea/misc.xml +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml deleted file mode 100644 index 8e026d9..0000000 --- a/.idea/modules.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/.idea/public-setupfiles.iml b/.idea/public-setupfiles.iml deleted file mode 100644 index 5ed0139..0000000 --- a/.idea/public-setupfiles.iml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml deleted file mode 100644 index 35eb1dd..0000000 --- a/.idea/vcs.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/kali-purple/install_kali_purple.sh b/kali-purple/install_kali_purple.sh new file mode 100644 index 0000000..2a7e644 --- /dev/null +++ b/kali-purple/install_kali_purple.sh @@ -0,0 +1,32 @@ +#!/bin/bash + +# Make sure the script is run as root +if [[ $EUID -ne 0 ]]; then + echo "❌ This script must be run as root. Try: sudo $0" + exit 1 +fi + +echo "🔧 Updating Kali sources.list for rolling release..." +cat < /etc/apt/sources.list +# See https://www.kali.org/docs/general-use/kali-linux-sources-list-repositories/ +deb http://http.kali.org/kali kali-rolling main contrib non-free non-free-firmware +# Additional line for source packages +# deb-src http://http.kali.org/kali kali-rolling main contrib non-free non-free-firmware +EOF + +echo "📦 Updating system packages..." +apt update && apt upgrade -y && apt autoremove -y + +echo "🛡 Installing Kali Purple tools..." +apt install -y kali-tools-identify kali-tools-protect kali-tools-detect kali-tools-respond kali-tools-recover + +echo "🎨 Installing Purple theme..." +apt install -y kali-themes-purple + +echo "📂 Reinstalling Kali menu to apply changes..." +apt install --reinstall -y kali-menu + +echo "🖼 Installing legacy wallpapers..." +apt install -y kali-wallpapers-legacy + +echo "✅ Kali Purple setup complete!" \ No newline at end of file