你知道,以后你不能将显示器用于你想要模糊的设备。但是网络监视器应该能够运行,因为它在运行模糊测试脚本的攻击者计算机上运行。
至于过程监视器,我建议你使用位于… / sully / sully / instrumentation.py中的外部监视器/仪器。您可以从以下位置找到文档:… / sully / docs / index.html
“某些目标(例如嵌入式设备)不支持调试器,并且在这些情况下不能使用进程监视代理。外部检测类允许调用外部命令来检测故障并重新启动目标。在以下示例中使用,但可以使用任何python函数或外部脚本:“
import os
def ssh_is_alive():
‘’’Check that the target is alive. Called after each test case. Return True if alive, False otherwise’’’
_, stdout = os.popen2('ssh %s pidof target' % IP_DST)
pid = stdout.read()
return pid != ''
def ssh_restart():
‘’’Restart the target. Called when instrumentation (post) fail.’’’
os.popen2('ssh %s /etc/init.d/target restart' % IP_DST)
sess = sessions.session()
target = sessions.target(IP_DST, PORT_DST)
target.procmon = instrumentation.external(post=ssh_is_alive, start=ssh_restart)
sess.add_target(target)
sess.connect(s_get(‘node’))
sess.fuzz()
</code>