For excessively paranoid client authentication.
Updated Apr 5 2019:
because this is a gist from 2011 that people stumble into and maybe you should AES instead of 3DES in the year of our lord 2019.
some other notes:
# http://notmysock.org/blog/hacks/a-twisted-dns-story.html | |
# http://blog.inneoin.org/2009/11/i-used-twisted-to-create-dns-server.html | |
# twistd -y dns.py | |
import socket | |
from twisted.internet.protocol import Factory, Protocol | |
from twisted.internet import reactor | |
from twisted.names import dns | |
from twisted.names import client, server |
## {{{ http://code.activestate.com/recipes/68205/ (r1) | |
#!/user/bin/env python | |
"""null.py | |
This is a sample implementation of the 'Null Object' design pattern. | |
Roughly, the goal with Null objects is to provide an 'intelligent' | |
replacement for the often used primitive data type None in Python or | |
Null (or Null pointers) in other languages. These are used for many |
var parser = document.createElement('a'); | |
parser.href = "http://example.com:3000/pathname/?search=test#hash"; | |
parser.protocol; // => "http:" | |
parser.hostname; // => "example.com" | |
parser.port; // => "3000" | |
parser.pathname; // => "/pathname/" | |
parser.search; // => "?search=test" | |
parser.hash; // => "#hash" | |
parser.host; // => "example.com:3000" |
L1 cache reference ......................... 0.5 ns
Branch mispredict ............................ 5 ns
L2 cache reference ........................... 7 ns
Mutex lock/unlock ........................... 25 ns
Main memory reference ...................... 100 ns
Compress 1K bytes with Zippy ............. 3,000 ns = 3 µs
Send 2K bytes over 1 Gbps network ....... 20,000 ns = 20 µs
SSD random read ........................ 150,000 ns = 150 µs
Read 1 MB sequentially from memory ..... 250,000 ns = 250 µs
/* | |
* email: [email protected] | |
* update: 2013/3/9 | |
*/ | |
;常用快捷命令 | |
:://cmd:: ;打开命令行 | |
Run cmd | |
return |
#!/usr/bin/env python2 | |
""" | |
Author: takeshix <[email protected]> | |
PoC code for CVE-2014-0160. Original PoC by Jared Stafford ([email protected]). | |
Supportes all versions of TLS and has STARTTLS support for SMTP,POP3,IMAP,FTP and XMPP. | |
""" | |
import sys,struct,socket | |
from argparse import ArgumentParser |
(ns xhrio-examples.examples | |
(:require [goog.net.XhrIo :as xhrio] | |
[goog.structs :as structs] | |
[goog.Uri.QueryData :as query])) | |
(def get-text-url "http://localhost:3000/get-text") | |
(def get-json-url "http://localhost:3000/get-json") | |
(def post-url "http://localhost:3000") | |
(def post-form-url "http://localhost:3000/post-form") | |
(def post-json-url "http://localhost:3000/post-json") |