├── .github └── ISSUE_TEMPLATE │ ├── bug_report.md │ └── feature_request.md ├── CHANGELOG.md ├── CODE_OF_CONDUCT.md ├── LICENSE ├── README.md ├── installer.bat ├── main.py ├── requirements.txt └── version.txt /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug report 3 | about: Create a report to help us improve 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Describe the bug** 11 | A clear and concise description of what the bug is. 12 | 13 | **Expected behavior** 14 | A clear and concise description of what you expected to happen. 15 | 16 | **Screenshots** 17 | If applicable, add screenshots to help explain your problem. 18 | 19 | **Desktop (please complete the following information):** 20 | - Windows OS: [e.g. 7/10/11] 21 | - Browser [e.g. chrome, safari] 22 | - Version [e.g. 22] 23 | 24 | **Additional context** 25 | Add any other context about the problem here. 26 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature request 3 | about: Suggest an idea for this project 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Is your feature request related to a problem? Please describe.** 11 | A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] 12 | 13 | **Describe the solution you'd like** 14 | A clear and concise description of what you want to happen. 15 | 16 | **Describe alternatives you've considered** 17 | A clear and concise description of any alternative solutions or features you've considered. 18 | 19 | **Additional context** 20 | Add any other context or screenshots about the feature request here. 21 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # 📚 〢 BatchShield Changelog 2 | 3 | ### All notable changes and updates to BatchShield (this project) will be carefully documented in this file. This includes bug fixes, new features, improvements, and any other modifications made to the software, providing you with a comprehensive history of the project’s evolution. Be sure to check the changelog regularly to stay informed about the latest developments. 4 | 5 | 6 | ## 🌐 〢 Table Of Contents 7 | 8 | - **[🔗 〢 Discord](https://discord.gg/6qAvAephsW)** 9 | - **[📖 〢 Description](#description)** 10 | - **[📥 〢 Download](https://github.com/DevBubba/BatchShield/releases)** 11 | - **[📚 〢 Changelog](https://github.com/DevBubba/BatchShield/blob/main/CHANGELOG.md)** 12 | - **[🏷️ 〢 Version 1.0](#1.0)** 13 | 14 | ## 🔒 [BatchShield V1.0](https://github.com/DevBubba/Rocket-Cleaner/releases/tag/v1.1) - 2025-02-27 15 | 16 | ### ➕ Added 17 | 18 | - Nothing (init commit). 19 | 20 | ### 🔨 Fixed 21 | 22 | - Nothing (init commit). 23 | 24 | ### 🛠️ Changed 25 | 26 | - Nothing (init commit). 27 | 28 | ### 🗑️ Removed 29 | 30 | - Nothing (init commit). 31 | 32 | ### ✍️ To Do 33 | 34 | - Nothing (init commit). 35 | 36 | ### 🚫 Not Working 37 | 38 | - Nothing (init commit). 39 | 40 | ### 📝 Notes 41 | 42 | - Nothing (init commit). 43 | - Report any bugs or issues on the GitHub **[Issues Page](https://github.com/DevBubba/BatchShield/issues)**. 44 | -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Contributor Covenant Code of Conduct 2 | 3 | ## Our Pledge 4 | 5 | We as members, contributors, and leaders pledge to make participation in our 6 | community a harassment-free experience for everyone, regardless of age, body 7 | size, visible or invisible disability, ethnicity, sex characteristics, gender 8 | identity and expression, level of experience, education, socio-economic status, 9 | nationality, personal appearance, race, religion, or sexual identity 10 | and orientation. 11 | 12 | We pledge to act and interact in ways that contribute to an open, welcoming, 13 | diverse, inclusive, and healthy community. 14 | 15 | ## Our Standards 16 | 17 | Examples of behavior that contributes to a positive environment for our 18 | community include: 19 | 20 | * Demonstrating empathy and kindness toward other people 21 | * Being respectful of differing opinions, viewpoints, and experiences 22 | * Giving and gracefully accepting constructive feedback 23 | * Accepting responsibility and apologizing to those affected by our mistakes, 24 | and learning from the experience 25 | * Focusing on what is best not just for us as individuals, but for the 26 | overall community 27 | 28 | Examples of unacceptable behavior include: 29 | 30 | * The use of sexualized language or imagery, and sexual attention or 31 | advances of any kind 32 | * Trolling, insulting or derogatory comments, and personal or political attacks 33 | * Public or private harassment 34 | * Publishing others' private information, such as a physical or email 35 | address, without their explicit permission 36 | * Other conduct which could reasonably be considered inappropriate in a 37 | professional setting 38 | 39 | ## Enforcement Responsibilities 40 | 41 | Community leaders are responsible for clarifying and enforcing our standards of 42 | acceptable behavior and will take appropriate and fair corrective action in 43 | response to any behavior that they deem inappropriate, threatening, offensive, 44 | or harmful. 45 | 46 | Community leaders have the right and responsibility to remove, edit, or reject 47 | comments, commits, code, wiki edits, issues, and other contributions that are 48 | not aligned to this Code of Conduct, and will communicate reasons for moderation 49 | decisions when appropriate. 50 | 51 | ## Scope 52 | 53 | This Code of Conduct applies within all community spaces, and also applies when 54 | an individual is officially representing the community in public spaces. 55 | Examples of representing our community include using an official e-mail address, 56 | posting via an official social media account, or acting as an appointed 57 | representative at an online or offline event. 58 | 59 | ## Enforcement 60 | 61 | Instances of abusive, harassing, or otherwise unacceptable behavior may be 62 | reported to the community leaders responsible for enforcement at (@DevBubbaDudez) [Discord Server](https://discord.gg/6qAvAephsW) 63 | All complaints will be reviewed and investigated promptly and fairly. 64 | 65 | All community leaders are obligated to respect the privacy and security of the 66 | reporter of any incident. 67 | 68 | ## Enforcement Guidelines 69 | 70 | Community leaders will follow these Community Impact Guidelines in determining 71 | the consequences for any action they deem in violation of this Code of Conduct: 72 | 73 | ### 1. Correction 74 | 75 | **Community Impact**: Use of inappropriate language or other behavior deemed 76 | unprofessional or unwelcome in the community. 77 | 78 | **Consequence**: A private, written warning from community leaders, providing 79 | clarity around the nature of the violation and an explanation of why the 80 | behavior was inappropriate. A public apology may be requested. 81 | 82 | ### 2. Warning 83 | 84 | **Community Impact**: A violation through a single incident or series 85 | of actions. 86 | 87 | **Consequence**: A warning with consequences for continued behavior. No 88 | interaction with the people involved, including unsolicited interaction with 89 | those enforcing the Code of Conduct, for a specified period of time. This 90 | includes avoiding interactions in community spaces as well as external channels 91 | like social media. Violating these terms may lead to a temporary or 92 | permanent ban. 93 | 94 | ### 3. Temporary Ban 95 | 96 | **Community Impact**: A serious violation of community standards, including 97 | sustained inappropriate behavior. 98 | 99 | **Consequence**: A temporary ban from any sort of interaction or public 100 | communication with the community for a specified period of time. No public or 101 | private interaction with the people involved, including unsolicited interaction 102 | with those enforcing the Code of Conduct, is allowed during this period. 103 | Violating these terms may lead to a permanent ban. 104 | 105 | ### 4. Permanent Ban 106 | 107 | **Community Impact**: Demonstrating a pattern of violation of community 108 | standards, including sustained inappropriate behavior, harassment of an 109 | individual, or aggression toward or disparagement of classes of individuals. 110 | 111 | **Consequence**: A permanent ban from any sort of public interaction within 112 | the community. 113 | 114 | ## Attribution 115 | 116 | This Code of Conduct is adapted from the [Contributor Covenant][homepage], 117 | version 2.0, available at 118 | https://www.contributor-covenant.org/version/2/0/code_of_conduct.html. 119 | 120 | Community Impact Guidelines were inspired by [Mozilla's code of conduct 121 | enforcement ladder](https://github.com/mozilla/diversity). 122 | 123 | [homepage]: https://www.contributor-covenant.org 124 | 125 | For answers to common questions about this code of conduct, see the FAQ at 126 | https://www.contributor-covenant.org/faq. Translations are available at 127 | https://www.contributor-covenant.org/translations. 128 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2023 DevBubba 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 |
2 | 3 |
4 | 5 |
6 |
7 | 8 | 9 |
10 | 11 | 12 |
13 | 14 | 15 |
16 | Made with ❤️💻 by DevBubba 17 |
18 | 19 |
20 | 21 | 22 | # 🔒 〢 BatchShield 23 | 24 | ### Simple And Easy Batch Obfuscator Made In Python V3.11.2 For Your Daily Use With Batch To Just Make Things Easy On Yourself Making Sure The Real Code Is Hidden From Skids Or Anyone Else Using Your Batch Script! 25 | 26 | 27 | ## 🌐 〢 Table Of Contents 28 | 29 | - **[🔗 〢 Discord](https://discord.gg/6qAvAephsW)** 30 | - **[📖 〢 Description](#description)** 31 | - **[🔰 〢 Features](#features)** 32 | - **[💻 〢 Prerequisites](#prerequisites)** 33 | - **[📥 〢 Install](#install)** 34 | - **[❓ 〢 FAQ](#faq)** 35 | - **[📷 〢 Preview](#preview)** 36 | - **[📝 〢 Notes](#notes)** 37 | - **[📚 〢 Changelog](#changelog)** 38 | - **[❌ 〢 Bugs Or Errors](#bugsorerrors)** 39 | - **[⚠️ 〢 Disclaimer](#disclaimer)** 40 | - **[🤝 〢 Code Of Conduct](#codeofconduct)** 41 | - **[🧾 〢 Lisence](#lisence)** 42 | - **[🛠️ 〢 Contributing](#contributing)** 43 | 44 | 45 | ## 🔰 〢 Features 46 | 47 | - `Auto Ignores Installer Batch File To Ensure That No Other Batch Files Are Recognized By BatchShield`🟢 48 | - `Allow Custom Input Path (.bat)`🟢 49 | - `Auto Detect All Batch Files (.bat)`🟢 50 | - `May Work On Other Python Version V3.0+`🟢 51 | - `Auto Install Missing Modules`🟢 52 | - `Custom Obfuscated Batch File Name (.bat) (Output File Name)`🟢 53 | - `Auto Update Module Installer`🟢 54 | - `Add Extra Obfuscation Strength`🟡 55 | - `Exe (Executable File) Version Of BatchShield (Compiled Version)`🟡 56 | - `Auto Update Tool`🟡 57 | - `More Obfuscation Methods/Levels`🟡 58 | - `Obfuscates More Than Just Batch Files`🔴 59 | - `Works On MacBook Or Other Devices Other Than Windows Operating Systems`🔴 60 | 61 | 🟢 = Working | 🟡 = To Do | 🔴 = Not Working 62 | 63 | 64 | ## 📥 〢 Install 65 | 66 | 1. Download The Source Code **[Here](https://github.com/DevBubba/BatchShield/archive/refs/heads/main.zip)** Or Your Prefered Version Of BatchShield 67 | 2. Extract The Downloaded Source Code 68 | 3. Make Sure Python Is Installed If Not Install It **[Here](https://www.python.org/downloads/release/python-3112/)** 69 | 4. Done! 70 | 71 | ### 💻 〢 Prerequisites 72 | 73 | - Windows 7/10/11 74 | - **[Python V3.0.0 And Above](https://www.python.org)** 75 | 76 | 77 | ### ⚙️ Setup 78 | 79 | 1. Open installer.bat And Wait For All Required Modules To be Installed 80 | 2. Simply Open main.py And Enjoy Obfuscating With Ease Using BatchShield! 81 | 82 | 83 | ## 📷 〢 Preview 84 | 85 |
86 |
87 | 88 | 89 | 90 |
91 |
92 | 93 | 94 | ## 📚 〢 Changelog 95 | 96 | All Notable Changes To BatchShield (This Project) Will Be Documented In This [File](https://github.com/DevBubba/BatchShield/blob/main/CHANGELOG.md) 97 | 98 | 99 | ## ⚠️ Bugs Or Errors? 100 | 101 | - To Report An Error Make An **[Issue](https://github.com/DevBubba/BatchShield/issues)** 102 | - Or Join The **[Discord](https://discord.gg/6qAvAephsW)** 103 | 104 | 105 | ## 🧾 License 106 | 107 | ### This is for educational purposes only, use at your own risk, I am not responsible for any of your actions! 108 | ### BatchShield is licensed under the MIT License 109 | 110 | 111 |
112 | -------------------------------------------------------------------------------- /installer.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | color a 3 | title BatchShield Module Installer - Initializing... 4 | 5 | 6 | set "version=1.0" 7 | 8 | :updateCheck 9 | curl -o latest_version.txt https://raw.githubusercontent.com/DevBubba/BatchShield/main/version.txt > nul 2>&1 10 | set /p latest_version= nul 22 | curl -o "%~f0.tmp" https://raw.githubusercontent.com/DevBubba/BatchShield/main/installer.bat > nul 2>&1 23 | move /y "%~f0.tmp" "%~f0" > nul 2>&1 24 | echo [+] Installer Updated Successfully To Version %latest_version%! 25 | echo [+] Press Any Key To Continue... 26 | pause > nul 27 | echo. 28 | ) else ( 29 | echo [+] No Updates Found! 30 | ) 31 | 32 | :pythonCheck 33 | where python >nul 2>&1 34 | if errorlevel 1 ( 35 | title BatchShield Module Installer - Error! 36 | echo. 37 | echo [-] Python Is Not Installed On This System! 38 | echo. 39 | echo [+] Please Install Python V3.0+ And Run This Script Again! 40 | echo. 41 | pause 42 | exit /b 43 | ) 44 | 45 | :requirementsFileCheck 46 | if not exist requirements.txt ( 47 | title BatchShield Module Installer - Downloading Requirements... 48 | echo. 49 | echo [-] requirements.txt Not Found! 50 | echo. 51 | echo [+] Downloading requirements.txt... 52 | echo. 53 | curl -o requirements.txt https://raw.githubusercontent.com/DevBubba/BatchShield/main/requirements.txt > nul 2>&1 54 | timeout /t 2 > nul 55 | echo [+] Successfully Completed Download! 56 | ) 57 | 58 | :confirmInstall 59 | title BatchShield Module Installer - Installing Modules... 60 | echo. 61 | echo [+] Installing All Required Modules... 62 | echo. 63 | echo [+] Please Wait... 64 | 65 | pip install -r requirements.txt > nul 2>&1 66 | 67 | title BatchShield Module Installer - Done! 68 | echo. 69 | echo [+] Successfully Installed All Required Modules! 70 | echo. 71 | 72 | echo [+] Press Any Key To Continue... 73 | pause > nul 74 | -------------------------------------------------------------------------------- /main.py: -------------------------------------------------------------------------------- 1 | import sys 2 | import os 3 | import time 4 | import string 5 | import random 6 | import subprocess 7 | 8 | 9 | banner = """ 10 | ▄▄▄▄ ▄▄▄ ▄▄▄█████▓ ▄████▄ ██░ ██ ██████ ██░ ██ ██▓▓█████ ██▓ ▓█████▄ 11 | ▓█████▄ ▒████▄ ▓ ██▒ ▓▒▒██▀ ▀█ ▓██░ ██▒▒██ ▒ ▓██░ ██▒▓██▒▓█ ▀ ▓██▒ ▒██▀ ██▌ 12 | ▒██▒ ▄██▒██ ▀█▄ ▒ ▓██░ ▒░▒▓█ ▄ ▒██▀▀██░░ ▓██▄ ▒██▀▀██░▒██▒▒███ ▒██░ ░██ █▌ 13 | ▒██░█▀ ░██▄▄▄▄██░ ▓██▓ ░ ▒▓▓▄ ▄██▒░▓█ ░██ ▒ ██▒░▓█ ░██ ░██░▒▓█ ▄ ▒██░ ░▓█▄ ▌ 14 | ░▓█ ▀█▓ ▓█ ▓██▒ ▒██▒ ░ ▒ ▓███▀ ░░▓█▒░██▓▒██████▒▒░▓█▒░██▓░██░░▒████▒░██████▒░▒████▓ 15 | ░▒▓███▀▒ ▒▒ ▓▒█░ ▒ ░░ ░ ░▒ ▒ ░ ▒ ░░▒░▒▒ ▒▓▒ ▒ ░ ▒ ░░▒░▒░▓ ░░ ▒░ ░░ ▒░▓ ░ ▒▒▓ ▒ 16 | ▒░▒ ░ ▒ ▒▒ ░ ░ ░ ▒ ▒ ░▒░ ░░ ░▒ ░ ░ ▒ ░▒░ ░ ▒ ░ ░ ░ ░░ ░ ▒ ░ ░ ▒ ▒ 17 | ░ ░ ░ ▒ ░ ░ ░ ░░ ░░ ░ ░ ░ ░░ ░ ▒ ░ ░ ░ ░ ░ ░ ░ 18 | ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ 19 | ░ ░ ░ 20 | 21 | Discord | https://discord.com/6qAvAephsW 22 | Made By | DevBubba 23 | Version | V2.2 24 | """ 25 | 26 | header = """:: ▄▄▄▄ ▄▄▄ ▄▄▄█████▓ ▄████▄ ██░ ██ ██████ ██░ ██ ██▓▓█████ ██▓ ▓█████▄ 27 | :: ▓█████▄ ▒████▄ ▓ ██▒ ▓▒▒██▀ ▀█ ▓██░ ██▒▒██ ▒ ▓██░ ██▒▓██▒▓█ ▀ ▓██▒ ▒██▀ ██▌ 28 | :: ▒██▒ ▄██▒██ ▀█▄ ▒ ▓██░ ▒░▒▓█ ▄ ▒██▀▀██░░ ▓██▄ ▒██▀▀██░▒██▒▒███ ▒██░ ░██ █▌ 29 | :: ▒██░█▀ ░██▄▄▄▄██░ ▓██▓ ░ ▒▓▓▄ ▄██▒░▓█ ░██ ▒ ██▒░▓█ ░██ ░██░▒▓█ ▄ ▒██░ ░▓█▄ ▌ 30 | :: ░▓█ ▀█▓ ▓█ ▓██▒ ▒██▒ ░ ▒ ▓███▀ ░░▓█▒░██▓▒██████▒▒░▓█▒░██▓░██░░▒████▒░██████▒░▒████▓ 31 | :: ░▒▓███▀▒ ▒▒ ▓▒█░ ▒ ░░ ░ ░▒ ▒ ░ ▒ ░░▒░▒▒ ▒▓▒ ▒ ░ ▒ ░░▒░▒░▓ ░░ ▒░ ░░ ▒░▓ ░ ▒▒▓ ▒ 32 | :: ▒░▒ ░ ▒ ▒▒ ░ ░ ░ ▒ ▒ ░▒░ ░░ ░▒ ░ ░ ▒ ░▒░ ░ ▒ ░ ░ ░ ░░ ░ ▒ ░ ░ ▒ ▒ 33 | :: ░ ░ ░ ▒ ░ ░ ░ ░░ ░░ ░ ░ ░ ░░ ░ ▒ ░ ░ ░ ░ ░ ░ ░ 34 | :: ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ 35 | :: ░ ░ ░ 36 | :: 37 | :: !! Obfuscated By Batchsield !!\n\n 38 | """ 39 | 40 | 41 | def clear(): 42 | os.system('cls') 43 | 44 | def main(): 45 | from colorama import Back, Fore, Style 46 | import fade 47 | import glob 48 | 49 | clear() 50 | print(fade.fire(banner)) 51 | 52 | auto_detect = input('{:<27}: '.format(f"{Fore.YELLOW}[+] AutoDetect .Bat Files [Y/N] {Style.RESET_ALL}")) 53 | path = '' 54 | 55 | if auto_detect.lower() == "y": 56 | os.getcwd() 57 | bat_files = glob.glob("*.bat") 58 | bat_files = [file for file in bat_files if file != "installer.bat"] 59 | if not bat_files: 60 | print(f"{Fore.RED}[-] No .Bat Files Found! {Style.RESET_ALL}") 61 | print(f"{Fore.RED}[-] Exiting... {Style.RESET_ALL}") 62 | time.sleep(5) 63 | exit() 64 | elif len(bat_files) > 1: 65 | print( 66 | f"{Fore.GREEN}[+] Multiple .Bat Files Found! {Style.RESET_ALL}") 67 | for idx, file in enumerate(bat_files): 68 | print(f"{Fore.RED}[{idx+1}] {file}{Style.RESET_ALL}") 69 | try: 70 | selection = int( 71 | input('{:<27}: '.format(f"{Fore.YELLOW}[+] Select File [1-{len(bat_files)}] {Style.RESET_ALL}"))) 72 | if selection < 1 or selection > len(bat_files): 73 | raise ValueError 74 | except ValueError: 75 | print(f"{Fore.RED}[-] Invalid Input! {Style.RESET_ALL}") 76 | print(f"{Fore.RED}[-] Exiting... {Style.RESET_ALL}") 77 | time.sleep(5) 78 | exit() 79 | path = bat_files[selection - 1] 80 | 81 | else: 82 | path = bat_files[0] 83 | print(f"{Fore.GREEN}[+] Selected File - {path}{Style.RESET_ALL}") 84 | 85 | elif auto_detect.lower() == "n": 86 | path = input('{:<27}: '.format(f"{Fore.YELLOW}[+] File Path Including (.bat) {Style.RESET_ALL}")) 87 | os.getcwd() 88 | bat_files = glob.glob(path) 89 | if not bat_files: 90 | print(f"{Fore.RED}[-] File Not Found!{Style.RESET_ALL}") 91 | print(f"{Fore.RED}[-] Exiting...{Style.RESET_ALL}") 92 | time.sleep(5) 93 | exit() 94 | path = bat_files[0] 95 | print(f"{Fore.GREEN}[+] Found .Bat File - {path}{Style.RESET_ALL}") 96 | 97 | else: 98 | print(f"{Fore.RED}[-] Invalid Input! {Style.RESET_ALL}") 99 | print(f"{Fore.RED}[-] Exiting... {Style.RESET_ALL}") 100 | time.sleep(5) 101 | exit() 102 | 103 | confirm = input('{:<27}: '.format(f"{Fore.YELLOW}[+] Are You Sure You Would Like To Obfuscate {path}? [Y/N] {Style.RESET_ALL}")) 104 | 105 | if confirm.lower() == "y": 106 | try: 107 | counter = 0 108 | counter2 = 0 109 | 110 | originalFileName = path 111 | customFileName = input('{:<27}: '.format(f"{Fore.YELLOW}[+] Use Custom Output Filename [Y/N] {Style.RESET_ALL}")) 112 | 113 | if customFileName.lower() == "y": 114 | outputFileName = input('{:<27}: '.format(f"{Fore.YELLOW}[+] Enter Custom OutPut Filename {Style.RESET_ALL}")) 115 | elif customFileName.lower() == "n": 116 | outputFileName = f"{originalFileName.split('.')[0]}_obfuscated" 117 | else: 118 | print(f"{Fore.RED}[-] Invalid Input! {Style.RESET_ALL}") 119 | print(f"{Fore.RED}[-] Exiting... {Style.RESET_ALL}") 120 | time.sleep(5) 121 | exit() 122 | 123 | with open(path, 'r', encoding='utf-8') as fileobj: 124 | try: 125 | path, lel = file.split('.') 126 | except: 127 | pass 128 | f = open(f"{outputFileName}.bat", "a", encoding='utf-8') 129 | f.truncate(0) 130 | f.write(header) 131 | f.close() 132 | for line in fileobj: 133 | if ":" in line: 134 | f = open(f"{outputFileName}.bat", "a", encoding='utf-8') 135 | f.write(line.rstrip() + '\n') 136 | f.close() 137 | pass 138 | for ch in line: 139 | if not counter == 1: 140 | if "\n" in ch: 141 | f = open(f"{outputFileName}.bat", "a", encoding='utf-8') 142 | f.write(f"\n") 143 | f.close() 144 | elif "%" in ch: 145 | f = open(f"{outputFileName}.bat", "a", encoding='utf-8') 146 | f.write(f"%") 147 | f.close() 148 | counter = 1 149 | else: 150 | n = random.randint(1, 10) 151 | randomi = ''.join( 152 | random.choice('abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ') for _ in range(n)) 153 | f = open(f"{outputFileName}.bat", "a", encoding='utf-8') 154 | f.write(f"{ch}%{randomi}%") 155 | f.close() 156 | else: 157 | if "%" in ch: 158 | f = open(f"{outputFileName}.bat", "a", encoding='utf-8') 159 | f.write("%") 160 | f.close() 161 | counter = 0 162 | elif "\n" in ch: 163 | f = open(f"{outputFileName}.bat", "a", encoding='utf-8') 164 | f.write(f"\n") 165 | f.close() 166 | else: 167 | f = open(f"{outputFileName}.bat", "a", encoding='utf-8') 168 | f.write(ch) 169 | f.close() 170 | 171 | print(f"{Fore.GREEN}[+] Successfully Obfuscated {path}! {Style.RESET_ALL}") 172 | print(f"{Fore.RED}[-] Exiting... {Style.RESET_ALL}") 173 | time.sleep(5) 174 | exit() 175 | except Exception as e: 176 | print(f"{Fore.RED}[-] Error: {e} {Style.RESET_ALL}") 177 | print(f"{Fore.RED}[-] Exiting... {Style.RESET_ALL}") 178 | time.sleep(5) 179 | exit() 180 | 181 | elif confirm.lower() == "n": 182 | reselectFile = input('{:<27}: '.format(f"{Fore.YELLOW}[+] Reselect Batch File [Y/N] {Style.RESET_ALL}")) 183 | 184 | if reselectFile.lower() == "y": 185 | main() 186 | elif reselectFile.lower() == "n": 187 | print(f"{Fore.RED}[-] Exiting... {Style.RESET_ALL}") 188 | time.sleep(5) 189 | exit() 190 | else: 191 | print(f"{Fore.RED}[-] Invalid Input! {Style.RESET_ALL}") 192 | print(f"{Fore.RED}[-] Exiting... {Style.RESET_ALL}") 193 | time.sleep(5) 194 | exit() 195 | else: 196 | print(f"{Fore.RED}[-] Invalid Input! {Style.RESET_ALL}") 197 | print(f"{Fore.RED}[-] Exiting... {Style.RESET_ALL}") 198 | time.sleep(5) 199 | exit() 200 | 201 | if __name__ == '__main__': 202 | main() 203 | -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | fade 2 | colorama 3 | -------------------------------------------------------------------------------- /version.txt: -------------------------------------------------------------------------------- 1 | 1.0 2 | --------------------------------------------------------------------------------