Changeset 1584
- Timestamp:
- 02/29/08 21:03:09 (6 months ago)
- Files:
-
- nebula/trunk/ChangeLog (modified) (1 diff)
- nebula/trunk/client/Makefile.in (deleted)
- nebula/trunk/src/classify.c (modified) (5 diffs)
- nebula/trunk/src/session.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
nebula/trunk/ChangeLog
r1581 r1584 3 3 - off-by-one error in signature generator input offset fixed 4 4 - signature generation triggers when cluster threshold is met instead of exceeded 5 - flush stdout after each session 6 - clean up on SIGKILL 5 7 0.2.0 6 8 - daemon version nebula/trunk/src/classify.c
r1582 r1584 64 64 u_char *tmpbuf; 65 65 qelem *cur_cqelem, *tmp_cqelem, *cur_hqelem, *tmp_hqelem; 66 double score ;66 double score, max_score; 67 67 pthread_t ntid; 68 68 pthread_attr_t ptattr; 69 69 70 tmpbuf = NULL; 70 tmpbuf = NULL; 71 max_score = 0.0; 71 72 72 73 if (!s) { … … 111 112 exit(EXIT_FAILURE); 112 113 } 113 if (verbose ) printf(" MD5 hash is %s (%u instances)\n", ((hash*)t->data)->md5sum, ((hash*)t->data)->cnt);114 if (verbose > 1) printf(" MD5 hash is %s (%u instances)\n", ((hash*)t->data)->md5sum, ((hash*)t->data)->cnt); 114 115 115 116 … … 130 131 break; 131 132 } 132 } 133 } else if (score > max_score) max_score = score; 133 134 } 134 135 } … … 190 191 if (verbose) printf(" New Cluster created.\n"); 191 192 } 192 } 193 } else if (score > max_score) max_score = score; 193 194 if (!cur_hqelem) break; 194 195 } … … 218 219 queue_ins(outlierq, t->data, outlierq_max); 219 220 220 if (verbose) printf(" Input added to outlier queue (queue size: %lu).\n", outlierq->size); 221 if (verbose) printf(" Input added to outlier queue (maximum score: %1f, outlier queue size: %lu).\n", 222 max_score, outlierq->size); 221 223 } 222 224 } nebula/trunk/src/session.c
r1583 r1584 202 202 // increase instance counter 203 203 ((hash*)t->data)->cnt++; 204 if (verbose > 1) printf(" MD5 hash is %s (%u instances)\n", ((hash*)t->data)->md5sum, ((hash*)t->data)->cnt);205 206 if (verbose ) printf("[x] Absolute MD5 match found, Rejecting known attack\n");204 if (verbose > 2) printf(" MD5 hash is %s (%u instances)\n", ((hash*)t->data)->md5sum, ((hash*)t->data)->cnt); 205 206 if (verbose > 2) printf("[x] Absolute MD5 match found, Rejecting known attack\n"); 207 207 fflush(stdout); 208 208 return(0);
