Code Monkey home page Code Monkey logo

cyberhunter00 / macrosploit2 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from api0cradle/macrosploit2

0.0 0.0 0.0 192 KB

MacroSploit is a modified version of unicorn used to generate a social engineering Microsoft Office macro payload for penetration testers . Macros generated include both a Windows Powershell payload and OSX Macscript payload. Original unicorn description - Unicorn is a simple tool for using a PowerShell downgrade attack and inject shellcode straight into memory. Based on Matthew Graeber's powershell attacks and the powershell bypass technique presented by Davi…

Home Page: http://www.cryptotrust.net

License: Other

Python 100.00%

macrosploit2's Introduction

Macrosploit - Multi Platform Social Engineering / Penetration Testing Macro Payload

Microsoft Word Macros have been used successfully as social engineering payloads for penetration testers for years. This method does not actually use any exploits, it uses the intended functionality of a macro for unintended purposes. If you can trick a user into enabling Macros then code execution on the users system is possible. Macrosploit introduces a new method for the built in Applescript of OS X operating systems and the built in Powershell of Windows to create one office document that will work on both platforms. Future plans include a macro for LibreOffice in Linux. Tested and working on the following:

Windows 7 Pro x64 - Microsoft Office Professional Plus 2010

OS X 10.9.5 - Microsoft Word for Mac 2011 14.2.0

Features:

Automatically runs on document open when Macros are enabled

OS X Persistent Reverse Shell using Bash and Plist persistence

Bypasses built in OS X GateKeeper Security!!!

What it does:

On Mac it will create a reverse shell connection to the listener that you must specify It uses the plist method of persistance so that a new reverse shell is attempted ever 120 seconds (WARNING: You must manually remove the com.apple.video2.plist file or unload plist to remove this persistance). The Macro attempts to run with root privileges, if successful it sets up a reverse shell with root privileges, it will also set up a user reverse shell in case the root privileges can not be obtained.

On Windows it will execute powershell payload of your choice this could be a reverse shell, Meterpreter, or Beacon if you have access to Cobalt Strike (www.advancedpentest.com).

How to use it:

For the Mac payload just change the reverse shell listener to your listener IP address, change the port (currently 4444) to your listener port. E.g. nc -lvp 1234 (or use the generic/shell_reverse_tcp in Metasploit). For the Windows payload change to the powershell command of your choice.

Future Plans

Create a script (SET like) to automate creation of Macro using selection of payloads, automate starting listener.

Test on Libre Office / Open Office for Linux reverse shell so that one payload can work on Windows, OSX, Linux and Unix.

macrosploit2's People

Contributors

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