unify different attacks to struct sting_attack