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 136}}private void mfOpen_Click(object sender, System.EventArgs e){if(ofdReadDump.ShowDialog() == DialogResult.Cancel)return;}private void ofdDump_FileOk(object sender, System.ComponentModel.CancelEventArgs e){OpenFileDialog ofd = (OpenFileDialog) sender;if(ofdDump.FileName != ""){dumpFile = ofdDump.FileName;}}else{cbDump.Checked = false;}private void ofdReadDump_FileOk(object sender, System.ComponentModel.CancelEventArgse){OpenFileDialog ofd = (OpenFileDialog) sender;if(ofd.FileName != ""){mcStart.Enabled = false;gbAdapter.Enabled = true;cbAdapters.SelectedIndex = -1;lbHeaders.Items.Clear();try{device = SharpPcap.GetPcapOfflineDevice( ofd.FileName );device.PcapOnPacketArrival +=new SharpPcap.PacketArrivalEvent(device_PcapOnPacketArrival);sw = new StreamWriter(ofd.FileName + "_Exp1.txt", true, Encoding.ASCII);sw.WriteLine("HeaderName\t\tHeaderValue");sw.WriteLine("----------\t\t-----------");device.PcapOpen();device.PcapStartCapture();mcStop.Enabled = true;if(cbDump.Checked && dumpFile != ""){device.PcapDumpOpen(dumpFile);}else if(cbDump.Checked){MessageBox.Show("Could not open Dump File");}}catch(Exception exception){MessageBox.Show(exception.Message);}}else{MessageBox.Show("Wrong input file");}}}}

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

Saved successfully!

Ooh no, something went wrong!