Esempio n. 1
0
 static void AddImportedResponseToIronWASP(Response Res, Session IrSe)
 {
     IrSe.Response    = Res;
     IrSe.Response.ID = IrSe.Request.ID;
     IronUpdater.AddProxyResponse(IrSe.Response.GetClone(true));
     PassiveChecker.AddToCheckResponse(IrSe);
 }
Esempio n. 2
0
        static void ProcessBurpMessage(string BurpMessage, string MetaLine)
        {
            string[] BurpMessageParts = BurpMessage.Split(new string[] { "\r\n======================================================\r\n" }, 2, StringSplitOptions.RemoveEmptyEntries);
            Session  IrSe             = null;

            if (BurpMessageParts.Length > 0)
            {
                Request Req = ReadBurpRequest(BurpMessageParts[0], MetaLine);
                if (Req != null)
                {
                    IrSe    = new Session(Req);
                    IrSe.ID = Interlocked.Increment(ref Config.ProxyRequestsCount);
                    IronUpdater.AddProxyRequest(IrSe.Request.GetClone(true));
                    PassiveChecker.AddToCheckRequest(IrSe);
                }
            }
            if (BurpMessageParts.Length == 2)
            {
                if (IrSe != null)
                {
                    try
                    {
                        Response Res = new Response(BurpMessageParts[1]);
                        IrSe.Response    = Res;
                        IrSe.Response.ID = IrSe.Request.ID;
                        IronUpdater.AddProxyResponse(IrSe.Response.GetClone(true));
                        PassiveChecker.AddToCheckResponse(IrSe);
                    }
                    catch
                    {
                    }
                }
            }
        }
Esempio n. 3
0
        static Session AddImportedRequestToIronWASP(Request Req)
        {
            Session IrSe = new Session(Req);

            IrSe.ID = Interlocked.Increment(ref Config.ProxyRequestsCount);
            IronUpdater.AddProxyRequest(IrSe.Request.GetClone(true));
            PassiveChecker.AddToCheckRequest(IrSe);
            return(IrSe);
        }