Changeset 1427
- Timestamp:
- 10/28/07 15:08:42 (10 months ago)
- Files:
-
- honeytrap/trunk/src/modules/htm_httpDownload.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
honeytrap/trunk/src/modules/htm_httpDownload.c
r1387 r1427 40 40 41 41 const char module_name[]="httpDownload"; 42 const char module_version[]="0.0. 1";42 const char module_version[]="0.0.2"; 43 43 44 44 static const char *config_keywords[] = { … … 65 65 66 66 void plugin_unload(void) { 67 unhook(PPRIO_ ANALYZE, module_name, "cmd_parse_for_http_url");67 unhook(PPRIO_POSTPROC, module_name, "cmd_parse_for_http_url"); 68 68 return; 69 69 } … … 71 71 void plugin_register_hooks(void) { 72 72 DEBUG_FPRINTF(stdout, " Plugin %s: Registering hooks.\n", module_name); 73 add_attack_func_to_list(PPRIO_ ANALYZE, module_name, "cmd_parse_for_http_url", (void *) cmd_parse_for_http_url);73 add_attack_func_to_list(PPRIO_POSTPROC, module_name, "cmd_parse_for_http_url", (void *) cmd_parse_for_http_url); 74 74 75 75 return; … … 144 144 145 145 int cmd_parse_for_http_url(Attack *attack) { 146 int i = 0 ;146 int i = 0, j = 0; 147 147 FILE *f = NULL; 148 148 char *string_for_processing, *start, *end, *cmd; … … 172 172 173 173 /* 0-terminate URL */ 174 for (end = start, i=0; i<strlen(start) && end[0]; end = &start[i++]) {174 for (end = start, j=0; j<strlen(start) && end[0]; end = &start[j++]) { 175 175 if (isspace(end[0])) end[0] = 0; 176 176 else if (!isprint(end[0])) end[0] = 0;
