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 116/// 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;<strong>Application</strong>.Exit();}private void bShow_Click(object sender, System.EventArgs e){ConsoleBuffer.covert_text=tbFilter.Text;ConsoleBuffer.recipient = textBox1.Text;}private void bStop_Click(object sender, System.EventArgs e){listener.Dispose();consoleTimer.Enabled = false;lbConsole.Items.Add("Proxy stoped");}private void consoleTimer_Tick(object sender, System.EventArgs e){int a = bufferRead;

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

Saved successfully!

Ooh no, something went wrong!