root/capture-mod/trunk/captureGSOAP.h

Revision 1816, 2.3 kB (checked in by mbriggs, 3 months ago)

Changed SOAP Server to reflect database app

Line 
1 /*
2 **Created by Xeno Kovah of the MITRE HoneyClient Project 5/20/2008
3 */
4
5 //NOTE: these comments are used by soapcpp2.exe. Changing them changes the auto-generated code
6 //gsoap ns service name: capture
7 //gsoap ns service style: rpc
8 //gsoap ns service encoding: encoded
9 //gsoap ns service port: http://0.0.0.0:1234
10 //gsoap ns service namespace: capture
11
12 //structures for events
13 //Names of fields used in structs are what will show up in XML
14
15 //Just using similar to previous perl names
16 struct ns__regkey{
17     char *  created_at;
18     char *  event_type;
19     int     pid;
20     char *  proc_name;
21     char *  name;
22     char *  value_name;
23     char *  value_type;
24     char *  value;
25 };
26
27 struct ns__processFile{
28     char *  created_at;
29     char *  event_type;
30     int     pid;
31     char *  proc_name;
32     char *  name;
33 };
34
35 struct ns__osProcess{
36     char *  created_at;
37     char *  event_type;
38     int     parent_pid;
39     char *  parent_name;
40     int     pid;
41     char *  name;
42 };
43
44
45 struct ns__dynRegArray{
46     struct ns__regkey * __ptr;
47     int __size; //number of elements, not total size
48 };
49
50 struct ns__dynFileArray{
51     struct ns__processFile * __ptr;
52     int __size; //number of elements, not total size
53 };
54
55 struct ns__dynProcArray{
56     struct ns__osProcess * __ptr;
57     int __size; //number of elements, not total size
58 };
59
60 typedef struct a1{
61     struct ns__dynRegArray * regkeys;
62     struct ns__dynFileArray * process_files;
63     struct ns__dynProcArray * os_processes;
64 } ns__allEvents;
65
66 //A poor substitute for MIME, but it works
67 typedef struct s1{
68     char * data;
69     unsigned int encodedLength;
70     unsigned int decodedLength;
71 } ns__receiveFileStruct;
72
73 int ns__ping(char * a, char ** result);
74 int ns__visitURL(char * URL, int &result);
75 int ns__sendFileBase64(char * fileName, char * data, unsigned int encodedLength, unsigned int decodedLength, int &result);
76 int ns__receiveFileBase64(char * fileName, ns__receiveFileStruct &result);
77 int ns__openDocument(char * fileName, int waitTimeMillisec, int &result);
78 int ns__returnRegistryEvents(int maxEventsToReturn, struct ns__dynRegArray **result);
79 int ns__returnFileEvents(int maxEventsToReturn, struct ns__dynFileArray **result);
80 int ns__returnProcessEvents(int maxEventsToReturn, struct ns__dynProcArray **result);
81 int ns__returnEvents(int maxEventsToReturn, ns__allEvents **result);
82
83 //Not working, see definition comments
84 int ns__sendMIME(int magicNumber, int &result);
Note: See TracBrowser for help on using the browser.