AttackerHelper.py – Helper Functions for Attack Execution

Collection of helper functions to implement attacks.

selectVictim

attacks.AttackerHelper.selectVictim(victims)[source]

Select a victim to attack and pepare all needed meta-data for the attack to be executed.

chooseRandomServer

attacks.AttackerHelper.chooseRandomServer(service)[source]

Choose a random server to pass the created message to. All configured server can appear here.

createMsg

attacks.AttackerHelper.createMsg(serviceIdUsed, methodIdUsed, clientID, methodType)[source]

Create a message as part of class Message.

Parameters:
  • serviceIdUsed – The service id that appears in the SOME/IP Packet.
  • methodIdUsed – The method id that appears in the SOME/IP Packet.
  • clientID – The client id that appears in the SOME/IP Packet as initiating participant.
  • methodType – The method type that appears in the SOME/IP Packet.
Returns:

A dictionary of strings that can be used for the Message class.