Skip to content

Instantly share code, notes, and snippets.

# marco@sensepost.com
import socket
import time
import select
import sys
def usage():
print "largeudp.py [ a | b ] <target> <port> <pckt_len>"
DOMDocument::loadHTML(): htmlParseEntityRef: expecting ';' in Entity, line: 52
Stacktrace (most recent call last):
File "/www/home/cf/cf-repos/cf-www/htdocs/ajax/search-3rd.html", line 8, in None
if ($handler->process()) {
File "/www/home/cf/cf-repos/core/php/core/handler.php", line 348, in process
$result = $this->processForm();
var system = require('system'),
target = system.args[1] || 'http://www.cloudflare.com/',
output = system.args[2] || 'screenshot.png',
verbose = system.args[2] || 0,
page = new WebPage();
page.settings.userAgent = "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/534.34 (KHTML, like Gecko) CloudFlare-Ponycorn/1.0.0 (Always Online; +http://www.cloudflare.com/always-online) Safari/534.34";
page.viewport = { width: 1374, height: 900 };
page.clipRect = { top: 0, left: 0, width: 1374, height: 900 };
var system = require('system'),
target = system.args[1] || 'http://127.0.0.1',
host = system.args[2] || 'www.cloudflare.com',
width = system.args[3] || 10,
depth = system.args[4] || 1,
maxHits = system.args[5] || 20,
maxTime = system.args[6] || 30,
verbose = system.args[7] || 0,
page = new WebPage(),
navigationMap = {},
@dknecht
dknecht / gist:3127184
Created July 17, 2012 04:38
ocsp test
#!/usr/bin/env python
#
# Copyright (C) 2012 CloudFlare
# @author Matthieu Tourne <matthieu@cloudflare.com>
import argparse
import base64
import post
import re
commit 08d0e78594e60d27d3cb601d2811c719c67c031b
Author: Matthieu Tourne <matthieu@cloudflare.com>
Date: Mon May 21 18:04:37 2012 -0700
Add directive set_cache_fs_size $var <proxy cache shm segment>
diff --git a/ngx_common/ngx_common.c b/ngx_common/ngx_common.c
index 10b1db9..67fdaad 100644
--- a/ngx_common/ngx_common.c
+++ b/ngx_common/ngx_common.c
@dknecht
dknecht / gist:2860459
Created June 2, 2012 23:28
runit setup
### INSTALL RUNIT ###
# http://smarden.org/runit/runsv.8.html
# 1) make sure runit is installed
# 1) create a service directory for $SERVICE_NAME in /etc/sv
# 2) create an auto-rotating logging daemon specifically for this service
# 3) symlink in the new service into /etc/service, runit's service location directory
# 5) create the actual run script for this service, complete with proper double-forking
# 6) create a init.d compatible script
# other optional files
(function($) {
$(function() {
$.fn.createCFCountdown = function(options) {
options = $.extend({
seconds: 60,
showDays: false,
showHours: false,
Summary: Security module for the Apache HTTP Server
Name: mod_security
Version: 2.5.9
Release: 1.jason.1
License: GPLv2
URL: http://www.modsecurity.org/
Group: System Environment/Daemons
Source: http://www.modsecurity.org/download/modsecurity-apache_%{version}.tar.gz
Source1: mod_security.conf
Source2: modsecurity_localrules.conf
#!/usr/bin/env python
import smtplib, sys, time
# change this to a new SMTP server if desired
smtpHost = 'some.smtp.mail.server'
# sys.argv[1] is the sender
# sys.argv[2] is the filename pointing to the list of recipients
# sys.argv[3] is the subject