Skip to content

Instantly share code, notes, and snippets.


def log(msg):
    print('[test] %s' % msg)

data = {'key1':1, 'key': 2}
    assert 'key3' in data, 'no key'
except Exception as e:
4ft35t /
Created Apr 2, 2018 — forked from ficapy/
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Author: ficapy
import io
from urllib.parse import urlencode
from base64 import b64encode
from pdf2image import convert_from_bytes
from PyPDF2 import PdfFileWriter, PdfFileReader
4ft35t / OpenWrt detect new device and send text Detect new network devices connecting to OpenWrt and send text message
View OpenWrt detect new device and send text
4ft35t / who-weibo.js
Created Sep 5, 2017 — forked from zh-h/who-weibo.js
View who-weibo.js
function decodeBase62(number) {
var alphabet = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
var out = 0
var len = number.length - 1
for (var t = 0; t <= len; t++) {
out = out + alphabet.indexOf(number.substr(t, 1)) * Math.pow(62, len - t)
return out
4ft35t / jq.fullpage.html
Last active Aug 23, 2017
jquery.fullPage.min.js DOM XSS
View jq.fullpage.html
<script src="jquery.min.js"></script>
<script src="jquery.fullPage.min.js"></script>
$(document).ready(function() { $.fn.fullpage({ anchors: ['page1'], }); })
jquery.fullPage.min.js < 2.6.5 DOM XSS
4ft35t /
Created Feb 22, 2017 — forked from korc/
Convert DNS UDP to TCP
import socket, os, select, struct
import errno
import logging
from logging import info, warn, error
4ft35t /
Created Feb 13, 2017
mokee rom download
# javascript:downloadPost('ad-dl.php', { get:'183e4f6a9d104dcaff479b8dc9d21556' })
curl '' -d 'key=183e4f6a9d104dcaff479b8dc9d21556' | aria2c -i-
4ft35t /
Created Feb 10, 2017 — forked from denji/
HTTP(S) Benchmark Tools / Toolkit for testing/debugging HTTP(S) and restAPI (RESTful)


Located in alphabetical order (not prefer)

  • ab – slow and single threaded, written in C
  • apib – most of the features of ApacheBench (ab), also designed as a more modern replacement, written in C
  • baloo – Expressive end-to-end HTTP API testing made easy, written in Go (golang)
  • bombardier – Fast crossplatform HTTP benchmarking tool, written in Go (golang)
  • curl-loader – performance loading of various application services and traffic generation, written in C
  • fasthttploader – benchmark (kinda ab) with autoadjustment and charts based on fasthttp library, write in Go (golang)
4ft35t /
Created Nov 17, 2016 — forked from ihciah/
Xunlei subtitle downloader
# -*- coding: utf-8 -*-
# __author__ = 'ihciah'
# cid_hash_file function from
import hashlib
import inotify.adapters
import os
import requests
import re