Docsity

Machine Sniffers - Object Oriented Design | CSE 687, Study Guides, Projects, Research of Engineering

Toggle sidebar
bg1
CSE687 – Object Oriented Design
Spring 2005
Project #4d – Machine Sniffers due Monday,
May 02
Purpose:
Several final projects are specified for this course. You may choose to implement one, but are
not required to develop more than one.
This project requires you to implement two servers that scan certain machine conditions periodically, with
dormant periods between scans. We will refer to them as sniffers, for reasons that become apparent,
below. You will also build a client of these servers that, when run, query the sniffers, to retrieve information
about their scans.
One sniffer scans for currently running processes 1, and keeps a persistent collection of the names of all the
processes it has seen. For each process it maintains a property that records if the client has indicated it to
be a safe process. On command it will disclose to the client the list of unsafe processes or a list of all the
processes. With each entry it lists the last date the process was active and activation path. On command it
will mark any group of processes as safe.
The other sniffer uses the Win32 A PI function getTcpTable to get a list of all TCP connections. It maintains a
list of all ports on which it has observed connections, and for each such port a property that records if the
client has indicated it to be safe. On command it will disclose to the client all unsafe or all port connections
and which are listeners, with the last date on which the connection was observed. On command it marks
any group of ports as safe.
You are asked to use STL containers, iterators, and algorithms to support the maintenance and disclosure of
the sniffer lists.
Requirements:
Your SNIFFER system:
1. shall use VC++ 7.1, as provided in the ECS clusters and operate in the environment provided
there2.
2. shall use standard C++ to build two server programs.
a. One component implements the process sniffer, as described in the purpose section.
b. The other component implements the port sniffer, as described in the purpose section.
3. Each sniffer shall continuously execute scans of all items, e.g., processes or ports, with a variable
dormant period between each item in the scan 3.
4. shall implement the client so that 4:
a. The client implements queries to retrieve either a list of all unsafe items from either sniffer
or a list of all items from either sniffer.
b. The client issues commands to mark a specifi ed list of items as safe.
c. The client may request that any safe item be marked as unsafe.
5. Each sniffer shall accept from the client a command to change the interval of its dormancy.
6. The client shall provide the user the ability to alter the dormant period, expressed in milliseconds.
1 You can find example code on MSDN by searching for “Taking a snapshot and Viewing Processes”.
2 VC++ ver 7.1 is Visual Studio .Net 2003 and is available in all the ECS clus ters.
3 The purpose of the dormant period is to keep CPU utilization very low.
4 Note that this requirement implies the use of inter-process communication. Sockets are recommended for
that purpose. We will discuss sockets briefly in class.
pf2

Partial preview of the text

Download Machine Sniffers - Object Oriented Design | CSE 687 and more Study Guides, Projects, Research Engineering in PDF only on Docsity!

CSE687 – Object Oriented Design

Spring 2005

Project #4d – Machine Sniffers due Monday,

May 02

Purpose:

Several final projects are specified for this course. You may choose to implement one, but are

not required to develop more than one.

This project requires you to implement two servers that scan certain machine conditions periodically, with dormant periods between scans. We will refer to them as sniffers, for reasons that become apparent, below. You will also build a client of these servers that, when run, query the sniffers, to retrieve information about their scans. One sniffer scans for currently running processes^1 , and keeps a persistent collection of the names of all the processes it has seen. For each process it maintains a property that records if the client has indicated it to be a safe process. On command it will disclose to the client the list of unsafe processes or a list of all the processes. With each entry it lists the last date the process was active and activation path. On command it will mark any group of processes as safe. The other sniffer uses the Win32 API function getTcpTable to get a list of all TCP connections. It maintains a list of all ports on which it has observed connections, and for each such port a property that records if the client has indicated it to be safe. On command it will disclose to the client all unsafe or all port connections and which are listeners, with the last date on which the connection was observed. On command it marks any group of ports as safe. You are asked to use STL containers, iterators, and algorithms to support the maintenance and disclosure of the sniffer lists.

Requirements:

Your SNIFFER system:

  1. shall use VC++ 7.1, as provided in the ECS clusters and operate in the environment provided there^2.
  2. shall use standard C++ to build two server programs. a. One component implements the process sniffer, as described in the purpose section. b. The other component implements the port sniffer, as described in the purpose section.
  3. Each sniffer shall continuously execute scans of all items, e.g., processes or ports, with a variable dormant period between each item in the scan^3.
  4. shall implement the client so that^4 : a. The client implements queries to retrieve either a list of all unsafe items from either sniffer or a list of all items from either sniffer. b. The client issues commands to mark a specified list of items as safe. c. The client may request that any safe item be marked as unsafe.
  5. Each sniffer shall accept from the client a command to change the interval of its dormancy.
  6. The client shall provide the user the ability to alter the dormant period, expressed in milliseconds. (^1) You can find example code on MSDN by searching for “Taking a snapshot and Viewing Processes”. (^2) VC++ ver 7.1 is Visual Studio .Net 2003 and is available in all the ECS clusters. (^3) The purpose of the dormant period is to keep CPU utilization very low. (^4) Note that this requirement implies the use of inter-process communication. Sockets are recommended for that purpose. We will discuss sockets briefly in class.

CSE687 – Object Oriented Design Spring 2005

  1. The client shall load a configuration file at startup that lists each sniffer as a process name. This supports the later addition of other sniffers to the system.
  2. All sniffers shall provide the same interface for use by the client.
  3. The client shall present to the user a list of all configured sniffers and allow a selection for query and start or stop commands.