Code Monkey home page Code Monkey logo

sfxbat's Introduction

SFXBat

Authered by b1krb7

Simple bat script, combined with a base64 encoded Powershell Downloader. Once the SFX Archive has been downloaded to the Temp Directory, the SFX Archive is then executed unzipping the archive and allowing execution of the first bat archive allowing a hidden powershell window to execute the second bat script hidden the window while it runs through VM Detection strings. While removing all previously run scripts removing traces of infection.

If a VM is detected all files are then removed. If no VM is detected the payload will be launched and upon runtime deleted leaving no file traces for infection analysis.

Important

[!] Change that names of the scripts and file names within the runtime scripts.

Contents:

  • PAYLOAD.zip.exe - Benign SFX Archive to show placement of files for production usage.
    '-> Included to show the SFX options to control how the archive is handled upon execution.
  • preV.bat - Bat script to run the VM Detection Script from a hidden window.
  • checkV.bat - The Script that checks for signs of virtualization and cleans the environment during execution.
  • SFX_Downloader.ps1 - The base64 encoded powershell script that pulls and executes the SFXArchive from WebServer.
  • PAYLOADTOEXECUTE.exe.txt - This would be the malware file to run if machine comes back clean.
Required Structure [1] SFX_Downloader.ps1

[2] PAYLOAD.zip.exe
  ├── PAYLOADTOEXECUTE.exe
  ├── preV.bat
  ├── checkV.bat
  └── ...

sfxbat's People

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.