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 106startTime = DateTime.Now;axWebBrowser1.Navigate(sites[current], ref notUsed, ref notUsed, ref notUsed, refnotUsed);current++;}else{MessageBox.Show(sum.ToString() + " " + read.ToString());average = sum/read;MessageBox.Show("Average time taken: " + average.ToString());sw.Close();button1.Enabled = true;checkBox1.Enabled = true;textBox1.Enabled = true;button2.Enabled = false;button3.Enabled = false;}}public string getHTTP(string aURL){HttpWebRequest httpRequest;HttpWebResponse httpResponse;string body = "";Stream responseStream;string responseHeader;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);if(sw != null){sw.WriteLine(e.uRL.ToString()+"\t\t"+timeTaken.ToString());}}nav();}private void button2_Click(object sender, System.EventArgs e){button1.Enabled = true;checkBox1.Enabled = true;textBox1.Enabled = true;button2.Enabled = false;button3.Enabled = false;sw.Close();

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

Saved successfully!

Ooh no, something went wrong!