Giter VIP home page Giter VIP logo

adaptivedocumentbuilder's Introduction

Setup

Ensure that you have "Trust access to the VBA project object model" checked under Trust Center -> Macro Settings

Usage

To use module, first import-module .\adb.psm1 this will import two functions

  1. ListAdversaries
  2. CreateDocument

Commands

ListAdversaries will list the adversaries that are available to emulate CreateDocument will create the document(s) based on the adversary chosen

ListAdversary Example

PS C:\Users\ebfe\Desktop\adb> ListAdversaries

Name
----
test1
test2
test3

CreateDocument Examples

The CreateDocument function takes 3 parameters

  1. c - this is the requested number of documents to be created (NOT required)
  2. adversary - this is the requested adversary to emulate (REQUIRED)
  3. out - this is the output directory to drop all of the requested files. default operation is to drop the files into $PSScriptRoot. if out is specified and the directory does not exist, it will be created (NOT required)
  4. pass - password you'd like to set on the document (NOT required)
PS C:\Users\ebfe\Desktop\adb> CreateDocument -c 1 -adversary test1

[*] Creating 1 documents...
PS C:\Users\ebfe\Desktop\adb> CreateDocument -c 5 -adversary test12

[*] Creating 5 documents...
PS C:\Users\ebfe\Desktop\adb> CreateDocument -c 5 -adversary test3 -out C:\Users\ebfe\Desktop\out

[*] Creating 5 documents...
[*] Specified output directory does NOT exist
[+] Creating 'C:\Users\ebfe\Desktop\out' now...
PS C:\Users\ebfe\Desktop\adb> CreateDocument -c 1 -adversary test1 -pass 'password'

[*] Creating '1' document(s)...
[!] Log does not exist
[+] Creating log file now...
[*] Created 'C:\Users\ebfe\Desktop\adb\Your_Invoice_4331.docm'...

Development Notes

Ensure that the adversary directory is populated with a Doc1.docx or Book1.xlsx. This file is used as the template during the document creation process.

adaptivedocumentbuilder's People

Contributors

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