mushorg / conpot

ICS/SCADA honeypot
GNU General Public License v2.0
1.21k stars 409 forks source link

SNMP Engine "This element is not expected." #570

Open hack3rman opened 2 years ago

hack3rman commented 2 years ago

Describe the bug According to the documentation there should be an engine option for random integers and increments. This does not seem to work.

To Reproduce Steps to reproduce the behavior:

  1. Copy the lines in snmp.xml
        <mib name="TCP-MIB">
            <symbol name="tcpInSegs">
                <value>tcpInSegs</value>
                <engine type="sysuptime"></engine>
            </symbol>
        </mib>    
  2. Restart conpot
  3. See error
    2022-03-15 11:50:46,731 Error parsing XML template: /home/conpot/.local/lib/python3.8/site-packages/conpot/templates/default/snmp/snmp.xml:48:0:ERROR:SCHEMASV:SCHEMAV_ELEMENT_CONTENT: Element 'engine': This element is not expected.