Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# use with caution all user accounts that have
# a github account and exists on the system
# will be able to logon to this system
# make sure you have curl and jq installed
user=$1
@nl5887
nl5887 / gist:651e09f3063f7c71e7660182081c8a25
Created February 6, 2017 16:29
Freedom Hosting II - table names
1 06leydQzN1
1 1
1 123123
1 1captcha
1 1filter
1 1ignored
1 1linkfilter
1 1members
1 1messages
1 1notes
curl "http://127.0.0.1:9208/_search?q=\"72.234.48.150\"&size=1000"|jq -r '.hits.hits[]._source|[.host,.method,.request_uri,.date,.useragent,.proto]|@csv' > /tmp/data.txt Wed Mar 1 12:35:11 CET 2017
@nl5887
nl5887 / artikel1.org.txt
Last active March 2, 2017 19:52
50pluspartij.nl.txt
Check Email
Verify configuration of domain and email settings.
by DutchSec
----------------
+++++++ DKIM +++++++++++++++++++++++++++++++++++++++++++++++++++++++
[! ] [artikel1.org] No default DKIM records configured.
+++++++ DMARC +++++++++++++++++++++++++++++++++++++++++++++++++++++++
[!!] [artikel1.org] No DMARC records configured.
Check Email
Verify configuration of domain and email settings.
by DutchSec
----------------
---- DKIM ----------------------------------------------------------------------------
[! ] [surfnet.nl] No default DKIM records configured.
---- DMARC ---------------------------------------------------------------------------
[ ] [surfnet.nl] DMARC [v=DMARC1; p=none; rua=mailto:sysmon@surfnet.nl; ri=86400]
[OK] [surfnet.nl] DMARC Records configured
@nl5887
nl5887 / main.go
Created May 4, 2017 00:11
Resumable upload for Google Cloud Storage
// This code shows how to use the resumable upload with Google Cloud Storage. The default libraries don't support
// using resumable uploads.
// Courtesy of: https://github.com/GoogleCloudPlatform/gcsfuse/blob/master/vendor/github.com/jacobsa/gcloud/gcs/create_object.go#L54
package main
import (
"bytes"
"context"
@nl5887
nl5887 / challenges.md
Created May 22, 2017 09:38
Challenges

Through a series of levels you'll learn about common mistakes and gotchas when using Amazon Web Services (AWS). There are no SQL injection, XSS, buffer overflows, or many of the other vulnerabilities you might have seen before. As much as possible, these are AWS specific issues.

The Eudyptula Challenge was a series of programming exercises for the Linux kernel, that started from a very basic "Hello world" kernel module, moving on up in complexity to getting patches accepted into the main Linux kernel source tree.

This is a different way to learn about crypto than taking a class or reading a book. We give you problems to solve. They're derived from weaknesses in real-world systems and modern cryptographic constructions. We give you enough info to learn about the underlying crypto concepts yourself. When you're finished, you'll not only have learned a good deal about how cryptosystems are

@nl5887
nl5887 / tld.txt
Created June 13, 2017 14:53
List of all top level domains
.aaa
.aarp
.abarth
.abb
.abbott
.abbvie
.abc
.able
.abogado
.abudhabi
@nl5887
nl5887 / json export
Last active March 7, 2018 15:12
copy.conf
input {
elasticsearch {
hosts => ["src:9200"]
index => "index"
docinfo => true
size => 20
}
}
filter {
mutate {