addon.py
def log(msg):
print('[test] %s' % msg)
data = {'key1':1, 'key': 2}
try:
assert 'key3' in data, 'no key'
except Exception as e:
log(str(e))
addon.py
def log(msg):
print('[test] %s' % msg)
data = {'key1':1, 'key': 2}
try:
assert 'key3' in data, 'no key'
except Exception as e:
log(str(e))
#!/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 |
/etc/dnsmasq.conf
dhcp-script=/etc/detect_new_device.sh
Reference:
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 | |
} |
<script src="jquery.min.js"></script> | |
<script src="jquery.fullPage.min.js"></script> | |
<script> | |
$(document).ready(function() { $.fn.fullpage({ anchors: ['page1'], }); }) | |
</script> | |
jquery.fullPage.min.js < 2.6.5 DOM XSS | |
https://github.com/alvarotrigo/fullPage.js/issues/1747 |
#!/usr/bin/python | |
import socket, os, select, struct | |
import errno | |
import logging | |
from logging import info, warn, error | |
logging.root.setLevel(logging.INFO) |
# javascript:downloadPost('ad-dl.php', { get:'183e4f6a9d104dcaff479b8dc9d21556' }) | |
curl 'https://download.mokeedev.com/link.php' -d 'key=183e4f6a9d104dcaff479b8dc9d21556' | aria2c -i- |
Located in alphabetical order (not prefer)
C
ab
), also designed as a more modern replacement, written in C
golang
)golang
)C
golang
)#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
# __author__ = 'ihciah' | |
# cid_hash_file function from https://github.com/binux/lixian.xunlei/blob/master/libs/tools.py | |
import hashlib | |
import inotify.adapters | |
import os | |
import requests | |
import re |