boofuzz-modbus icon indicating copy to clipboard operation
boofuzz-modbus copied to clipboard

boofuzz.sex.SullyRuntimeError: Can't add repeater for non-existent block: read_coil_memory!

Open AlixAbbasi opened this issue 6 years ago • 6 comments

When running it, it will throw error for read_coil_memory:

Traceback (most recent call last):
  File "modbus.py", line 333, in <module>
    main()
  File "modbus.py", line 32, in main
    s_repeat("read_coil_memory",min_reps=1,max_reps=255)
  File "/usr/local/lib/python2.7/site-packages/boofuzz/__init__.py", line 274, in s_repeat
    repeat = Repeat(block_name, blocks.CURRENT, min_reps, max_reps, step, variable, fuzzable, name)
  File "/usr/local/lib/python2.7/site-packages/boofuzz/blocks/repeat.py", line 56, in __init__
    "Can't add repeater for non-existent block: %s!" % self.block_name
boofuzz.sex.SullyRuntimeError: Can't add repeater for non-existent block: read_coil_memory!

Running it in python 3 shows another error:

Traceback (most recent call last):
  File "modbus.py", line 333, in <module>
    main()
  File "modbus.py", line 14, in main
    session = Session(
NameError: name 'Session' is not defined

AlixAbbasi avatar Jul 24 '18 15:07 AlixAbbasi

I run it in python 2.7 , I suggest you have to reintstall boofuzz

youngcraft avatar Jul 30 '18 12:07 youngcraft

Did it, it did not solve the issue. As you can see in the error, I already have a Python 2.7

AlixAbbasi avatar Aug 08 '18 19:08 AlixAbbasi

I try , I found there are some bug in the code , give me some time i need to modify it

ctf-fuzzer avatar Aug 11 '18 12:08 ctf-fuzzer

I am having the same issue

jdmcwhinnie avatar Sep 05 '18 14:09 jdmcwhinnie

line 27 is a mix of line 43 and 57. I changed it to look more like line 43 and that seemed to fix it.

ghost avatar Jun 20 '19 20:06 ghost

Thank you

Phildings [email protected] 于2019年6月21日周五 上午4:17写道:

line 27 is a mix of line 43 and 57. I changed it to look more like line 43 and that seemed to fix it.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/youngcraft/boofuzz-modbus/issues/1?email_source=notifications&email_token=AJGCVHOTSSBAJAY66KDU4SLP3PQTZA5CNFSM4FLTYUP2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYGPW6Y#issuecomment-504167291, or mute the thread https://github.com/notifications/unsubscribe-auth/AJGCVHIITAXNQBHZDVS37TTP3PQTZANCNFSM4FLTYUPQ .

ctf-fuzzer avatar Jun 21 '19 12:06 ctf-fuzzer