Skip to content

Instantly share code, notes, and snippets.

View 3xocyte's full-sized avatar

Matt Bush 3xocyte

  • Atlassian
  • Melbourne, Australia
View GitHub Profile
@3xocyte
3xocyte / scriptinjector.cs
Last active October 6, 2018 00:19
a small buggy utility inspired by chapter 10 of Black Hat Python by Justin Seitz
using System;
using System.IO;
using System.Text;
using System.Linq;
using System.Collections.Generic;
// ephemeral script injector by @3xocyte
// takes a target directory to watch, and an OS command to attempt to inject into any scripts that get modified
namespace FileContentInjector
@3xocyte
3xocyte / tcpshell.cs
Last active August 13, 2018 07:42
Reverse TCP shell with PS runspace
using System;
using System.Text;
using System.Net.Sockets;
using System.Management.Automation;
using System.Management.Automation.Runspaces;
using System.Collections.ObjectModel;
using System.Diagnostics;
// reverse TCP shell with powershell runspace
// by @3xocyte