static void usage(void) { static char formats[255]; output_available_formats(formats, sizeof(formats), '|'); printf("Usage: %s OPTIONS FILE\n" "Show information about resource section and extract it\n" "\nExample: %s -a putty.exe\n" "\nOptions:\n" " -a, --all Show all information, statistics and extract resources\n" " -f, --format <%s> change output format (default: text)\n" " -i, --info Show resources information\n" " -s, --statistics Show resources statistics\n" " -x, --extract Extract resources\n" " -v, --file-version Show File Version from PE resource directory\n" " -V, --version show version and exit\n" " --help Show this help and exit\n", PROGRAM, PROGRAM, formats); }
static void usage(void) { static char formats[255]; output_available_formats(formats, sizeof(formats), '|'); printf("Usage: %s OPTIONS FILE\n" "Calculate hashes of PE pieces\n" "\nExample: %s -s '.text' winzip.exe\n" "\nOptions:\n" " -f, --format <%s> change output format (default: text)\n" " -a, --all hash file, sections and headers with md5, sha1, sha256, ssdeep and imphash\n" " -c, --content hash only the file content (default)\n" " -h, --header <dos|coff|optional> hash only the header with the specified name\n" " -s, --section <section_name> hash only the section with the specified name\n" " --section-index <section_index> hash only the section at the specified index (1..n)\n" " -V, --version show version and exit\n" " --help show this help and exit\n", PROGRAM, PROGRAM, formats); }
static void usage(void) { static char formats[255]; output_available_formats(formats, sizeof(formats), '|'); printf("Usage: %s OPTIONS FILE\n" "Calculate hashes of PE pieces\n" "\nExample: %s -s '.text' winzip.exe\n" "\nOptions:\n" " -f, --format <%s> change output format (default: text)\n" " -a, --algorithm <algorithm> generate hash using one of the following algorithms:\n" " md4, md5, ripemd160, sha, sha1, sha224, sha256\n" " sha384, sha512, whirlpool or ssdeep\n\n" " -h, --header <dos|coff|optional> hash only the header with the specified name\n" " -s, --section <section_name> hash only the section with the specified name\n" " --section-index <section_index> hash only the section at the specified index (1..n)\n" " -v, --version show version and exit\n" " --help show this help and exit\n", PROGRAM, PROGRAM, formats); }