public override void Attack() { Form form = null; while ((form = GetNotVistedForm()) != null) { if (HasReflectedResults(form)) { _xAttack = new XAttack(); _xAttack.AttackId = _sharedResource.SharedAttack.Id; _xAttack.FormId = form.Id; _xAttack.StartTime = DateTime.Now; XAttackParam[] attackParams= ComputeAttackParams(form); for (int i = 0; i < attackParams.Length; i++) _xAttack.XAttackParams.Add(attackParams[i]); _xAttack.AttackContent = CreateAttackVector(attackParams, form); _xAttack.ResponsePage = DoAttack(form, _xAttack.AttackContent); _xAttack.FinishTime = DateTime.Now; DataLayer.Save(_xAttack); } } }
public static void Save(XAttack xAttack) { throw new NotImplementedException(); }
/// <summary> /// Deprecated Method for adding a new object to the XAttacks EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToXAttacks(XAttack xAttack) { base.AddObject("XAttacks", xAttack); }
public EncodedXssAttackAnnounceItem(XAttack xAttack, EncodedXssAttackStatus attackStatus, XssAttackingSharedReource attackingSharedResource, string description, DateTime dateTime) : base(attackingSharedResource,description,dateTime) { this.XAttack = xAttack; this.AttackStatus = attackStatus; }
/// <summary> /// Create a new XAttack object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="attackId">Initial value of the AttackId property.</param> /// <param name="formId">Initial value of the FormId property.</param> /// <param name="attackContent">Initial value of the AttackContent property.</param> /// <param name="responsePage">Initial value of the ResponsePage property.</param> public static XAttack CreateXAttack(global::System.Int32 id, global::System.Int32 attackId, global::System.Int32 formId, global::System.String attackContent, global::System.String responsePage) { XAttack xAttack = new XAttack(); xAttack.Id = id; xAttack.AttackId = attackId; xAttack.FormId = formId; xAttack.AttackContent = attackContent; xAttack.ResponsePage = responsePage; return xAttack; }