dhcp-script=/etc/detect_new_device.sh
Reference:
| #!/usr/bin/python | |
| import socket, os, select, struct | |
| import errno | |
| import logging | |
| from logging import info, warn, error | |
| logging.root.setLevel(logging.INFO) |
| 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 | |
| } |
dhcp-script=/etc/detect_new_device.sh
Reference:
| #!/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 |
| // disable iitc plugin if it's on | |
| // go to https://www.ingress.com/intel | |
| // open console and paste in the code below, press enter | |
| // join https://t.me/passcodes for more passcodes | |
| // add jquery | |
| var jq = document.createElement('script'); | |
| jq.src = "https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"; | |
| document.getElementsByTagName('head')[0].appendChild(jq); |
| (function() { | |
| function escapeQuote(str) { | |
| return str.replace("\"", "\\\""); | |
| } | |
| function buildAria2Url(name, url) { | |
| return `aria2c -c -s10 -k1M -x16 --enable-rpc=false ` + | |
| `-o "${escapeQuote(name)}" ` + | |
| `--header "${escapeQuote(window.navigator.userAgent)}" ` + | |
| `--header "Referer: ${escapeQuote(window.location.toString())}" ` + |
| #EXTM3U name="四川电信IPTV" | |
| #EXTINF:-1,CCTV-1高清 | |
| http://192.168.2.2/rtp/239.93.0.184:5140 | |
| #EXTINF:-1,CCTV-2高清 | |
| http://192.168.2.2/rtp/239.93.1.23:6000 | |
| #EXTINF:-1,CCTV-3高清 | |
| http://192.168.2.2/rtp/239.93.1.11:2223 | |
| #EXTINF:-1,CCTV-5高清 | |
| http://192.168.2.2/rtp/239.93.1.12:2224 | |
| #EXTINF:-1,CCTV-6高清 |
| #!/bin/sh | |
| ## edit this | |
| cf_ddns_host=myddns.mydomain.com | |
| # My Profile - API Tokens - Create Token - Use template of Edit zone DNS - Zone Resources - Include - All zones - Continue to summary - Create Token | |
| cf_token= | |
| ## edit end | |
| # auto fetch | |
| cf_zoneid= |
| #!/usr/bin/env python3 | |
| from __future__ import print_function | |
| import frida | |
| import sys | |
| import json | |
| import time | |
| def on_message(message, payload): | |
| if(message['type'] == 'send'): |