├── img
├── banner.PNG
└── 2023-01-15-18-17-14.png
├── ExternalResources
└── DonutCore.1.0.1.nupkg
├── OffensivePipeline
├── Properties
│ ├── launchSettings.json
│ └── PublishProfiles
│ │ ├── FolderProfile.pubxml.user
│ │ └── FolderProfile.pubxml
├── Resources
│ ├── template_build.bat
│ └── template_confuserEx.crproj.template
├── Tools
│ ├── KrbRelay.yml
│ ├── SharpCOM.yml
│ ├── SharpStay.yml
│ ├── SharpView.yml
│ ├── ADFSDump.yml
│ ├── SharpMapExec.yml
│ ├── StandIn.yml
│ ├── Group3r.yml
│ ├── SharPersist.yml
│ ├── SharpBypassUAC.yml
│ ├── SharpUp.yml
│ ├── Rubeus.yml
│ ├── TokenStomp.yml
│ ├── KrbRelayUp.yml
│ ├── SharpHound3.yml
│ ├── SharpMove.yml
│ ├── SharpWMI.yml
│ ├── SharpDump.yml
│ ├── SharpNoPSExec.yml
│ ├── SharpPrinter.yml
│ ├── SqlClient.yml
│ ├── TruffleSnout.yml
│ ├── SharpChisel.yml
│ ├── ForgeCert.yml
│ ├── SharpExec.yml
│ ├── SharpKatz.yml
│ ├── ThreatCheck.yml
│ ├── SearchOutlook.yml
│ ├── SauronEye.yml
│ ├── SharpRDP.yml
│ ├── winPEAS.yml
│ ├── ADSearch.yml
│ ├── Certify.yml
│ ├── LockLess.yml
│ ├── SharpAppLocker.yml
│ ├── SharpDPAPI.yml
│ ├── SharpSearch.yml
│ ├── SharpSQLPwn.yml
│ ├── SweetPotato.yml
│ ├── Sharp-SMBExec.yml
│ ├── SharpSecDump.yml
│ ├── SharpSniper.yml
│ ├── Watson.yml
│ ├── SharpHose.yml
│ ├── SharpWifiGrabber.yml
│ ├── WMIReg.yml
│ ├── SafetyKatz.yml
│ ├── SharpWebServer.yml
│ ├── ADCollector.yml
│ ├── SharpShares.yml
│ ├── SharpReg.yml
│ ├── SharpCookieMonster.yml
│ ├── SharpCrashEventLog.yml
│ ├── SharpDir.yml
│ ├── SharpScribbles.yml
│ ├── SharpSphere.yml
│ ├── PassTheCert.yml
│ ├── ADCSPwn.yml
│ ├── PurpleSharp.yml
│ ├── SharpLAPS.yml
│ ├── SharpSpray.yml
│ ├── Seatbelt.yml
│ ├── SharpCloud.yml
│ ├── SharpChromium.yml
│ ├── SharpSvc.yml
│ ├── SharpZeroLogon.yml
│ ├── SharpHandler.yml
│ ├── Snaffler.yml
│ ├── Whisker.yml
│ ├── Shhmon.yml
│ ├── SharpTask.yml
│ ├── DeployPrinterNightmare.yml
│ ├── SharpMiniDump.yml
│ ├── SharpNamedPipePTH.yml
│ ├── SharpGPOAbuse.yml
│ ├── SharpSCCM.yml
│ ├── BetterSafetyKatz.yml
│ ├── EDD.yml
│ └── SharpEDRChecker.yml
├── OffensivePipeline.csproj.user
├── Modules
│ ├── iModule.cs
│ ├── Donut.cs
│ ├── RandomGuid.cs
│ ├── RandomAssemblyInfo.cs
│ ├── BuildCsharp.cs
│ └── ConfuserEx.cs
├── ModuleOutput.cs
├── App.config
├── RandomManifest.cs
├── ToolConfig.cs
├── Conf.cs
├── LogHelpers.cs
├── GitHelpers.cs
├── YmlHelpers.cs
├── Helpers.cs
├── Program.cs
└── OffensivePipeline.csproj
├── .gitignore
├── OffensivePipeline.sln
├── README.md
└── LICENSE
/img/banner.PNG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UberGuidoZ/OffensivePipeline/HEAD/img/banner.PNG
--------------------------------------------------------------------------------
/img/2023-01-15-18-17-14.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UberGuidoZ/OffensivePipeline/HEAD/img/2023-01-15-18-17-14.png
--------------------------------------------------------------------------------
/ExternalResources/DonutCore.1.0.1.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UberGuidoZ/OffensivePipeline/HEAD/ExternalResources/DonutCore.1.0.1.nupkg
--------------------------------------------------------------------------------
/OffensivePipeline/Properties/launchSettings.json:
--------------------------------------------------------------------------------
1 | {
2 | "profiles": {
3 | "OffensivePipeline": {
4 | "commandName": "Project",
5 | "commandLineArgs": "t rubeus"
6 | }
7 | }
8 | }
--------------------------------------------------------------------------------
/OffensivePipeline/Resources/template_build.bat:
--------------------------------------------------------------------------------
1 | call "{{MSBUILD_PATH}}"
2 | msbuild.exe "{{SOLUTION_PATH}}" {{BUILD_OPTIONS}} /p:OutputPath="{{OUTPUT_DIR}}" /p:DebugSymbols=false /p:DebugType=None /p:AssemblyName="{{OUTPUT_FILENAME}}"
--------------------------------------------------------------------------------
/OffensivePipeline/Resources/template_confuserEx.crproj.template:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/OffensivePipeline/Tools/KrbRelay.yml:
--------------------------------------------------------------------------------
1 | tool:
2 | - name: KrbRelay
3 | description: C# Framework for Kerberos relaying
4 | gitLink: https://github.com/cube0x0/KrbRelay
5 | solutionPath: KrbRelay\KrbRelay.sln
6 | language: c#
7 | plugins: RandomGuid, RandomAssemblyInfo, BuildCsharp, ConfuserEx, Donut
8 | authUser:
9 | authToken:
10 | toolArguments:
11 |
--------------------------------------------------------------------------------
/OffensivePipeline/Tools/SharpCOM.yml:
--------------------------------------------------------------------------------
1 | tool:
2 | - name: SharpCOM
3 | description: SharpCOM is a c# port of Invoke-DCOM
4 | gitLink: https://github.com/rvrsh3ll/SharpCOM
5 | solutionPath: SharpCOM\SharpCOM.sln
6 | language: c#
7 | plugins: RandomGuid, RandomAssemblyInfo, BuildCsharp, ConfuserEx, Donut
8 | authUser:
9 | authToken:
10 | toolArguments:
11 |
--------------------------------------------------------------------------------
/OffensivePipeline/Tools/SharpStay.yml:
--------------------------------------------------------------------------------
1 | tool:
2 | - name: SharpStay
3 | description: .NET Persistence
4 | gitLink: https://github.com/0xthirteen/SharpStay
5 | solutionPath: SharpStay\SharpStay\SharpStay.sln
6 | language: c#
7 | plugins: RandomGuid, RandomAssemblyInfo, BuildCsharp, ConfuserEx, Donut
8 | authUser:
9 | authToken:
10 | toolArguments:
11 |
--------------------------------------------------------------------------------
/OffensivePipeline/Tools/SharpView.yml:
--------------------------------------------------------------------------------
1 | tool:
2 | - name: SharpView
3 | description: .NET port of PowerView
4 | gitLink: https://github.com/tevora-threat/SharpView
5 | solutionPath: SharpView\SharpView.sln
6 | language: c#
7 | plugins: RandomGuid, RandomAssemblyInfo, BuildCsharp, ConfuserEx, Donut
8 | authUser:
9 | authToken:
10 | toolArguments:
11 |
--------------------------------------------------------------------------------
/OffensivePipeline/OffensivePipeline.csproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | <_LastSelectedProfileId>C:\Users\alpha\Desktop\OffensivePipeline\OffensivePipeline\Properties\PublishProfiles\FolderProfile.pubxml
5 |
6 |
--------------------------------------------------------------------------------
/OffensivePipeline/Tools/ADFSDump.yml:
--------------------------------------------------------------------------------
1 | tool:
2 | - name: ADFSDump
3 | description: A C# tool to dump all sorts of goodies from AD FS.
4 | gitLink: https://github.com/mandiant/ADFSDump
5 | solutionPath: ADFSDump\ADFSDump.sln
6 | language: c#
7 | plugins: RandomGuid, RandomAssemblyInfo, BuildCsharp, ConfuserEx, Donut
8 | authUser:
9 | authToken:
10 | toolArguments:
11 |
--------------------------------------------------------------------------------
/OffensivePipeline/Tools/SharpMapExec.yml:
--------------------------------------------------------------------------------
1 | tool:
2 | - name: SharpMapExec
3 | description: Sharpen version of CrackMapExec
4 | gitLink: https://github.com/cube0x0/SharpMapExec
5 | solutionPath: SharpMapExec\SharpMapExec.sln
6 | language: c#
7 | plugins: RandomGuid, RandomAssemblyInfo, BuildCsharp, ConfuserEx, Donut
8 | authUser:
9 | authToken:
10 | toolArguments:
11 |
--------------------------------------------------------------------------------
/OffensivePipeline/Tools/StandIn.yml:
--------------------------------------------------------------------------------
1 | tool:
2 | - name: StandIn
3 | description: StandIn is a small AD post-compromise toolkit
4 | gitLink: https://github.com/FuzzySecurity/StandIn
5 | solutionPath: StandIn\StandIn\StandIn.sln
6 | language: c#
7 | plugins: RandomGuid, RandomAssemblyInfo, BuildCsharp, ConfuserEx, Donut
8 | authUser:
9 | authToken:
10 | toolArguments:
11 |
--------------------------------------------------------------------------------
/OffensivePipeline/Tools/Group3r.yml:
--------------------------------------------------------------------------------
1 | tool:
2 | - name: Group3r
3 | description: Rubeus is a C# toolset for raw Kerberos interaction and abuses
4 | gitLink: https://github.com/Group3r/Group3r
5 | solutionPath: Group3r\Group3r.sln
6 | language: c#
7 | plugins: RandomGuid, RandomAssemblyInfo, BuildCsharp, ConfuserEx, Donut
8 | authUser:
9 | authToken:
10 | toolArguments:
11 |
--------------------------------------------------------------------------------
/OffensivePipeline/Tools/SharPersist.yml:
--------------------------------------------------------------------------------
1 | tool:
2 | - name: SharPersist
3 | description: Windows persistence toolkit written in C#
4 | gitLink: https://github.com/mandiant/SharPersist
5 | solutionPath: SharPersist\SharPersist.sln
6 | language: c#
7 | plugins: RandomGuid, RandomAssemblyInfo, BuildCsharp, ConfuserEx, Donut
8 | authUser:
9 | authToken:
10 | toolArguments:
11 |
--------------------------------------------------------------------------------
/OffensivePipeline/Tools/SharpBypassUAC.yml:
--------------------------------------------------------------------------------
1 | tool:
2 | - name: SharpBypassUAC
3 | description: C# tool for UAC bypasses
4 | gitLink: https://github.com/FatRodzianko/SharpBypassUAC
5 | solutionPath: SharpBypassUAC\SharpBypassUAC.sln
6 | language: c#
7 | plugins: RandomGuid, RandomAssemblyInfo, BuildCsharp, ConfuserEx, Donut
8 | authUser:
9 | authToken:
10 | toolArguments:
11 |
--------------------------------------------------------------------------------
/OffensivePipeline/Tools/SharpUp.yml:
--------------------------------------------------------------------------------
1 | tool:
2 | - name: SharpUp
3 | description: SharpUp is a C# port of various PowerUp functionality
4 | gitLink: https://github.com/GhostPack/SharpUp
5 | solutionPath: SharpUp\SharpUp.sln
6 | language: c#
7 | plugins: RandomGuid, RandomAssemblyInfo, BuildCsharp, ConfuserEx, Donut
8 | authUser:
9 | authToken:
10 | toolArguments:
11 |
--------------------------------------------------------------------------------
/OffensivePipeline/Tools/Rubeus.yml:
--------------------------------------------------------------------------------
1 | tool:
2 | - name: Rubeus
3 | description: Rubeus is a C# toolset for raw Kerberos interaction and abuses
4 | gitLink: https://github.com/GhostPack/Rubeus
5 | solutionPath: Rubeus\Rubeus.sln
6 | language: c#
7 | plugins: RandomGuid, RandomAssemblyInfo, BuildCsharp, ConfuserEx, Donut
8 | authUser:
9 | authToken:
10 | toolArguments:
11 |
--------------------------------------------------------------------------------
/OffensivePipeline/Tools/TokenStomp.yml:
--------------------------------------------------------------------------------
1 | tool:
2 | - name: TokenStomp
3 | description: C# POC for the token privilege removal flaw reported
4 | gitLink: https://github.com/MartinIngesen/TokenStomp
5 | solutionPath: TokenStomp\TokenStomp.sln
6 | language: c#
7 | plugins: RandomGuid, RandomAssemblyInfo, BuildCsharp, ConfuserEx, Donut
8 | authUser:
9 | authToken:
10 | toolArguments:
11 |
--------------------------------------------------------------------------------
/OffensivePipeline/Tools/KrbRelayUp.yml:
--------------------------------------------------------------------------------
1 | tool:
2 | - name: KrbRelayUp
3 | description: Simple wrapper around some of the features of Rubeus and KrbRelay
4 | gitLink: https://github.com/Dec0ne/KrbRelayUp
5 | solutionPath: KrbRelayUp\KrbRelayUp.sln
6 | language: c#
7 | plugins: RandomGuid, RandomAssemblyInfo, BuildCsharp, ConfuserEx, Donut
8 | authUser:
9 | authToken:
10 | toolArguments:
11 |
--------------------------------------------------------------------------------
/OffensivePipeline/Tools/SharpHound3.yml:
--------------------------------------------------------------------------------
1 | tool:
2 | - name: SharpHound3
3 | description: C# Rewrite of the BloodHound Ingestor
4 | gitLink: https://github.com/BloodHoundAD/SharpHound3
5 | solutionPath: SharpHound3\SharpHound3.sln
6 | language: c#
7 | plugins: RandomGuid, RandomAssemblyInfo, BuildCsharp, ConfuserEx, Donut
8 | authUser:
9 | authToken:
10 | toolArguments:
11 |
--------------------------------------------------------------------------------
/OffensivePipeline/Tools/SharpMove.yml:
--------------------------------------------------------------------------------
1 | tool:
2 | - name: SharpMove
3 | description: .NET authenticated execution for remote hosts
4 | gitLink: https://github.com/0xthirteen/SharpMove
5 | solutionPath: SharpMove\SharpMove\SharpMove.sln
6 | language: c#
7 | plugins: RandomGuid, RandomAssemblyInfo, BuildCsharp, ConfuserEx, Donut
8 | authUser:
9 | authToken:
10 | toolArguments:
11 |
--------------------------------------------------------------------------------
/OffensivePipeline/Tools/SharpWMI.yml:
--------------------------------------------------------------------------------
1 | tool:
2 | - name: SharpWMI
3 | description: SharpWMI is a C# implementation of various WMI functionality.
4 | gitLink: https://github.com/GhostPack/SharpWMI
5 | solutionPath: SharpWMI\SharpWMI.sln
6 | language: c#
7 | plugins: RandomGuid, RandomAssemblyInfo, BuildCsharp, ConfuserEx, Donut
8 | authUser:
9 | authToken:
10 | toolArguments:
11 |
--------------------------------------------------------------------------------
/OffensivePipeline/Tools/SharpDump.yml:
--------------------------------------------------------------------------------
1 | tool:
2 | - name: SharpDump
3 | description: SharpDump is a C# port of PowerSploit's Out-Minidump.ps1 functionality
4 | gitLink: https://github.com/GhostPack/SharpDump
5 | solutionPath: SharpDump\SharpDump.sln
6 | language: c#
7 | plugins: RandomGuid, RandomAssemblyInfo, BuildCsharp, ConfuserEx, Donut
8 | authUser:
9 | authToken:
10 | toolArguments:
11 |
--------------------------------------------------------------------------------
/OffensivePipeline/Tools/SharpNoPSExec.yml:
--------------------------------------------------------------------------------
1 | tool:
2 | - name: SharpNoPSExec
3 | description: File less command execution for lateral movement.
4 | gitLink: https://github.com/juliourena/SharpNoPSExec
5 | solutionPath: SharpNoPSExec\SharpNoPSExec.sln
6 | language: c#
7 | plugins: RandomGuid, RandomAssemblyInfo, BuildCsharp, ConfuserEx, Donut
8 | authUser:
9 | authToken:
10 | toolArguments:
11 |
--------------------------------------------------------------------------------
/OffensivePipeline/Tools/SharpPrinter.yml:
--------------------------------------------------------------------------------
1 | tool:
2 | - name: SharpPrinter
3 | description: Printer is a modified and console version of ListNetworks
4 | gitLink: https://github.com/rvrsh3ll/SharpPrinter
5 | solutionPath: SharpPrinter\SharpPrinter.sln
6 | language: c#
7 | plugins: RandomGuid, RandomAssemblyInfo, BuildCsharp, ConfuserEx, Donut
8 | authUser:
9 | authToken:
10 | toolArguments:
11 |
--------------------------------------------------------------------------------
/OffensivePipeline/Tools/SqlClient.yml:
--------------------------------------------------------------------------------
1 | tool:
2 | - name: SqlClient
3 | description: C# .NET mssql client for accessing database data through beacon.
4 | gitLink: https://github.com/FortyNorthSecurity/SqlClient
5 | solutionPath: SqlClient\SqlClient.sln
6 | language: c#
7 | plugins: RandomGuid, RandomAssemblyInfo, BuildCsharp, ConfuserEx, Donut
8 | authUser:
9 | authToken:
10 | toolArguments:
11 |
--------------------------------------------------------------------------------
/OffensivePipeline/Tools/TruffleSnout.yml:
--------------------------------------------------------------------------------
1 | tool:
2 | - name: TruffleSnout
3 | description: Iterative AD discovery toolkit for offensive operators
4 | gitLink: https://github.com/dsnezhkov/TruffleSnout
5 | solutionPath: TruffleSnout\TruffleSnout.sln
6 | language: c#
7 | plugins: RandomGuid, RandomAssemblyInfo, BuildCsharp, ConfuserEx, Donut
8 | authUser:
9 | authToken:
10 | toolArguments:
11 |
--------------------------------------------------------------------------------
/OffensivePipeline/Tools/SharpChisel.yml:
--------------------------------------------------------------------------------
1 | tool:
2 | - name: SharpChisel
3 | description: C# Wrapper of Chisel from https://github.com/jpillora/chisel
4 | gitLink: https://github.com/shantanu561993/SharpChisel
5 | solutionPath: SharpChisel\SharpChisel.sln
6 | language: c#
7 | plugins: RandomGuid, RandomAssemblyInfo, BuildCsharp, ConfuserEx, Donut
8 | authUser:
9 | authToken:
10 | toolArguments:
11 |
--------------------------------------------------------------------------------
/OffensivePipeline/Tools/ForgeCert.yml:
--------------------------------------------------------------------------------
1 | tool:
2 | - name: ForgeCert
3 | description: C# tool to find vulnerabilities in AD Group Policy, but do it better than Grouper2 did.
4 | gitLink: https://github.com/GhostPack/ForgeCert
5 | solutionPath: ForgeCert\ForgeCert.sln
6 | language: c#
7 | plugins: RandomGuid, RandomAssemblyInfo, BuildCsharp, ConfuserEx, Donut
8 | authUser:
9 | authToken:
10 | toolArguments:
11 |
--------------------------------------------------------------------------------
/OffensivePipeline/Tools/SharpExec.yml:
--------------------------------------------------------------------------------
1 | tool:
2 | - name: SharpExec
3 | description: SharpExec is an offensive security C# tool designed to aid with lateral movement.
4 | gitLink: https://github.com/anthemtotheego/SharpExec
5 | solutionPath: SharpExec\SharpExec.sln
6 | language: c#
7 | plugins: RandomGuid, RandomAssemblyInfo, BuildCsharp, ConfuserEx, Donut
8 | authUser:
9 | authToken:
10 | toolArguments:
11 |
--------------------------------------------------------------------------------
/OffensivePipeline/Tools/SharpKatz.yml:
--------------------------------------------------------------------------------
1 | tool:
2 | - name: SharpKatz
3 | description: Porting of mimikatz sekurlsa::logonpasswords, sekurlsa::ekeys and lsadump::dcsync commands
4 | gitLink: https://github.com/b4rtik/SharpKatz
5 | solutionPath: SharpKatz\SharpKatz.sln
6 | language: c#
7 | plugins: RandomGuid, RandomAssemblyInfo, BuildCsharp, ConfuserEx, Donut
8 | authUser:
9 | authToken:
10 | toolArguments:
11 |
--------------------------------------------------------------------------------
/OffensivePipeline/Tools/ThreatCheck.yml:
--------------------------------------------------------------------------------
1 | tool:
2 | - name: ThreatCheck
3 | description: Modified version of Matterpreter's DefenderCheck
4 | gitLink: https://github.com/rasta-mouse/ThreatCheck
5 | solutionPath: ThreatCheck\ThreatCheck\ThreatCheck.sln
6 | language: c#
7 | plugins: RandomGuid, RandomAssemblyInfo, BuildCsharp, ConfuserEx, Donut
8 | authUser:
9 | authToken:
10 | toolArguments:
11 |
--------------------------------------------------------------------------------
/OffensivePipeline/Tools/SearchOutlook.yml:
--------------------------------------------------------------------------------
1 | tool:
2 | - name: SearchOutlook
3 | description: A C# tool to search through a running instance of Outlook for keywords
4 | gitLink: https://github.com/RedLectroid/SearchOutlook
5 | solutionPath: SearchOutlook\SearchOutlook.sln
6 | language: c#
7 | plugins: RandomGuid, RandomAssemblyInfo, BuildCsharp, ConfuserEx, Donut
8 | authUser:
9 | authToken:
10 | toolArguments:
11 |
--------------------------------------------------------------------------------
/OffensivePipeline/Tools/SauronEye.yml:
--------------------------------------------------------------------------------
1 | tool:
2 | - name: SauronEye
3 | description: SauronEye is a search tool built to aid red teams in finding files containing specific keywords.
4 | gitLink: https://github.com/vivami/SauronEye
5 | solutionPath: SauronEye\src\SauronEye.sln
6 | language: c#
7 | plugins: RandomGuid, RandomAssemblyInfo, BuildCsharp, ConfuserEx, Donut
8 | authUser:
9 | authToken:
10 | toolArguments:
11 |
--------------------------------------------------------------------------------
/OffensivePipeline/Tools/SharpRDP.yml:
--------------------------------------------------------------------------------
1 | tool:
2 | - name: SharpRDP
3 | description: Remote Desktop Protocol Console Application for Authenticated Command Execution
4 | gitLink: https://github.com/0xthirteen/SharpRDP
5 | solutionPath: SharpRDP\SharpRDP\SharpRDP.sln
6 | language: c#
7 | plugins: RandomGuid, RandomAssemblyInfo, BuildCsharp, ConfuserEx, Donut
8 | authUser:
9 | authToken:
10 | toolArguments:
11 |
--------------------------------------------------------------------------------
/OffensivePipeline/Tools/winPEAS.yml:
--------------------------------------------------------------------------------
1 | tool:
2 | - name: winPEAS
3 | description: Privilege Escalation Awesome Scripts SUITE
4 | gitLink: https://github.com/carlospolop/privilege-escalation-awesome-scripts-suite
5 | solutionPath: winPEAS\winPEAS\winPEASexe\winPEAS.sln
6 | language: c#
7 | plugins: RandomGuid, RandomAssemblyInfo, BuildCsharp, ConfuserEx, Donut
8 | authUser:
9 | authToken:
10 | toolArguments:
11 |
--------------------------------------------------------------------------------
/OffensivePipeline/Tools/ADSearch.yml:
--------------------------------------------------------------------------------
1 | tool:
2 | - name: ADSearch
3 | description: A tool written for cobalt-strike's execute-assembly command that allows for more efficent querying of AD.
4 | gitLink: https://github.com/tomcarver16/ADSearch
5 | solutionPath: ADSearch\ADSearch.sln
6 | language: c#
7 | plugins: RandomGuid, RandomAssemblyInfo, BuildCsharp, ConfuserEx, Donut
8 | authUser:
9 | authToken:
10 | toolArguments:
11 |
--------------------------------------------------------------------------------
/OffensivePipeline/Tools/Certify.yml:
--------------------------------------------------------------------------------
1 | tool:
2 | - name: Certify
3 | description: Certify is a C# tool to enumerate and abuse misconfigurations in Active Directory Certificate Services (AD CS).
4 | gitLink: https://github.com/GhostPack/Certify
5 | solutionPath: Certify\Certify.sln
6 | language: c#
7 | plugins: RandomGuid, RandomAssemblyInfo, BuildCsharp, ConfuserEx, Donut
8 | authUser:
9 | authToken:
10 | toolArguments:
11 |
--------------------------------------------------------------------------------
/OffensivePipeline/Tools/LockLess.yml:
--------------------------------------------------------------------------------
1 | tool:
2 | - name: LockLess
3 | description: LockLess is a C# tool that allows for the enumeration of open file handles and the copying of locked files.
4 | gitLink: https://github.com/GhostPack/LockLess
5 | solutionPath: LockLess\LockLess.sln
6 | language: c#
7 | plugins: RandomGuid, RandomAssemblyInfo, BuildCsharp, ConfuserEx, Donut
8 | authUser:
9 | authToken:
10 | toolArguments:
11 |
--------------------------------------------------------------------------------
/OffensivePipeline/Tools/SharpAppLocker.yml:
--------------------------------------------------------------------------------
1 | tool:
2 | - name: SharpAppLocker
3 | description: C# port of the Get-AppLockerPolicy PowerShell cmdlet with extended features.
4 | gitLink: https://github.com/Flangvik/SharpAppLocker
5 | solutionPath: SharpAppLocker\SharpAppLocker.sln
6 | language: c#
7 | plugins: RandomGuid, RandomAssemblyInfo, BuildCsharp, ConfuserEx, Donut
8 | authUser:
9 | authToken:
10 | toolArguments:
11 |
--------------------------------------------------------------------------------
/OffensivePipeline/Tools/SharpDPAPI.yml:
--------------------------------------------------------------------------------
1 | tool:
2 | - name: SharpDPAPI
3 | description: SharpDPAPI is a C# port of some DPAPI functionality from @gentilkiwi's Mimikatz project.
4 | gitLink: https://github.com/GhostPack/SharpDPAPI
5 | solutionPath: SharpDPAPI\SharpDPAPI.sln
6 | language: c#
7 | plugins: RandomGuid, RandomAssemblyInfo, BuildCsharp, ConfuserEx, Donut
8 | authUser:
9 | authToken:
10 | toolArguments:
11 |
--------------------------------------------------------------------------------
/OffensivePipeline/Tools/SharpSearch.yml:
--------------------------------------------------------------------------------
1 | tool:
2 | - name: SharpSearch
3 | description: Project to quickly filter through a file share for targeted files for desired information.
4 | gitLink: https://github.com/djhohnstein/SharpSearch
5 | solutionPath: SharpSearch\SharpSearch.sln
6 | language: c#
7 | plugins: RandomGuid, RandomAssemblyInfo, BuildCsharp, ConfuserEx, Donut
8 | authUser:
9 | authToken:
10 | toolArguments:
11 |
--------------------------------------------------------------------------------
/OffensivePipeline/Tools/SharpSQLPwn.yml:
--------------------------------------------------------------------------------
1 | tool:
2 | - name: SharpSQLPwn
3 | description: C# tool to identify and exploit weaknesses with MSSQL instances in Active Directory environments
4 | gitLink: https://github.com/lefayjey/SharpSQLPwn
5 | solutionPath: SharpSQLPwn\SharpSQLPwn.sln
6 | language: c#
7 | plugins: RandomGuid, RandomAssemblyInfo, BuildCsharp, ConfuserEx, Donut
8 | authUser:
9 | authToken:
10 | toolArguments:
11 |
--------------------------------------------------------------------------------
/OffensivePipeline/Tools/SweetPotato.yml:
--------------------------------------------------------------------------------
1 | tool:
2 | - name: SweetPotato
3 | description: A collection of various native Windows privilege escalation techniques from service accounts to SYSTEM
4 | gitLink: https://github.com/CCob/SweetPotato
5 | solutionPath: SweetPotato\SweetPotato.sln
6 | language: c#
7 | plugins: RandomGuid, RandomAssemblyInfo, BuildCsharp, ConfuserEx, Donut
8 | authUser:
9 | authToken:
10 | toolArguments:
11 |
--------------------------------------------------------------------------------
/OffensivePipeline/Properties/PublishProfiles/FolderProfile.pubxml.user:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 | True|2023-01-15T17:02:50.1006825Z;True|2023-01-15T08:37:10.7797560+01:00;False|2023-01-15T08:31:15.9473180+01:00;
8 |
9 |
--------------------------------------------------------------------------------
/OffensivePipeline/Tools/Sharp-SMBExec.yml:
--------------------------------------------------------------------------------
1 | tool:
2 | - name: Sharp-SMBExec
3 | description: A native C# conversion of Kevin Robertsons Invoke-SMBExec powershell script
4 | gitLink: https://github.com/checkymander/Sharp-SMBExec
5 | solutionPath: Sharp-SMBExec\SharpInvoke-SMBExec.sln
6 | language: c#
7 | plugins: RandomGuid, RandomAssemblyInfo, BuildCsharp, ConfuserEx, Donut
8 | authUser:
9 | authToken:
10 | toolArguments:
11 |
--------------------------------------------------------------------------------
/OffensivePipeline/Tools/SharpSecDump.yml:
--------------------------------------------------------------------------------
1 | tool:
2 | - name: SharpSecDump
3 | description: .Net port of the remote SAM + LSA Secrets dumping functionality of impacket's secretsdump.py
4 | gitLink: https://github.com/G0ldenGunSec/SharpSecDump
5 | solutionPath: SharpSecDump\SharpSecDump.sln
6 | language: c#
7 | plugins: RandomGuid, RandomAssemblyInfo, BuildCsharp, ConfuserEx, Donut
8 | authUser:
9 | authToken:
10 | toolArguments:
11 |
--------------------------------------------------------------------------------
/OffensivePipeline/Tools/SharpSniper.yml:
--------------------------------------------------------------------------------
1 | tool:
2 | - name: SharpSniper
3 | description: SharpSniper is a simple tool to find the IP address of these users so that you can target their box.
4 | gitLink: https://github.com/HunnicCyber/SharpSniper
5 | solutionPath: SharpSniper\SharpSniper.sln
6 | language: c#
7 | plugins: RandomGuid, RandomAssemblyInfo, BuildCsharp, ConfuserEx, Donut
8 | authUser:
9 | authToken:
10 | toolArguments:
11 |
--------------------------------------------------------------------------------
/OffensivePipeline/Tools/Watson.yml:
--------------------------------------------------------------------------------
1 | tool:
2 | - name: Watson
3 | description: Watson is a .NET tool designed to enumerate missing KBs and suggest exploits for Privilege Escalation vulnerabilities.
4 | gitLink: https://github.com/rasta-mouse/Watson
5 | solutionPath: Watson\Watson.sln
6 | language: c#
7 | plugins: RandomGuid, RandomAssemblyInfo, BuildCsharp, ConfuserEx, Donut
8 | authUser:
9 | authToken:
10 | toolArguments:
11 |
--------------------------------------------------------------------------------
/OffensivePipeline/Tools/SharpHose.yml:
--------------------------------------------------------------------------------
1 | tool:
2 | - name: SharpHose
3 | description: SharpHose is a C# password spraying tool designed to be fast, safe, and usable over Cobalt Strike's execute-assembly.
4 | gitLink: https://github.com/ustayready/SharpHose
5 | solutionPath: SharpHose\SharpHose.sln
6 | language: c#
7 | plugins: RandomGuid, RandomAssemblyInfo, BuildCsharp, ConfuserEx, Donut
8 | authUser:
9 | authToken:
10 | toolArguments:
11 |
--------------------------------------------------------------------------------
/OffensivePipeline/Tools/SharpWifiGrabber.yml:
--------------------------------------------------------------------------------
1 | tool:
2 | - name: SharpWifiGrabber
3 | description: Retrieves in clear-text the Wi-Fi Passwords from all WLAN Profiles saved on a workstation
4 | gitLink: https://github.com/r3nhat/SharpWifiGrabber
5 | solutionPath: SharpWifiGrabber\SharpWifiGrabber.sln
6 | language: c#
7 | plugins: RandomGuid, RandomAssemblyInfo, BuildCsharp, ConfuserEx, Donut
8 | authUser:
9 | authToken:
10 | toolArguments:
11 |
--------------------------------------------------------------------------------
/OffensivePipeline/Tools/WMIReg.yml:
--------------------------------------------------------------------------------
1 | tool:
2 | - name: WMIReg
3 | description: Whisker is a C# tool for taking over Active Directory user and computer accounts by manipulating their msDS-KeyCredentialLink attribute.
4 | gitLink: https://github.com/airzero24/WMIReg
5 | solutionPath: WMIReg\WMIReg.sln
6 | language: c#
7 | plugins: RandomGuid, RandomAssemblyInfo, BuildCsharp, ConfuserEx, Donut
8 | authUser:
9 | authToken:
10 | toolArguments:
11 |
--------------------------------------------------------------------------------
/OffensivePipeline/Tools/SafetyKatz.yml:
--------------------------------------------------------------------------------
1 | tool:
2 | - name: SafetyKatz
3 | description: SafetyKatz is a combination of slightly modified version of @gentilkiwi's Mimikatz project and @subtee's .NET PE Loader.
4 | gitLink: https://github.com/GhostPack/SafetyKatz
5 | solutionPath: SafetyKatz\SafetyKatz.sln
6 | language: c#
7 | plugins: RandomGuid, RandomAssemblyInfo, BuildCsharp, ConfuserEx, Donut
8 | authUser:
9 | authToken:
10 | toolArguments:
11 |
--------------------------------------------------------------------------------
/OffensivePipeline/Tools/SharpWebServer.yml:
--------------------------------------------------------------------------------
1 | tool:
2 | - name: SharpWebServer
3 | description: Red Team oriented simple HTTP & WebDAV server written in C# with functionality to capture Net-NTLM hashes
4 | gitLink: https://github.com/mgeeky/SharpWebServer
5 | solutionPath: SharpWebServer\SharpWebServer.sln
6 | language: c#
7 | plugins: RandomGuid, RandomAssemblyInfo, BuildCsharp, ConfuserEx, Donut
8 | authUser:
9 | authToken:
10 | toolArguments:
11 |
--------------------------------------------------------------------------------
/OffensivePipeline/Tools/ADCollector.yml:
--------------------------------------------------------------------------------
1 | tool:
2 | - name: ADCollector
3 | description: ADCollector is a lightweight tool that enumerates the Active Directory environment to identify possible attack vectors.
4 | gitLink: https://github.com/dev-2null/ADCollector
5 | solutionPath: ADCollector\ADCollector3.sln
6 | language: c#
7 | plugins: RandomGuid, RandomAssemblyInfo, BuildCsharp, ConfuserEx, Donut
8 | authUser:
9 | authToken:
10 | toolArguments:
11 |
--------------------------------------------------------------------------------
/OffensivePipeline/Tools/SharpShares.yml:
--------------------------------------------------------------------------------
1 | tool:
2 | - name: SharpShares
3 | description: Quick and dirty binary to list network share information from all machines in the current domain and if they're readable.
4 | gitLink: https://github.com/djhohnstein/SharpShares
5 | solutionPath: SharpShares\SharpShares.sln
6 | language: c#
7 | plugins: RandomGuid, RandomAssemblyInfo, BuildCsharp, ConfuserEx, Donut
8 | authUser:
9 | authToken:
10 | toolArguments:
11 |
--------------------------------------------------------------------------------
/OffensivePipeline/Tools/SharpReg.yml:
--------------------------------------------------------------------------------
1 | tool:
2 | - name: SharpReg
3 | description: SharpReg is a simple code set to interact with the Remote Registry service API using the same SMB process as reg.exe, which uses TCP port 445
4 | gitLink: https://github.com/jnqpblc/SharpReg
5 | solutionPath: SharpReg\SharpReg.sln
6 | language: c#
7 | plugins: RandomGuid, RandomAssemblyInfo, BuildCsharp, ConfuserEx, Donut
8 | authUser:
9 | authToken:
10 | toolArguments:
11 |
--------------------------------------------------------------------------------
/OffensivePipeline/Tools/SharpCookieMonster.yml:
--------------------------------------------------------------------------------
1 | tool:
2 | - name: SharpCookieMonster
3 | description: This is a Sharp port of @defaultnamehere's cookie-crimes module - full credit for their awesome work!
4 | gitLink: https://github.com/m0rv4i/SharpCookieMonster
5 | solutionPath: SharpCookieMonster\SharpCookieMonster.sln
6 | language: c#
7 | plugins: RandomGuid, RandomAssemblyInfo, BuildCsharp, ConfuserEx, Donut
8 | authUser:
9 | authToken:
10 | toolArguments:
11 |
--------------------------------------------------------------------------------
/OffensivePipeline/Tools/SharpCrashEventLog.yml:
--------------------------------------------------------------------------------
1 | tool:
2 | - name: SharpCrashEventLog
3 | description: Crashes the Windows eventlog service locally or remotely using OpenEventLogA/ElfClearEventLogFileW.
4 | gitLink: https://github.com/slyd0g/SharpCrashEventLog
5 | solutionPath: SharpCrashEventLog\SharpCrashEventLog.sln
6 | language: c#
7 | plugins: RandomGuid, RandomAssemblyInfo, BuildCsharp, ConfuserEx, Donut
8 | authUser:
9 | authToken:
10 | toolArguments:
11 |
--------------------------------------------------------------------------------
/OffensivePipeline/Tools/SharpDir.yml:
--------------------------------------------------------------------------------
1 | tool:
2 | - name: SharpDir
3 | description: SharpDir is a simple code set to search both local and remote file systems for files using the same SMB process as dir.exe, which uses TCP port 445
4 | gitLink: https://github.com/jnqpblc/SharpDir
5 | solutionPath: SharpDir\SharpDir.sln
6 | language: c#
7 | plugins: RandomGuid, RandomAssemblyInfo, BuildCsharp, ConfuserEx, Donut
8 | authUser:
9 | authToken:
10 | toolArguments:
11 |
--------------------------------------------------------------------------------
/OffensivePipeline/Tools/SharpScribbles.yml:
--------------------------------------------------------------------------------
1 | tool:
2 | - name: SharpScribbles
3 | description: Extracts data from the Windows Sticky Notes database. Works on Windows 10 Build 1607 and higher. This
4 | gitLink: https://github.com/V1V1/SharpScribbles
5 | solutionPath: SharpScribbles\StickyNotesExtract\StickyNotesExtract.sln
6 | language: c#
7 | plugins: RandomGuid, RandomAssemblyInfo, BuildCsharp, ConfuserEx, Donut
8 | authUser:
9 | authToken:
10 | toolArguments:
11 |
--------------------------------------------------------------------------------
/OffensivePipeline/Tools/SharpSphere.yml:
--------------------------------------------------------------------------------
1 | tool:
2 | - name: SharpSphere
3 | description: SharpSphere gives red teamers the ability to easily interact with the guest operating systems of virtual machines managed by vCenter
4 | gitLink: https://github.com/JamesCooteUK/SharpSphere
5 | solutionPath: SharpSphere\SharpSphere.sln
6 | language: c#
7 | plugins: RandomGuid, RandomAssemblyInfo, BuildCsharp, ConfuserEx, Donut
8 | authUser:
9 | authToken:
10 | toolArguments:
11 |
--------------------------------------------------------------------------------
/OffensivePipeline/Tools/PassTheCert.yml:
--------------------------------------------------------------------------------
1 | tool:
2 | - name: PassTheCert
3 | description: A small Proof-of-Concept tool that allows authenticating against an LDAP/S server with a certificate to perform different attack actions
4 | gitLink: https://github.com/AlmondOffSec/PassTheCert
5 | solutionPath: PassTheCert\C#\PassTheCert.sln
6 | language: c#
7 | plugins: RandomGuid, RandomAssemblyInfo, BuildCsharp, ConfuserEx, Donut
8 | authUser:
9 | authToken:
10 | toolArguments:
11 |
--------------------------------------------------------------------------------
/OffensivePipeline/Tools/ADCSPwn.yml:
--------------------------------------------------------------------------------
1 | tool:
2 | - name: ADCSPwn
3 | description: A tool to escalate privileges in an active directory network by coercing authenticate from machine accounts (Petitpotam) and relaying to the certificate service.
4 | gitLink: https://github.com/bats3c/ADCSPwn
5 | solutionPath: ADCSPwn\ADCSPwn\ADCSPwn.sln
6 | language: c#
7 | plugins: RandomGuid, RandomAssemblyInfo, BuildCsharp, ConfuserEx, Donut
8 | authUser:
9 | authToken:
10 | toolArguments:
11 |
--------------------------------------------------------------------------------
/OffensivePipeline/Tools/PurpleSharp.yml:
--------------------------------------------------------------------------------
1 | tool:
2 | - name: PurpleSharp
3 | description: PurpleSharp is an open source adversary simulation tool written in C# that executes adversary techniques within Windows Active Directory environments
4 | gitLink: https://github.com/mvelazc0/PurpleSharp
5 | solutionPath: PurpleSharp\PurpleSharp.sln
6 | language: c#
7 | plugins: RandomGuid, RandomAssemblyInfo, BuildCsharp, ConfuserEx, Donut
8 | authUser:
9 | authToken:
10 | toolArguments:
11 |
--------------------------------------------------------------------------------
/OffensivePipeline/Tools/SharpLAPS.yml:
--------------------------------------------------------------------------------
1 | tool:
2 | - name: SharpLAPS
3 | description: This executable is made to be executed within Cobalt Strike session using execute-assembly. It will retrieve the LAPS password from the Active Directory.
4 | gitLink: https://github.com/swisskyrepo/SharpLAPS
5 | solutionPath: SharpLAPS\SharpLAPS.sln
6 | language: c#
7 | plugins: RandomGuid, RandomAssemblyInfo, BuildCsharp, ConfuserEx, Donut
8 | authUser:
9 | authToken:
10 | toolArguments:
11 |
--------------------------------------------------------------------------------
/OffensivePipeline/Tools/SharpSpray.yml:
--------------------------------------------------------------------------------
1 | tool:
2 | - name: SharpSpray
3 | description: SharpSpray a simple code set to perform a password spraying attack against all users of a domain using LDAP and is compatible with Cobalt Strike.
4 | gitLink: https://github.com/jnqpblc/SharpSpray
5 | solutionPath: SharpSpray\SharpSpray.sln
6 | language: c#
7 | plugins: RandomGuid, RandomAssemblyInfo, BuildCsharp, ConfuserEx, Donut
8 | authUser:
9 | authToken:
10 | toolArguments:
11 |
--------------------------------------------------------------------------------
/OffensivePipeline/Tools/Seatbelt.yml:
--------------------------------------------------------------------------------
1 | tool:
2 | - name: Seatbelt
3 | description: Seatbelt is a C# project that performs a number of security oriented host-survey "safety checks" relevant from both offensive and defensive security perspectives.
4 | gitLink: https://github.com/GhostPack/Seatbelt
5 | solutionPath: Seatbelt\Seatbelt.sln
6 | language: c#
7 | plugins: RandomGuid, RandomAssemblyInfo, BuildCsharp, ConfuserEx, Donut
8 | authUser:
9 | authToken:
10 | toolArguments:
--------------------------------------------------------------------------------
/OffensivePipeline/Tools/SharpCloud.yml:
--------------------------------------------------------------------------------
1 | tool:
2 | - name: SharpCloud
3 | description: SharpCloud is a simple C# utility for checking for the existence of credential files related to Amazon Web Services, Microsoft Azure, and Google Compute.
4 | gitLink: https://github.com/chrismaddalena/SharpCloud
5 | solutionPath: SharpCloud\SharpCloud.sln
6 | language: c#
7 | plugins: RandomGuid, RandomAssemblyInfo, BuildCsharp, ConfuserEx, Donut
8 | authUser:
9 | authToken:
10 | toolArguments:
11 |
--------------------------------------------------------------------------------
/OffensivePipeline/Modules/iModule.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 |
7 | namespace OffensivePipeline.Modules
8 | {
9 | public interface iModule
10 | {
11 | public ToolConfig _tool { get; set; }
12 | public ModuleOutput _moduleOutput { get; set; }
13 | public string Name { get; }
14 |
15 | ModuleOutput CheckStart();
16 | ModuleOutput Run();
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/OffensivePipeline/Tools/SharpChromium.yml:
--------------------------------------------------------------------------------
1 | tool:
2 | - name: SharpChromium
3 | description: SharpChromium is a .NET 4.0+ CLR project to retrieve data from Google Chrome, Microsoft Edge, and Microsoft Edge Beta. Currently, it can extract
4 | gitLink: https://github.com/djhohnstein/SharpChromium
5 | solutionPath: SharpChromium\SharpChromium.sln
6 | language: c#
7 | plugins: RandomGuid, RandomAssemblyInfo, BuildCsharp, ConfuserEx, Donut
8 | authUser:
9 | authToken:
10 | toolArguments:
11 |
--------------------------------------------------------------------------------
/OffensivePipeline/Tools/SharpSvc.yml:
--------------------------------------------------------------------------------
1 | tool:
2 | - name: SharpSvc
3 | description: SharpSvc is a simple code set to interact with the SC Manager API using the same DCERPC process as sc.exe, which open with TCP port 135 and is followed by the use of an ephemeral TCP port
4 | gitLink: https://github.com/jnqpblc/SharpSvc
5 | solutionPath: SharpSvc\SharpSvc.sln
6 | language: c#
7 | plugins: RandomGuid, RandomAssemblyInfo, BuildCsharp, ConfuserEx, Donut
8 | authUser:
9 | authToken:
10 | toolArguments:
11 |
--------------------------------------------------------------------------------
/OffensivePipeline/Tools/SharpZeroLogon.yml:
--------------------------------------------------------------------------------
1 | tool:
2 | - name: SharpZeroLogon
3 | description: An exploit for CVE-2020-1472, a.k.a. Zerologon. This tool exploits a cryptographic vulnerability in Netlogon to achieve authentication bypass.
4 | gitLink: https://github.com/nccgroup/nccfsas
5 | solutionPath: SharpZeroLogon\Tools\SharpZeroLogon\SharpZeroLogon.sln
6 | language: c#
7 | plugins: RandomGuid, RandomAssemblyInfo, BuildCsharp, ConfuserEx, Donut
8 | authUser:
9 | authToken:
10 | toolArguments:
11 |
--------------------------------------------------------------------------------
/OffensivePipeline/ModuleOutput.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 |
7 | namespace OffensivePipeline
8 | {
9 | public class ModuleOutput
10 | {
11 | public string Name { get; set; }
12 | public string? OutputPath { get; set; }
13 | public bool Status { get; set; }
14 |
15 | public ModuleOutput()
16 | {
17 | this.Status = true;
18 | }
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/OffensivePipeline/Tools/SharpHandler.yml:
--------------------------------------------------------------------------------
1 | tool:
2 | - name: SharpHandler
3 | description: This project reuses open handles to lsass to parse or minidump lsass, therefore you don't need to use your own lsass handle to interact with it. (Dinvoke-version)
4 | gitLink: https://github.com/jfmaes/SharpHandler
5 | solutionPath: SharpHandler\Dinvoke-version\SharpHandler.sln
6 | language: c#
7 | plugins: RandomGuid, RandomAssemblyInfo, BuildCsharp, ConfuserEx, Donut
8 | authUser:
9 | authToken:
10 | toolArguments:
11 |
--------------------------------------------------------------------------------
/OffensivePipeline/Tools/Snaffler.yml:
--------------------------------------------------------------------------------
1 | tool:
2 | - name: Snaffler
3 | description: Snaffler is a tool for pentesters and red teamers to help find delicious candy needles (creds mostly, but it's flexible) in a bunch of horrible boring haystacks (a massive Windows/AD environment).
4 | gitLink: https://github.com/SnaffCon/Snaffler
5 | solutionPath: Snaffler\Snaffler.sln
6 | language: c#
7 | plugins: RandomGuid, RandomAssemblyInfo, BuildCsharp, ConfuserEx, Donut
8 | authUser:
9 | authToken:
10 | toolArguments:
11 |
--------------------------------------------------------------------------------
/OffensivePipeline/Tools/Whisker.yml:
--------------------------------------------------------------------------------
1 | tool:
2 | - name: Whisker
3 | description: Whisker is a C# tool for taking over Active Directory user and computer accounts by manipulating their msDS-KeyCredentialLink attribute, effectively adding "Shadow Credentials" to the target account.
4 | gitLink: https://github.com/eladshamir/Whisker
5 | solutionPath: Whisker\Whisker.sln
6 | language: c#
7 | plugins: RandomGuid, RandomAssemblyInfo, BuildCsharp, ConfuserEx, Donut
8 | authUser:
9 | authToken:
10 | toolArguments:
11 |
--------------------------------------------------------------------------------
/OffensivePipeline/Tools/Shhmon.yml:
--------------------------------------------------------------------------------
1 | tool:
2 | - name: Shhmon
3 | description: While Sysmon's driver can be renamed at installation, it is always loaded at altitude 385201. The objective of this tool is to challenge the assumption that our defensive tools are always collecting events.
4 | gitLink: https://github.com/matterpreter/Shhmon
5 | solutionPath: Shhmon\Shhmon.sln
6 | language: c#
7 | plugins: RandomGuid, RandomAssemblyInfo, BuildCsharp, ConfuserEx, Donut
8 | authUser:
9 | authToken:
10 | toolArguments:
11 |
--------------------------------------------------------------------------------
/OffensivePipeline/Tools/SharpTask.yml:
--------------------------------------------------------------------------------
1 | tool:
2 | - name: SharpTask
3 | description: SharpTask is a simple code set to interact with the Task Scheduler service API using the same DCERPC process as schtasks.exe, which open with TCP port 135 and is followed by the use of an ephemeral TCP port.
4 | gitLink: https://github.com/jnqpblc/SharpTask
5 | solutionPath: SharpTask\SharpTask.sln
6 | language: c#
7 | plugins: RandomGuid, RandomAssemblyInfo, BuildCsharp, ConfuserEx, Donut
8 | authUser:
9 | authToken:
10 | toolArguments:
11 |
--------------------------------------------------------------------------------
/OffensivePipeline/Tools/DeployPrinterNightmare.yml:
--------------------------------------------------------------------------------
1 | tool:
2 | - name: DeployPrinterNightmare
3 | description: C# tool for installing a shared network printer abusing the PrinterNightmare bug to allow other network machines easy privesc!
4 | gitLink: https://github.com/Flangvik/DeployPrinterNightmare
5 | solutionPath: DeployPrinterNightmare\DeployPrinterNightmare\DeployPrinterNightmare.sln
6 | language: c#
7 | plugins: RandomGuid, RandomAssemblyInfo, BuildCsharp, ConfuserEx, Donut
8 | authUser:
9 | authToken:
10 | toolArguments:
11 |
--------------------------------------------------------------------------------
/OffensivePipeline/Tools/SharpMiniDump.yml:
--------------------------------------------------------------------------------
1 | tool:
2 | - name: SharpMiniDump
3 | description: Create a minidump of the LSASS process from memory (Windows 10 - Windows Server 2016). The entire process uses dynamic API calls, direct syscall and Native API unhooking to evade the AV / EDR detection.
4 | gitLink: https://github.com/b4rtik/SharpMiniDump
5 | solutionPath: SharpMiniDump\SharpMiniDump.sln
6 | language: c#
7 | plugins: RandomGuid, RandomAssemblyInfo, BuildCsharp, ConfuserEx, Donut
8 | authUser:
9 | authToken:
10 | toolArguments:
11 |
--------------------------------------------------------------------------------
/OffensivePipeline/Tools/SharpNamedPipePTH.yml:
--------------------------------------------------------------------------------
1 | tool:
2 | - name: SharpNamedPipePTH
3 | description: This project is a C# tool to use Pass-the-Hash for authentication on a local Named Pipe for user Impersonation. You need a local administrator or SEImpersonate rights to use this.
4 | gitLink: https://github.com/S3cur3Th1sSh1t/SharpNamedPipePTH
5 | solutionPath: SharpNamedPipePTH\SharpNamedPipePTH.sln
6 | language: c#
7 | plugins: RandomGuid, RandomAssemblyInfo, BuildCsharp, ConfuserEx, Donut
8 | authUser:
9 | authToken:
10 | toolArguments:
11 |
--------------------------------------------------------------------------------
/OffensivePipeline/Tools/SharpGPOAbuse.yml:
--------------------------------------------------------------------------------
1 | tool:
2 | - name: SharpGPOAbuse
3 | description: SharpGPOAbuse is a .NET application written in C# that can be used to take advantage of a user's edit rights on a Group Policy Object (GPO) in order to compromise the objects that are controlled by that GPO.
4 | gitLink: https://github.com/FSecureLABS/SharpGPOAbuse
5 | solutionPath: SharpGPOAbuse\SharpGPOAbuse.sln
6 | language: c#
7 | plugins: RandomGuid, RandomAssemblyInfo, BuildCsharp, ConfuserEx, Donut
8 | authUser:
9 | authToken:
10 | toolArguments:
11 |
--------------------------------------------------------------------------------
/OffensivePipeline/Tools/SharpSCCM.yml:
--------------------------------------------------------------------------------
1 | tool:
2 | - name: SharpSCCM
3 | description: SharpSCCM is a post-exploitation tool designed to leverage Microsoft Endpoint Configuration Manager (a.k.a. ConfigMgr, formerly SCCM) for lateral movement and credential gathering without requiring access to the SCCM administration console GUI.
4 | gitLink: https://github.com/Mayyhem/SharpSCCM
5 | solutionPath: SharpSCCM\SharpSCCM.sln
6 | language: c#
7 | plugins: RandomGuid, RandomAssemblyInfo, BuildCsharp, ConfuserEx, Donut
8 | authUser:
9 | authToken:
10 | toolArguments:
11 |
--------------------------------------------------------------------------------
/OffensivePipeline/Tools/BetterSafetyKatz.yml:
--------------------------------------------------------------------------------
1 | tool:
2 | - name: BetterSafetyKatz
3 | description: This modified fork of SafetyKatz dynamically fetches the latest pre-compiled release of Mimikatz directly from the gentilkiwi GitHub repo, runtime patching on detected signatures and uses SharpSploit DInvoke to get it into memory.
4 | gitLink: https://github.com/Flangvik/BetterSafetyKatz
5 | solutionPath: BetterSafetyKatz\BetterSafetyKatz.sln
6 | language: c#
7 | plugins: RandomGuid, RandomAssemblyInfo, BuildCsharp, ConfuserEx
8 | authUser:
9 | authToken:
10 | toolArguments:
11 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Node artifact files
2 | node_modules/
3 | dist/
4 |
5 | # Visual studio
6 | *.vs
7 |
8 |
9 | # Compiled Java class files
10 | *.class
11 |
12 | # Compiled Python bytecode
13 | *.py[cod]
14 |
15 | # Log files
16 | *.log
17 |
18 | # Package files
19 | *.jar
20 |
21 | # Maven
22 | target/
23 | dist/
24 |
25 | # JetBrains IDE
26 | .idea/
27 |
28 | # Unit test reports
29 | TEST*.xml
30 |
31 | # Generated by MacOS
32 | .DS_Store
33 |
34 | # Generated by Windows
35 | Thumbs.db
36 |
37 | # Applications
38 | *.app
39 | *.exe
40 | *.war
41 |
42 | # Large media files
43 | *.mp4
44 | *.tiff
45 | *.avi
46 | *.flv
47 | *.mov
48 | *.wmv
49 |
50 |
--------------------------------------------------------------------------------
/OffensivePipeline/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/OffensivePipeline/Tools/EDD.yml:
--------------------------------------------------------------------------------
1 | tool:
2 | - name: EDD
3 | description: Enumerate Domain Data is designed to be similar to PowerView but in .NET. PowerView is essentially the ultimate domain enumeration tool, and we wanted a .NET implementation that we worked on ourselves. This tool was largely put together by viewing implementations of different functionality across a wide range of existing projects and combining them into EDD.
4 | gitLink: https://github.com/FortyNorthSecurity/EDD
5 | solutionPath: EDD\EDD.sln
6 | language: c#
7 | plugins: RandomGuid, RandomAssemblyInfo, BuildCsharp, ConfuserEx, Donut
8 | authUser:
9 | authToken:
10 | toolArguments:
11 |
--------------------------------------------------------------------------------
/OffensivePipeline/Tools/SharpEDRChecker.yml:
--------------------------------------------------------------------------------
1 | tool:
2 | - name: SharpEDRChecker
3 | description: Checks running processes, process metadata, Dlls loaded into your current process and each DLLs metadata, common install directories, installed services and each service binaries metadata, installed drivers and each drivers metadata, all for the presence of known defensive products such as AV's, EDR's and logging tools.
4 | gitLink: https://github.com/PwnDexter/SharpEDRChecker
5 | solutionPath: SharpEDRChecker\SharpEDRChecker.sln
6 | language: c#
7 | plugins: RandomGuid, RandomAssemblyInfo, BuildCsharp, ConfuserEx, Donut
8 | authUser:
9 | authToken:
10 | toolArguments:
11 |
--------------------------------------------------------------------------------
/OffensivePipeline/RandomManifest.cs:
--------------------------------------------------------------------------------
1 | using OffensivePipeline.Modules;
2 | using System;
3 | using System.Collections.Generic;
4 | using System.Linq;
5 | using System.Text;
6 | using System.Threading.Tasks;
7 |
8 | namespace OffensivePipeline
9 | {
10 | internal class RandomManifest : iModule
11 | {
12 | public string Name => "RandomManifest";
13 | public ToolConfig _tool { get; set; }
14 | public ModuleOutput _moduleOutput { get; set; }
15 |
16 | public ModuleOutput CheckStart()
17 | {
18 | return _moduleOutput;
19 | }
20 |
21 | public ModuleOutput Run()
22 | {
23 | return _moduleOutput;
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/OffensivePipeline/Properties/PublishProfiles/FolderProfile.pubxml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 | Release
8 | Any CPU
9 | C:\Users\alpha\Desktop\OffensivePipeline\PUBLISH
10 | FileSystem
11 | <_TargetId>Folder
12 | net6.0
13 | win-x64
14 | true
15 | False
16 | False
17 | False
18 |
19 |
--------------------------------------------------------------------------------
/OffensivePipeline.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio Version 17
4 | VisualStudioVersion = 17.3.32929.385
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OffensivePipeline", "OffensivePipeline\OffensivePipeline.csproj", "{102D65B0-DE68-4FBB-A34F-867CD97CB35F}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Release|Any CPU = Release|Any CPU
12 | EndGlobalSection
13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
14 | {102D65B0-DE68-4FBB-A34F-867CD97CB35F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15 | {102D65B0-DE68-4FBB-A34F-867CD97CB35F}.Debug|Any CPU.Build.0 = Debug|Any CPU
16 | {102D65B0-DE68-4FBB-A34F-867CD97CB35F}.Release|Any CPU.ActiveCfg = Release|Any CPU
17 | {102D65B0-DE68-4FBB-A34F-867CD97CB35F}.Release|Any CPU.Build.0 = Release|Any CPU
18 | EndGlobalSection
19 | GlobalSection(SolutionProperties) = preSolution
20 | HideSolutionNode = FALSE
21 | EndGlobalSection
22 | GlobalSection(ExtensibilityGlobals) = postSolution
23 | SolutionGuid = {376489D4-29A0-4690-AD99-53919C4BD329}
24 | EndGlobalSection
25 | EndGlobal
26 |
--------------------------------------------------------------------------------
/OffensivePipeline/ToolConfig.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 |
7 | namespace OffensivePipeline
8 | {
9 | public class ToolConfig
10 | {
11 | public ToolConfig(string name, string description, string gitLink, string solutionPath, string language, string plugins, string authUser, string authToken, string toolArguments)
12 | {
13 | this.name = name;
14 | this.description = description;
15 | this.gitLink = gitLink;
16 | this.solutionPath = solutionPath;
17 | this.language = language;
18 | this.plugins = plugins.Split(',').Select(s => s.Trim()).ToList();
19 | this.authUser = authUser;
20 | this.authToken = authToken;
21 | this.toolArguments = toolArguments;
22 | }
23 |
24 | public string name { get; set; }
25 | public string description { get; set; }
26 | public string gitLink { get; set; }
27 | public string solutionPath { get; set; }
28 | public string language { get; set; }
29 | public List plugins { get; set; }
30 | public string authUser { get; set; }
31 | public string authToken { get; set; }
32 | public string toolArguments { get; set; }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/OffensivePipeline/Conf.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 |
7 | namespace OffensivePipeline
8 | {
9 | public static class Conf
10 | {
11 | public static string gitToolsPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Git");
12 | public static string outputPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Output");
13 | public static string modulesPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Modules");
14 | public static string ymlsPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory,"Tools");
15 | public static string logFile = Path.Combine(AppDomain.CurrentDomain.BaseDirectory,"log.txt");
16 | public static string resourcesPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory,"Resources");
17 | //BuildPath
18 | public static string nugetPath = Path.Combine(resourcesPath, "nuget.exe");
19 | public static string templateBuildPath = Path.Combine(resourcesPath, "template_build.bat");
20 | //ConfuserEx
21 | public static string confuserExFolder = Path.Combine(resourcesPath, "ConfuserEx");
22 | public static string confuserExFile = Path.Combine(confuserExFolder, "Confuser.CLI.exe");
23 | public static string confuserTemplateFile = Path.Combine(resourcesPath, "template_confuserEx.crproj.template");
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/OffensivePipeline/LogHelpers.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 |
7 | namespace OffensivePipeline
8 | {
9 | public static class LogHelpers
10 | {
11 | public static void PrintError(string text)
12 | {
13 | Console.ForegroundColor = ConsoleColor.Red;
14 | Console.WriteLine($"[ERROR] {text}");
15 | Console.ResetColor();
16 | }
17 |
18 | public static void PrintOk(string text)
19 | {
20 | Console.ForegroundColor = ConsoleColor.Green;
21 | Console.WriteLine(text);
22 | Console.ResetColor();
23 | }
24 |
25 | public static void PrintYellow(string text)
26 | {
27 | Console.ForegroundColor = ConsoleColor.Yellow;
28 | Console.WriteLine(text);
29 | Console.ResetColor();
30 | }
31 | public static void PrintBlue(string text)
32 | {
33 | Console.ForegroundColor = ConsoleColor.Blue;
34 | Console.WriteLine(text);
35 | Console.ResetColor();
36 | }
37 |
38 | public static void PrintMagenta(string text)
39 | {
40 | Console.ForegroundColor = ConsoleColor.Magenta;
41 | Console.WriteLine(text);
42 | Console.ResetColor();
43 | }
44 |
45 | public static void PrintGray(string text)
46 | {
47 | Console.ForegroundColor = ConsoleColor.Gray;
48 | Console.WriteLine(text);
49 | Console.ResetColor();
50 | }
51 |
52 | public static void LogToFile(string source, string logType, string messsage)
53 | {
54 | try
55 | {
56 | DateTime localDate = DateTime.Now;
57 | using var fileStream = new FileStream(Conf.logFile, FileMode.Append);
58 | using var writter = new StreamWriter(fileStream);
59 | writter.WriteLine($"{localDate} [{logType}] {source} -- {messsage}");
60 | } catch (Exception e)
61 | {
62 | PrintError($"LogToFile - {e}");
63 | }
64 | }
65 | }
66 | }
67 |
--------------------------------------------------------------------------------
/OffensivePipeline/Modules/Donut.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 | using Donut;
7 | using Donut.Structs;
8 |
9 | namespace OffensivePipeline.Modules
10 | {
11 | internal class Donut : iModule
12 | {
13 | public string Name => "Donut";
14 | public ToolConfig _tool { get; set; }
15 | public ModuleOutput _moduleOutput { get; set; }
16 |
17 | private string previousFolder;
18 |
19 | public Donut(ToolConfig tool, ModuleOutput moduleOutput)
20 | {
21 | _tool = tool;
22 | _moduleOutput = moduleOutput;
23 | previousFolder = _moduleOutput.OutputPath;
24 | _moduleOutput.OutputPath = Path.Combine(_moduleOutput.OutputPath, Name);
25 | Helpers.CheckFolder(_moduleOutput.OutputPath);
26 | }
27 |
28 | public ModuleOutput CheckStart()
29 | {
30 | return _moduleOutput;
31 | }
32 |
33 | public ModuleOutput Run()
34 | {
35 | string message;
36 | string[] exeList = Directory.GetFiles(previousFolder, "*.exe");
37 | foreach (string exe in exeList)
38 | {
39 | try
40 | {
41 | message = $"\tGenerating shellcode...";
42 | LogHelpers.PrintBlue(message);
43 | LogHelpers.LogToFile($"{Name} - Donut", "INFO", message);
44 | DonutConfig config = new DonutConfig();
45 | config.Arch = 3; //Target architecture for loader : 1=x86, 2=amd64, 3=x86+amd64(default).
46 | config.Bypass = 3; //Behavior for bypassing AMSI/WLDP : 1=None, 2=Abort on fail, 3=Continue on fail.(default)
47 | config.InputFile = exe;
48 | config.Payload = Path.Combine(_moduleOutput.OutputPath, $"{_tool.name}.bin");
49 | if (_tool.toolArguments != "") {
50 | LogHelpers.PrintOk($"\t - Arguments passed to shellcode : \"{_tool.toolArguments}\"");
51 | config.Args = _tool.toolArguments;
52 | }
53 | int ret = Generator.Donut_Create(ref config);
54 | message = "\t\t[+] No errors!";
55 | LogHelpers.PrintOk(message);
56 | LogHelpers.LogToFile($"{Name} - Donut", "INFO", message);
57 | //Console.WriteLine(Helper.GetError(ret));
58 | }
59 | catch (Exception e)
60 | {
61 | message = $"Donut: {exe}";
62 | LogHelpers.PrintError(message);
63 | LogHelpers.LogToFile($"{Name} - Donut", "ERROR", message);
64 | _moduleOutput.Status = false;
65 | }
66 | }
67 |
68 | return _moduleOutput;
69 | }
70 | }
71 | }
72 |
--------------------------------------------------------------------------------
/OffensivePipeline/GitHelpers.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Security.Policy;
5 | using System.Text;
6 | using System.Threading.Tasks;
7 | using LibGit2Sharp;
8 |
9 |
10 |
11 | namespace OffensivePipeline
12 | {
13 | internal class GitHelpers
14 | {
15 | public static bool CloneLocalTool(ToolConfig tool)
16 | {
17 | bool status = CloneChecks(tool);
18 | if (status)
19 | {
20 | string toolPath = Path.Combine(Conf.gitToolsPath, tool.name);
21 | status = Helpers.CopyDirectory(tool.gitLink, toolPath, true);
22 | if (status)
23 | {
24 | if (!File.Exists(Path.Combine(Conf.gitToolsPath, tool.solutionPath)))
25 | {
26 | status = false;
27 | LogHelpers.PrintError($"CloneLocalTool: Folder not found {toolPath}");
28 | }
29 | else
30 | {
31 | LogHelpers.PrintOk($"\t\t Repository {tool.name} copied into {toolPath}");
32 | }
33 | }
34 | }
35 | return status;
36 | }
37 | public static bool CloneChecks(ToolConfig tool)
38 | {
39 | bool status = true;
40 | try
41 | {
42 | if (!Directory.Exists(Conf.gitToolsPath))
43 | {
44 | DirectoryInfo di = Directory.CreateDirectory(Conf.gitToolsPath);
45 | }
46 | }
47 | catch (Exception e)
48 | {
49 | LogHelpers.PrintError($"DownloadRepository - Creating {Conf.gitToolsPath} folder - {e}");
50 | status = false;
51 | }
52 | if (status)
53 | {
54 | string toolPath = Path.Combine(Conf.gitToolsPath, tool.name);
55 | try
56 | {
57 | if (Directory.Exists(toolPath))
58 | {
59 | Helpers.DeleteReadOnlyDirectory(toolPath);
60 | }
61 | }
62 | catch (Exception e)
63 | {
64 | LogHelpers.PrintError($"CloneChecks - Deleting {toolPath} folder - {e}");
65 | status = false;
66 | }
67 | }
68 |
69 | return status;
70 | }
71 | public static bool DownloadRepository(ToolConfig tool)
72 | {
73 | bool status = CloneChecks(tool);
74 | if (status)
75 | {
76 | try
77 | {
78 | string toolPath = Path.Combine(Conf.gitToolsPath, tool.name);
79 | if (!Directory.Exists(toolPath))
80 | {
81 | LogHelpers.PrintYellow($" Clonnig repository: {tool.name} into {toolPath}");
82 | CloneOptions co = new CloneOptions();
83 | if (tool.authToken != "")
84 | {
85 | string gitUser = tool.authUser, gitToken = tool.authToken;
86 | co.CredentialsProvider = (_url, _user, _cred) => new UsernamePasswordCredentials { Username = gitUser, Password = gitToken };
87 | }
88 | co.RecurseSubmodules = true;
89 | _ = Repository.Clone(tool.gitLink, toolPath, co);
90 | if (!File.Exists(Path.Combine(Conf.gitToolsPath, tool.solutionPath)))
91 | {
92 | status = false;
93 | LogHelpers.PrintError($"DownloadRepository: Solution not found {Path.Combine(Conf.gitToolsPath, tool.solutionPath)}");
94 | }
95 | else
96 | {
97 | LogHelpers.PrintOk($"\t\t Repository {tool.name} cloned into {toolPath}");
98 | }
99 | }
100 | }
101 | catch (Exception e)
102 | {
103 | LogHelpers.PrintError($"DownloadRepository: {tool.name} - {e}");
104 | status = false;
105 | }
106 | }
107 | return status;
108 | }
109 | }
110 | }
111 |
--------------------------------------------------------------------------------
/OffensivePipeline/Modules/RandomGuid.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections;
3 | using System.Collections.Generic;
4 | using System.Linq;
5 | using System.Text;
6 | using System.Text.RegularExpressions;
7 | using System.Threading.Tasks;
8 |
9 | namespace OffensivePipeline.Modules
10 | {
11 | internal class RandomGuid : iModule
12 | {
13 | public string Name => "RandomGuid";
14 | public ToolConfig _tool { get; set; }
15 | public ModuleOutput _moduleOutput { get; set; }
16 |
17 | private string _regexStr = @"[(]?[a-fA-F0-9]{8}[-]?([a-fA-F0-9]{4}[-]?){3}[a-fA-F0-9]{12}[)]?";
18 | public RandomGuid(ToolConfig tool, ModuleOutput moduleOutput)
19 | {
20 | _tool = tool;
21 | _moduleOutput = moduleOutput;
22 | }
23 |
24 | public ModuleOutput CheckStart()
25 | {
26 | return _moduleOutput;
27 | }
28 |
29 | private List FindFiles()
30 | {
31 | List lFiles = new List();
32 | lFiles.Add(Path.Combine(Directory.GetCurrentDirectory(), Conf.gitToolsPath, _tool.solutionPath));
33 | foreach (
34 | string file in Directory.EnumerateFiles(
35 | Path.Combine(Directory.GetCurrentDirectory(), Conf.gitToolsPath, _tool.name), "*.csproj", SearchOption.AllDirectories))
36 | {
37 | lFiles.Add(file);
38 | }
39 | foreach (
40 | string file in Directory.EnumerateFiles(
41 | Path.Combine(Directory.GetCurrentDirectory(), Conf.gitToolsPath, _tool.name), "AssemblyInfo.cs", SearchOption.AllDirectories))
42 | {
43 | lFiles.Add(file);
44 | }
45 | return lFiles;
46 | }
47 |
48 | public ModuleOutput Run()
49 | {
50 | List lFiles = FindFiles();
51 | Regex rx = new Regex(_regexStr, RegexOptions.Compiled | RegexOptions.IgnoreCase);
52 | string message;
53 | List lGuid = new List();
54 | Hashtable hTable = new Hashtable();
55 | string fContent;
56 | message = $"\tSearching GUIDs...";
57 | LogHelpers.PrintBlue(message);
58 | LogHelpers.LogToFile($"{Name} - Run", "INFO", message);
59 | foreach (string file in lFiles) //first get all GUIDs
60 | {
61 | message = $"\t\t> {file}";
62 | LogHelpers.PrintGray(message);
63 | LogHelpers.LogToFile($"{Name} - Run", "INFO", message);
64 | if (File.Exists(file))
65 | {
66 | fContent = File.ReadAllText(file);
67 | MatchCollection matches = rx.Matches(fContent);
68 |
69 | //get all guid
70 | foreach (Match match in matches)
71 | {
72 | lGuid.Add(match.Value);
73 | }
74 | }
75 | }
76 | //replace all GUID
77 | message = $"\tReplacing GUIDs...";
78 | LogHelpers.PrintBlue(message);
79 | LogHelpers.LogToFile($"{Name} - Run", "INFO", message);
80 | foreach (string file in lFiles)
81 | {
82 | //remove duplicates and generate new guid
83 | foreach (string guid in lGuid.Distinct())
84 | {
85 | try
86 | {
87 | hTable.Add(guid, Guid.NewGuid());
88 | }
89 | catch { }
90 | }
91 | //replace guid
92 | fContent = File.ReadAllText(file);
93 | message = $"\t\tFile {file}:";
94 | LogHelpers.PrintGray(message);
95 | LogHelpers.LogToFile($"{Name} - Run", "INFO", message);
96 | foreach (DictionaryEntry de in hTable)
97 | {
98 | message = $"\t\t\t> Replacing GUID {de.Key.ToString()} with {de.Value.ToString()}";
99 | LogHelpers.PrintGray(message);
100 | LogHelpers.LogToFile($"{Name} - Run", "INFO", message);
101 | fContent = fContent.Replace(de.Key.ToString(), de.Value.ToString());
102 | }
103 | File.WriteAllText(file, fContent);
104 | if (File.Exists(file))
105 | {
106 | message = "\t\t[+] No errors!";
107 | LogHelpers.PrintOk(message);
108 | LogHelpers.LogToFile($"{Name} - Run", "INFO", message);
109 | }
110 | else
111 | {
112 | _moduleOutput.Status = false;
113 | message = $"\t\t[+] File not found {file}";
114 | LogHelpers.PrintError(message);
115 | LogHelpers.LogToFile($"{Name} - Run", "ERROR", message);
116 | }
117 |
118 | }
119 | return _moduleOutput;
120 | }
121 | }
122 | }
123 |
--------------------------------------------------------------------------------
/OffensivePipeline/YmlHelpers.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 | using System.Xml.Linq;
7 | using YamlDotNet.RepresentationModel;
8 |
9 | namespace OffensivePipeline
10 | {
11 | public class YmlHelpers
12 | {
13 | public static List ReadYmls()
14 | {
15 | List lTools = new List();
16 |
17 | if (!Directory.Exists(Conf.ymlsPath))
18 | {
19 | LogHelpers.PrintError($"ReadYmls: Folder not found <{Conf.ymlsPath}>");
20 | LogHelpers.LogToFile("ReadYmls", "ERROR", $"Folder not found <{Conf.ymlsPath}>");
21 | }
22 | else
23 | {
24 | foreach (string tool in Directory.GetFiles(Conf.ymlsPath, "*.yml"))
25 | {
26 | string outputFolder = string.Empty;
27 | string toolPath = string.Empty;
28 | string text = File.ReadAllText(tool);
29 | var stringReader = new StringReader(text);
30 | var yaml = new YamlStream();
31 | yaml.Load(stringReader);
32 | var mapping = (YamlMappingNode)yaml.Documents[0].RootNode;
33 |
34 | foreach (var entry in mapping.Children)
35 | {
36 | var items = (YamlSequenceNode)mapping.Children[new YamlScalarNode("tool")];
37 | foreach (YamlMappingNode item in items)
38 | {
39 | try
40 | {
41 | lTools.Add(new ToolConfig(
42 | item.Children[new YamlScalarNode("name")].ToString(),
43 | item.Children[new YamlScalarNode("description")].ToString(),
44 | item.Children[new YamlScalarNode("gitLink")].ToString(),
45 | item.Children[new YamlScalarNode("solutionPath")].ToString(),
46 | item.Children[new YamlScalarNode("language")].ToString(),
47 | item.Children[new YamlScalarNode("plugins")].ToString(),
48 | item.Children[new YamlScalarNode("authUser")].ToString(),
49 | item.Children[new YamlScalarNode("authToken")].ToString(),
50 | item.Children[new YamlScalarNode("toolArguments")].ToString()
51 | ));
52 | }
53 | catch (Exception e)
54 | {
55 | LogHelpers.PrintError($"ReadYmls: <{item.Children[new YamlScalarNode("name")]}> - {e}");
56 | LogHelpers.LogToFile("ReadYmls", "ERROR", $"Tool: <{item.Children[new YamlScalarNode("name")]}> - {e}");
57 | }
58 | }
59 | }
60 | }
61 | }
62 | return lTools;
63 | }
64 |
65 | public static List ReadYmls(string ymlName, string overrideArguments)
66 | {
67 | List lTools = new List();
68 |
69 | if (!Directory.Exists(Conf.ymlsPath))
70 | {
71 | LogHelpers.PrintError($"ReadYmls: Folder not found <{Conf.ymlsPath}>");
72 | LogHelpers.LogToFile("ReadYmls", "ERROR", $"Folder not found <{Conf.ymlsPath}>");
73 | }
74 | else
75 | {
76 | string outputFolder = string.Empty;
77 | string toolPath = string.Empty;
78 | string text = File.ReadAllText(Path.Combine(Conf.ymlsPath, $"{ymlName}.yml"));
79 | var stringReader = new StringReader(text);
80 | var yaml = new YamlStream();
81 | yaml.Load(stringReader);
82 | var mapping = (YamlMappingNode)yaml.Documents[0].RootNode;
83 |
84 | foreach (var entry in mapping.Children)
85 | {
86 | var items = (YamlSequenceNode)mapping.Children[new YamlScalarNode("tool")];
87 | foreach (YamlMappingNode item in items)
88 | {
89 | try
90 | {
91 | lTools.Add(new ToolConfig(
92 | item.Children[new YamlScalarNode("name")].ToString(),
93 | item.Children[new YamlScalarNode("description")].ToString(),
94 | item.Children[new YamlScalarNode("gitLink")].ToString(),
95 | item.Children[new YamlScalarNode("solutionPath")].ToString(),
96 | item.Children[new YamlScalarNode("language")].ToString(),
97 | item.Children[new YamlScalarNode("plugins")].ToString(),
98 | item.Children[new YamlScalarNode("authUser")].ToString(),
99 | item.Children[new YamlScalarNode("authToken")].ToString(),
100 | (overrideArguments!=null) ? overrideArguments : item.Children[new YamlScalarNode("toolArguments")].ToString()
101 | ));
102 | }
103 | catch (Exception e)
104 | {
105 | LogHelpers.PrintError($"ReadYmls: <{item.Children[new YamlScalarNode("name")]}> - {e}");
106 | LogHelpers.LogToFile("ReadYmls", "ERROR", $"Tool: <{item.Children[new YamlScalarNode("name")]}> - {e}");
107 | }
108 | }
109 | }
110 |
111 | }
112 | return lTools;
113 | }
114 | }
115 | }
116 |
--------------------------------------------------------------------------------
/OffensivePipeline/Modules/RandomAssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections;
3 | using System.Collections.Generic;
4 | using System.Data.SqlTypes;
5 | using System.Linq;
6 | using System.Security.Cryptography;
7 | using System.Text;
8 | using System.Text.RegularExpressions;
9 | using System.Threading.Tasks;
10 |
11 | namespace OffensivePipeline.Modules
12 | {
13 | internal class RandomAssemblyInfo : iModule
14 | {
15 | public string Name => "RandomAssemblyInfo";
16 | public ToolConfig _tool { get; set; }
17 | public ModuleOutput _moduleOutput { get; set; }
18 |
19 | private string _regexAssemblyTitle = @"\[assembly: AssemblyTitle\(.*\)]";
20 | private string _regexAssemblyDescription = @"\[assembly: AssemblyDescription\(.*\)]";
21 | private string _regexAssemblyConfiguration = @"\[assembly: AssemblyConfiguration\(.*\)]";
22 | private string _regexAssemblyCompany = @"\[assembly: AssemblyCompany\(.*\)]";
23 | private string _regexAssemblyProduct = @"\[assembly: AssemblyProduct\(.*\)]";
24 | private string _regexAssemblyCopyright = @"\[assembly: AssemblyCopyright\(.*\)]";
25 | private string _regexAssemblyTrademark = @"\[assembly: AssemblyTrademark\(.*\)]";
26 | private string _regexAssemblyCulture = @"\[assembly: AssemblyCulture\(.*\)]";
27 |
28 | public RandomAssemblyInfo(ToolConfig tool, ModuleOutput moduleOutput)
29 | {
30 | _tool = tool;
31 | _moduleOutput = moduleOutput;
32 | }
33 | public ModuleOutput CheckStart()
34 | {
35 | return _moduleOutput;
36 | }
37 |
38 | private List FindFiles()
39 | {
40 | List lFiles = new List();
41 | foreach (
42 | string file in Directory.EnumerateFiles(
43 | Path.Combine(Directory.GetCurrentDirectory(), Conf.gitToolsPath, _tool.name), "AssemblyInfo.cs", SearchOption.AllDirectories))
44 | {
45 | lFiles.Add(file);
46 | }
47 | return lFiles;
48 | }
49 |
50 | public ModuleOutput Run()
51 | {
52 | List lFiles = FindFiles();
53 | string message;
54 | foreach (string file in lFiles)
55 | {
56 | if (File.Exists(file))
57 | {
58 | message = $"\tReplacing strings in {file}";
59 | LogHelpers.PrintBlue(message);
60 | LogHelpers.LogToFile($"{Name} - Run", "INFO", message);
61 | string fContent = File.ReadAllText(file);
62 | fContent = File.ReadAllText(file);
63 | string randomName = Helpers.GetRandomString();
64 | foreach (Match match in Regex.Matches(fContent, _regexAssemblyTitle))
65 | {
66 | string replacement = $"[assembly: AssemblyTitle(\"{randomName}\")]";
67 | message = $"\t\t{match.Value} -> {replacement}";
68 | LogHelpers.PrintGray(message);
69 | LogHelpers.LogToFile($"{Name} - Run", "INFO", message);
70 | fContent = fContent.Replace(match.Value, replacement);
71 | }
72 | foreach (Match match in Regex.Matches(fContent, _regexAssemblyDescription))
73 | {
74 | string replacement = $"[assembly: AssemblyDescription(\"\")]";
75 | message = $"\t\t{match.Value} -> {replacement}";
76 | LogHelpers.PrintGray(message);
77 | LogHelpers.LogToFile($"{Name} - Run", "INFO", message);
78 | fContent = fContent.Replace(match.Value, replacement);
79 | }
80 | foreach (Match match in Regex.Matches(fContent, _regexAssemblyConfiguration))
81 | {
82 | string replacement = $"[assembly: AssemblyConfiguration(\"\")]";
83 | message = $"\t\t{match.Value} -> {replacement}";
84 | LogHelpers.PrintGray(message);
85 | LogHelpers.LogToFile($"{Name} - Run", "INFO", message);
86 | fContent = fContent.Replace(match.Value, replacement);
87 | }
88 | foreach (Match match in Regex.Matches(fContent, _regexAssemblyCompany))
89 | {
90 | string replacement = $"[assembly: AssemblyCompany(\"\")]";
91 | message = $"\t\t{match.Value} -> {replacement}";
92 | LogHelpers.PrintGray(message);
93 | LogHelpers.LogToFile($"{Name} - Run", "INFO", message);
94 | fContent = fContent.Replace(match.Value, replacement);
95 | }
96 | foreach (Match match in Regex.Matches(fContent, _regexAssemblyProduct))
97 | {
98 | string replacement = $"[assembly: AssemblyProduct(\"{randomName}\")]";
99 | message = $"\t\t{match.Value} -> {replacement}";
100 | LogHelpers.PrintGray(message);
101 | LogHelpers.LogToFile($"{Name} - Run", "INFO", message);
102 | fContent = fContent.Replace(match.Value, replacement);
103 | }
104 | foreach (Match match in Regex.Matches(fContent, _regexAssemblyCopyright))
105 | {
106 | var random = new Random();
107 |
108 | string replacement = $"[assembly: AssemblyCopyright(\"Copyright © {RandomNumberGenerator.GetInt32(2018, 2022)}\")]";
109 | message = $"\t\t{match.Value} -> {replacement}";
110 | LogHelpers.PrintGray(message);
111 | LogHelpers.LogToFile($"{Name} - Run", "INFO", message);
112 | fContent = fContent.Replace(match.Value, replacement);
113 | }
114 | foreach (Match match in Regex.Matches(fContent, _regexAssemblyTrademark))
115 | {
116 | string replacement = $"[assembly: AssemblyTrademark(\"\")]";
117 | message = $"\t\t{match.Value} -> {replacement}";
118 | LogHelpers.PrintGray(message);
119 | LogHelpers.LogToFile($"{Name} - Run", "INFO", message);
120 | fContent = fContent.Replace(match.Value, replacement);
121 | }
122 | foreach (Match match in Regex.Matches(fContent, _regexAssemblyCulture))
123 | {
124 | string replacement = $"[assembly: AssemblyCulture(\"\")]";
125 | message = $"\t\t{match.Value} -> {replacement}";
126 | LogHelpers.PrintGray(message);
127 | LogHelpers.LogToFile($"{Name} - Run", "INFO", message);
128 | fContent = fContent.Replace(match.Value, replacement);
129 | }
130 | File.WriteAllText(file, fContent);
131 | }
132 | }
133 |
134 | return _moduleOutput;
135 | }
136 | }
137 | }
138 |
--------------------------------------------------------------------------------
/OffensivePipeline/Modules/BuildCsharp.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 | using System.Xml.Linq;
7 | using Microsoft.Build.Construction;
8 | using System.Configuration;
9 |
10 | namespace OffensivePipeline.Modules
11 | {
12 | public class BuildCsharp : iModule
13 | {
14 | private string buildOptions = ConfigurationManager.AppSettings["BuildCsharpOptions"];
15 | public string Name => "BuildCsharp";
16 | public ToolConfig _tool { get; set; }
17 | public ModuleOutput _moduleOutput { get; set; }
18 |
19 |
20 | public BuildCsharp(ToolConfig tool, ModuleOutput moduleOutput)
21 | {
22 | _tool = tool;
23 | _moduleOutput = moduleOutput;
24 | }
25 |
26 | ModuleOutput iModule.CheckStart()
27 | {
28 | string message;
29 | LogHelpers.PrintBlue("\t[+] Checking requirements...");
30 | if (!File.Exists(Conf.nugetPath))
31 | {
32 | message = $"\t[*] Downloading nuget.exe from {ConfigurationManager.AppSettings["NugetUrl"]}";
33 | LogHelpers.PrintYellow(message);
34 | LogHelpers.LogToFile($"{Name} - CheckStart", "INFO", message);
35 | //Download nuget.exe
36 | _moduleOutput.Status = Helpers.DownloadResources(ConfigurationManager.AppSettings["NugetUrl"], "nuget.exe", Conf.resourcesPath);
37 | if (_moduleOutput.Status)
38 | {
39 | message = "\t\t[+] Download OK - nuget.exe";
40 | LogHelpers.PrintOk(message);
41 | LogHelpers.LogToFile($"{Name} - CheckStart", "INFO", message);
42 | }
43 | else
44 | {
45 | message = "\t\t[+] Download ERROR - nuget.exe";
46 | LogHelpers.PrintError(message);
47 | LogHelpers.LogToFile($"{Name} - CheckStart", "ERROR", message);
48 | _moduleOutput.Status = false;
49 | return _moduleOutput;
50 | }
51 | }
52 | else
53 | {
54 | message = "\t\t[+] Download OK - nuget.exe";
55 | LogHelpers.PrintOk(message);
56 | LogHelpers.LogToFile($"{Name} - CheckStart", "INFO", message);
57 | }
58 | if (!File.Exists(ConfigurationManager.AppSettings["BuildCSharpTools"]))
59 | {
60 | message = $"\t\t[-] File not found: {ConfigurationManager.AppSettings["BuildCSharpTools"]}";
61 | LogHelpers.PrintError(message);
62 | LogHelpers.LogToFile($"{Name} - CheckStart", "ERROR", message);
63 | _moduleOutput.Status = false;
64 | }
65 | else
66 | {
67 | message = $"\t\t[+] Path found - {ConfigurationManager.AppSettings["BuildCSharpTools"]}";
68 | LogHelpers.PrintOk(message);
69 | LogHelpers.LogToFile($"{Name} - CheckStart", "INFO", message);
70 | }
71 | return _moduleOutput;
72 | }
73 |
74 | ModuleOutput iModule.Run()
75 | {
76 | string message;
77 | //_moduleOutput.OutputPath = Path.Combine(Directory.GetCurrentDirectory(), Conf.outputsPath, $"{_tool.name}_{Helpers.GetRandomString()}");
78 | string text = File.ReadAllText(Conf.templateBuildPath);
79 |
80 | string solutionPath = Path.Combine(Directory.GetCurrentDirectory(), Conf.gitToolsPath, _tool.solutionPath);
81 | if (File.Exists(solutionPath))
82 | {
83 | message = $"\tSolving dependences with nuget...";
84 | LogHelpers.PrintBlue(message);
85 | LogHelpers.LogToFile($"{Name} - BuildTool", "INFO", message);
86 | Console.ResetColor();
87 | if (!Helpers.ExecuteCommand($"{Path.Combine(Directory.GetCurrentDirectory(), Conf.nugetPath)} restore {solutionPath}"))
88 | {
89 | message = $"BuildTool: {Path.Combine(Directory.GetCurrentDirectory(), Conf.nugetPath)} - {solutionPath}";
90 | LogHelpers.PrintError(message);
91 | LogHelpers.LogToFile($"{Name} - BuildTool", "ERROR", message);
92 | _moduleOutput.Status = false;
93 | return _moduleOutput;
94 | }
95 | text = text.Replace("{{MSBUILD_PATH}}", ConfigurationManager.AppSettings["BuildCSharpTools"]);
96 | text = text.Replace("{{SOLUTION_PATH}}", solutionPath);
97 | text = text.Replace("{{BUILD_OPTIONS}}", buildOptions);
98 | text = text.Replace("{{OUTPUT_DIR}}", _moduleOutput.OutputPath);
99 | text = text.Replace("{{OUTPUT_FILENAME}}", Helpers.GetRandomString());
100 |
101 | string batPath = Path.Combine(Path.GetDirectoryName(solutionPath), "buildSolution.bat");
102 | File.WriteAllText(batPath, text);
103 | LogHelpers.PrintBlue("\tBuilding solution...");
104 | if (!Helpers.ExecuteCommand(batPath))
105 | {
106 | message = $"BuildTool: msbuild.exe: {solutionPath}";
107 | LogHelpers.PrintError(message);
108 | LogHelpers.LogToFile($"{Name} - BuildTool", "ERROR", message);
109 | _moduleOutput.Status = false;
110 | return _moduleOutput;
111 | }
112 | else
113 | {
114 | message = "\t\t[+] No errors!";
115 | LogHelpers.PrintOk(message);
116 | LogHelpers.LogToFile($"{Name} - BuildTool", "INFO", message);
117 | }
118 |
119 | //Gets all references to the project to obfuscate it with confuser
120 | SolutionFile s = SolutionFile.Parse(solutionPath);
121 | foreach (ProjectInSolution p in s.ProjectsInOrder)
122 | {
123 | if (File.Exists(p.AbsolutePath))
124 | {
125 | XNamespace msbuild = "http://schemas.microsoft.com/developer/msbuild/2003";
126 | XDocument projDefinition = XDocument.Load(p.AbsolutePath);
127 | IEnumerable references = projDefinition
128 | .Element(msbuild + "Project")
129 | .Elements(msbuild + "ItemGroup")
130 | .Elements(msbuild + "Reference")
131 | .Elements(msbuild + "HintPath")
132 | .Select(refElem => refElem.Value);
133 | foreach (string reference in references)
134 | {
135 | string referenceFile = reference.Replace(@"..\", "");
136 | if (File.Exists(Path.Combine(Path.GetDirectoryName(solutionPath), referenceFile)))
137 | {
138 | File.Copy(
139 | Path.Combine(Path.GetDirectoryName(solutionPath), referenceFile),
140 | Path.Combine(_moduleOutput.OutputPath, Path.GetFileName(referenceFile)),
141 | true);
142 | }
143 | }
144 | }
145 | }
146 | }
147 | message = $"\t\t[+] Output folder: {_moduleOutput.OutputPath}";
148 | LogHelpers.PrintOk(message);
149 | LogHelpers.LogToFile($"{Name} - BuildTool", "INFO", message);
150 | return _moduleOutput;
151 | }
152 | }
153 | }
154 |
--------------------------------------------------------------------------------
/OffensivePipeline/Modules/ConfuserEx.cs:
--------------------------------------------------------------------------------
1 | using Microsoft.Build.Construction;
2 | using System;
3 | using System.Collections.Generic;
4 | using System.Configuration;
5 | using System.Linq;
6 | using System.Text;
7 | using System.Threading.Tasks;
8 | using System.Xml.Linq;
9 |
10 | namespace OffensivePipeline.Modules
11 | {
12 | internal class ConfuserEx : iModule
13 | {
14 | private string template = @"
15 |
16 |
17 | {{DLL_LIST}}
18 | ";
19 |
20 | private string previousFolder;
21 |
22 |
23 | public string Name => "ConfuserEx";
24 | public ToolConfig _tool { get; set; }
25 | public ModuleOutput _moduleOutput { get; set; }
26 |
27 |
28 | public ConfuserEx(ToolConfig tool, ModuleOutput moduleOutput)
29 | {
30 | _tool = tool;
31 | _moduleOutput = moduleOutput;
32 | previousFolder = _moduleOutput.OutputPath;
33 | _moduleOutput.OutputPath = Path.Combine(_moduleOutput.OutputPath, Name);
34 | Helpers.CheckFolder(_moduleOutput.OutputPath);
35 | }
36 |
37 |
38 | ModuleOutput iModule.CheckStart()
39 | {
40 | string confuserExZip = "ConfuserEx.zip";
41 | string message;
42 | LogHelpers.PrintBlue("\t[+] Checking requirements...");
43 | if (!File.Exists(Conf.confuserExFile))
44 | {
45 | _moduleOutput.Status = Helpers.DownloadResources(ConfigurationManager.AppSettings["ConfuserExUrl"], confuserExZip, Conf.resourcesPath);
46 | message = $"\t[+] Downloading ConfuserEx from {ConfigurationManager.AppSettings["ConfuserExUrl"]}";
47 | LogHelpers.PrintYellow(message);
48 | LogHelpers.LogToFile($"{Name} - CheckStart", "INFO", message);
49 | if (_moduleOutput.Status)
50 | {
51 | message = "\t\t[+] Download OK - ConfuserEx";
52 | LogHelpers.PrintOk(message);
53 | LogHelpers.LogToFile($"{Name} - CheckStart", "INFO", message);
54 | _moduleOutput.Status = Helpers.UnzipFile(
55 | Path.Combine(Conf.resourcesPath, confuserExZip),
56 | Conf.confuserExFolder);
57 | if (_moduleOutput.Status)
58 | {
59 | File.Delete(Path.Combine(Conf.resourcesPath, confuserExZip));
60 | }
61 | else
62 | {
63 | _moduleOutput.Status = false;
64 | message = $"\t\t[+] Error deleting ConfuserEx.zip";
65 | LogHelpers.PrintError(message);
66 | LogHelpers.LogToFile($"{Name} - CheckStart", "ERROR", message);
67 | }
68 | if (!File.Exists(Conf.confuserExFile))
69 | {
70 | _moduleOutput.Status = false;
71 | message = $"\t\t[+] File not found {Conf.confuserExFile}";
72 | LogHelpers.PrintError(message);
73 | LogHelpers.LogToFile($"{Name} - CheckStart", "ERROR", message);
74 | }
75 | }
76 | else
77 | {
78 | _moduleOutput.Status = false;
79 | message = "\t\t[+] Download ERROR - {";
80 | LogHelpers.PrintError(message);
81 | LogHelpers.LogToFile($"{Name} - CheckStart", "ERROR", message);
82 | }
83 |
84 | }
85 | return _moduleOutput;
86 | }
87 |
88 | private void Confuse()
89 | {
90 | SolveDependences();
91 | string message;
92 | string[] exeList = Directory.GetFiles(previousFolder, "*.exe");
93 | foreach (string exe in exeList)
94 | {
95 | string text = File.ReadAllText(Conf.confuserTemplateFile);
96 | text = text.Replace("{{BASE_DIR}}", previousFolder);
97 | text = text.Replace("{{OUTPUT_DIR}}", _moduleOutput.OutputPath);
98 | text = text.Replace("{{EXE_FILE}}", exe);
99 | string crprojPath = Path.Combine(_moduleOutput.OutputPath, exe + ".crproj");
100 | File.WriteAllText(crprojPath, text);
101 | message = $"\tConfusing...";
102 | LogHelpers.PrintBlue(message);
103 | LogHelpers.LogToFile($"{Name} - Confuse", "INFO", message);
104 | if (!Helpers.ExecuteCommand($"{Conf.confuserExFile} {crprojPath}"))
105 | {
106 | message = $"Confusing: {exe}";
107 | LogHelpers.PrintError(message);
108 | LogHelpers.LogToFile($"{Name} - Confuse", "ERROR", message);
109 | _moduleOutput.Status = false;
110 | return;
111 | }
112 | else
113 | {
114 | message = "\t\t[+] No errors!";
115 | LogHelpers.PrintOk(message);
116 | LogHelpers.LogToFile($"{Name} - BuildTool", "INFO", message);
117 | }
118 | }
119 | string[] dllList = Directory.GetFiles(previousFolder, "*.dll");
120 | foreach (string dll in dllList)
121 | {
122 | File.Copy(dll, Path.Combine(_moduleOutput.OutputPath, Path.GetFileName(dll)), true);
123 | }
124 | return;
125 | }
126 |
127 | private void SolveDependences()
128 | {
129 | try
130 | {
131 | SolutionFile s = SolutionFile.Parse(Path.Combine(Conf.gitToolsPath, _tool.solutionPath));
132 | foreach (ProjectInSolution p in s.ProjectsInOrder)
133 | {
134 | if (File.Exists(p.AbsolutePath))
135 | {
136 | XNamespace msbuild = "http://schemas.microsoft.com/developer/msbuild/2003";
137 | XDocument projDefinition = XDocument.Load(p.AbsolutePath);
138 | IEnumerable references = projDefinition
139 | .Element(msbuild + "Project")
140 | .Elements(msbuild + "ItemGroup")
141 | .Elements(msbuild + "Reference")
142 | .Elements(msbuild + "HintPath")
143 | .Select(refElem => refElem.Value);
144 | foreach (string reference in references)
145 | {
146 | string referenceFile = reference.Replace(@"..\", "");
147 | if (File.Exists(Path.Combine(
148 | Path.GetDirectoryName(_tool.solutionPath),
149 | referenceFile)))
150 | {
151 | File.Copy(
152 | Path.Combine(Path.GetDirectoryName(_tool.solutionPath), referenceFile),
153 | Path.Combine(_moduleOutput.OutputPath, Path.GetFileName(referenceFile)),
154 | true);
155 | }
156 | }
157 | }
158 | }
159 | }
160 | catch (Exception e)
161 | {
162 | string message = $"SolveDependences - - {e}";
163 | LogHelpers.PrintError(message);
164 | LogHelpers.LogToFile("ConfuserEx - SolveDependences", "ERROR", message);
165 | }
166 |
167 | }
168 | ModuleOutput iModule.Run()
169 | {
170 | Confuse();
171 | return _moduleOutput;
172 | }
173 | }
174 | }
175 |
--------------------------------------------------------------------------------
/OffensivePipeline/Helpers.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Diagnostics;
4 | using System.Drawing;
5 | using System.IO.Compression;
6 | using System.Linq;
7 | using System.Net;
8 | using System.Security.Cryptography;
9 | using System.Security.Policy;
10 | using System.Text;
11 | using System.Threading.Tasks;
12 |
13 | namespace OffensivePipeline
14 | {
15 | internal class Helpers
16 | {
17 | public static string GetRandomString()
18 | {
19 | string path = Path.GetRandomFileName();
20 | path = path.Replace(".", ""); // Remove period.
21 | return path;
22 | }
23 |
24 | public static bool DownloadResources(string url, string outputName, string outputPath)
25 | {
26 | bool status = true;
27 | WebClient client = new WebClient();
28 | try
29 | {
30 | string f = Path.Combine(Directory.GetCurrentDirectory(), outputPath, outputName);
31 | client.DownloadFile(url, f);
32 | if (!File.Exists(f))
33 | {
34 | LogHelpers.PrintError($"DownloadResources: File not found <{f}>");
35 | LogHelpers.LogToFile("DownloadResources", "ERROR", $"File not found <{f}>");
36 | status = false;
37 | }
38 | }
39 | catch (Exception ex)
40 | {
41 | LogHelpers.PrintError($"DownloadResources: <{url}> - {ex}");
42 | LogHelpers.LogToFile("DownloadResources", "ERROR", $"{url} - {ex}");
43 | status = false;
44 | }
45 | return status;
46 | }
47 |
48 | public static bool UnzipFile(string filePath, string outputFolder)
49 | {
50 | bool status = true;
51 | try
52 | {
53 | ZipFile.ExtractToDirectory(filePath, outputFolder);
54 |
55 | }
56 | catch (Exception ex)
57 | {
58 | string message = $"UnzipFile: <{filePath}> - {ex}";
59 | LogHelpers.PrintError(message);
60 | LogHelpers.LogToFile("UnzipFile", "ERROR", message);
61 | status = false;
62 | }
63 | return status;
64 | }
65 |
66 |
67 | static string CalculateMD5(string filename)
68 | {
69 | using (var md5 = MD5.Create())
70 | {
71 | using (var stream = File.OpenRead(filename))
72 | {
73 | var hash = md5.ComputeHash(stream);
74 | return BitConverter.ToString(hash).Replace("-", "").ToLowerInvariant();
75 | }
76 | }
77 | }
78 |
79 | public static void CalculateMD5Files(string folder)
80 | {
81 | string[] fileList = Directory.GetFiles(folder, "*.*", SearchOption.AllDirectories);
82 | List md5List = new List();
83 | foreach (string filename in fileList)
84 | {
85 | using (var md5 = MD5.Create())
86 | {
87 | using (var stream = File.OpenRead(filename))
88 | {
89 | var hash = md5.ComputeHash(stream);
90 | md5List.Add(filename + " - " + BitConverter.ToString(hash).Replace("-", "").ToLowerInvariant());
91 | }
92 | }
93 | }
94 | File.WriteAllLines(Path.Combine(new string[] { folder, "md5.txt" }), md5List);
95 | }
96 |
97 | public static void CalculateSha256Files(string folder)
98 | {
99 | string[] fileList = Directory.GetFiles(folder, "*.*", SearchOption.AllDirectories);
100 | List sha256l = new List();
101 | foreach (string filename in fileList)
102 | {
103 | using (var sha256 = SHA256.Create())
104 | {
105 | using (var stream = File.OpenRead(filename))
106 | {
107 | var hash = sha256.ComputeHash(stream);
108 | sha256l.Add(filename + " - " + BitConverter.ToString(hash).Replace("-", "").ToLowerInvariant());
109 | }
110 | }
111 | }
112 | File.WriteAllLines(Path.Combine(new string[] { folder, "sha256.txt" }), sha256l);
113 | }
114 |
115 | ///
116 | /// Recursively deletes a directory as well as any subdirectories and files. If the files are read-only, they are flagged as normal and then deleted.
117 | ///
118 | /// The name of the directory to remove.
119 | public static void DeleteReadOnlyDirectory(string directory)
120 | {
121 | foreach (var subdirectory in Directory.EnumerateDirectories(directory))
122 | {
123 | DeleteReadOnlyDirectory(subdirectory);
124 | }
125 | foreach (var fileName in Directory.EnumerateFiles(directory))
126 | {
127 | var fileInfo = new FileInfo(fileName);
128 | fileInfo.Attributes = FileAttributes.Normal;
129 | fileInfo.Delete();
130 | }
131 | Directory.Delete(directory);
132 | }
133 |
134 | public static bool ExecuteCommand(string command)
135 | {
136 | bool status = true;
137 | try
138 | {
139 | ProcessStartInfo processInfo;
140 | Process process;
141 | processInfo = new ProcessStartInfo("cmd.exe", "/c " + command);
142 | processInfo.CreateNoWindow = true;
143 | processInfo.UseShellExecute = false;
144 | processInfo.RedirectStandardError = true;
145 | processInfo.RedirectStandardOutput = true;
146 | process = Process.Start(processInfo);
147 | string output = process.StandardOutput.ReadToEnd();
148 | string error = process.StandardError.ReadToEnd();
149 | int exitCode = process.ExitCode;
150 | if (!String.IsNullOrEmpty(output))
151 | {
152 | LogHelpers.LogToFile("ExecuteCommand", "INFO", output);
153 | }
154 | if (!String.IsNullOrEmpty(error))
155 | {
156 | LogHelpers.LogToFile("ExecuteCommand", "ERROR", error);
157 | }
158 | process.Close();
159 | }
160 | catch (Exception ex)
161 | {
162 | LogHelpers.PrintError($"ExecuteCommand: <{ command}> - {ex.ToString()}");
163 | LogHelpers.LogToFile("ExecuteCommand", "ERROR", $"{command} - {ex.ToString()}");
164 | status = false;
165 | }
166 |
167 | return status;
168 | }
169 |
170 | public static bool CopyDirectory(string sourceDir, string destinationDir, bool recursive)
171 | {
172 | bool status = true;
173 | // Get information about the source directory
174 | var dir = new DirectoryInfo(sourceDir);
175 |
176 | // Check if the source directory exists
177 | if (!dir.Exists)
178 | {
179 | LogHelpers.PrintError($"CopyDirectory: Source directory not found: {dir.FullName}");
180 | LogHelpers.LogToFile("CopyDirectory", "ERROR", $"Source directory not found: {dir.FullName}");
181 | return false;
182 | }
183 | try
184 | {
185 | DirectoryInfo[] dirs = dir.GetDirectories();
186 | Directory.CreateDirectory(destinationDir);
187 |
188 | foreach (FileInfo file in dir.GetFiles())
189 | {
190 | string targetFilePath = Path.Combine(destinationDir, file.Name);
191 | file.CopyTo(targetFilePath);
192 | }
193 | if (recursive)
194 | {
195 | foreach (DirectoryInfo subDir in dirs)
196 | {
197 | string newDestinationDir = Path.Combine(destinationDir, subDir.Name);
198 | CopyDirectory(subDir.FullName, newDestinationDir, true);
199 | }
200 | }
201 | }
202 | catch (Exception e)
203 | {
204 | LogHelpers.PrintError($"CopyDirectory: {e}");
205 | LogHelpers.LogToFile("CopyDirectory", "ERROR", $"{e}");
206 |
207 | }
208 |
209 | return status;
210 | }
211 |
212 | public static void CheckFolder(string folderPath)
213 | {
214 | bool exists = Directory.Exists(folderPath);
215 |
216 | if (!exists)
217 | Directory.CreateDirectory(folderPath);
218 | }
219 | }
220 | }
221 |
--------------------------------------------------------------------------------
/OffensivePipeline/Program.cs:
--------------------------------------------------------------------------------
1 | using McMaster.Extensions.CommandLineUtils;
2 | using System.Reflection;
3 | using OffensivePipeline.Modules;
4 | using System.Configuration;
5 |
6 | namespace OffensivePipeline
7 | {
8 | public class Summary
9 | {
10 | public ToolConfig tool;
11 | public List lModuleOutput;
12 | public bool status;
13 | }
14 |
15 | internal class Program
16 | {
17 | static void listTools()
18 | {
19 | List lTools = YmlHelpers.ReadYmls();
20 | int index = 1;
21 | foreach (var tool in lTools)
22 | {
23 | LogHelpers.PrintYellow($"[{index}/{lTools.Count}] {tool.name} - <{tool.language}>:");
24 | Console.WriteLine($"\t> Description: {tool.description}");
25 | Console.WriteLine($"\t> Link: {tool.gitLink}");
26 | LogHelpers.PrintBlue($"\t> Plugins: {string.Join(", ", tool.plugins)}");
27 | index++;
28 | }
29 | }
30 |
31 | static void cleanTools()
32 | {
33 | string message = "\t[+] Cleaning...";
34 | LogHelpers.PrintBlue(message);
35 | LogHelpers.LogToFile("cleanTools", "INFO", message);
36 | if (Directory.Exists(Conf.gitToolsPath))
37 | {
38 | LogHelpers.PrintGray($"\t\t> Folder {Conf.gitToolsPath}");
39 | Helpers.DeleteReadOnlyDirectory(Conf.gitToolsPath);
40 | }
41 | if (Directory.Exists(Conf.outputPath))
42 | {
43 | LogHelpers.PrintGray($"\t\t> Folder {Conf.outputPath}");
44 | Helpers.DeleteReadOnlyDirectory(Conf.outputPath);
45 | }
46 | if (File.Exists(Conf.logFile))
47 | {
48 | LogHelpers.PrintGray($"\t\t> Log file {Conf.logFile}");
49 | File.Delete(Conf.logFile);
50 | }
51 | Directory.CreateDirectory(Conf.gitToolsPath);
52 | Directory.CreateDirectory(Conf.outputPath);
53 | }
54 |
55 | public static void LaunchPipeline(string toolName=null, string toolArguments=null)
56 | {
57 | List lTools = new List();
58 | if (toolName != null)
59 | {
60 | lTools = YmlHelpers.ReadYmls(toolName, toolArguments);
61 | }
62 | else
63 | {
64 | lTools = YmlHelpers.ReadYmls();
65 | }
66 | List lSummary = new List();
67 | foreach (var tool in lTools)
68 | {
69 | Summary summary = LoadTool(tool);
70 | if (!summary.status)
71 | {
72 | string message = $"Error processing {tool.name}";
73 | LogHelpers.PrintError(message);
74 | LogHelpers.LogToFile("LaunchPipeline", "ERROR", message);
75 | }
76 | lSummary.Add(summary);
77 | }
78 |
79 | ShowSummary(lSummary);
80 | }
81 | private static object LoadModule(string namespaceName, ToolConfig tool, ModuleOutput moduleOutput)
82 | {
83 | var assembly = Assembly.GetExecutingAssembly();
84 | var type = assembly.GetTypes()
85 | .First(t => t.FullName == $"OffensivePipeline.Modules.{namespaceName}");
86 | if (type != null)
87 | {
88 | return Activator.CreateInstance(type, tool, moduleOutput);
89 | }
90 | else
91 | {
92 | return null;
93 | }
94 | }
95 |
96 | private static void ShowSummary(List lSummary)
97 | {
98 | Console.WriteLine("\n\n-----------------------------------------------------------------");
99 | LogHelpers.PrintMagenta("\t\tSUMMARY\n");
100 | foreach(Summary s in lSummary)
101 | {
102 | Console.WriteLine($" - {s.tool.name}");
103 | foreach(ModuleOutput m in s.lModuleOutput)
104 | {
105 | if (m.Status)
106 | {
107 | LogHelpers.PrintOk($"\t - {m.Name}: OK");
108 | }
109 | else
110 | {
111 | LogHelpers.PrintError($"\t - {m.Name}: ERROR");
112 | }
113 | }
114 | }
115 | Console.WriteLine("\n-----------------------------------------------------------------");
116 | }
117 |
118 | private static Summary LoadTool(ToolConfig tool)
119 | {
120 | Summary summary = new Summary();
121 | summary.lModuleOutput = new List();
122 | summary.tool = tool;
123 | summary.status = true;
124 | ModuleOutput moduleOutput = new ModuleOutput();
125 | LogHelpers.PrintMagenta($"\n[+] Loading tool: {tool.name}");
126 | Uri uriResult;
127 | bool isUrl = Uri.TryCreate(tool.gitLink, UriKind.Absolute, out uriResult)
128 | && (uriResult.Scheme == Uri.UriSchemeHttp || uriResult.Scheme == Uri.UriSchemeHttps);
129 | if (isUrl) //is remote
130 | {
131 | moduleOutput.Status = GitHelpers.DownloadRepository(tool);
132 | }
133 | else //is local
134 | {
135 | moduleOutput.Status = GitHelpers.CloneLocalTool(tool);
136 | }
137 | if (moduleOutput.Status)
138 | {
139 | Helpers.CheckFolder(Conf.outputPath);
140 | string outputDir = Path.Combine(Directory.GetCurrentDirectory(), Conf.outputPath);
141 | moduleOutput.OutputPath = Path.Combine(outputDir, $"{tool.name}_{Helpers.GetRandomString()}");
142 | string outputAux = moduleOutput.OutputPath;
143 | foreach (string module in tool.plugins)
144 | {
145 | moduleOutput.Name = module;
146 | if (moduleOutput.Status)
147 | {
148 | try
149 | {
150 | iModule instancedModule = (iModule)LoadModule(module, tool, moduleOutput);
151 | Console.WriteLine($"\n [+] Load {module} module");
152 | moduleOutput = instancedModule.CheckStart();
153 | if (moduleOutput.Status)
154 | {
155 | moduleOutput = instancedModule.Run();
156 | }
157 | }
158 | catch (Exception e)
159 | {
160 | string message = $"LoadTool - Error in module: {module} - {e}";
161 | LogHelpers.PrintError(message);
162 | LogHelpers.LogToFile("Main - LoadTool", "ERROR", message);
163 | }
164 | }
165 | Console.WriteLine();
166 | ModuleOutput moduleOutputAux = new ModuleOutput();
167 | moduleOutputAux.Name = moduleOutput.Name;
168 | moduleOutputAux.Status = moduleOutput.Status;
169 | moduleOutputAux.OutputPath = moduleOutput.OutputPath;
170 | summary.status = moduleOutputAux.Status;
171 | summary.lModuleOutput.Add(moduleOutputAux);
172 | }
173 | if (Directory.Exists(outputAux))
174 | {
175 | Console.WriteLine($"\n [+] Generating Sha256 hashes");
176 | Helpers.CalculateSha256Files(outputAux);
177 | string str = $"\t\tOutput file: {outputAux}";
178 | LogHelpers.PrintGray(str);
179 | LogHelpers.LogToFile($"Main - LoadTool", "INFO", str);
180 | }
181 | }
182 | return summary;
183 | }
184 |
185 | public static void ShowBanner()
186 | {
187 | string banner = @"
188 | ooo
189 | .osooooM M
190 | ___ __ __ _ ____ _ _ _ +y. M M
191 | / _ \ / _|/ _| ___ _ __ ___(_)_ _____| _ \(_)_ __ ___| (_)_ __ ___ :h .yoooMoM
192 | | | | | |_| |_ / _ \ '_ \/ __| \ \ / / _ \ |_) | | '_ \ / _ \ | | '_ \ / _ \ oo oo
193 | | |_| | _| _| __/ | | \__ \ |\ V / __/ __/| | |_) | __/ | | | | | __/ oo oo
194 | \___/|_| |_| \___|_| |_|___/_| \_/ \___|_| |_| .__/ \___|_|_|_| |_|\___| oo oo
195 | |_| MoMoooy. h:
196 | M M .y+
197 | M Mooooso.
198 | ooo
199 |
200 | @aetsu
201 | " + $"\t\t\t\t\t\t\t\t\tv{ConfigurationManager.AppSettings["Version"]}\n";
202 | Console.WriteLine(banner);
203 | }
204 |
205 |
206 | static void Main(string[] args)
207 | {
208 | ShowBanner();
209 | var app = new CommandLineApplication();
210 | app.Name = "OffensivePipeline";
211 | app.HelpOption("-?|-h|--help");
212 | app.ExtendedHelpText = @"
213 | Examples:
214 | - List all tools:
215 | OffensivePipeline.exe list
216 | - Load seatbelt tool:
217 | OffensivePipeline.exe t seatbelt [-a/--args] [args]
218 | - Load all tools:
219 | OffensivePipeline.exe all
220 | ";
221 |
222 | app.OnExecute(() =>
223 | {
224 | app.ShowHelp();
225 | return 0;
226 | });
227 |
228 | app.Command("list", (command) =>
229 | {
230 | command.Description = "List all tools";
231 | command.HelpOption("-?|-h|--help");
232 | command.OnExecute(() =>
233 | {
234 | listTools();
235 | Console.WriteLine();
236 | return 0;
237 | });
238 | });
239 |
240 | app.Command("all", (command) =>
241 | {
242 | command.Description = "Load all tools";
243 | command.HelpOption("-?|-h|--help");
244 | command.OnExecute(() =>
245 | {
246 | LaunchPipeline();
247 | Console.WriteLine();
248 | return 0;
249 | });
250 | });
251 |
252 | app.Command("t", (command) =>
253 | {
254 | command.Description = "Load the specified tool";
255 | command.HelpOption("-?|-h|--help");
256 | var toolArgument = command.Argument("[tool]", "Tool to build.");
257 | var toolArguments = command.Option("-a|--args", "Command-line arguments to pass to the Donut shellcode, will override the yaml value", CommandOptionType.SingleValue);
258 |
259 | command.OnExecute(() =>
260 | {
261 | if (toolArgument.Value != null)
262 | {
263 | LaunchPipeline(toolArgument.Value, toolArguments.Value());
264 | }
265 | Console.WriteLine();
266 | return 0;
267 | });
268 | });
269 | app.Command("clean", (command) =>
270 | {
271 | command.Description = "Clean all tools";
272 | command.HelpOption("-?|-h|--help");
273 | command.OnExecute(() =>
274 | {
275 | cleanTools();
276 | Console.WriteLine();
277 | return 0;
278 | });
279 | });
280 | app.Execute(args);
281 | }
282 | }
283 | }
--------------------------------------------------------------------------------
/OffensivePipeline/OffensivePipeline.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Exe
5 | net6.0
6 | enable
7 | enable
8 | OffensivePipeline.Program
9 | true
10 | full
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 | Always
25 |
26 |
27 | Always
28 |
29 |
30 | Always
31 |
32 |
33 | Always
34 |
35 |
36 | Always
37 |
38 |
39 | Always
40 |
41 |
42 | Always
43 |
44 |
45 | Always
46 |
47 |
48 | Always
49 |
50 |
51 | Always
52 |
53 |
54 | Always
55 |
56 |
57 | Always
58 |
59 |
60 | Always
61 |
62 |
63 | Always
64 |
65 |
66 | Always
67 |
68 |
69 | Always
70 |
71 |
72 | Always
73 |
74 |
75 | Always
76 |
77 |
78 | Always
79 |
80 |
81 | Always
82 |
83 |
84 | Always
85 |
86 |
87 | Always
88 |
89 |
90 | Always
91 |
92 |
93 | Always
94 |
95 |
96 | Always
97 |
98 |
99 | Always
100 |
101 |
102 | Always
103 |
104 |
105 | Always
106 |
107 |
108 | Always
109 |
110 |
111 | Always
112 |
113 |
114 | Always
115 |
116 |
117 | Always
118 |
119 |
120 | Always
121 |
122 |
123 | Always
124 |
125 |
126 | Always
127 |
128 |
129 | Always
130 |
131 |
132 | Always
133 |
134 |
135 | Always
136 |
137 |
138 | Always
139 |
140 |
141 | Always
142 |
143 |
144 | Always
145 |
146 |
147 | Always
148 |
149 |
150 | Always
151 |
152 |
153 | Always
154 |
155 |
156 | Always
157 |
158 |
159 | Always
160 |
161 |
162 | Always
163 |
164 |
165 | Always
166 |
167 |
168 | Always
169 |
170 |
171 | Always
172 |
173 |
174 | Always
175 |
176 |
177 | Always
178 |
179 |
180 | Always
181 |
182 |
183 | Always
184 |
185 |
186 | Always
187 |
188 |
189 | Always
190 |
191 |
192 | Always
193 |
194 |
195 | Always
196 |
197 |
198 | Always
199 |
200 |
201 | Always
202 |
203 |
204 | Always
205 |
206 |
207 | Always
208 |
209 |
210 | Always
211 |
212 |
213 | Always
214 |
215 |
216 | Always
217 |
218 |
219 | Always
220 |
221 |
222 | Always
223 |
224 |
225 | Always
226 |
227 |
228 | Always
229 |
230 |
231 | Always
232 |
233 |
234 | Always
235 |
236 |
237 | Always
238 |
239 |
240 | Always
241 |
242 |
243 | Always
244 |
245 |
246 | Always
247 |
248 |
249 | Always
250 |
251 |
252 | Always
253 |
254 |
255 | Always
256 |
257 |
258 | Always
259 |
260 |
261 | Always
262 |
263 |
264 | Always
265 |
266 |
267 | Always
268 |
269 |
270 | Always
271 |
272 |
273 | Always
274 |
275 |
276 | Always
277 |
278 |
279 | Always
280 |
281 |
282 | Always
283 |
284 |
285 | Always
286 |
287 |
288 | Always
289 |
290 |
291 | Always
292 |
293 |
294 | Always
295 |
296 |
297 |
298 |
299 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # OffensivePipeline
2 |
3 | 
4 |
5 | **OffensivePipeline** allows you to download and build C# tools, applying certain modifications in order to improve their evasion for Red Team exercises.
6 | A common use of OffensivePipeline is to download a tool from a Git repository, randomise certain values in the project, build it, obfuscate the resulting binary and generate a shellcode.
7 |
8 | ## Features
9 |
10 | - Currently only supports C# (.Net Framework) projects
11 | - Allows to clone public and private (you will need credentials :D) git repositories
12 | - Allows to work with local folders
13 | - Randomizes project GUIDs
14 | - Randomizes application information contained in AssemblyInfo
15 | - Builds C# projects
16 | - Obfuscates generated binaries
17 | - Generates shellcodes from binaries
18 | - There are 79 tools parameterised in YML templates (not all of them may work :D)
19 | - New tools can be added using YML templates
20 | - It should be easy to add new plugins...
21 |
22 | ## What's new in version 2.0
23 |
24 | - Almost complete code rewrite (new bugs?)
25 | - Cloning from private repositories possible (authentication via GitHub authToken)
26 | - Possibility to copy a local folder instead of cloning from a remote repository
27 | - New module to generate shellcodes with [Donut](https://github.com/TheWover/donut)
28 | - New module to randomize GUIDs of applications
29 | - New module to randomize the AssemblyInfo of each application
30 | - 60 new tools added
31 |
32 | ## Examples
33 |
34 | - List all tools:
35 |
36 | ```
37 | OffensivePipeline.exe list
38 | ```
39 |
40 | - Build all tools:
41 |
42 | ```
43 | OffensivePipeline.exe all
44 | ```
45 |
46 | - Build a tool
47 |
48 | ```
49 | OffensivePipeline.exe t toolName
50 | ```
51 |
52 | - Clean cloned and build tools
53 |
54 | ```
55 | OffensivePipeline.exe
56 | ```
57 |
58 | ### Output example
59 |
60 | ```
61 | PS C:\OffensivePipeline> .\OffensivePipeline.exe t rubeus
62 |
63 | ooo
64 | .osooooM M
65 | ___ __ __ _ ____ _ _ _ +y. M M
66 | / _ \ / _|/ _| ___ _ __ ___(_)_ _____| _ \(_)_ __ ___| (_)_ __ ___ :h .yoooMoM
67 | | | | | |_| |_ / _ \ '_ \/ __| \ \ / / _ \ |_) | | '_ \ / _ \ | | '_ \ / _ \ oo oo
68 | | |_| | _| _| __/ | | \__ \ |\ V / __/ __/| | |_) | __/ | | | | | __/ oo oo
69 | \___/|_| |_| \___|_| |_|___/_| \_/ \___|_| |_| .__/ \___|_|_|_| |_|\___| oo oo
70 | |_| MoMoooy. h:
71 | M M .y+
72 | M Mooooso.
73 | ooo
74 |
75 | @aetsu
76 | v2.0.0
77 |
78 |
79 | [+] Loading tool: Rubeus
80 | Clonnig repository: Rubeus into C:\OffensivePipeline\Git\Rubeus
81 | Repository Rubeus cloned into C:\OffensivePipeline\Git\Rubeus
82 |
83 | [+] Load RandomGuid module
84 | Searching GUIDs...
85 | > C:\OffensivePipeline\Git\Rubeus\Rubeus.sln
86 | > C:\OffensivePipeline\Git\Rubeus\Rubeus\Rubeus.csproj
87 | > C:\OffensivePipeline\Git\Rubeus\Rubeus\Properties\AssemblyInfo.cs
88 | Replacing GUIDs...
89 | File C:\OffensivePipeline\Git\Rubeus\Rubeus.sln:
90 | > Replacing GUID 658C8B7F-3664-4A95-9572-A3E5871DFC06 with 3bd82351-ac9a-4403-b1e7-9660e698d286
91 | > Replacing GUID FAE04EC0-301F-11D3-BF4B-00C04F79EFBC with 619876c2-5a8b-4c48-93c3-f87ca520ac5e
92 | > Replacing GUID 658c8b7f-3664-4a95-9572-a3e5871dfc06 with 11e0084e-937f-46d7-83b5-38a496bf278a
93 | [+] No errors!
94 | File C:\OffensivePipeline\Git\Rubeus\Rubeus\Rubeus.csproj:
95 | > Replacing GUID 658C8B7F-3664-4A95-9572-A3E5871DFC06 with 3bd82351-ac9a-4403-b1e7-9660e698d286
96 | > Replacing GUID FAE04EC0-301F-11D3-BF4B-00C04F79EFBC with 619876c2-5a8b-4c48-93c3-f87ca520ac5e
97 | > Replacing GUID 658c8b7f-3664-4a95-9572-a3e5871dfc06 with 11e0084e-937f-46d7-83b5-38a496bf278a
98 | [+] No errors!
99 | File C:\OffensivePipeline\Git\Rubeus\Rubeus\Properties\AssemblyInfo.cs:
100 | > Replacing GUID 658C8B7F-3664-4A95-9572-A3E5871DFC06 with 3bd82351-ac9a-4403-b1e7-9660e698d286
101 | > Replacing GUID FAE04EC0-301F-11D3-BF4B-00C04F79EFBC with 619876c2-5a8b-4c48-93c3-f87ca520ac5e
102 | > Replacing GUID 658c8b7f-3664-4a95-9572-a3e5871dfc06 with 11e0084e-937f-46d7-83b5-38a496bf278a
103 | [+] No errors!
104 |
105 |
106 | [+] Load RandomAssemblyInfo module
107 | Replacing strings in C:\OffensivePipeline\Git\Rubeus\Rubeus\Properties\AssemblyInfo.cs
108 | [assembly: AssemblyTitle("Rubeus")] -> [assembly: AssemblyTitle("g4ef3fvphre")]
109 | [assembly: AssemblyDescription("")] -> [assembly: AssemblyDescription("")]
110 | [assembly: AssemblyConfiguration("")] -> [assembly: AssemblyConfiguration("")]
111 | [assembly: AssemblyCompany("")] -> [assembly: AssemblyCompany("")]
112 | [assembly: AssemblyProduct("Rubeus")] -> [assembly: AssemblyProduct("g4ef3fvphre")]
113 | [assembly: AssemblyCopyright("Copyright © 2018")] -> [assembly: AssemblyCopyright("Copyright © 2018")]
114 | [assembly: AssemblyTrademark("")] -> [assembly: AssemblyTrademark("")]
115 | [assembly: AssemblyCulture("")] -> [assembly: AssemblyCulture("")]
116 |
117 |
118 | [+] Load BuildCsharp module
119 | [+] Checking requirements...
120 | [*] Downloading nuget.exe from https://dist.nuget.org/win-x86-commandline/latest/nuget.exe
121 | [+] Download OK - nuget.exe
122 | [+] Path found - C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\Tools\VsDevCmd.bat
123 | Solving dependences with nuget...
124 | Building solution...
125 | [+] No errors!
126 | [+] Output folder: C:\OffensivePipeline\Output\Rubeus_vh00nc50xud
127 |
128 |
129 | [+] Load ConfuserEx module
130 | [+] Checking requirements...
131 | [+] Downloading ConfuserEx from https://github.com/mkaring/ConfuserEx/releases/download/v1.6.0/ConfuserEx-CLI.zip
132 | [+] Download OK - ConfuserEx
133 | Confusing...
134 | [+] No errors!
135 |
136 |
137 | [+] Load Donut module
138 | Generating shellcode...
139 |
140 | Payload options:
141 | Domain: RMM6XFC3
142 | Runtime:v4.0.30319
143 |
144 | Raw Payload: C:\OffensivePipeline\Output\Rubeus_vh00nc50xud\ConfuserEx\Donut\Rubeus.bin
145 | B64 Payload: C:\OffensivePipeline\Output\Rubeus_vh00nc50xud\ConfuserEx\Donut\Rubeus.bin.b64
146 |
147 | [+] No errors!
148 |
149 |
150 | [+] Generating Sha256 hashes
151 | Output file: C:\OffensivePipeline\Output\Rubeus_vh00nc50xud
152 |
153 |
154 | -----------------------------------------------------------------
155 | SUMMARY
156 |
157 | - Rubeus
158 | - RandomGuid: OK
159 | - RandomAssemblyInfo: OK
160 | - BuildCsharp: OK
161 | - ConfuserEx: OK
162 | - Donut: OK
163 |
164 | -----------------------------------------------------------------
165 | ```
166 |
167 | ## Plugins
168 |
169 | - **RandomGuid**: randomise the GUID in *.sln*, *.csproj* and *AssemblyInfo.cs* files
170 | - **RandomAssemblyInfo**: randomise the values defined in *AssemblyInfo.cs*
171 | - **BuildCsharp**: build c# project
172 | - **ConfuserEx**: obfuscate c# tools
173 | - **Donut**: use Donut to generate shellcodes. The shellcode generated is without parameters, in future releases this may be changed.
174 |
175 | ## Add a tool from a remote git
176 |
177 | The scripts for downloading the tools are in the **Tools** folder in ***yml*** format. New tools can be added by creating new *yml* files with the following format:
178 |
179 | - *Rubeus.yml* file:
180 |
181 | ```yml
182 | tool:
183 | - name: Rubeus
184 | description: Rubeus is a C# toolset for raw Kerberos interaction and abuses
185 | gitLink: https://github.com/GhostPack/Rubeus
186 | solutionPath: Rubeus\Rubeus.sln
187 | language: c#
188 | plugins: RandomGuid, RandomAssemblyInfo, BuildCsharp, ConfuserEx, Donut
189 | authUser:
190 | authToken:
191 | toolArguments:
192 | ```
193 |
194 | Where:
195 |
196 | - Name: name of the tool
197 | - Description: tool description
198 | - GitLink: link from git to clone
199 | - SolutionPath: solution (*sln* file) path
200 | - Language: language used (currently only c# is supported)
201 | - Plugins: plugins to use on this tool build process
202 | - AuthUser: user name from github (not used for public repositories)
203 | - AuthToken: auth token from github (not used for public repositories)
204 |
205 | ## Add a tool from a private git
206 |
207 | ```yml
208 | tool:
209 | - name: SharpHound3-Custom
210 | description: C# Rewrite of the BloodHound Ingestor
211 | gitLink: https://github.com/aaaaaaa/SharpHound3-Custom
212 | solutionPath: SharpHound3-Custom\SharpHound3.sln
213 | language: c#
214 | plugins: RandomGuid, RandomAssemblyInfo, BuildCsharp, ConfuserEx, Donut
215 | authUser: aaaaaaa
216 | authToken: abcdefghijklmnopqrsthtnf
217 | toolArguments: "-c All,GPOLocalGroup -d whatever.youlike.local"
218 | ```
219 |
220 | Where:
221 |
222 | - Name: name of the tool
223 | - Description: tool description
224 | - GitLink: link from git to clone
225 | - SolutionPath: solution (*sln* file) path
226 | - Language: language used (currently only c# is supported)
227 | - Plugins: plugins to user on this tool build process
228 | - AuthUser: user name from GitHub
229 | - AuthToken: auth token from GitHub (documented at GitHub: [creating a personal access token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token
230 | ))
231 | - toolArguments: arguments to be embedded in the donut shellcode
232 |
233 | ## Add a tool from local git folder
234 |
235 | ```yml
236 | tool:
237 | - name: SeatbeltLocal
238 | description: Seatbelt is a C# project that performs a number of security oriented host-survey "safety checks" relevant from both offensive and defensive security perspectives.
239 | gitLink: C:\Users\alpha\Desktop\SeatbeltLocal
240 | solutionPath: SeatbeltLocal\Seatbelt.sln
241 | language: c#
242 | plugins: RandomGuid, RandomAssemblyInfo, BuildCsharp, ConfuserEx, Donut
243 | authUser:
244 | authToken:
245 | toolArguments:
246 | ```
247 |
248 | Where:
249 |
250 | - Name: name of the tool
251 | - Description: tool description
252 | - GitLink: path where the tool is located
253 | - SolutionPath: solution (*sln* file) path
254 | - Language: language used (currently only c# is supported)
255 | - Plugins: plugins to user on this tool build process
256 | - AuthUser: user name from github (not used for local repositories)
257 | - AuthToken: auth token from github (not used for local repositories)
258 | - toolArguments: arguments to be embedded in the donut shellcode
259 |
260 | ## Requirements for the release version (Visual Studio 2019/2022 is not required)
261 |
262 | - Microsoft .NET Framework 3.5 Service Pack 1 (for some tools): [https://www.microsoft.com/en-us/download/details.aspx?id=22](https://www.microsoft.com/en-us/download/details.aspx?id=22)
263 | - Build Tools for Visual Studio 2022: [https://aka.ms/vs/17/release/vs_BuildTools.exe](https://aka.ms/vs/17/release/vs_BuildTools.exe)
264 | - Install .NET desktop build tools
265 | 
266 | - (Alternative) Build Tools for Visual Studio 2019: [https://aka.ms/vs/16/release/vs_BuildTools.exe](https://aka.ms/vs/16/release/vs_BuildTools.exe)
267 | - Disable the antivirus :D
268 | - Tested on Windows 10 Pro - Version 20H2 - Build 19045.2486
269 |
270 | In the **OffensivePipeline.dll.config** file it's possible to change the version of the build tools used.
271 |
272 | - Build Tools 2019:
273 |
274 | ```xml
275 |
276 | ```
277 |
278 | - Build Tools 2022:
279 |
280 | ```xml
281 |
282 | ```
283 |
284 | ## Requirements for build
285 |
286 | - Net framework 3.5.1 (for some tools): https://www.microsoft.com/en-us/download/details.aspx?id=22
287 | - Visual Studio 2022 -> https://visualstudio.microsoft.com/thank-you-downloading-visual-studio/?sku=Community&rel=17
288 | - Install .NET desktop build tools
289 | - Add the Donut nugget manually. (Thanks to @n1xbyte for the nugget (*DonutCore.1.0.1.nupkg*))
290 |
291 | ## Credits
292 |
293 | - ConfuserEx project: [https://github.com/mkaring/ConfuserEx](https://github.com/mkaring/ConfuserEx)
294 | - Donut project: [https://github.com/TheWover/donut](https://github.com/TheWover/donut)
295 | - Donut C# generator: [https://github.com/n1xbyte/donutCS](https://github.com/n1xbyte/donutCS)
296 | - SharpCollection: [https://github.com/Flangvik/SharpCollection](SharpCollection)
297 |
298 | ## Supported tools
299 |
300 | - **ADCollector**:
301 | - Description: ADCollector is a lightweight tool that enumerates the Active Directory environment to identify possible attack vectors.
302 | - Link: [https://github.com/dev-2null/ADCollector](https://github.com/dev-2null/ADCollector)
303 | - **ADCSPwn**:
304 | - Description: A tool to escalate privileges in an active directory network by coercing authenticate from machine accounts (Petitpotam) and relaying to the certificate service.
305 | - Link: [https://github.com/bats3c/ADCSPwn](https://github.com/bats3c/ADCSPwn)
306 | - **ADFSDump**:
307 | - Description: A C# tool to dump all sorts of goodies from AD FS
308 | - Link: [https://github.com/mandiant/ADFSDump](https://github.com/mandiant/ADFSDump)
309 | - **ADSearch**:
310 | - Description: A tool written for cobalt-strike's execute-assembly command that allows for more efficent querying of AD.
311 | - Link: [https://github.com/tomcarver16/ADSearch](https://github.com/tomcarver16/ADSearch)
312 | - **BetterSafetyKatz**:
313 | - Description: This modified fork of SafetyKatz dynamically fetches the latest pre-compiled release of Mimikatz directly from the gentilkiwi GitHub repo, runtime patching on detected signatures and uses SharpSploit DInvoke to get it into memory.
314 | - Link: [https://github.com/Flangvik/BetterSafetyKatz](https://github.com/Flangvik/BetterSafetyKatz)
315 | - **Certify**:
316 | - Description: Certify is a C# tool to enumerate and abuse misconfigurations in Active Directory Certificate Services (AD CS).
317 | - Link: [https://github.com/GhostPack/Certify](https://github.com/GhostPack/Certify)
318 | - **DeployPrinterNightmare**:
319 | - Description: C# tool for installing a shared network printer abusing the PrinterNightmare bug to allow other network machines easy privesc!
320 | - Link: [https://github.com/Flangvik/DeployPrinterNightmare](https://github.com/Flangvik/DeployPrinterNightmare)
321 | - **EDD**:
322 | - Description: Enumerate Domain Data is designed to be similar to PowerView but in .NET. PowerView is essentially the ultimate domain enumeration tool, and we wanted a .NET implementation that we worked on ourselves. This tool was largely put together by viewing implementations of different functionality across a wide range of existing projects and combining them into EDD.
323 | - Link: [https://github.com/FortyNorthSecurity/EDD](https://github.com/FortyNorthSecurity/EDD)
324 | - **ForgeCert**:
325 | - Description: C# tool to find vulnerabilities in AD Group Policy, but do it better than Grouper2 did.
326 | - Link: [https://github.com/GhostPack/ForgeCert](https://github.com/GhostPack/ForgeCert)
327 | - **Group3r**:
328 | - Description: Rubeus is a C# toolset for raw Kerberos interaction and abuses
329 | - Link: [https://github.com/Group3r/Group3r](https://github.com/Group3r/Group3r)
330 | - **KrbRelay**:
331 | - Description: C# Framework for Kerberos relaying
332 | - Link: [https://github.com/cube0x0/KrbRelay](https://github.com/cube0x0/KrbRelay)
333 | - **KrbRelayUp**:
334 | - Description: Simple wrapper around some of the features of Rubeus and KrbRelay
335 | - Link: [https://github.com/Dec0ne/KrbRelayUp](https://github.com/Dec0ne/KrbRelayUp)
336 | - **LockLess**:
337 | - Description: LockLess is a C# tool that allows for the enumeration of open file handles and the copying of locked files.
338 | - Link: [https://github.com/GhostPack/LockLess](https://github.com/GhostPack/LockLess)
339 | - **PassTheCert**:
340 | - Description: A small Proof-of-Concept tool that allows authenticating against an LDAP/S server with a certificate to perform different attack actions
341 | - Link: [https://github.com/AlmondOffSec/PassTheCert](https://github.com/AlmondOffSec/PassTheCert)
342 | - **PurpleSharp**:
343 | - Description: PurpleSharp is an open source adversary simulation tool written in C# that executes adversary techniques within Windows Active Directory environments
344 | - Link: [https://github.com/mvelazc0/PurpleSharp](https://github.com/mvelazc0/PurpleSharp)
345 | - **Rubeus**:
346 | - Description: Rubeus is a C# toolset for raw Kerberos interaction and abuses
347 | - Link: [https://github.com/GhostPack/Rubeus](https://github.com/GhostPack/Rubeus)
348 | - **SafetyKatz**:
349 | - Description: SafetyKatz is a combination of slightly modified version of @gentilkiwi's Mimikatz project and @subtee's .NET PE Loader.
350 | - Link: [https://github.com/GhostPack/SafetyKatz](https://github.com/GhostPack/SafetyKatz)
351 | - **SauronEye**:
352 | - Description: SauronEye is a search tool built to aid red teams in finding files containing specific keywords.
353 | - Link: [https://github.com/vivami/SauronEye](https://github.com/vivami/SauronEye)
354 | - **SearchOutlook**:
355 | - Description: A C# tool to search through a running instance of Outlook for keywords
356 | - Link: [https://github.com/RedLectroid/SearchOutlook](https://github.com/RedLectroid/SearchOutlook)
357 | - **Seatbelt**:
358 | - Description: Seatbelt is a C# project that performs a number of security oriented host-survey "safety checks" relevant from both offensive and defensive security perspectives.
359 | - Link: [https://github.com/GhostPack/Seatbelt](https://github.com/GhostPack/Seatbelt)
360 | - Sharp-**SMBExec**:
361 | - Description: A native C# conversion of Kevin Robertsons Invoke-SMBExec powershell script
362 | - Link: [https://github.com/checkymander/Sharp-SMBExec](https://github.com/checkymander/Sharp-SMBExec)
363 | - **SharpAppLocker**:
364 | - Description: C# port of the Get-AppLockerPolicy PowerShell cmdlet with extended features.
365 | - Link: [https://github.com/Flangvik/SharpAppLocker](https://github.com/Flangvik/SharpAppLocker)
366 | - **SharpBypassUAC**:
367 | - Description: C# tool for UAC bypasses
368 | - Link: [https://github.com/FatRodzianko/SharpBypassUAC](https://github.com/FatRodzianko/SharpBypassUAC)
369 | - **SharpChisel**:
370 | - Description: C# Wrapper of Chisel from https://github.com/jpillora/chisel
371 | - Link: [https://github.com/shantanu561993/SharpChisel](https://github.com/shantanu561993/SharpChisel)
372 | - **SharpChromium**:
373 | - Description: SharpChromium is a .NET 4.0+ CLR project to retrieve data from Google Chrome, Microsoft Edge, and Microsoft Edge Beta. Currently, it can extract
374 | - Link: [https://github.com/djhohnstein/SharpChromium](https://github.com/djhohnstein/SharpChromium)
375 | - **SharpCloud**:
376 | - Description: SharpCloud is a simple C# utility for checking for the existence of credential files related to Amazon Web Services, Microsoft Azure, and Google Compute.
377 | - Link: [https://github.com/chrismaddalena/SharpCloud](https://github.com/chrismaddalena/SharpCloud)
378 | - **SharpCOM**:
379 | - Description: SharpCOM is a c# port of Invoke-DCOM
380 | - Link: [https://github.com/rvrsh3ll/SharpCOM](https://github.com/rvrsh3ll/SharpCOM)
381 | - **SharpCookieMonster**:
382 | - Description: This is a Sharp port of @defaultnamehere's cookie-crimes module - full credit for their awesome work!
383 | - Link: [https://github.com/m0rv4i/SharpCookieMonster](https://github.com/m0rv4i/SharpCookieMonster)
384 | - **SharpCrashEventLog**:
385 | - Description: Crashes the Windows eventlog service locally or remotely using OpenEventLogA/ElfClearEventLogFileW.
386 | - Link: [https://github.com/slyd0g/SharpCrashEventLog](https://github.com/slyd0g/SharpCrashEventLog)
387 | - **SharpDir**:
388 | - Description: SharpDir is a simple code set to search both local and remote file systems for files using the same SMB process as dir.exe, which uses TCP port 445
389 | - Link: [https://github.com/jnqpblc/SharpDir](https://github.com/jnqpblc/SharpDir)
390 | - **SharpDPAPI**:
391 | - Description: SharpDPAPI is a C# port of some DPAPI functionality from @gentilkiwi's Mimikatz project.
392 | - Link: [https://github.com/GhostPack/SharpDPAPI](https://github.com/GhostPack/SharpDPAPI)
393 | - **SharpDump**:
394 | - Description: SharpDump is a C# port of PowerSploit's Out-Minidump.ps1 functionality
395 | - Link: [https://github.com/GhostPack/SharpDump](https://github.com/GhostPack/SharpDump)
396 | - **SharpEDRChecker**:
397 | - Description: Checks running processes, process metadata, Dlls loaded into your current process and each DLLs metadata, common install directories, installed services and each service binaries metadata, installed drivers and each drivers metadata, all for the presence of known defensive products such as AV's, EDR's and logging tools.
398 | - Link: [https://github.com/PwnDexter/SharpEDRChecker](https://github.com/PwnDexter/SharpEDRChecker)
399 | - **SharPersist**:
400 | - Description: Windows persistence toolkit written in C#
401 | - Link: [https://github.com/mandiant/SharPersist](https://github.com/mandiant/SharPersist)
402 | - **SharpExec**:
403 | - Description: SharpExec is an offensive security C# tool designed to aid with lateral movement.
404 | - Link: [https://github.com/anthemtotheego/SharpExec](https://github.com/anthemtotheego/SharpExec)
405 | - **SharpGPOAbuse**:
406 | - Description: SharpGPOAbuse is a .NET application written in C# that can be used to take advantage of a user's edit rights on a Group Policy Object (GPO) in order to compromise the objects that are controlled by that GPO.
407 | - Link: [https://github.com/FSecureLABS/SharpGPOAbuse](https://github.com/FSecureLABS/SharpGPOAbuse)
408 | - **SharpHandler**:
409 | - Description: This project reuses open handles to lsass to parse or minidump lsass, therefore you don't need to use your own lsass handle to interact with it. (Dinvoke-version)
410 | - Link: [https://github.com/jfmaes/SharpHandler](https://github.com/jfmaes/SharpHandler)
411 | - **SharpHose**:
412 | - Description: SharpHose is a C# password spraying tool designed to be fast, safe, and usable over Cobalt Strike's execute-assembly.
413 | - Link: [https://github.com/ustayready/SharpHose](https://github.com/ustayready/SharpHose)
414 | - **SharpHound3**:
415 | - Description: C# Rewrite of the BloodHound Ingestor
416 | - Link: [https://github.com/BloodHoundAD/SharpHound3](https://github.com/BloodHoundAD/SharpHound3)
417 | - **SharpKatz**:
418 | - Description: Porting of mimikatz sekurlsa::logonpasswords, sekurlsa::ekeys and lsadump::dcsync commands
419 | - Link: [https://github.com/b4rtik/SharpKatz](https://github.com/b4rtik/SharpKatz)
420 | - **SharpLAPS**:
421 | - Description: This executable is made to be executed within Cobalt Strike session using execute-assembly. It will retrieve the LAPS password from the Active Directory.
422 | - Link: [https://github.com/swisskyrepo/SharpLAPS](https://github.com/swisskyrepo/SharpLAPS)
423 | - **SharpMapExec**:
424 | - Description: Sharpen version of CrackMapExec
425 | - Link: [https://github.com/cube0x0/SharpMapExec](https://github.com/cube0x0/SharpMapExec)
426 | - **SharpMiniDump**:
427 | - Description: Create a minidump of the LSASS process from memory (Windows 10 - Windows Server 2016). The entire process uses dynamic API calls, direct syscall and Native API unhooking to evade the AV / EDR detection.
428 | - Link: [https://github.com/b4rtik/SharpMiniDump](https://github.com/b4rtik/SharpMiniDump)
429 | - **SharpMove**:
430 | - Description: .NET authenticated execution for remote hosts
431 | - Link: [https://github.com/0xthirteen/SharpMove](https://github.com/0xthirteen/SharpMove)
432 | - **SharpNamedPipePTH**:
433 | - Description: This project is a C# tool to use Pass-the-Hash for authentication on a local Named Pipe for user Impersonation. You need a local administrator or SEImpersonate rights to use this.
434 | - Link: [https://github.com/S3cur3Th1sSh1t/SharpNamedPipePTH](https://github.com/S3cur3Th1sSh1t/SharpNamedPipePTH)
435 | - **SharpNoPSExec**:
436 | - Description: File less command execution for lateral movement.
437 | - Link: [https://github.com/juliourena/SharpNoPSExec](https://github.com/juliourena/SharpNoPSExec)
438 | - **SharpPrinter**:
439 | - Description: Printer is a modified and console version of ListNetworks
440 | - Link: [https://github.com/rvrsh3ll/SharpPrinter](https://github.com/rvrsh3ll/SharpPrinter)
441 | - **SharpRDP**:
442 | - Description: Remote Desktop Protocol Console Application for Authenticated Command Execution
443 | - Link: [https://github.com/0xthirteen/SharpRDP](https://github.com/0xthirteen/SharpRDP)
444 | - **SharpReg**:
445 | - Description: SharpReg is a simple code set to interact with the Remote Registry service API using the same SMB process as reg.exe, which uses TCP port 445
446 | - Link: [https://github.com/jnqpblc/SharpReg](https://github.com/jnqpblc/SharpReg)
447 | - **SharpSCCM**:
448 | - Description: SharpSCCM is a post-exploitation tool designed to leverage Microsoft Endpoint Configuration Manager (a.k.a. ConfigMgr, formerly SCCM) for lateral movement and credential gathering without requiring access to the SCCM administration console GUI.
449 | - Link: [https://github.com/Mayyhem/SharpSCCM](https://github.com/Mayyhem/SharpSCCM)
450 | - **SharpScribbles**:
451 | - Description: Extracts data from the Windows Sticky Notes database. Works on Windows 10 Build 1607 and higher. This
452 | - Link: [https://github.com/V1V1/SharpScribbles](https://github.com/V1V1/SharpScribbles)
453 | - **SharpSearch**:
454 | - Description: Project to quickly filter through a file share for targeted files for desired information.
455 | - Link: [https://github.com/djhohnstein/SharpSearch](https://github.com/djhohnstein/SharpSearch)
456 | - **SharpSecDump**:
457 | - Description: .Net port of the remote SAM + LSA Secrets dumping functionality of impacket's secretsdump.py
458 | - Link: [https://github.com/G0ldenGunSec/SharpSecDump](https://github.com/G0ldenGunSec/SharpSecDump)
459 | - **SharpShares**:
460 | - Description: Quick and dirty binary to list network share information from all machines in the current domain and if they're readable.
461 | - Link: [https://github.com/djhohnstein/SharpShares](https://github.com/djhohnstein/SharpShares)
462 | - **SharpSniper**:
463 | - Description: SharpSniper is a simple tool to find the IP address of these users so that you can target their box.
464 | - Link: [https://github.com/HunnicCyber/SharpSniper](https://github.com/HunnicCyber/SharpSniper)
465 | - **SharpSphere**:
466 | - Description: SharpSphere gives red teamers the ability to easily interact with the guest operating systems of virtual machines managed by vCenter
467 | - Link: [https://github.com/JamesCooteUK/SharpSphere](https://github.com/JamesCooteUK/SharpSphere)
468 | - **SharpSpray**:
469 | - Description: SharpSpray a simple code set to perform a password spraying attack against all users of a domain using LDAP and is compatible with Cobalt Strike.
470 | - Link: [https://github.com/jnqpblc/SharpSpray](https://github.com/jnqpblc/SharpSpray)
471 | - **SharpSQLPwn**:
472 | - Description: C# tool to identify and exploit weaknesses with MSSQL instances in Active Directory environments
473 | - Link: [https://github.com/lefayjey/SharpSQLPwn](https://github.com/lefayjey/SharpSQLPwn)
474 | - **SharpStay**:
475 | - Description: .NET Persistence
476 | - Link: [https://github.com/0xthirteen/SharpStay](https://github.com/0xthirteen/SharpStay)
477 | - **SharpSvc**:
478 | - Description: SharpSvc is a simple code set to interact with the SC Manager API using the same DCERPC process as sc.exe, which open with TCP port 135 and is followed by the use of an ephemeral TCP port
479 | - Link: [https://github.com/jnqpblc/SharpSvc](https://github.com/jnqpblc/SharpSvc)
480 | - **SharpTask**:
481 | - Description: SharpTask is a simple code set to interact with the Task Scheduler service API using the same DCERPC process as schtasks.exe, which open with TCP port 135 and is followed by the use of an ephemeral TCP port.
482 | - Link: [https://github.com/jnqpblc/SharpTask](https://github.com/jnqpblc/SharpTask)
483 | - **SharpUp**:
484 | - Description: SharpUp is a C# port of various PowerUp functionality
485 | - Link: [https://github.com/GhostPack/SharpUp](https://github.com/GhostPack/SharpUp)
486 | - **SharpView**:
487 | - Description: .NET port of PowerView
488 | - Link: [https://github.com/tevora-threat/SharpView](https://github.com/tevora-threat/SharpView)
489 | - **SharpWebServer**:
490 | - Description: Red Team oriented simple HTTP & WebDAV server written in C# with functionality to capture Net-NTLM hashes
491 | - Link: [https://github.com/mgeeky/SharpWebServer](https://github.com/mgeeky/SharpWebServer)
492 | - **SharpWifiGrabber**:
493 | - Description: Retrieves in clear-text the Wi-Fi Passwords from all WLAN Profiles saved on a workstation
494 | - Link: [https://github.com/r3nhat/SharpWifiGrabber](https://github.com/r3nhat/SharpWifiGrabber)
495 | - **SharpWMI**:
496 | - Description: SharpWMI is a C# implementation of various WMI functionality.
497 | - Link: [https://github.com/GhostPack/SharpWMI](https://github.com/GhostPack/SharpWMI)
498 | - **SharpZeroLogon**:
499 | - Description: An exploit for CVE-2020-1472, a.k.a. Zerologon. This tool exploits a cryptographic vulnerability in Netlogon to achieve authentication bypass.
500 | - Link: [https://github.com/nccgroup/nccfsas](https://github.com/nccgroup/nccfsas)
501 | - **Shhmon**:
502 | - Description: While Sysmon's driver can be renamed at installation, it is always loaded at altitude 385201. The objective of this tool is to challenge the assumption that our defensive tools are always collecting events.
503 | - Link: [https://github.com/matterpreter/Shhmon](https://github.com/matterpreter/Shhmon)
504 | - **Snaffler**:
505 | - Description: Snaffler is a tool for pentesters and red teamers to help find delicious candy needles (creds mostly, but it's flexible) in a bunch of horrible boring haystacks (a massive Windows/AD environment).
506 | - Link: [https://github.com/SnaffCon/Snaffler](https://github.com/SnaffCon/Snaffler)
507 | - **SqlClient**:
508 | - Description: C# .NET mssql client for accessing database data through beacon.
509 | - Link: [https://github.com/FortyNorthSecurity/SqlClient](https://github.com/FortyNorthSecurity/SqlClient)
510 | - **StandIn**:
511 | - Description: StandIn is a small AD post-compromise toolkit
512 | - Link: [https://github.com/FuzzySecurity/StandIn](https://github.com/FuzzySecurity/StandIn)
513 | - **SweetPotato**:
514 | - Description: A collection of various native Windows privilege escalation techniques from service accounts to SYSTEM
515 | - Link: [https://github.com/CCob/SweetPotato](https://github.com/CCob/SweetPotato)
516 | - **ThreatCheck**:
517 | - Description: Modified version of Matterpreter's DefenderCheck
518 | - Link: [https://github.com/rasta-mouse/ThreatCheck](https://github.com/rasta-mouse/ThreatCheck)
519 | - **TokenStomp**:
520 | - Description: C# POC for the token privilege removal flaw reported
521 | - Link: [https://github.com/MartinIngesen/TokenStomp](https://github.com/MartinIngesen/TokenStomp)
522 | - **TruffleSnout**:
523 | - Description: Iterative AD discovery toolkit for offensive operators
524 | - Link: [https://github.com/dsnezhkov/TruffleSnout](https://github.com/dsnezhkov/TruffleSnout)
525 | - **Watson**:
526 | - Description: Watson is a .NET tool designed to enumerate missing KBs and suggest exploits for Privilege Escalation vulnerabilities.
527 | - Link: [https://github.com/rasta-mouse/Watson](https://github.com/rasta-mouse/Watson)
528 | - **Whisker**:
529 | - Description: Whisker is a C# tool for taking over Active Directory user and computer accounts by manipulating their msDS-KeyCredentialLink attribute, effectively adding "Shadow Credentials" to the target account.
530 | - Link: [https://github.com/eladshamir/Whisker](https://github.com/eladshamir/Whisker)
531 | - **winPEAS**:
532 | - Description: Privilege Escalation Awesome Scripts SUITE
533 | - Link: [https://github.com/carlospolop/privilege-escalation-awesome-scripts-suite](https://github.com/carlospolop/privilege-escalation-awesome-scripts-suite)
534 | - **WMIReg**:
535 | - Description: Whisker is a C# tool for taking over Active Directory user and computer accounts by manipulating their msDS-KeyCredentialLink attribute.
536 | - Link: [https://github.com/airzero24/WMIReg](https://github.com/airzero24/WMIReg)
537 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | GNU GENERAL PUBLIC LICENSE
2 | Version 3, 29 June 2007
3 |
4 | Copyright (C) 2007 Free Software Foundation, Inc.
5 | Everyone is permitted to copy and distribute verbatim copies
6 | of this license document, but changing it is not allowed.
7 |
8 | Preamble
9 |
10 | The GNU General Public License is a free, copyleft license for
11 | software and other kinds of works.
12 |
13 | The licenses for most software and other practical works are designed
14 | to take away your freedom to share and change the works. By contrast,
15 | the GNU General Public License is intended to guarantee your freedom to
16 | share and change all versions of a program--to make sure it remains free
17 | software for all its users. We, the Free Software Foundation, use the
18 | GNU General Public License for most of our software; it applies also to
19 | any other work released this way by its authors. You can apply it to
20 | your programs, too.
21 |
22 | When we speak of free software, we are referring to freedom, not
23 | price. Our General Public Licenses are designed to make sure that you
24 | have the freedom to distribute copies of free software (and charge for
25 | them if you wish), that you receive source code or can get it if you
26 | want it, that you can change the software or use pieces of it in new
27 | free programs, and that you know you can do these things.
28 |
29 | To protect your rights, we need to prevent others from denying you
30 | these rights or asking you to surrender the rights. Therefore, you have
31 | certain responsibilities if you distribute copies of the software, or if
32 | you modify it: responsibilities to respect the freedom of others.
33 |
34 | For example, if you distribute copies of such a program, whether
35 | gratis or for a fee, you must pass on to the recipients the same
36 | freedoms that you received. You must make sure that they, too, receive
37 | or can get the source code. And you must show them these terms so they
38 | know their rights.
39 |
40 | Developers that use the GNU GPL protect your rights with two steps:
41 | (1) assert copyright on the software, and (2) offer you this License
42 | giving you legal permission to copy, distribute and/or modify it.
43 |
44 | For the developers' and authors' protection, the GPL clearly explains
45 | that there is no warranty for this free software. For both users' and
46 | authors' sake, the GPL requires that modified versions be marked as
47 | changed, so that their problems will not be attributed erroneously to
48 | authors of previous versions.
49 |
50 | Some devices are designed to deny users access to install or run
51 | modified versions of the software inside them, although the manufacturer
52 | can do so. This is fundamentally incompatible with the aim of
53 | protecting users' freedom to change the software. The systematic
54 | pattern of such abuse occurs in the area of products for individuals to
55 | use, which is precisely where it is most unacceptable. Therefore, we
56 | have designed this version of the GPL to prohibit the practice for those
57 | products. If such problems arise substantially in other domains, we
58 | stand ready to extend this provision to those domains in future versions
59 | of the GPL, as needed to protect the freedom of users.
60 |
61 | Finally, every program is threatened constantly by software patents.
62 | States should not allow patents to restrict development and use of
63 | software on general-purpose computers, but in those that do, we wish to
64 | avoid the special danger that patents applied to a free program could
65 | make it effectively proprietary. To prevent this, the GPL assures that
66 | patents cannot be used to render the program non-free.
67 |
68 | The precise terms and conditions for copying, distribution and
69 | modification follow.
70 |
71 | TERMS AND CONDITIONS
72 |
73 | 0. Definitions.
74 |
75 | "This License" refers to version 3 of the GNU General Public License.
76 |
77 | "Copyright" also means copyright-like laws that apply to other kinds of
78 | works, such as semiconductor masks.
79 |
80 | "The Program" refers to any copyrightable work licensed under this
81 | License. Each licensee is addressed as "you". "Licensees" and
82 | "recipients" may be individuals or organizations.
83 |
84 | To "modify" a work means to copy from or adapt all or part of the work
85 | in a fashion requiring copyright permission, other than the making of an
86 | exact copy. The resulting work is called a "modified version" of the
87 | earlier work or a work "based on" the earlier work.
88 |
89 | A "covered work" means either the unmodified Program or a work based
90 | on the Program.
91 |
92 | To "propagate" a work means to do anything with it that, without
93 | permission, would make you directly or secondarily liable for
94 | infringement under applicable copyright law, except executing it on a
95 | computer or modifying a private copy. Propagation includes copying,
96 | distribution (with or without modification), making available to the
97 | public, and in some countries other activities as well.
98 |
99 | To "convey" a work means any kind of propagation that enables other
100 | parties to make or receive copies. Mere interaction with a user through
101 | a computer network, with no transfer of a copy, is not conveying.
102 |
103 | An interactive user interface displays "Appropriate Legal Notices"
104 | to the extent that it includes a convenient and prominently visible
105 | feature that (1) displays an appropriate copyright notice, and (2)
106 | tells the user that there is no warranty for the work (except to the
107 | extent that warranties are provided), that licensees may convey the
108 | work under this License, and how to view a copy of this License. If
109 | the interface presents a list of user commands or options, such as a
110 | menu, a prominent item in the list meets this criterion.
111 |
112 | 1. Source Code.
113 |
114 | The "source code" for a work means the preferred form of the work
115 | for making modifications to it. "Object code" means any non-source
116 | form of a work.
117 |
118 | A "Standard Interface" means an interface that either is an official
119 | standard defined by a recognized standards body, or, in the case of
120 | interfaces specified for a particular programming language, one that
121 | is widely used among developers working in that language.
122 |
123 | The "System Libraries" of an executable work include anything, other
124 | than the work as a whole, that (a) is included in the normal form of
125 | packaging a Major Component, but which is not part of that Major
126 | Component, and (b) serves only to enable use of the work with that
127 | Major Component, or to implement a Standard Interface for which an
128 | implementation is available to the public in source code form. A
129 | "Major Component", in this context, means a major essential component
130 | (kernel, window system, and so on) of the specific operating system
131 | (if any) on which the executable work runs, or a compiler used to
132 | produce the work, or an object code interpreter used to run it.
133 |
134 | The "Corresponding Source" for a work in object code form means all
135 | the source code needed to generate, install, and (for an executable
136 | work) run the object code and to modify the work, including scripts to
137 | control those activities. However, it does not include the work's
138 | System Libraries, or general-purpose tools or generally available free
139 | programs which are used unmodified in performing those activities but
140 | which are not part of the work. For example, Corresponding Source
141 | includes interface definition files associated with source files for
142 | the work, and the source code for shared libraries and dynamically
143 | linked subprograms that the work is specifically designed to require,
144 | such as by intimate data communication or control flow between those
145 | subprograms and other parts of the work.
146 |
147 | The Corresponding Source need not include anything that users
148 | can regenerate automatically from other parts of the Corresponding
149 | Source.
150 |
151 | The Corresponding Source for a work in source code form is that
152 | same work.
153 |
154 | 2. Basic Permissions.
155 |
156 | All rights granted under this License are granted for the term of
157 | copyright on the Program, and are irrevocable provided the stated
158 | conditions are met. This License explicitly affirms your unlimited
159 | permission to run the unmodified Program. The output from running a
160 | covered work is covered by this License only if the output, given its
161 | content, constitutes a covered work. This License acknowledges your
162 | rights of fair use or other equivalent, as provided by copyright law.
163 |
164 | You may make, run and propagate covered works that you do not
165 | convey, without conditions so long as your license otherwise remains
166 | in force. You may convey covered works to others for the sole purpose
167 | of having them make modifications exclusively for you, or provide you
168 | with facilities for running those works, provided that you comply with
169 | the terms of this License in conveying all material for which you do
170 | not control copyright. Those thus making or running the covered works
171 | for you must do so exclusively on your behalf, under your direction
172 | and control, on terms that prohibit them from making any copies of
173 | your copyrighted material outside their relationship with you.
174 |
175 | Conveying under any other circumstances is permitted solely under
176 | the conditions stated below. Sublicensing is not allowed; section 10
177 | makes it unnecessary.
178 |
179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
180 |
181 | No covered work shall be deemed part of an effective technological
182 | measure under any applicable law fulfilling obligations under article
183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or
184 | similar laws prohibiting or restricting circumvention of such
185 | measures.
186 |
187 | When you convey a covered work, you waive any legal power to forbid
188 | circumvention of technological measures to the extent such circumvention
189 | is effected by exercising rights under this License with respect to
190 | the covered work, and you disclaim any intention to limit operation or
191 | modification of the work as a means of enforcing, against the work's
192 | users, your or third parties' legal rights to forbid circumvention of
193 | technological measures.
194 |
195 | 4. Conveying Verbatim Copies.
196 |
197 | You may convey verbatim copies of the Program's source code as you
198 | receive it, in any medium, provided that you conspicuously and
199 | appropriately publish on each copy an appropriate copyright notice;
200 | keep intact all notices stating that this License and any
201 | non-permissive terms added in accord with section 7 apply to the code;
202 | keep intact all notices of the absence of any warranty; and give all
203 | recipients a copy of this License along with the Program.
204 |
205 | You may charge any price or no price for each copy that you convey,
206 | and you may offer support or warranty protection for a fee.
207 |
208 | 5. Conveying Modified Source Versions.
209 |
210 | You may convey a work based on the Program, or the modifications to
211 | produce it from the Program, in the form of source code under the
212 | terms of section 4, provided that you also meet all of these conditions:
213 |
214 | a) The work must carry prominent notices stating that you modified
215 | it, and giving a relevant date.
216 |
217 | b) The work must carry prominent notices stating that it is
218 | released under this License and any conditions added under section
219 | 7. This requirement modifies the requirement in section 4 to
220 | "keep intact all notices".
221 |
222 | c) You must license the entire work, as a whole, under this
223 | License to anyone who comes into possession of a copy. This
224 | License will therefore apply, along with any applicable section 7
225 | additional terms, to the whole of the work, and all its parts,
226 | regardless of how they are packaged. This License gives no
227 | permission to license the work in any other way, but it does not
228 | invalidate such permission if you have separately received it.
229 |
230 | d) If the work has interactive user interfaces, each must display
231 | Appropriate Legal Notices; however, if the Program has interactive
232 | interfaces that do not display Appropriate Legal Notices, your
233 | work need not make them do so.
234 |
235 | A compilation of a covered work with other separate and independent
236 | works, which are not by their nature extensions of the covered work,
237 | and which are not combined with it such as to form a larger program,
238 | in or on a volume of a storage or distribution medium, is called an
239 | "aggregate" if the compilation and its resulting copyright are not
240 | used to limit the access or legal rights of the compilation's users
241 | beyond what the individual works permit. Inclusion of a covered work
242 | in an aggregate does not cause this License to apply to the other
243 | parts of the aggregate.
244 |
245 | 6. Conveying Non-Source Forms.
246 |
247 | You may convey a covered work in object code form under the terms
248 | of sections 4 and 5, provided that you also convey the
249 | machine-readable Corresponding Source under the terms of this License,
250 | in one of these ways:
251 |
252 | a) Convey the object code in, or embodied in, a physical product
253 | (including a physical distribution medium), accompanied by the
254 | Corresponding Source fixed on a durable physical medium
255 | customarily used for software interchange.
256 |
257 | b) Convey the object code in, or embodied in, a physical product
258 | (including a physical distribution medium), accompanied by a
259 | written offer, valid for at least three years and valid for as
260 | long as you offer spare parts or customer support for that product
261 | model, to give anyone who possesses the object code either (1) a
262 | copy of the Corresponding Source for all the software in the
263 | product that is covered by this License, on a durable physical
264 | medium customarily used for software interchange, for a price no
265 | more than your reasonable cost of physically performing this
266 | conveying of source, or (2) access to copy the
267 | Corresponding Source from a network server at no charge.
268 |
269 | c) Convey individual copies of the object code with a copy of the
270 | written offer to provide the Corresponding Source. This
271 | alternative is allowed only occasionally and noncommercially, and
272 | only if you received the object code with such an offer, in accord
273 | with subsection 6b.
274 |
275 | d) Convey the object code by offering access from a designated
276 | place (gratis or for a charge), and offer equivalent access to the
277 | Corresponding Source in the same way through the same place at no
278 | further charge. You need not require recipients to copy the
279 | Corresponding Source along with the object code. If the place to
280 | copy the object code is a network server, the Corresponding Source
281 | may be on a different server (operated by you or a third party)
282 | that supports equivalent copying facilities, provided you maintain
283 | clear directions next to the object code saying where to find the
284 | Corresponding Source. Regardless of what server hosts the
285 | Corresponding Source, you remain obligated to ensure that it is
286 | available for as long as needed to satisfy these requirements.
287 |
288 | e) Convey the object code using peer-to-peer transmission, provided
289 | you inform other peers where the object code and Corresponding
290 | Source of the work are being offered to the general public at no
291 | charge under subsection 6d.
292 |
293 | A separable portion of the object code, whose source code is excluded
294 | from the Corresponding Source as a System Library, need not be
295 | included in conveying the object code work.
296 |
297 | A "User Product" is either (1) a "consumer product", which means any
298 | tangible personal property which is normally used for personal, family,
299 | or household purposes, or (2) anything designed or sold for incorporation
300 | into a dwelling. In determining whether a product is a consumer product,
301 | doubtful cases shall be resolved in favor of coverage. For a particular
302 | product received by a particular user, "normally used" refers to a
303 | typical or common use of that class of product, regardless of the status
304 | of the particular user or of the way in which the particular user
305 | actually uses, or expects or is expected to use, the product. A product
306 | is a consumer product regardless of whether the product has substantial
307 | commercial, industrial or non-consumer uses, unless such uses represent
308 | the only significant mode of use of the product.
309 |
310 | "Installation Information" for a User Product means any methods,
311 | procedures, authorization keys, or other information required to install
312 | and execute modified versions of a covered work in that User Product from
313 | a modified version of its Corresponding Source. The information must
314 | suffice to ensure that the continued functioning of the modified object
315 | code is in no case prevented or interfered with solely because
316 | modification has been made.
317 |
318 | If you convey an object code work under this section in, or with, or
319 | specifically for use in, a User Product, and the conveying occurs as
320 | part of a transaction in which the right of possession and use of the
321 | User Product is transferred to the recipient in perpetuity or for a
322 | fixed term (regardless of how the transaction is characterized), the
323 | Corresponding Source conveyed under this section must be accompanied
324 | by the Installation Information. But this requirement does not apply
325 | if neither you nor any third party retains the ability to install
326 | modified object code on the User Product (for example, the work has
327 | been installed in ROM).
328 |
329 | The requirement to provide Installation Information does not include a
330 | requirement to continue to provide support service, warranty, or updates
331 | for a work that has been modified or installed by the recipient, or for
332 | the User Product in which it has been modified or installed. Access to a
333 | network may be denied when the modification itself materially and
334 | adversely affects the operation of the network or violates the rules and
335 | protocols for communication across the network.
336 |
337 | Corresponding Source conveyed, and Installation Information provided,
338 | in accord with this section must be in a format that is publicly
339 | documented (and with an implementation available to the public in
340 | source code form), and must require no special password or key for
341 | unpacking, reading or copying.
342 |
343 | 7. Additional Terms.
344 |
345 | "Additional permissions" are terms that supplement the terms of this
346 | License by making exceptions from one or more of its conditions.
347 | Additional permissions that are applicable to the entire Program shall
348 | be treated as though they were included in this License, to the extent
349 | that they are valid under applicable law. If additional permissions
350 | apply only to part of the Program, that part may be used separately
351 | under those permissions, but the entire Program remains governed by
352 | this License without regard to the additional permissions.
353 |
354 | When you convey a copy of a covered work, you may at your option
355 | remove any additional permissions from that copy, or from any part of
356 | it. (Additional permissions may be written to require their own
357 | removal in certain cases when you modify the work.) You may place
358 | additional permissions on material, added by you to a covered work,
359 | for which you have or can give appropriate copyright permission.
360 |
361 | Notwithstanding any other provision of this License, for material you
362 | add to a covered work, you may (if authorized by the copyright holders of
363 | that material) supplement the terms of this License with terms:
364 |
365 | a) Disclaiming warranty or limiting liability differently from the
366 | terms of sections 15 and 16 of this License; or
367 |
368 | b) Requiring preservation of specified reasonable legal notices or
369 | author attributions in that material or in the Appropriate Legal
370 | Notices displayed by works containing it; or
371 |
372 | c) Prohibiting misrepresentation of the origin of that material, or
373 | requiring that modified versions of such material be marked in
374 | reasonable ways as different from the original version; or
375 |
376 | d) Limiting the use for publicity purposes of names of licensors or
377 | authors of the material; or
378 |
379 | e) Declining to grant rights under trademark law for use of some
380 | trade names, trademarks, or service marks; or
381 |
382 | f) Requiring indemnification of licensors and authors of that
383 | material by anyone who conveys the material (or modified versions of
384 | it) with contractual assumptions of liability to the recipient, for
385 | any liability that these contractual assumptions directly impose on
386 | those licensors and authors.
387 |
388 | All other non-permissive additional terms are considered "further
389 | restrictions" within the meaning of section 10. If the Program as you
390 | received it, or any part of it, contains a notice stating that it is
391 | governed by this License along with a term that is a further
392 | restriction, you may remove that term. If a license document contains
393 | a further restriction but permits relicensing or conveying under this
394 | License, you may add to a covered work material governed by the terms
395 | of that license document, provided that the further restriction does
396 | not survive such relicensing or conveying.
397 |
398 | If you add terms to a covered work in accord with this section, you
399 | must place, in the relevant source files, a statement of the
400 | additional terms that apply to those files, or a notice indicating
401 | where to find the applicable terms.
402 |
403 | Additional terms, permissive or non-permissive, may be stated in the
404 | form of a separately written license, or stated as exceptions;
405 | the above requirements apply either way.
406 |
407 | 8. Termination.
408 |
409 | You may not propagate or modify a covered work except as expressly
410 | provided under this License. Any attempt otherwise to propagate or
411 | modify it is void, and will automatically terminate your rights under
412 | this License (including any patent licenses granted under the third
413 | paragraph of section 11).
414 |
415 | However, if you cease all violation of this License, then your
416 | license from a particular copyright holder is reinstated (a)
417 | provisionally, unless and until the copyright holder explicitly and
418 | finally terminates your license, and (b) permanently, if the copyright
419 | holder fails to notify you of the violation by some reasonable means
420 | prior to 60 days after the cessation.
421 |
422 | Moreover, your license from a particular copyright holder is
423 | reinstated permanently if the copyright holder notifies you of the
424 | violation by some reasonable means, this is the first time you have
425 | received notice of violation of this License (for any work) from that
426 | copyright holder, and you cure the violation prior to 30 days after
427 | your receipt of the notice.
428 |
429 | Termination of your rights under this section does not terminate the
430 | licenses of parties who have received copies or rights from you under
431 | this License. If your rights have been terminated and not permanently
432 | reinstated, you do not qualify to receive new licenses for the same
433 | material under section 10.
434 |
435 | 9. Acceptance Not Required for Having Copies.
436 |
437 | You are not required to accept this License in order to receive or
438 | run a copy of the Program. Ancillary propagation of a covered work
439 | occurring solely as a consequence of using peer-to-peer transmission
440 | to receive a copy likewise does not require acceptance. However,
441 | nothing other than this License grants you permission to propagate or
442 | modify any covered work. These actions infringe copyright if you do
443 | not accept this License. Therefore, by modifying or propagating a
444 | covered work, you indicate your acceptance of this License to do so.
445 |
446 | 10. Automatic Licensing of Downstream Recipients.
447 |
448 | Each time you convey a covered work, the recipient automatically
449 | receives a license from the original licensors, to run, modify and
450 | propagate that work, subject to this License. You are not responsible
451 | for enforcing compliance by third parties with this License.
452 |
453 | An "entity transaction" is a transaction transferring control of an
454 | organization, or substantially all assets of one, or subdividing an
455 | organization, or merging organizations. If propagation of a covered
456 | work results from an entity transaction, each party to that
457 | transaction who receives a copy of the work also receives whatever
458 | licenses to the work the party's predecessor in interest had or could
459 | give under the previous paragraph, plus a right to possession of the
460 | Corresponding Source of the work from the predecessor in interest, if
461 | the predecessor has it or can get it with reasonable efforts.
462 |
463 | You may not impose any further restrictions on the exercise of the
464 | rights granted or affirmed under this License. For example, you may
465 | not impose a license fee, royalty, or other charge for exercise of
466 | rights granted under this License, and you may not initiate litigation
467 | (including a cross-claim or counterclaim in a lawsuit) alleging that
468 | any patent claim is infringed by making, using, selling, offering for
469 | sale, or importing the Program or any portion of it.
470 |
471 | 11. Patents.
472 |
473 | A "contributor" is a copyright holder who authorizes use under this
474 | License of the Program or a work on which the Program is based. The
475 | work thus licensed is called the contributor's "contributor version".
476 |
477 | A contributor's "essential patent claims" are all patent claims
478 | owned or controlled by the contributor, whether already acquired or
479 | hereafter acquired, that would be infringed by some manner, permitted
480 | by this License, of making, using, or selling its contributor version,
481 | but do not include claims that would be infringed only as a
482 | consequence of further modification of the contributor version. For
483 | purposes of this definition, "control" includes the right to grant
484 | patent sublicenses in a manner consistent with the requirements of
485 | this License.
486 |
487 | Each contributor grants you a non-exclusive, worldwide, royalty-free
488 | patent license under the contributor's essential patent claims, to
489 | make, use, sell, offer for sale, import and otherwise run, modify and
490 | propagate the contents of its contributor version.
491 |
492 | In the following three paragraphs, a "patent license" is any express
493 | agreement or commitment, however denominated, not to enforce a patent
494 | (such as an express permission to practice a patent or covenant not to
495 | sue for patent infringement). To "grant" such a patent license to a
496 | party means to make such an agreement or commitment not to enforce a
497 | patent against the party.
498 |
499 | If you convey a covered work, knowingly relying on a patent license,
500 | and the Corresponding Source of the work is not available for anyone
501 | to copy, free of charge and under the terms of this License, through a
502 | publicly available network server or other readily accessible means,
503 | then you must either (1) cause the Corresponding Source to be so
504 | available, or (2) arrange to deprive yourself of the benefit of the
505 | patent license for this particular work, or (3) arrange, in a manner
506 | consistent with the requirements of this License, to extend the patent
507 | license to downstream recipients. "Knowingly relying" means you have
508 | actual knowledge that, but for the patent license, your conveying the
509 | covered work in a country, or your recipient's use of the covered work
510 | in a country, would infringe one or more identifiable patents in that
511 | country that you have reason to believe are valid.
512 |
513 | If, pursuant to or in connection with a single transaction or
514 | arrangement, you convey, or propagate by procuring conveyance of, a
515 | covered work, and grant a patent license to some of the parties
516 | receiving the covered work authorizing them to use, propagate, modify
517 | or convey a specific copy of the covered work, then the patent license
518 | you grant is automatically extended to all recipients of the covered
519 | work and works based on it.
520 |
521 | A patent license is "discriminatory" if it does not include within
522 | the scope of its coverage, prohibits the exercise of, or is
523 | conditioned on the non-exercise of one or more of the rights that are
524 | specifically granted under this License. You may not convey a covered
525 | work if you are a party to an arrangement with a third party that is
526 | in the business of distributing software, under which you make payment
527 | to the third party based on the extent of your activity of conveying
528 | the work, and under which the third party grants, to any of the
529 | parties who would receive the covered work from you, a discriminatory
530 | patent license (a) in connection with copies of the covered work
531 | conveyed by you (or copies made from those copies), or (b) primarily
532 | for and in connection with specific products or compilations that
533 | contain the covered work, unless you entered into that arrangement,
534 | or that patent license was granted, prior to 28 March 2007.
535 |
536 | Nothing in this License shall be construed as excluding or limiting
537 | any implied license or other defenses to infringement that may
538 | otherwise be available to you under applicable patent law.
539 |
540 | 12. No Surrender of Others' Freedom.
541 |
542 | If conditions are imposed on you (whether by court order, agreement or
543 | otherwise) that contradict the conditions of this License, they do not
544 | excuse you from the conditions of this License. If you cannot convey a
545 | covered work so as to satisfy simultaneously your obligations under this
546 | License and any other pertinent obligations, then as a consequence you may
547 | not convey it at all. For example, if you agree to terms that obligate you
548 | to collect a royalty for further conveying from those to whom you convey
549 | the Program, the only way you could satisfy both those terms and this
550 | License would be to refrain entirely from conveying the Program.
551 |
552 | 13. Use with the GNU Affero General Public License.
553 |
554 | Notwithstanding any other provision of this License, you have
555 | permission to link or combine any covered work with a work licensed
556 | under version 3 of the GNU Affero General Public License into a single
557 | combined work, and to convey the resulting work. The terms of this
558 | License will continue to apply to the part which is the covered work,
559 | but the special requirements of the GNU Affero General Public License,
560 | section 13, concerning interaction through a network will apply to the
561 | combination as such.
562 |
563 | 14. Revised Versions of this License.
564 |
565 | The Free Software Foundation may publish revised and/or new versions of
566 | the GNU General Public License from time to time. Such new versions will
567 | be similar in spirit to the present version, but may differ in detail to
568 | address new problems or concerns.
569 |
570 | Each version is given a distinguishing version number. If the
571 | Program specifies that a certain numbered version of the GNU General
572 | Public License "or any later version" applies to it, you have the
573 | option of following the terms and conditions either of that numbered
574 | version or of any later version published by the Free Software
575 | Foundation. If the Program does not specify a version number of the
576 | GNU General Public License, you may choose any version ever published
577 | by the Free Software Foundation.
578 |
579 | If the Program specifies that a proxy can decide which future
580 | versions of the GNU General Public License can be used, that proxy's
581 | public statement of acceptance of a version permanently authorizes you
582 | to choose that version for the Program.
583 |
584 | Later license versions may give you additional or different
585 | permissions. However, no additional obligations are imposed on any
586 | author or copyright holder as a result of your choosing to follow a
587 | later version.
588 |
589 | 15. Disclaimer of Warranty.
590 |
591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
599 |
600 | 16. Limitation of Liability.
601 |
602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
610 | SUCH DAMAGES.
611 |
612 | 17. Interpretation of Sections 15 and 16.
613 |
614 | If the disclaimer of warranty and limitation of liability provided
615 | above cannot be given local legal effect according to their terms,
616 | reviewing courts shall apply local law that most closely approximates
617 | an absolute waiver of all civil liability in connection with the
618 | Program, unless a warranty or assumption of liability accompanies a
619 | copy of the Program in return for a fee.
620 |
621 | END OF TERMS AND CONDITIONS
622 |
623 | How to Apply These Terms to Your New Programs
624 |
625 | If you develop a new program, and you want it to be of the greatest
626 | possible use to the public, the best way to achieve this is to make it
627 | free software which everyone can redistribute and change under these terms.
628 |
629 | To do so, attach the following notices to the program. It is safest
630 | to attach them to the start of each source file to most effectively
631 | state the exclusion of warranty; and each file should have at least
632 | the "copyright" line and a pointer to where the full notice is found.
633 |
634 |
635 | Copyright (C)
636 |
637 | This program is free software: you can redistribute it and/or modify
638 | it under the terms of the GNU General Public License as published by
639 | the Free Software Foundation, either version 3 of the License, or
640 | (at your option) any later version.
641 |
642 | This program is distributed in the hope that it will be useful,
643 | but WITHOUT ANY WARRANTY; without even the implied warranty of
644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
645 | GNU General Public License for more details.
646 |
647 | You should have received a copy of the GNU General Public License
648 | along with this program. If not, see .
649 |
650 | Also add information on how to contact you by electronic and paper mail.
651 |
652 | If the program does terminal interaction, make it output a short
653 | notice like this when it starts in an interactive mode:
654 |
655 | Copyright (C)
656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
657 | This is free software, and you are welcome to redistribute it
658 | under certain conditions; type `show c' for details.
659 |
660 | The hypothetical commands `show w' and `show c' should show the appropriate
661 | parts of the General Public License. Of course, your program's commands
662 | might be different; for a GUI interface, you would use an "about box".
663 |
664 | You should also get your employer (if you work as a programmer) or school,
665 | if any, to sign a "copyright disclaimer" for the program, if necessary.
666 | For more information on this, and how to apply and follow the GNU GPL, see
667 | .
668 |
669 | The GNU General Public License does not permit incorporating your program
670 | into proprietary programs. If your program is a subroutine library, you
671 | may consider it more useful to permit linking proprietary applications with
672 | the library. If this is what you want to do, use the GNU Lesser General
673 | Public License instead of this License. But first, please read
674 | .
675 |
--------------------------------------------------------------------------------