13.07.2015 Views

Application Layer Covert Channel Analysis and ... - Bill Buchanan

Application Layer Covert Channel Analysis and ... - Bill Buchanan

Application Layer Covert Channel Analysis and ... - Bill Buchanan

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Z. Kwecka, BSc (Hons) Network Computing, 2006 81listener.Start();lbConsole.Items.Add("Proxy started");lbConsole.Items.Add("Listening on" +construct.Replace(";int:",":").Replace("host:",": "));consoleTimer.Enabled = true;}catch{Console.WriteLine("Error while staring the Listener.\r\n(Perhaps the specifiedport is already in use?)");return;}}/// /// Creates a new Listener obejct from a given listener name <strong>and</strong> a given listenerparameter string./// /// The type of object to instantiate./// /// public Listener CreateListener(string type, string cpars){try{string [] parts = cpars.Split(';');object [] pars = new object[parts.Length];string oval = null, otype = null;int ret;// Start instantiating the objects to give to the constructorfor(int i = 0; i < parts.Length; i++){ret = parts[i].IndexOf(':');if (ret >= 0){otype = parts[i].Substring(0, ret);oval = parts[i].Substring(ret + 1);}else{otype = parts[i];}switch (otype.ToLower()){case "int":pars[i] = int.Parse(oval);break;case "host":pars[i] = Dns.Resolve(oval).AddressList[0];break;case "null":pars[i] = null;break;case "string":pars[i] = oval;break;case "ip":pars[i] = IPAddress.Parse(oval);break;default:pars[i] = null;break;}}return (Listener)Activator.CreateInstance(Type.GetType(type), pars);}catch{return null;}}private void bExit_Click(object sender, System.EventArgs e){if(listener != null)listener.Dispose();consoleTimer.Enabled = false;

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!