Docsity

CSE775 Project 2: Building COM-based Sniffers for Distributed Objects - Prof. James Fawcet, Study Guides, Projects, Research of Engineering

Toggle sidebar
bg1
CSE775 – Distributed Objects
Spring 2005
Project #2 – COM-based Sniffers due
Monday, Mar 28
ver. 2.0
Purpose:
This project requires you to build two COM out-of-process 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, 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. On command it will mark any group
of processes as safe.
The other sniffer scans all machine ports from 0 to 9999. It observes all ports currently hosting a
connection. It too 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 build one of the sniffers using straight C++, using either OutOfProc1 or OutOfProc3b as a
prototype. You are also asked to use ATL to build the other sniffer. Please also use C# to build the client
interface, which queries sniffers and indicates safe entries.
Requirements:
Your SNIFFER system:
1. shall use VC++ 7.1, as provided in the ECS clusters and operate in the environment provided
there1.
2. shall use straight C++ to build one out- of-process component and ATL to build the other
component.
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 scan2.
4. Each sniffer shall accept from the client a command to change the interval of its dormancy.
5. shall implement the client, using C#.
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.
6. The client shall provide the user the ability to alter the dormant period, expressed in milliseconds.
1 VC++ ver 7.1 is Visual Studio .Net 2003 and is available in all the ECS clusters.
2 The purpose of the dormant period is to keep CPU utilization very low.
pf2

Partial preview of the text

Download CSE775 Project 2: Building COM-based Sniffers for Distributed Objects - Prof. James Fawcet and more Study Guides, Projects, Research Engineering in PDF only on Docsity!

CSE775 – Distributed Objects

Spring 2005

Project #2 – COM-based Sniffers due

Monday, Mar 28

ver. 2.

Purpose:

This project requires you to build two COM out-of-process 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, 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. On command it will mark any group of processes as safe. The other sniffer scans all machine ports from 0 to 9999. It observes all ports currently hosting a connection. It too 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 build one of the sniffers using straight C++, using either OutOfProc1 or OutOfProc3b as a prototype. You are also asked to use ATL to build the other sniffer. Please also use C# to build the client interface, which queries sniffers and indicates safe entries.

Requirements:

Your SNIFFER system:

  1. shall use VC++ 7.1, as provided in the ECS clusters and operate in the environment provided there^1.
  2. shall use straight C++ to build one out-of-process component and ATL to build the other component. 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^2.
  4. Each sniffer shall accept from the client a command to change the interval of its dormancy.
  5. shall implement the client, using C#. 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.
  6. The client shall provide the user the ability to alter the dormant period, expressed in milliseconds. (^1) VC++ ver 7.1 is Visual Studio .Net 2003 and is available in all the ECS clusters. (^2) The purpose of the dormant period is to keep CPU utilization very low.

CSE775 – Distributed Objects Spring 2005

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