GithubHelp home page GithubHelp logo

post-ex's Introduction

pOSt-eX - OS X post-exploitation scripts

  • mail.py - Creates a an ApleScript payload with Empire and configures a mail rule to launch it
  • persist.py - EmPyre module implementation of mail.py
  • monitor.py - Piggybacks off a user's sudo session to spawn an agent with root privileges
  • piggyback.py - EmPye module of monitor.py

MailPersist - Post-exploitation script for OS X persistance

ABOUT:

This script creates a new rule in the OS X Mail application to automatically trigger an AppleScript payload when an email is recieved using a trigger word in the subject of the email.

The trigger email will be deleted before it is visible. The Script Monitor will also be killed imediately after executing the python stager. There should not be any visual indicators.

INSTALL:

All dependancies are met on a default installation of OS X. With that said, you will likely want to use EmPyre to create your AppleScript payload. https://github.com/adaptivethreat/EmPyre

USAGE:

Creating an AppleScript payload with Empyre:

(EmPyre) > listeners
(EmPyre: listeners) > set Name mylistener
(EmPyre: listeners) > execute
(EmPyre: listeners) > usestager applescript mylistener
(EmPyre: stager/applescript) > execute

Open mail.py and paste the output in the specified area. Modify the trigger word as you see fit.

When pasting the AppleScript payload from Empire, you need to make two modifications:

  • Double up the backslash characters
  • Remove the final double quote

post-ex's People

Contributors

n00py avatar

Watchers

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