Example #1
0
        internal string ReadString()
        {
            string data = ReadString(FirewindEnvironment.GetDefaultEncoding());

            //CheckForExploits(data);
            return(data);
        }
Example #2
0
        public override string ToString()
        {
            string text = Header + FirewindEnvironment.GetDefaultEncoding().GetString(Body);

            //CheckForExploits(text);
            return(text);
        }
Example #3
0
        //internal Boolean PopBase64Boolean()
        //{
        //    if (RemainingLength > 0 && Body[Pointer++] == Base64Encoding.POSITIVE)
        //    {
        //        return true;
        //    }

        //    return false;
        //}

        //internal Int32 PopInt32()
        //{
        //    return Base64Encoding.DecodeInt32(ReadBytes(2));
        //}

        //internal UInt32 PopUInt32()
        //{
        //    return (UInt32)PopInt32();
        //}

        internal string PopFixedString()
        {
            string data = PopFixedString(FirewindEnvironment.GetDefaultEncoding());

            CheckForExploits(data);
            return(data);
        }
Example #4
0
        public override string ToString()
        {
            string text = (FirewindEnvironment.GetDefaultEncoding().GetString(Body));

            for (int i = 0; i <= 32; i++)
            {
                text = text.Replace(Convert.ToChar(i).ToString(), string.Format("[{0}]", i));
            }
            return(string.Format("[{0}] BODY: \"{1}\"", Header, text));
        }
Example #5
0
 void PolicyRequest()
 {
     Connection.SendData(FirewindEnvironment.GetDefaultEncoding().GetBytes(CrossdomainPolicy.GetXmlPolicy()));
 }
Example #6
0
 public override string ToString()
 {
     return(FirewindEnvironment.GetDefaultEncoding().GetString(GetBytes()));
 }
Example #7
0
 public void AppendString(string s)
 {
     AppendShort(s.Length);
     AppendBytes(FirewindEnvironment.GetDefaultEncoding().GetBytes(s), false);
 }