Example #1
0
def tencent_run_test(event, context):
    logging.info('Tencent Serverless.')
    logging.info(context)
    args = process_args_dict(event)
    attacker = Attacker(*args)
    attacker.attack()
Example #2
0
def huawei_run_test(event, context):
    logging.info('Huawei Serverless.')
    logging.info(context)
    args = process_args_dict(event)
    attacker = Attacker(*args)
    attacker.attack()
Example #3
0
def tencent_run_api(event, context):
    logging.info('Tencent Serverless.')
    logging.info(context)
    args = process_args_dict(event['queryString'])
    attacker = Attacker(*args)
    attacker.attack()
Example #4
0
def aliyun_run_test(event, context):
    logging.info('Aliyun Serverless.')
    logging.info(context)
    args = process_args_dict(json.loads(event))
    attacker = Attacker(*args)
    attacker.attack()
Example #5
0
from args_parser import process_args_dict, console_get_args_dict
from attacker import Attacker, Mode

if __name__ == "__main__":
    # print(get_args())
    args = process_args_dict(console_get_args_dict())
    attacker = Attacker(*args)
    attacker.attack()