Skip to content

PoC jenkins files for generating PowerSharpPack payloads

Notifications You must be signed in to change notification settings

ChoiSG/jenkins-psp

Repository files navigation

DEPRECATED. Use Offensive-Jenkins instead. PUBLIC WHEN IDK


jenkins-psp

PoC jenkins files for generating PowerSharpPack payloads

Refer to the blog post here

Components

Jenkins - Main

  • psp-confuser.groovy: Jenkins pipeline that uses ConfuserEx for obfuscation. Creates PSP payload.
  • psp-inviscloak.groovy: Jenkins pipeline that uses InvisiblityCloak for obfuscation. Creates PSP payload.
  • psp-invis-confuser.groovy: Jenkins pipeline that uses InvisibilityCloak + ConfuserEx. Creates PSP payload.
  • assembly-invis-confuser.goorvy: Jenkins pipeline that uses InvisibilityCloak + ConfuserEx and only creates .NET assembly.
  • test-jenkins.groovy: A simple sanity check jenkins pipeline.

Jenkins - Meta

  • meta-example.groovy: Meta job that invokes meta-Certify.groovy and meta-Rubeus.groovy.
  • meta-Certify.groovy: Jenkins pipeline that creates Certify PSP payload.
  • meta-Rubeus.groovy: Jenkins pipeline that creates Rubeus PSP payload.

Utility scripts

  • confuserEx.ps1: Creates confuserEx project (.crproj) file that confuserex.cli.exe will use.
  • embedDotNet.ps1: Embed .NET assembly into the template.ps1 PSP payload template.
  • PSPprep.ps1: Change .NET tool's source code to set public for classes and the main() method.
  • template.ps1: A PSP payload template. .NET assembly will get embedded here.

Examples

  • Bunch of pipeline examples for popular projects
    • Certify
    • Rubeus
    • SharpHound
    • SharpUp
    • SharpView
    • Standin
    • SharpDPAPI

Gotchas

  • Remove welcome() banner from chameleon, causes character encoding error with Jenkins.
  • psp-inviscloak.groovy - If compilation fails because of invisibilitycloak, use the no-string option (remove -m <obs> option)
  • Turn off defender!

Credits

About

PoC jenkins files for generating PowerSharpPack payloads

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages