Guest User

Untitled

a guest
Jul 17th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. private static byte[] EncryptionKey = { 0xA7, 0x84, 0x20, 0xD0, 0xC9, 0x78, 0xB3, 0x9A };
  2. private static string filter = "port 12000 and len > 60";
  3. private static int readTimeoutMilliseconds = 1000;
  4. private static int defaultDevice = -1;
  5. private static System.Collections.Generic.List<byte> _incomingBuffer = new System.Collections.Generic.List<byte>();
  6.  
  7. device.OnPacketArrival += new PacketArrivalEventHandler(PacketCapturer);
  8.  
  9. device.Open(DeviceMode.Promiscuous, readTimeoutMilliseconds);
  10. device.Filter = filter;
  11. device.StartCapture();
Add Comment
Please, Sign In to add comment