Useful tool for sniffing DHCP Server on specified Interface
python dhcpd_detector.py [--config <filename>.cfg]
替换上你的 Token,域名ID,记录ID等参数,就可以运行了。 跟原代码不同的是,该版本每次执行就运行一次,方便使用调度系统来进行调度
获得domain_id可以用curl
curl -k https://dnsapi.cn/Domain.List -d "login_token=xxx"
获得record_id类似
curl -k https://dnsapi.cn/Record.List -d "login_token=xxx&domain_id=xxx"
支持的功能:
这个功能不适合经常有人呆着的地方, 比如书房, 卧室, 客厅.
| virtualenv --no-site-packages hodor | |
| hodor/bin/pip install simplejson ujson cbor tnetstring msgpack-python | |
| curl -s 'http://www.json-generator.com/api/json/get/cvfsLVmKiG?indent=2' > test.json | |
| hodor/bin/python shootout.py |
| [tool.poetry] | |
| name = "20191008" | |
| version = "0.1.0" | |
| description = "" | |
| authors = ["ruohan.chen <[email protected]>"] | |
| [tool.poetry.dependencies] | |
| python = "^2.7, <3.0 || ^3.7, < 3.8" | |
| import re | |
| from iredis.commands_csv_loader import all_commands | |
| from iredis.exceptions import InvalidArguments | |
| from iredis.utils import split_command_args | |
| from prompt_toolkit import PromptSession | |
| from prompt_toolkit.auto_suggest import AutoSuggestFromHistory | |
| from prompt_toolkit.completion import CompleteEvent, Completer, WordCompleter | |
| from prompt_toolkit.document import Document | |
| from prompt_toolkit.history import FileHistory |
| from sly import Lexer, Parser | |
| import pytest | |
| from enum import Enum | |
| class QUOTE(Enum): | |
| START = 0 | |
| END = 1 | |
| #!/usr/bin/env python3 | |
| import hashlib | |
| import logging | |
| import os | |
| import time | |
| from pathlib import Path | |
| logging.basicConfig( | |
| format="%(asctime)s - %(filename)s:%(lineno)d - %(levelname)s - %(message)s", | |
| level=logging.DEBUG, |
| [Physics::Module] Initialized MultithreadedJobDispatcher with 23 workers. | |
| Initialize engine version: 2022.3.11f1m1 (0) | |
| [Subsystems] Discovering subsystems at path D:/Program Files (x86)/Steam/steamapps/common/NoRestForTheWicked/NoRestForTheWicked_Data/UnitySubsystems | |
| GfxDevice: creating device client; threaded=1; jobified=1 | |
| Direct3D: | |
| Version: Direct3D 11.0 [level 11.1] | |
| Renderer: NVIDIA GeForce RTX 4090 (ID=0x2684) | |
| Vendor: NVIDIA | |
| VRAM: 24142 MB | |
| Driver: 31.0.15.5222 |
| #!/usr/bin/env python3 | |
| """ | |
| 完整的 Bambu Lab 中国区登录测试脚本,绕过 Cloudflare 并测试完整流程 | |
| """ | |
| import json | |
| import argparse | |
| import time | |
| from curl_cffi import requests as curl_requests | |
| import cloudscraper |