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 98/// /// /// private void cbAdapters_SelectedIndexChanged(object sender, System.EventArgs e){if(mcStop.Enabled == true){//axPacketXCtrl1.Stop();device.PcapStopCapture();device.PcapClose();mcStop.Enabled = false;}if(cbAdapters.SelectedIndex >-1){if(getNetConnections[cbAdapters.SelectedIndex] is NetworkDevice){mcStart.Enabled = true;NetworkDevice netConn =(NetworkDevice)getNetConnections[cbAdapters.SelectedIndex];device = netConn;device.PcapOnPacketArrival +=new SharpPcap.PacketArrivalEvent(device_PcapOnPacketArrival);}else{MessageBox.Show("Selected adapter \nis not suitable \nfor packet sniffing");cbAdapters.SelectedIndex = -1;}}}/// /// Menu File Exit - Terminates the application/// /// /// private void menuItem3_Click(object sender, System.EventArgs e){if(mcStop.Enabled == true){//axPacketXCtrl1.Stop();device.PcapStopCapture();device.PcapClose();}<strong>Application</strong>.Exit();}/// /// lvCon selected h<strong>and</strong>ler - displays packets of the selected conversation inlvPackets/// /// /// private void lvCon_SelectedIndexChanged(object sender, System.EventArgs e){if(lvCon.SelectedItems.Count > 0){ConColl connection = (ConColl) sigSyncArray[lvCon.SelectedIndices[0]];int vnCounter = 0;int lastDataSize = 0;//long lastSeq = 0;long requestedAck = 0;//ArrayList requestedAcks = new ArrayList();lvPackets.Items.Clear();lbHeaders.Items.Clear();headerSyncArray.Clear();for(int i=0;i

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

Saved successfully!

Ooh no, something went wrong!