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 135int index1;string separator = ":";string [] originalHeaders = r.Split(headers);string host = "Unknown";string agent = "Unknown";if(originalHeaders.Length>1){string [] modifiedHeaders = new string[originalHeaders.Length-1];foreach(string singleHeader in originalHeaders){if(singleHeader != "" && iteratorIndex > 0)//finds empty line - the start ofthe content{if(singleHeader.IndexOf(':')>0){string [] lineSplit = singleHeader.Split(separator.ToCharArray(),2);modifiedHeaders[iteratorIndex-1] = lineSplit[0]+"\t\t" +lineSplit[1];}else{modifiedHeaders[iteratorIndex-1] = singleHeader+"\t\t";}//modifiedHeaders[iteratorIndex-1] = singleHeader;a=0;}else if(singleHeader == ""){a++;break;}iteratorIndex++;} //end for each single headerint iter2 = 0;foreach(string modifiedHeader in modifiedHeaders){if(modifiedHeader != "" && modifiedHeader != null){headerSyncArray.Add(modifiedHeader);lbHeaders.Items.Add(modifiedHeader);if(device.PcapOpened)sw.WriteLine(modifiedHeader);}else{break;}iter2++;}//end foreach modified header}//end if more than one line in headers}//end if textBox1 matches} //end if lenght > 0} //end if mathes the destination settings}private void mhDoc_Click(object sender, System.EventArgs e){//insert code here}private void cbDump_CheckedChanged(object sender, System.EventArgs e){if(cbDump.Checked == true){if(ofdDump.ShowDialog() ==DialogResult.Cancel){cbDump.Checked = false;return;}

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

Saved successfully!

Ooh no, something went wrong!