Update: dnsresolver.py Version 0.0.4
dnsresolver.py 0.0.4版本更新新增功能,允许在resolve命令中定义可选键值对函数。该函数接收请求、回复和dCommand参数,需返回NXDOMAIN标志和rcode值列表。支持通过-s选项加载额外Python脚本。 2025-10-27 00:0:0 Author: blog.didierstevens.com(查看原文) 阅读量:15 收藏

Update: dnsresolver.py Version 0.0.4

This update brings function= to the definition of a resolve command.

Key-value pair function is optional. If provided, the value will be interpreted as a Python function and called when there is a match. The function must inspect the request and update the reply. Arguments to the function are request, reply and dCommand. The function must return a list with 2 values: first one is True when NXDOMAIN must be returned (and False if there is an answer), second one is an integer with the rcode value, it must be None if there is no rcode set by the function.

An extra Python script (for example with function definitions) can be loaded using option -s.

dnsresolver_V0_0_4.zip (http)
MD5: 7520FB4510E6ED5E5975A8606852F548
SHA256: 1C4BC4D6030A2534600283962890545D428F2BBAFD85D0B3E934B03B07EA1F6A

No comments yet.


文章来源: https://blog.didierstevens.com/2025/10/27/update-dnsresolver-py-version-0-0-4/
如有侵权请联系:admin#unsafe.sh