Add Certificates in rabin2 ##enhancement (#12900)

This commit is contained in:
Maijin 2019-01-24 17:22:53 +01:00 committed by GitHub
parent 7a8989e746
commit f9d4ab6f65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 2 deletions

View File

@ -631,7 +631,7 @@ int main(int argc, char **argv) {
#define is_active(x) (action & (x))
#define set_action(x) { actions++; action |= (x); }
#define unset_action(x) action &= ~x
while ((c = getopt (argc, argv, "DjgAf:F:a:B:G:b:cC:k:K:dD:Mm:n:N:@:isSVIHeEUlRwO:o:pPqQrvLhuxXzZ")) != -1) {
while ((c = getopt (argc, argv, "DjgAf:F:a:B:G:b:cC:k:K:dD:Mm:n:N:@:isSVIHeEUlRwO:o:pPqQrTvLhuxXzZ")) != -1) {
switch (c) {
case 'g':
set_action (R_BIN_REQ_CLASSES);
@ -652,6 +652,7 @@ int main(int argc, char **argv) {
set_action (R_BIN_REQ_VERSIONINFO);
break;
case 'V': set_action (R_BIN_REQ_VERSIONINFO); break;
case 'T': set_action (R_BIN_REQ_SIGNATURE); break;
case 'q':
rad = (rad & R_MODE_SIMPLE ?
R_MODE_SIMPLEST : R_MODE_SIMPLE);
@ -1121,6 +1122,7 @@ int main(int argc, char **argv) {
run_action ("pdb", R_BIN_REQ_PDB, R_CORE_BIN_ACC_PDB);
run_action ("size", R_BIN_REQ_SIZE, R_CORE_BIN_ACC_SIZE);
run_action ("versioninfo", R_BIN_REQ_VERSIONINFO, R_CORE_BIN_ACC_VERSIONINFO);
run_action ("sections", R_BIN_REQ_SIGNATURE, R_CORE_BIN_ACC_SIGNATURE);
if (action & R_BIN_REQ_SRCLINE) {
rabin_show_srcline (at);
}

View File

@ -62,6 +62,7 @@ R_LIB_VERSION_HEADER (r_bin);
#define R_BIN_REQ_RESOURCES 0x8000000
#define R_BIN_REQ_INITFINI 0x10000000
#define R_BIN_REQ_SEGMENTS 0x20000000
#define R_BIN_REQ_SIGNATURE 0x80000000
/* RBinSymbol->method_flags : */
#define R_BIN_METH_CLASS 0x0000000000000001L

View File

@ -5,7 +5,7 @@
.Nd Binary program info extractor
.Sh SYNOPSIS
.Nm rabin2
.Op Fl AceghHiIsSMzlpRrLxvhqQuUV
.Op Fl AceghHiIsSMzlpRrLxvhqQTuUV
.Op Fl a Ar arch
.Op Fl b Ar bits
.Op Fl B Ar addr
@ -110,6 +110,8 @@ Show exported symbols
Show sections
.It Fl SS
Show segments
.It Fl T
Show Certificates
.It Fl u
Unfiltered (no rename duplicated symbols/sections)
.It Fl U