Z. Kwecka, BSc (Hons) Network Computing, 2006 94private System.ComponentModel.Container components = null;/// /// Default constructor/// public HTTPAnalyser_Form1(){//// Required for Windows Form Designer support//InitializeComponent();}/// /// Clean up any resources being used./// protected override void Dispose( bool disposing ){if( disposing ){if (components != null){components.Dispose();}}base.Dispose( disposing );}/// /// The main entry point for the application./// [STAThread]static void Main(){<strong>Application</strong>.Run(new HTTPAnalyser_Form1());}/// /// Form_Load - Sets up ListViews <strong>and</strong> checks for working network adapters/// /// /// private void HTTPAnalyser_Form1_Load(object sender, System.EventArgs e){headerSyncArray = ArrayList.Synchronized(headerArray);sigSyncArray = ArrayList.Synchronized(sigArray);//lvCon columnsif(lvCon.Width/5 > 20)lvCon.Columns.Add("Connection", lvCon.Width /5-20 ,HorizontalAlignment.Left);elselvCon.Columns.Add("Connection", lvCon.Width /5 , HorizontalAlignment.Left);lvCon.Columns.Add("ClientIP", lvCon.Width /5 , HorizontalAlignment.Left);lvCon.Columns.Add("ServerIP", lvCon.Width /5 , HorizontalAlignment.Left);lvCon.Columns.Add("ClientPort", lvCon.Width /5 , HorizontalAlignment.Left);lvCon.Columns.Add("ServerPort", lvCon.Width /5 , HorizontalAlignment.Left);//lvPackets columnslvPackets.Columns.Add("No", 30 , HorizontalAlignment.Left);if(lvPackets.Width/6 > 53)lvPackets.Columns.Add("Port", lvPackets.Width /6 - 53 , HorizontalAlignment.Left);elselvPackets.Columns.Add("Port", lvPackets.Width /6 , HorizontalAlignment.Left);lvPackets.Columns.Add("Flags", lvPackets.Width /6 , HorizontalAlignment.Left);lvPackets.Columns.Add("Size (Data Size)", lvPackets.Width /6 ,HorizontalAlignment.Left);lvPackets.Columns.Add("Date", lvPackets.Width /6 , HorizontalAlignment.Left);lvPackets.Columns.Add("SEQ", lvPackets.Width /6 , HorizontalAlignment.Left);lvPackets.Columns.Add("ACK", lvPackets.Width /6 , HorizontalAlignment.Left);lvPackets.View = View.Details;//set menu itemsmcStop.Enabled = false;mcStart.Enabled = false;
Z. Kwecka, BSc (Hons) Network Computing, 2006 95}//Adaptersc collectiongetNetConnections = SharpPcap.GetAllDevices();for (int i = 0; i < getNetConnections.Count ; i++){cbAdapters.Items.Add("(" + (i) + ") " + getNetConnections[i].PcapDescription);}cbAdapters.Invalidate();/// /// Capture Menu Start Click - starts reading from the selected adapter/// /// /// private void mcStart_Click(object sender, System.EventArgs e){lvPackets.Items.Clear();lbHeaders.Items.Clear();//conArray.Clear();//sigArray.Clear();//vnCounter = 0;//axPacketXCtrl1.Start();if(cbChip.Checked){device.PcapOpen(false,1000);}else{device.PcapOpen(true,1000);}device.PcapSetFilter("port 80");device.PcapStartCapture();mcStart.Enabled = false;mcStop.Enabled = true;gbAdapter.Enabled = false;if(cbDump.Checked && dumpFile != ""){device.PcapDumpOpen(dumpFile);}else if(cbDump.Checked){MessageBox.Show("Could not open Dump File");}}/// /// Capture Menu Stop Click - stops reading/// /// /// private void mcStop_Click(object sender, System.EventArgs e){device.PcapStopCapture();device.PcapClose();cbAdapters.SelectedIndex = -1;mcStart.Enabled = false;mcStop.Enabled = false;gbAdapter.Enabled = true;}/// /// OnPacket event h<strong>and</strong>ler - builds collection of "conversations" <strong>and</strong> displays it inlvCon/// /// /// private void device_PcapOnPacketArrival(object sender, Packet aPacket){if(aPacket is TCPPacket){TCPPacket tcp = (TCPPacket)aPacket;if(tcp.DestinationPort == 80 || tcp.SourcePort == 80)//herefor the offline dumph<strong>and</strong>ling
- Page 1 and 2:
Application Layer Covert ChannelAna
- Page 3 and 4:
Z. Kwecka, BSc (Hons) Network Compu
- Page 5 and 6:
Z. Kwecka, BSc (Hons) Network Compu
- Page 7 and 8:
Z. Kwecka, BSc (Hons) Network Compu
- Page 9 and 10:
Z. Kwecka, BSc (Hons) Network Compu
- Page 11:
Z. Kwecka, BSc (Hons) Network Compu
- Page 14:
Z. Kwecka, BSc (Hons) Network Compu
- Page 17 and 18:
Z. Kwecka, BSc (Hons) Network Compu
- Page 19 and 20:
Z. Kwecka, BSc (Hons) Network Compu
- Page 21 and 22:
Z. Kwecka, BSc (Hons) Network Compu
- Page 23 and 24:
Z. Kwecka, BSc (Hons) Network Compu
- Page 25:
Z. Kwecka, BSc (Hons) Network Compu
- Page 28 and 29:
Z. Kwecka, BSc (Hons) Network Compu
- Page 30 and 31:
Z. Kwecka, BSc (Hons) Network Compu
- Page 32 and 33:
Z. Kwecka, BSc (Hons) Network Compu
- Page 34 and 35:
Z. Kwecka, BSc (Hons) Network Compu
- Page 36 and 37:
Z. Kwecka, BSc (Hons) Network Compu
- Page 38 and 39:
Z. Kwecka, BSc (Hons) Network Compu
- Page 40 and 41:
Z. Kwecka, BSc (Hons) Network Compu
- Page 42 and 43:
Z. Kwecka, BSc (Hons) Network Compu
- Page 44 and 45: Z. Kwecka, BSc (Hons) Network Compu
- Page 46 and 47: Z. Kwecka, BSc (Hons) Network Compu
- Page 48 and 49: Z. Kwecka, BSc (Hons) Network Compu
- Page 50 and 51: Z. Kwecka, BSc (Hons) Network Compu
- Page 52 and 53: Z. Kwecka, BSc (Hons) Network Compu
- Page 54 and 55: Z. Kwecka, BSc (Hons) Network Compu
- Page 56: Z. Kwecka, BSc (Hons) Network Compu
- Page 60 and 61: Z. Kwecka, BSc (Hons) Network Compu
- Page 63 and 64: Z. Kwecka, BSc (Hons) Network Compu
- Page 65 and 66: Z. Kwecka, BSc (Hons) Network Compu
- Page 67 and 68: Z. Kwecka, BSc (Hons) Network Compu
- Page 69 and 70: Z. Kwecka, BSc (Hons) Network Compu
- Page 71 and 72: Z. Kwecka, BSc (Hons) Network Compu
- Page 73 and 74: Z. Kwecka, BSc (Hons) Network Compu
- Page 75 and 76: Z. Kwecka, BSc (Hons) Network Compu
- Page 77 and 78: Z. Kwecka, BSc (Hons) Network Compu
- Page 79 and 80: Z. Kwecka, BSc (Hons) Network Compu
- Page 81 and 82: Z. Kwecka, BSc (Hons) Network Compu
- Page 83 and 84: Z. Kwecka, BSc (Hons) Network Compu
- Page 85 and 86: Z. Kwecka, BSc (Hons) Network Compu
- Page 87 and 88: Z. Kwecka, BSc (Hons) Network Compu
- Page 89 and 90: Z. Kwecka, BSc (Hons) Network Compu
- Page 91 and 92: Z. Kwecka, BSc (Hons) Network Compu
- Page 93: Z. Kwecka, BSc (Hons) Network Compu
- Page 97 and 98: Z. Kwecka, BSc (Hons) Network Compu
- Page 99 and 100: Z. Kwecka, BSc (Hons) Network Compu
- Page 101 and 102: Z. Kwecka, BSc (Hons) Network Compu
- Page 103 and 104: Z. Kwecka, BSc (Hons) Network Compu
- Page 105 and 106: Z. Kwecka, BSc (Hons) Network Compu
- Page 107 and 108: Z. Kwecka, BSc (Hons) Network Compu
- Page 109 and 110: Z. Kwecka, BSc (Hons) Network Compu
- Page 111 and 112: Z. Kwecka, BSc (Hons) Network Compu
- Page 113: Z. Kwecka, BSc (Hons) Network Compu
- Page 116 and 117: Z. Kwecka, BSc (Hons) Network Compu
- Page 118 and 119: Z. Kwecka, BSc (Hons) Network Compu
- Page 120 and 121: Z. Kwecka, BSc (Hons) Network Compu
- Page 122 and 123: Z. Kwecka, BSc (Hons) Network Compu
- Page 124 and 125: Z. Kwecka, BSc (Hons) Network Compu
- Page 126 and 127: Z. Kwecka, BSc (Hons) Network Compu
- Page 128 and 129: Z. Kwecka, BSc (Hons) Network Compu
- Page 130 and 131: Z. Kwecka, BSc (Hons) Network Compu
- Page 132 and 133: Z. Kwecka, BSc (Hons) Network Compu
- Page 134 and 135: Z. Kwecka, BSc (Hons) Network Compu
- Page 136 and 137: Z. Kwecka, BSc (Hons) Network Compu
- Page 138: Z. Kwecka, BSc (Hons) Network Compu