Git Product home page Git Product logo

Comments (8)

johnnykv avatar johnnykv commented on September 26, 2024

Work to be done yet:

  • Log SNMPv3
  • Transmit data using hpfriends..

from conpot.

johnnykv avatar johnnykv commented on September 26, 2024

@glaslos Regarding logging, conpot will be covering quite a few protocols:

  • Modbus
  • SNMP v1/v2
  • SNMP v3
  • DNP3
  • HTTP
  • IEC 60870

I am thinking of a generic approach (for hpfriends), something in the line of:

//some modbus data
{'remote': ('1.2.3.4', 58988),
 'data_type': 'modbus',
 'data': {'request_pdu': '0f0001000801ff',
          'response_pdu': '0f00010008'}}

//some snmp data
{'remote': ('1.2.3.4', 58994),
 'data_type': 'snmpv2',
 'data': {'request_message': '\x02\x01\x00\x04\x06public\xa1\x1a\x02\x04_\xaa\xadK\x02\x01\x00\x02\x01\x000\x0c0\n\x06\x06+\x06\x01\x02\x01\x01\x05\x00',
          'response_message': '\x02\x01\x00\x04\x06public\xa24\

Any inputs/opinions on this?

from conpot.

glaslos avatar glaslos commented on September 26, 2024

Sounds good to me.

from conpot.

glaslos avatar glaslos commented on September 26, 2024

Are you still doing this nested per session?

{'remote': ('1.2.3.4', 58988),
 'data_type': 'modbus',
 'session_id': 123123123,
 'data': [
        {
          '2005-10-30 T 10:45 UTC',
          'request_pdu': '0f0001000801ff',
          'response_pdu': '0f00010008'
        }
    ]
}

from conpot.

johnnykv avatar johnnykv commented on September 26, 2024

yes, with some minor changes to align the data... I think modbus data would look like this when finished:

{'remote': ('1.2.3.4', 58988),
 'data_type': 'modbus',
 'session_id': 123123123,
 'data': {
        '0': {
          'request_pdu': '0f0001000801ff',
          'response_pdu': '0f00010008'
        }
        '95': {
          'request_pdu': '0f0001000801ff',
          'response_pdu': '0f00010008'
        }
        '135': {
          'request_pdu': '0f0001000801ff',
          'response_pdu': '0f00010008'
        }
    }
}

The keys of the data dictionary would be offset (in milliseconds).

from conpot.

glaslos avatar glaslos commented on September 26, 2024

Whats the status on this?

from conpot.

johnnykv avatar johnnykv commented on September 26, 2024
  • Modbus: done
  • SNMP v1/v2: done
  • SNMP v3: no progress

Hopefully i will throw in a few test cases for modbus/snmp logging tonight. I suggest that we move SNMP v3 logging to a separate workitem - and possibly also next milestone.

from conpot.

glaslos avatar glaslos commented on September 26, 2024

Closed. See #24 and #25

from conpot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.