2014-08-17 22:31:53 +00:00
|
|
|
# -*- coding: binary -*-
|
2013-06-25 00:24:09 +00:00
|
|
|
|
|
|
|
module Rex
|
|
|
|
module Proto
|
|
|
|
module IPMI
|
|
|
|
|
|
|
|
class RAKP2 < BitStruct
|
2013-08-30 21:28:33 +00:00
|
|
|
unsigned :rmcp_version, 8, "RMCP Version"
|
|
|
|
unsigned :rmcp_padding, 8, "RMCP Padding"
|
|
|
|
unsigned :rmcp_sequence, 8, "RMCP Sequence"
|
|
|
|
unsigned :rmcp_mtype, 1, "RMCP Message Type"
|
|
|
|
unsigned :rmcp_class, 7, "RMCP Message Class"
|
2013-06-25 00:24:09 +00:00
|
|
|
|
2013-08-30 21:28:33 +00:00
|
|
|
unsigned :session_auth_type, 8, "Authentication Type"
|
2013-06-25 00:24:09 +00:00
|
|
|
|
2013-08-30 21:28:33 +00:00
|
|
|
unsigned :session_payload_encrypted, 1, "Session Payload Encrypted"
|
|
|
|
unsigned :session_payload_authenticated, 1, "Session Payload Authenticated"
|
|
|
|
unsigned :session_payload_type, 6, "Session Payload Type", :endian => 'little'
|
2013-06-25 00:24:09 +00:00
|
|
|
|
2013-08-30 21:28:33 +00:00
|
|
|
unsigned :session_id, 32, "Session ID"
|
|
|
|
unsigned :session_sequence, 32, "Session Sequence Number"
|
|
|
|
unsigned :message_length, 16, "Message Length", :endian => "little"
|
2013-06-25 00:24:09 +00:00
|
|
|
|
2013-08-30 21:28:33 +00:00
|
|
|
unsigned :ignored1, 8, "Ignored"
|
|
|
|
unsigned :error_code, 8, "RMCP Error Code"
|
|
|
|
unsigned :ignored2, 16, "Ignored"
|
|
|
|
char :console_session_id, 32, "Console Session ID"
|
|
|
|
char :bmc_random_id, 128, "BMC Random ID"
|
|
|
|
char :bmc_guid, 128, "RAKP2 Hash 2 (nulls)"
|
|
|
|
char :hmac_sha1, 160, "HMAC_SHA1 Output"
|
|
|
|
rest :stuff, "The rest of the stuff"
|
2013-06-25 00:24:09 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|