|
| 1 | +prog: "readpe" |
| 2 | +help: "Read PE file headers and meta information" |
| 3 | +options: |
| 4 | + - option_strings: ["-f", "--format"] |
| 5 | + metavar: "format" |
| 6 | + help: "Set output format" |
| 7 | + complete: ["exec", "readpe --get-output-plugins"] |
| 8 | + - option_strings: ["--file-version"] |
| 9 | + help: "Show PE file version" |
| 10 | + final: true |
| 11 | + - option_strings: ["-h", "--help"] |
| 12 | + help: "Print this message" |
| 13 | + final: true |
| 14 | + - option_strings: ["--get-output-plugins"] |
| 15 | + help: "Print available output plugins" |
| 16 | + final: true |
| 17 | + |
| 18 | +--- |
| 19 | +prog: "readpe header" |
| 20 | +help: "Read PE header information" |
| 21 | +options: |
| 22 | + - option_strings: ["--all"] |
| 23 | +positionals: |
| 24 | + - number: 1 |
| 25 | + metavar: "header" |
| 26 | + help: "Select a specific header" |
| 27 | + complete: ["choices", ["dos", "coff", "optional"]] |
| 28 | + |
| 29 | +--- |
| 30 | +prog: "readpe section" |
| 31 | +help: "Read PE section information" |
| 32 | +options: |
| 33 | + - option_strings: ["--all"] |
| 34 | + |
| 35 | +--- |
| 36 | +prog: "readpe directory" |
| 37 | +help: "Read PE dorectory information" |
| 38 | +options: |
| 39 | + - option_strings: ["--list"] |
| 40 | + - option_strings: ["--verbose"] |
| 41 | + |
| 42 | +--- |
| 43 | +prog: "readpe imports" |
| 44 | + |
| 45 | +--- |
| 46 | +prog: "readpe exports" |
| 47 | + |
| 48 | +--- |
| 49 | +prog: "readpe resources" |
| 50 | +# aliases: ["peres"] |
| 51 | +options: |
| 52 | + - option_strings: ["--help"] |
| 53 | + - option_strings: ["--list"] |
| 54 | + - option_strings: ["--verbose"] |
| 55 | + - option_strings: ["--tree"] |
| 56 | + - option_strings: ["--statistics"] |
| 57 | + - option_strings: ["--file-version"] |
| 58 | + |
| 59 | +--- |
| 60 | +prog: "readpe resources extract" |
| 61 | +options: |
| 62 | + - option_strings: ["--name"] |
| 63 | + |
| 64 | +--- |
| 65 | +prog: "readpe scan" |
| 66 | +aliases: ["lint"] |
| 67 | +# aliases: ["readpe-lint", "pescan"] |
| 68 | +options: |
| 69 | + - option_strings: ["--verbose"] |
| 70 | + |
| 71 | +--- |
| 72 | +prog: "readpe libraries" |
| 73 | +# aliases: ["peldd"] |
| 74 | + |
| 75 | +--- |
| 76 | +prog: "readpe features" |
| 77 | +aliases: ["security"] |
| 78 | +# aliases: ["readpe-security", "pesec"] |
| 79 | + |
| 80 | +--- |
| 81 | +prog: "readpe certificates" |
| 82 | +# aliases: ["pesec"] |
| 83 | +options: |
| 84 | + - option_strings: ["--out"] |
| 85 | + metavar: "certout" |
| 86 | + complete: ["file"] |
| 87 | + - option_strings: ["--format"] |
| 88 | + metavar: "certformat" |
| 89 | + complete: ["choices", ["text","x509","pem"]] |
| 90 | + |
| 91 | +--- |
| 92 | +prog: "readpe hash" |
| 93 | +# aliases: ["pehash"] |
| 94 | + |
| 95 | +# TODO: |
| 96 | +# Figure out how to do |
| 97 | +# readpe section <section_name>|@<section_index> {hash|str} |
| 98 | +# |
| 99 | +# pehash --section <section_name> |
| 100 | +# => readpe section {section_name} hash |
| 101 | +# pehash --section_index <section_index> |
| 102 | +# => readpe section @<section_index> hash |
| 103 | +# |
| 104 | +# pestr |
| 105 | +# => readpe strings |
| 106 | +# pestr --min-length |
| 107 | +# => readpe [...] strings --min-length |
| 108 | +# pestr --offset |
| 109 | +# => readpe [...] strings --offset |
| 110 | +# pestr --section |
| 111 | +# => readpe section {section_name} strings |
0 commit comments