GithubHelp home page GithubHelp logo

5l1v3r1 / preludeoperator_quickcheck Goto Github PK

View Code? Open in Web Editor NEW

This project forked from invokethreatguy/preludeoperator_quickcheck

0.0 1.0 0.0 90 KB

Simple Powershell Prelude Operator Quick Check

JavaScript 74.21% PowerShell 22.91% XSLT 2.88%

preludeoperator_quickcheck's Introduction

PreludeOperator_QuickCheck

Simple Powershell Prelude Operator Quick Check

In this example, we will use boomtown.ngrok.io There are a couple ways to redirect HTTP.
You should replace this with either your ngrok instance or your redirector. The preferred method is a Gateway Redirector.

Cloudy with a chance of redirectors

Create a TTP

Screen Shot 2021-06-25 at 7 37 13 PM

Create an Adversary - Add The TTP

Screen Shot 2021-06-25 at 7 43 38 PM

Ensure Your Prelude Operator is Reachable over HTTP

Ngrok Example -

ngrok http --region=us --hostname=boomtown.ngrok.io 3391

Deploy a Cloud Gateway Redirector

{TODO}

Execute Checkin PowerShell

$PreludeHTTPDomain = "https://boomtown.ngrok.io"
$Executors = @()
$Executors += 'psh'
$Links = @()

$jsonBase = [pscustomobject]@{
    Name = "Boomer"
    Target = ""
    Hostname = "APTz"
    Location = ""
    Platform = "windows"
    Executors = $executors
    Range = "BoomTown"
	"Pwd" = ""
	"Sleep" = 10
	Executing= ""
    Links = $Links

}

$delivery = $jsonBase | ConvertTo-Json
# Checkin - Get Task

$response = Invoke-RestMethod -Uri $PreludeHTTPDomain -Method Post -Body $delivery -ContentType "application/json"
$ID = $response.links.ID


You should have a call back

Deploy The Adversary To Your BoomTown Range

Screen Shot 2021-06-25 at 7 47 08 PM

Run The PowerShell Simple Stager


$PreludeHTTPDomain = "https://boomtown.ngrok.io"
$Executors = @()
$Executors += 'psh'
$Links = @()

$jsonBase = [pscustomobject]@{
    Name = "Boomer"
    Target = ""
    Hostname = "APTz"
    Location = ""
    Platform = "windows"
    Executors = $executors
    Range = "BoomTown"
	"Pwd" = ""
	"Sleep" = 10
	Executing= ""
    Links = $Links

}

$delivery = $jsonBase | ConvertTo-Json
# Checkin - Get Task

$response = Invoke-RestMethod -Uri $PreludeHTTPDomain -Method Post -Body $delivery -ContentType "application/json"
$ID = $response.links.ID


# Send Response
$Links += [pscustomobject]@{
    'ID'="$ID";
    'Executor'='psh';
	'Payload'=''
	'Request'= ""
    'Response'="Ready To Roll Out!";
    'Status'='0';
    'Pid'="$Pid"
}

$jsonBase = [pscustomobject]@{
    Name = "Boomer"
    Target = ""
    Hostname = "APTz"
    Location = ""
    Platform = "windows"
    Executors = $executors
    Range = "BoomTown"
	"Pwd" = ""
	"Sleep" = 10
	Executing= ""
    Links = $Links

}

$deliveryResponse = $jsonBase | ConvertTo-Json
$response_delivery = Invoke-RestMethod -Uri $PreludeHTTPDomain -Method Post -Body $deliveryResponse  -ContentType "application/json"

Check Status

Screen Shot 2021-06-25 at 7 49 29 PM

Screen Shot 2021-06-25 at 7 49 41 PM

Conclusion

The aim here is to help ensure you are up and running quick. Once you pass the check you are ready to start deploying more aggressive tests.

This is pretty rough, and can be better, but its a start ;-) Feedback Welcome. -Additional Idea:

Fiddler debugging

Simple DNS C2, etc..

WebShell

WSH Harnesses, JSScript, VBScript, VBA, HTA, SCT etc...

These are just some prototypes.

preludeoperator_quickcheck's People

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.