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 109/// [STAThread]static void Main(){<strong>Application</strong>.Run(new Form1());}int read = 0;int current = 0;int arraySize=1000;object notUsed = null;string [] sites;DateTime startTime;TimeSpan timeTaken;double average = 0;string target= "";long sum = 0;bool secondExecution = false;private void button1_Click(object sender, System.EventArgs e){button2.Enabled = true;checkBox1.Enabled = false;string file = <strong>Application</strong>.StartupPath+"\\sites.txt";string txt="";current = 0;if (File.Exists(file)){StreamReader SW = new StreamReader(file);}while ((txt=SW.ReadLine())!=null && read < arraySize){sites[read]=txt;//textBox2.Text += txt + Environment.NewLine;read++;}SW.Close();}else{tbSites.Text += Environment.NewLine + "ERROR: Error reading sites file";}trigerProcess.Enabled = true;button1.Enabled = false;gbBrowser.Enabled = false;tbSites.Text = "";public void nav(){if(current < read )//&& sites[current] != Environment.NewLine){startTime = DateTime.Now;current++;}else{MessageBox.Show(sum.ToString() + " " + read.ToString());average = sum/read;MessageBox.Show("Average time taken: " + average.ToString());}}public string getHTTP(string aURL){HttpWebRequest httpRequest;HttpWebResponse httpResponse;string body = "";Stream responseStream;string responseHeader;

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

Saved successfully!

Ooh no, something went wrong!