internal string ReadString() { string data = ReadString(FirewindEnvironment.GetDefaultEncoding()); //CheckForExploits(data); return(data); }
public override string ToString() { string text = Header + FirewindEnvironment.GetDefaultEncoding().GetString(Body); //CheckForExploits(text); return(text); }
//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); }
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)); }
void PolicyRequest() { Connection.SendData(FirewindEnvironment.GetDefaultEncoding().GetBytes(CrossdomainPolicy.GetXmlPolicy())); }
public override string ToString() { return(FirewindEnvironment.GetDefaultEncoding().GetString(GetBytes())); }
public void AppendString(string s) { AppendShort(s.Length); AppendBytes(FirewindEnvironment.GetDefaultEncoding().GetBytes(s), false); }