Skip to content

Instantly share code, notes, and snippets.

View wangxiaomo's full-sized avatar
🇨🇳
hacking

wangxiaomo wangxiaomo

🇨🇳
hacking
View GitHub Profile
@wh1t3p1g
wh1t3p1g / ctf古典密码集合
Last active March 26, 2024 05:51
古典密码集合
下述密码均摘自互联网
【字母表顺序】-数字 
  加密的时候,经常要把A~Z这26个字母转换成数字,最常见的一种方法就是取字母表中的数字序号。A代表1,B代表2,C代表3... 
  字母 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 
  数字 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 
@hydra35
hydra35 / nginx.conf
Last active May 14, 2021 03:51
to gray, for Ya'An, Si Chuan earthquake
# 1. Make sure you have nginx sub module compiled in
# nginx -V 2>&1 | grep --color=always '\-\-with\-http_sub_module'
# 2. add two directives below at HTTP level
# nginx.conf
http {
# ......
sub_filter '</head>' '<style type="text/css">html{ filter: progid:DXImageTransform.Microsoft.BasicImage(grayscale=1); -webkit-filter: grayscale(100%); filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#grayscale"); /* Firefox 10+, Firefox on Android */
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from flask import session, g, Flask, request, abort
app = Flask(__name__)
urls = (
'/song/<int:sid>', 'Song',
)
@mckelvin
mckelvin / google_beijing.hosts
Created October 23, 2012 08:57
alive hosts in [203.208.44.1, 203.208.49.254]
# *.google.com 笛卡尔集
203.208.45.193
203.208.45.195
203.208.45.196
203.208.45.200
203.208.45.192
203.208.45.201
203.208.45.202
203.208.45.197
203.208.45.203
@tonyseek
tonyseek / traversal.py
Created September 3, 2012 09:59
A traversal style dispatcher which is alike Quixote.
#!/usr/bin/env python
#-*- coding:utf-8 -*-
def dispatch(entry_object, path, spliter="/"):
"""Starting with an entry object and dispatching the request by url path.
>>> class GroupList(object):
... exports = frozenset(["create"])
...
@flaneur2020
flaneur2020 / quixote.md
Created August 24, 2012 06:30
quixote routing

quixote是一个很落后的框架,使用它只有一个理由,便是我们亲爱的历史原因。

Routing

quixote使用python的类来模拟php的目录结构。

  • _q_exports: 列出这一"目录"下的所有"文件"
  • _q_index(request): 相当于index.php
  • _q_lookup(request, param): 相当于method_missing