conpot.protocols.ipmi package¶
Submodules¶
conpot.protocols.ipmi.fakebmc module¶
conpot.protocols.ipmi.fakesession module¶
-
class
conpot.protocols.ipmi.fakesession.FakeSession(bmc, userid, password, port)¶ Bases:
pyghmi.ipmi.private.session.Session-
send_data(packet, address)¶
-
send_ipmi_response(data=None, code=0)¶
-
send_payload(payload=(), payload_type=None, retry=True, delay_xmit=None, needskeepalive=False)¶ Send payload over the IPMI Session
Parameters: - needskeepalive – If the payload is expected not to count as ‘active’ by the BMC, set this to True to avoid Session considering the job done because of this payload. Notably, 0-length SOL packets are prone to confusion.
- timeout – Specify a custom timeout for long-running request
-
conpot.protocols.ipmi.ipmi_server module¶
-
class
conpot.protocols.ipmi.ipmi_server.IpmiServer(template, template_directory, args)¶ Bases:
object-
close_server_session()¶
-
handle(data, address)¶
-
handle_client_request(request)¶
-
initiate_session(data, address, session)¶
-
send_auth_cap(myaddr, mylun, clientaddr, clientlun, sockaddr)¶
-
start(host, port)¶
-
stop()¶
-