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 44Also, to accommodate for generating traffic through two different paths, as requiredby the experiments, which test server responses to modified <strong>and</strong> unmodified requests,the Browser Caller requests every page twice, modifying ‘hosts’ file 10 with anaddress of either forward Proxy or filtering Proxy between the requests. Therefore, thebrowsers are configured to use Proxy server specified by a domain name(‘www.filteringproxy.com’) rather than IP address. Then, the line of the hosts filedefining the ‘www.filteringproxy.com’ is modified with IP address of the Proxy to beused.Code required to modify a host file in the operating system <strong>and</strong> cause a web browserto navigate to a given site follows:try{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){target = sites[current];if(secondExecution == false && checkBox1.Checked == true){hostFile.WriteLine("127.0.0.1\tlocalhost");hostFile.WriteLine("192.168.1.7\twww.filteringproxy.com");hostFile.Close();secondExecution = true;}else if(secondExecution == true && checkBox1.Checked == true){hostFile.WriteLine("127.0.0.1\tlocalhost");hostFile.WriteLine("192.168.1.8\twww.filteringproxy.com");hostFile.Close();current++;secondExecution = false;}else{current++;}ProcessStartInfo startInfo;if(rbIExplorer.Checked == true){System.Diagnostics.Process[] p =System.Diagnostics.Process.GetProcesses();for(int i=0 ;i

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

Saved successfully!

Ooh no, something went wrong!