Skip to content

Instantly share code, notes, and snippets.

--- agent.lua
local setmetatable = setmetatable
local coroutine = coroutine
local assert = assert
local unpack = unpack
local print = print
local pairs = pairs
module "agent"
local agent = require "agent"
a = agent.create(function (self)
self:listen {
login = function (self)
self:listen {
username = function(self , ...)
print("username", ...)
self:listen {
password = function(self, ...)
<html>
<head><title>Hello World</title></head>
<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js'></script>
<body>
<script type="text/javascript">
$(document).ready(function(){
$.ajax({
url : "http://www.xkcd.com/info.0.json",
ansy : true,
success : function(connent){
![image]({{site.img_url}}/name.png)
git submodule add <repo> --recursive [path]
git submodule status --recursive [path]
git submodule summary --recursive [path]
git submodule init --recursive [path]
git submodule update --recursive [path]
#!/usr/bin/env python
import socket
import logging
import sys, getopt, time
logging.getLogger("scapy.runtime").setLevel(logging.ERROR)
from scapy.all import *
# a few silly globals
Binxing Fang, http://en.wikipedia.org/wiki/Fang_Binxing
方滨兴,中国工程院院士,北京邮电大学教授,中国科学院计算技术研究所网 络方向首席科学家。
Gang Xiong, http://rd.springer.com/search?facet-author=%22Gang+Xiong%22
熊刚, 高级工程师, 研究方向为信息安全。E-mail: xionggang@ict.ac.cn。
Weili Han, http://crypto.fudan.edu.cn/people/weili/
韩伟力, http://homepage.fudan.edu.cn/wlhan/en
This is just my personal gist clip.
/*jslint undef: true, nomen: true, eqeqeq: true, plusplus: true, newcap: true, immed: true, browser: true, devel: true, passfail: false */
/*global window: false, readConvertLinksToFootnotes: false, readStyle: false, readSize: false, readMargin: false, Typekit: false, ActiveXObject: false */
var dbg = (typeof console !== 'undefined') ? function(s) {
console.log("Readability: " + s);
} : function() {};
/*
* Readability. An Arc90 Lab Experiment.
* Website: http://lab.arc90.com/experiments/readability
interface=wlan0
driver=nl80211
channel=7
hw_mode=g
ssid=
wpa=3
ieee80211n=1
ht_capab=[HT40+][SHORT-GI-40][TX-STBC][RX-STBC1][DSSS_CCK-40]
wpa_psk=
wpa_key_mgmt=WPA-PSK