From b30b8bb99de4c3d3873d23d798249e07301b12c6 Mon Sep 17 00:00:00 2001 From: Philipp Date: Wed, 14 Dec 2022 15:07:31 +0100 Subject: [PATCH] Remove spaces from modbus request variable names Variable names with spaces caused crash when disabling a request after reaching the crash threshold with: ``` FuzzowskiRuntimeError(f'Invalid path name: {path_name}') fuzzowski.exception.FuzzowskiRuntimeError: Invalid path name: read_holding_registers.start address ``` --- fuzzowski/fuzzers/modbus/modbus.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fuzzowski/fuzzers/modbus/modbus.py b/fuzzowski/fuzzers/modbus/modbus.py index 55824e5..a1ecda7 100644 --- a/fuzzowski/fuzzers/modbus/modbus.py +++ b/fuzzowski/fuzzers/modbus/modbus.py @@ -45,7 +45,7 @@ def define_nodes(*args, **kwargs) -> None: s_byte(0xff,name='unit Identifier',fuzzable=False) with s_block('pdu'): s_byte(0x01,name='funcCode read coil memory',fuzzable=False) - s_word(0x0000,name='start address') + s_word(0x0000,name='start_address') s_word(0x0000,name='quantity') @@ -57,7 +57,7 @@ def define_nodes(*args, **kwargs) -> None: s_byte(0xff,name='unit Identifier',fuzzable=False) with s_block('read_holding_registers_block'): s_byte(0x01,name='read_holding_registers') - s_word(0x0000,name='start address') + s_word(0x0000,name='start_address') s_word(0x0000,name='quantity') # --------------------------------------------------------------- #