- Timestamp:
- Dec 22, 2008, 10:05:34 PM (16 years ago)
- Location:
- trunk/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/samhain_stealth.c
r34 r205 277 277 fprintf(stdout, _(" -s hide file 'what' in PS image 'where'\n")); 278 278 fprintf(stdout, _(" -g get hidden data from PS image 'where'\n")); 279 fprintf(stdout, _(" (output to stdout)\n \n"));279 fprintf(stdout, _(" (output to stdout)\n")); 280 280 fprintf(stdout, _(" -o size of file 'where' = offset to "\ 281 281 "end-of-file\n")); 282 fprintf(stdout, _(" (same as wc -c).\n")); 282 fprintf(stdout, _(" (same as wc -c).\n\n")); 283 fprintf(stdout, _(" Example: let bar.ps be the ps file, and foo the config file\n")); 284 fprintf(stdout, _(" 1) extract with: samhain_stealth -g bar.ps >foo\n")); 285 fprintf(stdout, _(" 2) hide with: samhain_stealth -s bar.ps foo\n\n")); 283 286 284 287 fprintf(stdout, _(" This program hides a file in an UNCOMPRESSED "\ … … 294 297 fprintf(stdout, _(" The program does not check the compression type of "\ 295 298 "the PS file.\n")); 296 fprintf(stdout, _(" Just have a look at the result to check.\n \n"));299 fprintf(stdout, _(" Just have a look at the result to check.\n")); 297 300 return; 298 301 } -
trunk/src/sh_hash.c
r199 r205 1440 1440 } 1441 1441 1442 static int sh_loosedircheck = S_FALSE; 1443 1444 int sh_hash_loosedircheck(const char * str) 1445 { 1446 return sh_util_flagval(str, &sh_loosedircheck); 1447 } 1448 1442 1449 1443 1450 static void sh_hash_pushdata_int (file_type * buf, char * fileHash) … … 3056 3063 } 3057 3064 change_code[10] = '\0'; 3065 3066 /* --- Directories special case --- 3067 */ 3068 if (p->theFile.c_mode[0] == 'd' && 3069 0 == (modi_mask & ~(MODI_SIZ|MODI_ATM|MODI_CTM|MODI_MTM)) && 3070 sh_loosedircheck == S_TRUE) 3071 { 3072 modi_mask = 0; 3073 } 3058 3074 3059 3075 /* --- Report full details. --- -
trunk/src/sh_processcheck.c
r204 r205 1092 1092 * with PID = i + 1024 1093 1093 */ 1094 static size_t p_store = 0; 1095 1094 1096 static int openvz_ok(short * res, size_t i) 1095 1097 { 1098 1096 1099 if (sh_prochk_openvz == S_FALSE) { 1097 1100 return 0; … … 1112 1115 } 1113 1116 1114 if (openvz_hidden) 1115 { 1117 if (openvz_hidden > 0) 1118 { 1119 p_store = i; 1116 1120 --openvz_hidden; 1121 return 1; 1122 } 1123 else if (i == p_store) 1124 { 1117 1125 return 1; 1118 1126 } … … 1409 1417 sh_prochk_interval = SH_PROCHK_INTERVAL; 1410 1418 sh_prochk_openvz = S_FALSE; 1419 p_store = 0; 1420 openvz_hidden = 0; 1411 1421 1412 1422 sh_prochk_free_list(process_check); -
trunk/src/sh_readconf.c
r199 r205 932 932 sh_unix_setcheckacl }, 933 933 #endif 934 { N_("loosedircheck"), SH_SECTION_MISC, SH_SECTION_NONE, 935 sh_hash_loosedircheck }, 934 936 { N_("addokchars"), SH_SECTION_MISC, SH_SECTION_NONE, 935 937 sh_util_obscure_ok }, -
trunk/src/sh_unix.c
r203 r205 480 480 sl_strlcat(msg, details, 128); 481 481 (void) safe_logger (thesignal, method, msg); 482 _exit(EXIT_FAILURE);482 raise(SIGKILL); 483 483 } 484 484 … … 526 526 safe_logger (mysignal, 0, NULL); 527 527 } 528 _exit(mysignal);528 raise(SIGKILL); 529 529 } 530 530 else … … 582 582 if (immediate_exit_fast < 2) 583 583 safe_logger (mysignal, 0, NULL); 584 _exit(mysignal);584 raise(SIGKILL); 585 585 #else 586 586 … … 610 610 else if (immediate_exit_fast != 0) 611 611 { 612 _exit(mysignal);612 raise(SIGKILL); 613 613 } 614 614 … … 1450 1450 } 1451 1451 } 1452 1453 #ifdef HAVE_TZSET 1454 tzset(); 1455 #endif 1452 1456 1453 1457 SL_RET0(_("sh_unix_zeroenv")); … … 4975 4979 (tv.tv_usec - save_tv.tv_usec); 4976 4980 if (difftv > 500000) 4977 _exit(6);4981 raise(SIGKILL); 4978 4982 #endif 4979 4983 sh_not_traced += signum;
Note:
See TracChangeset
for help on using the changeset viewer.