Coder Social home page Coder Social logo

batchdeobfuscator's Introduction

Batch Deobfuscation Script

This repository contains a batch script designed to deobfuscate other batch files that have been obfuscated using the certutil method. The script reverses the obfuscation process and reconstructs the original batch file.

How It Works

The deobfuscation script works by:

  1. Checking if a command line argument (the path to the obfuscated batch file) is provided.
  2. Verifying that the file's extension is either .bat or .cmd.
  3. Deleting any existing temporary deobfuscated file.
  4. Reading the obfuscated batch file line by line using the CMD /U /C Type command, which properly interprets Unicode characters.
  5. Echoing each line to the console and simultaneously appending it to a temporary file.
  6. Pausing at the end to allow the user to review the output.

Usage

  1. Download Deobfuscator to local machine

  2. Place the deobfuscator and obfuscated file into the same directory

  3. Drag and drop the obfuscated file onto the deobfuscator.bat

  4. The script will display the deobfuscated content on the console and create a temporary deobfuscated file in the same directory as the obfuscated file, named obfuscatedname_deobfed.bat||.cmd.

  5. Review the deobfuscated content and make sure it matches the expected original batch file.

  6. Note: Be cautious when dealing with batch files from untrusted sources, as they can potentially contain malicious code.

License

This project is licensed under the MIT License - see the LICENSE file for details.

batchdeobfuscator's People

Contributors

autumnlikescode avatar

Stargazers

PiXZeN avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.