GithubHelp home page GithubHelp logo

zachwong02 / pseudotet Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ka7ana/pseudotet

0.0 0.0 0.0 22 KB

A PowerShell script used to create Word Documents containing an Emotet-like VBA/PowerShell payload

PowerShell 100.00%

pseudotet's Introduction

pseudotet

A PowerShell script used to create Word Documents containing an Emotet-like VBA/PowerShell payload.

The script performs the following steps:

  1. Generates a PowerShell payload that calls out to a domain, saves the result to an .exe file and simulates execution of the downloaded file (calc.exe is run instead)
  2. Encrypts the PowerShell payload using a randomly generated key
  3. Creates a new Word Document, saving the encrypted PowerShell payload in the Document's "Comments" built-in property
  4. Sets Custom Document Properties which, when re-assembled, contains the VBA WScript.Run command necessary to invoke PowerShell to decrypt and run the payload from steps 1 & 2
  5. Generates a number of obfuscated auxillary functions to pad out the VBA

When the generated Document is open, the VBA Sub AutoOpen command is executed (provided macros are enabled, of course :)), which reassembles the command and decrypts and executes the PowerShell payload.

NOTE: the payload URL can be supplied or randomly generated. If the URL supplied/generated is valid, the response will be saved to a exe file in C:\Temp, however this is overwritten with a copy of calc.exe before being run.

Usage

To use, import the module in PS and call the Generate-Pseudotet function, passing in the required args:

PS> Import-Module .\pseudotet.psm1
PS> Generate-Pseudotet -PayloadDownloadURL "https://www.foobar.com/payload" -Debug $true

pseudotet's People

Contributors

ka7ana 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.