Changeset 212 for trunk/src/samhain_stealth.c
- Timestamp:
- Feb 17, 2009, 10:37:42 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/samhain_stealth.c
r205 r212 270 270 static void usage () 271 271 { 272 fprintf(stdout, _("\nUsage: samhain_stealth -i|s|g|o <where> "\ 273 "[what]\n\n")); 274 275 fprintf(stdout, _(" -i info on PS image 'where'\n")); 276 fprintf(stdout, _(" (how much bytes can be hidden in it).\n")); 277 fprintf(stdout, _(" -s hide file 'what' in PS image 'where'\n")); 278 fprintf(stdout, _(" -g get hidden data from PS image 'where'\n")); 279 fprintf(stdout, _(" (output to stdout)\n")); 280 fprintf(stdout, _(" -o size of file 'where' = offset to "\ 281 "end-of-file\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")); 286 287 fprintf(stdout, _(" This program hides a file in an UNCOMPRESSED "\ 288 "postscript\n")); 289 fprintf(stdout, _(" image. To generate such an image, you may "\ 290 "use e.g.:\n")); 291 fprintf(stdout, _(" 'convert +compress foo.jpg bar.ps'.\n")); 292 fprintf(stdout, _(" 'gimp' apparently saves postscript uncompressed "\ 293 "by default\n")); 294 fprintf(stdout, _(" (V 1.06 of the postscript plugin).\n")); 295 fprintf(stdout, _(" 'xv' seems to save with run-length compression, "\ 296 "which is unsuitable.\n")); 297 fprintf(stdout, _(" The program does not check the compression type of "\ 298 "the PS file.\n")); 299 fprintf(stdout, _(" Just have a look at the result to check.\n")); 272 fprintf(stdout, "%s", _("\nUsage: samhain_stealth -i|s|g|o <where> "\ 273 "[what]\n\n")); 274 275 fprintf(stdout, "%s", _(" -i info on PS image 'where'\n")); 276 fprintf(stdout, "%s", _(" (how much bytes can be hidden in it).\n")); 277 fprintf(stdout, "%s", _(" -s hide file 'what' in PS image 'where'\n")); 278 fprintf(stdout, "%s", _(" -g get hidden data from PS image 'where'\n")); 279 fprintf(stdout, "%s", _(" (output to stdout)\n")); 280 fprintf(stdout, "%s", _(" -o size of file 'where' = offset to "\ 281 "end-of-file\n")); 282 fprintf(stdout, "%s", _(" (same as wc -c).\n\n")); 283 fprintf(stdout, "%s", _(" Example: let bar.ps be the ps file, and"\ 284 "foo the config file\n")); 285 fprintf(stdout, "%s", _(" 1) extract with: samhain_stealth "\ 286 "-g bar.ps >foo\n")); 287 fprintf(stdout, "%s", _(" 2) hide with: samhain_stealth "\ 288 "-s bar.ps foo\n\n")); 289 290 fprintf(stdout, "%s", _(" This program hides a file in an UNCOMPRESSED "\ 291 "postscript\n")); 292 fprintf(stdout, "%s", _(" image. To generate such an image, you may " \ 293 "use e.g.:\n")); 294 fprintf(stdout, "%s", _(" 'convert +compress foo.jpg bar.ps'.\n")); 295 fprintf(stdout, "%s", _(" 'gimp' apparently saves postscript "\ 296 "uncompressed by default\n")); 297 fprintf(stdout, "%s", _(" (V 1.06 of the postscript plugin).\n")); 298 fprintf(stdout, "%s", _(" 'xv' seems to save with run-length "\ 299 "compression, which is unsuitable.\n")); 300 fprintf(stdout, "%s", _(" The program does not check the "\ 301 "compression type of the PS file.\n")); 302 fprintf(stdout, "%s", _(" Just have a look at the result to check.\n")); 300 303 return; 301 304 } … … 338 341 if (fd == -1) 339 342 { 340 fprintf(stderr, _("Error: could not open() %s for reading\n"), argv[2]); 343 fprintf(stderr, _("Error: could not open() %s for reading\n"), 344 argv[2]); 341 345 return (1); 342 346 } … … 417 421 return (1); 418 422 } 419 fprintf(stdout, _(" .. finished\n"));423 fprintf(stdout, "%s", _(" .. finished\n")); 420 424 return (0); 421 425 } … … 458 462 return (1); 459 463 } 460 461 464
Note:
See TracChangeset
for help on using the changeset viewer.