Skip to content

Instantly share code, notes, and snippets.

View fengjing's full-sized avatar

Feng Jing fengjing

  • China WuXi
View GitHub Profile

Rainbow tables

Introduction

A lot of water has flowed under the bridge since then, when the theme of rainbow tables was at its peak, but, nevertheless, the idea is entertaining. It is about this kind of intricate tables that I want to tell you.

Theory

Brute force method

@fengjing
fengjing / header_filter_by_lua_example.md
Created July 26, 2022 06:03 — forked from ejlp12/header_filter_by_lua_example.md
nginx, openresty, transform/modify response body, header_filter_by_lua
@fengjing
fengjing / mitmproxy-quicker.py
Created April 7, 2022 13:35 — forked from vfaronov/mitmproxy-quicker.py
mitmproxy scripting cheat sheet / snippets collection
# Copy this file and run mitmproxy like this::
#
# mitmproxy -s mitmproxy-quicker.py --mode reverse:http://dummy.invalid
#
# Then edit the code below. For example,
# http://localhost:8080/index.html will serve the HTML page defined below.
# mitmproxy will automatically reload the script whenever you save it to disk.
# You can specify a real fallback upstream instead of ``dummy.invalid``,
# or remove the ``--mode`` option altogether for a regular (forward) proxy.
#
@fengjing
fengjing / admin.py
Created April 4, 2022 08:43 — forked from hakib/admin.py
Django Admin InputFilter
# common/admin.py
class InputFilter(admin.SimpleListFilter):
template = 'admin/input_filter.html'
def lookups(self, request, model_admin):
# Dummy, required to show the filter.
return ((),)
def choices(self, changelist):
@fengjing
fengjing / reset.css
Created October 10, 2021 02:58 — forked from karbassi/reset.css
Modified reset.css to include useful changes from normalize.css
/* http://meyerweb.com/eric/tools/css/reset/
v2.0-modified | 20110126
License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
@fengjing
fengjing / admin.py
Created March 26, 2020 03:35 — forked from TomasTomecek/admin.py
Automatically add all fields to django admin with links between models
# -*- coding: utf-8 -*-
"""
admin.py
Auto-register admin classes with fields and links to linked model classes
based on http://djangosnippets.org/snippets/997/
"""
@fengjing
fengjing / config-axios.js
Created April 11, 2019 05:56 — forked from krescruz/config-axios.js
Config Cross Site Request Forgery Protection CSRF in axios for django
import axios from 'axios'
/**
* Config global for axios/django
*/
axios.defaults.xsrfHeaderName = "X-CSRFToken"
axios.defaults.xsrfCookieName = 'csrftoken'
export default axios
@fengjing
fengjing / supervisor
Created March 9, 2018 06:38 — forked from danielrmeyer/supervisor
supervisor config to keep a python script running in home directory.
[program:test]
command=/usr/bin/python /home/ubuntu/test.py
directory=/home/ubuntu
autostart=true
autorestart=true
startretries=3
stderr_logfile=/home/ubuntu/test.err.log
stdout_logfile=/home/ubuntu/test.out.log
user=ubuntu
@fengjing
fengjing / celery_tasks_error_handling.py
Created January 5, 2017 02:26 — forked from darklow/celery_tasks_error_handling.py
Celery tasks error handling example
from celery import Task
from celery.task import task
from my_app.models import FailedTask
from django.db import models
@task(base=LogErrorsTask)
def some task():
return result
class LogErrorsTask(Task):
title description date categories slug
QQ协议分析
QQ协议分析
2014-04-16
protocol
qq-protocol

一. 文字聊天协议族(TCPF, Text Chatting Protocol Family)