You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
parser=argparse.ArgumentParser(description='Demo: Use SMDA to disassemble a given file (loaded memory view), optionally map it first and/or write the output to a file.')
44
-
parser.add_argument('-m', '--map_file', action='store_true', default=False, help='Perform mapping of the file as normalization.')
45
-
parser.add_argument('-b', '--base_addr', type=str, default='', help='Set base address to given value (int or 0x-hex format).')
46
-
parser.add_argument('-o', '--output_path', type=str, default='', help='Optionally write the output to a file (JSON format).')
47
-
parser.add_argument('input_path', type=str, default='', help='Path to file to analyze.')
48
-
49
-
args=parser.parse_args()
50
-
ifargs.input_path:
41
+
PARSER=argparse.ArgumentParser(description='Demo: Use SMDA to disassemble a given file (loaded memory view), optionally map it first and/or write the output to a file.')
42
+
PARSER.add_argument('-m', '--map_file', action='store_true', default=False, help='Perform mapping of the file as normalization.')
43
+
PARSER.add_argument('-b', '--base_addr', type=str, default='', help='Set base address to given value (int or 0x-hex format).')
44
+
PARSER.add_argument('-o', '--output_path', type=str, default='', help='Optionally write the output to a file (JSON format).')
45
+
PARSER.add_argument('input_path', type=str, default='', help='Path to file to analyze.')
0 commit comments