首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在Sulley fuzzer上修复模糊网络层的语法

如何在Sulley fuzzer上修复模糊网络层的语法
EN

Stack Overflow用户
提问于 2019-05-09 23:07:59
回答 1查看 17关注 0票数 0

我跟着https://www.slideshare.net/htbridge/fuzzing-an-introduction-to-sulley-framework上的代码走。

以下是kickfuzz.py的代码。我遇到了kickfuzz.py的无效语法

代码语言:javascript
复制
from sulley import *
from requests import httpcallAX

sess=sessions.session(session_filename="audits/http.session")
target = sessions.target("192.168.175.129", 30888)
target.netmon = pedrpc.client("192.168.175.129", 26001)
target.procmon = pedrpc.client("192.168.175.129", 26002)
@ target.procmon_options = ( "proc_name" | "tvMobiliService.exe" )

target.procmon_options = \
(
"proc_name"        : "tvMobiliService.exe",
"stop_commands"    : ['net stop tvMobiliService'],
"start_commands"   : ['net start tvMobiliService'],
)

sess.add_target(target)
sess.connect(sess.root, s_get("HTTP"))
sess.fuzz()

文件"C:/sulley_build/sulley/kickfuzz.py",第8行@ target.procmon_options = ("proc_name“| "tvMobiliService.exe") ^ SyntaxError:无效语法

进程已完成,退出代码为%1

EN

回答 1

Stack Overflow用户

发布于 2019-05-10 23:35:52

我的错误,正确的代码应该在下面。如果您正在遵循链接中的相同示例,则httpcallAX.py应该放在/sulley/requests文件夹中。

代码语言:javascript
复制
from sulley import *
from requests import httpcallAX

sess=sessions.session(session_filename="audits/http.session")
target = sessions.target("192.168.175.129", 30888)
target.netmon = pedrpc.client("192.168.175.129", 26001)
target.procmon = pedrpc.client("192.168.175.129", 26002)
# target.procmon_options = {"proc_name" : "tvMobiliService.exe"}

target.procmon_options = \
    {
    "proc_name"        : "tvMobiliService.exe",
    "stop_commands"    : ['net stop tvMobiliService'],
    "start_commands"   : ['net start tvMobiliService'],
    }

sess.add_target(target)
sess.connect(sess.root, s_get("HTTP"))
sess.fuzz()
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/56062460

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档