cli.logic.attack package
cli.logic.attack.attack module
- cli.logic.attack.attack.cli_attack(attack_name: str, config: str, **kwargs) None
Entry point for the attack CLI. This function is called when the user wants to execute an attack. It determines the attack type and maps it to the respective configuration class. It then loads the configuration and executes the attack.
- Parameters:
attack_name (str) – The name of the attack to execute.
config (str) – The path to the configuration file.
**kwargs – Additional keyword arguments to pass to the configuration class.
- Raises:
ValueError – If the attack type is unknown.
cli.logic.attack.attacker module
- class cli.logic.attack.attacker.CLIAttacker(config: BaseAttackCLIConfigType, attack_type: AttackType, **kwargs)
Bases:
object
Attacker class for the CLI. This module parses the CLI arguments and executes the attack.
- execute()
The main attack function. This function parses the CLI arguments and executes the attack.