conpot.protocols.snmp package

Submodules

conpot.protocols.snmp.command_responder module

class conpot.protocols.snmp.command_responder.CommandResponder(host, port, raw_mibs, compiled_mibs)

Bases: object

addSocketTransport(snmpEngine, transportDomain, transport)

Add transport object to socket dispatcher of snmpEngine

register(mibname, symbolname, instance, value, profile_map_name)

Register OID

serve_forever()
stop()
class conpot.protocols.snmp.command_responder.SNMPDispatcher

Bases: DatagramServer

getTimerResolution()
handle(msg, address)
registerRecvCbFun(recvCbFun, recvId=None)
registerTimerCbFun(timerCbFun, tickInterval=None)
registerTransport(tDomain, transport)
sendMessage(outgoingMessage, transportDomain, transportAddress)

conpot.protocols.snmp.conpot_cmdrsp module

class conpot.protocols.snmp.conpot_cmdrsp.c_BulkCommandResponder(snmpEngine, snmpContext, databus_mediator, host, port)

Bases: BulkCommandResponder, conpot_extension

handleMgmtOperation(snmpEngine, stateReference, contextName, PDU, acInfo)
class conpot.protocols.snmp.conpot_cmdrsp.c_GetCommandResponder(snmpEngine, snmpContext, databus_mediator, host, port)

Bases: GetCommandResponder, conpot_extension

handleMgmtOperation(snmpEngine, stateReference, contextName, PDU, acInfo)
class conpot.protocols.snmp.conpot_cmdrsp.c_NextCommandResponder(snmpEngine, snmpContext, databus_mediator, host, port)

Bases: NextCommandResponder, conpot_extension

handleMgmtOperation(snmpEngine, stateReference, contextName, PDU, acInfo)
class conpot.protocols.snmp.conpot_cmdrsp.c_SetCommandResponder(snmpEngine, snmpContext, databus_mediator, host, port)

Bases: SetCommandResponder, conpot_extension

handleMgmtOperation(snmpEngine, stateReference, contextName, PDU, acInfo)
class conpot.protocols.snmp.conpot_cmdrsp.conpot_extension

Bases: object

check_evasive(state, threshold, addr, cmd)
do_tarpit(delay)
log(version, msg_type, addr, req_varBinds, res_varBinds=None, sock=None)

conpot.protocols.snmp.databus_mediator module

class conpot.protocols.snmp.databus_mediator.DatabusMediator(oid_mappings)

Bases: object

get_response(reference_class, OID)
set_value(OID, value)
update_evasion_table(client_ip)

updates dynamic evasion table

conpot.protocols.snmp.snmp_server module

conpot.protocols.snmp.snmp_server.SNMPServer

alias of Wrapper

Module contents