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...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Z. Kwecka, BSc (Hons) Network Computing, 2006 110}Byte[]RecvBytes = new Byte[Byte.MaxValue];Int32 bytes;httpRequest = (HttpWebRequest) WebRequest.Create(aURL);httpResponse = (HttpWebResponse) httpRequest.GetResponse();responseStream = httpResponse.GetResponseStream();responseHeader = httpResponse.GetResponseHeader("Content-Type");while(true){bytes = responseStream.Read(RecvBytes,0,RecvBytes.Length);if(bytes0){sum += Convert.ToInt64(timeTaken.TotalMilliseconds);}nav();}private void button2_Click(object sender, System.EventArgs e){trigerProcess.Enabled = false;browserDelay.Enabled = false;button1.Enabled = true;gbBrowser.Enabled = true;button2.Enabled = false;checkBox1.Enabled = true;}private void checkBox1_CheckedChanged(object sender, System.EventArgs e){}private void trigerProcess_Tick(object sender, System.EventArgs e){trigerProcess.Enabled = false;if(button2.Enabled == false)return;if(tbSites.Text.Length + 30 > tbSites.MaxLength)tbSites.Text = "";StreamWriter hostFile = null;if(checkBox1.Checked == true){if(File.Exists("C:\\WINDOWS\\system32\\drivers\\etc\\hosts")){hostFile = new StreamWriter("C:\\WINDOWS\\system32\\drivers\\etc\\hosts",false);}else{hostFile = new StreamWriter("C:\\WINNT\\system32\\drivers\\etc\\hosts",false);}}if(current < read )//&& sites[current] != Environment.NewLine)

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

Saved successfully!

Ooh no, something went wrong!