Skip to content

Instantly share code, notes, and snippets.

@zephg
zephg / prometheus.yml
Created January 27, 2019 20:56 — forked from skreuzer/prometheus.yml
smokeping style metrics in prometheus
global:
evaluation_interval: 15s
rule_files:
- smokeping.rules
scrape_configs:
- job_name: 'blackbox_icmp'
metrics_path: /probe
params:
module: [icmp]
scrape_interval: 1s
address=/s.hulu.com/208.110.82.54
address=/play.hulu.com/208.110.82.54
address=/signup.netflix.com/208.110.82.54
address=/www.netflix.com/208.110.82.54
address=/appboot.netflix.com/208.110.82.54
address=/cbp-us.nccp.netflix.com/208.110.82.54
address=/a248.e.akamai.net/208.110.82.54
address=/api-global.netflix.com/208.110.82.54
address=/movies.netflix.com/208.110.82.54
address=/movies1.netflix.com/208.110.82.54
diff --git a/nss/Makefile b/nss/Makefile
index 449a258..553eafa 100644
--- a/nss/Makefile
+++ b/nss/Makefile
@@ -37,7 +37,7 @@ install-bin := getent makedb
makedb-modules = xmalloc hash-string
extra-objs += $(makedb-modules:=.o)
-tests = test-netdb tst-nss-test1
+tests = test-netdb tst-nss-test1 test-digits-dots
@zephg
zephg / ghosttest.c
Created January 29, 2015 01:20
GHOST vulnerability check
/* ghosttest.c: GHOST vulnerability tester */
/* Credit: http://www.openwall.com/lists/oss-security/2015/01/27/9 */
#include <netdb.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#define CANARY "in_the_coal_mine"
#!/bin/bash
set -e
# Usage:
# rsync_parallel.sh [--parallel=N] [rsync args...]
#
# Options:
# --parallel=N Use N parallel processes for transfer. Defaults to 10.
#
# Notes:
#!/usr/bin/env python
# Quick and dirty demonstration of CVE-2014-0160 by
# Jared Stafford ([email protected])
# Modified so that it finds cookies
import sys
import struct
import socket
import time
import select