first commit

This commit is contained in:
dongdongunique
2025-12-10 00:54:02 +08:00
parent 2cf4168ecf
commit f3af94df0b
254 changed files with 9821 additions and 25 deletions
@@ -0,0 +1,16 @@
from ..base_attack import BaseAttack
from abc import ABC, abstractmethod
class BaseBlackBoxAttack(BaseAttack):
"""黑盒攻击的基类,可以提供通用工具。"""
@abstractmethod
def attack(self, target: str):
"""
执行攻击,返回攻击结果。
Args:
target: 攻击目标
Returns:
AttackResult: 攻击结果对象
"""
raise NotImplementedError("Subclasses must implement the attack method.")