timmy / DNSBL 黑名單查詢工具
0 likes
0 forks
1 files
Last active 10 months ago
這段程式碼是一個 DNSBLChecker 工具,用於檢查指定的 IP 是否被列入常見的 DNS 黑名單(DNSBL)。支持動態添加或移除 DNSBL 提供者,並顯示檢查結果,包括列入的黑名單列表。
| 1 | import dns.resolver |
| 2 | |
| 3 | class DNSBLChecker: |
| 4 | def __init__(self, providers=None): |
| 5 | """ |
| 6 | 初始化 DNSBLChecker,允許自定義 DNSBL 提供者列表。 |
| 7 | :param providers: DNSBL 提供者列表 (可選,默認為常用黑名單提供者) |
| 8 | """ |
| 9 | self.providers = providers or [ |
| 10 | "zen.spamhaus.org", |
timmy / 啟用 SMB 不安全來賓存取與禁用安全簽名
1 likes
0 forks
1 files
Last active 10 months ago
此登錄檔修改 SMB 設定,允許不安全的來賓存取 (AllowInsecureGuestAuth),並禁用安全簽名 (RequireSecuritySignature),適用於舊設備相容性需求,但可能降低安全性。
| 1 | Windows Registry Editor Version 5.00 |
| 2 | |
| 3 | [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters] |
| 4 | "AllowInsecureGuestAuth"=dword:00000001 |
| 5 | "RequireSecuritySignature"=dword:00000000 |
Newer
Older