0

我正在遵循https://www.slideshare.net/htbridge/fuzzing-an-introduction-to-sulley-framework的代码。

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

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: invalid syntax

进程以退出代码 1 结束

4

1 回答 1

0

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

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()
于 2019-05-10T15:35:51.947 回答