|
|
|
@ -137,7 +137,7 @@ parser.add_argument("banner", type=str, nargs='?', default="both", help="Where a
|
|
|
|
parser.add_argument("width", type=int, nargs='?', default=None, help="Sets a fixed width (used for banner). Set to None for auto")
|
|
|
|
parser.add_argument("width", type=int, nargs='?', default=None, help="Sets a fixed width (used for banner). Set to None for auto")
|
|
|
|
@pwndbg.commands.ArgparsedCommand(parser, aliases=['ctx-out'])
|
|
|
|
@pwndbg.commands.ArgparsedCommand(parser, aliases=['ctx-out'])
|
|
|
|
def contextoutput(section, path, clearing, banner="both", width=None):
|
|
|
|
def contextoutput(section, path, clearing, banner="both", width=None):
|
|
|
|
if(width != None):
|
|
|
|
if width is not None:
|
|
|
|
width = int(width.cast(gdb.lookup_type('long')))
|
|
|
|
width = int(width.cast(gdb.lookup_type('long')))
|
|
|
|
outputs[section] = path
|
|
|
|
outputs[section] = path
|
|
|
|
output_settings[section] = dict(clearing=clearing,
|
|
|
|
output_settings[section] = dict(clearing=clearing,
|
|
|
|
|