有时,我使用python boofuzz库来生成模糊化的数据,但我使用另一个库(例如websocket,或者,对于较低级别的东西,使用Scapy)发送它们。为此,我使用了s_render和s_mutate。但是,它们似乎在0.3.0.0版本中被删除了。还有没有办法做到这一点?
我的代码看起来像这样:
s_initialize(name="Request")
blocks
while s_mutate():
send(s_render())谢谢
发布于 2021-05-25 15:15:08
我认为s_render是从Sulley fuzzer那里继承下来的。并且该函数没有出现在Boofuzz的文档中
从Sulley fuzzer documentation
s_render: Render out and return the entire contents of the current request.来自Boofuzz文档:
s_get: Return the request with the specified name or the current request if name is not specified. Use this to switch from global function style request manipulation to direct object manipulation.
Example:
req = s_get("HTTP BASIC")
print(req.num_mutations())发布于 2021-06-11 06:06:35
从mailing list转发
在pull request 422中删除了s_render和s_mutate。从技术上讲,可以重新添加它们,这只需要一些工作。
同时,您可以使用类似于以下内容的内容近似s_mutate和s_render:
for mutations in r.mutate():
mutation_context = MutationContext(mutations=mutations, message_path=[])
data = r.render(mutation_context)您可能还会发现FileConnection类(file_connection.py)很有帮助。我现在才意识到它似乎还没有出现在文档中。
如果有效,请让我知道!
https://stackoverflow.com/questions/67620887
复制相似问题