mirror of
https://github.com/Gallopsled/pwntools.git
synced 2026-11-07 17:14:22 -10:00
Do not allow interactive assembly, it doesn't work anyway
This commit is contained in:
1 parent
1f1a6667a1
commit
f4b0e3a5b9
1 file changed
+4
@@ -96,6 +96,10 @@ parser.add_argument(
|
||||
def main(args):
|
||||
tty = args.output.isatty()
|
||||
|
||||
if args.infile.isatty():
|
||||
parser.print_usage()
|
||||
sys.exit(1)
|
||||
|
||||
data = '\n'.join(args.lines) or args.infile.read()
|
||||
output = asm(data.replace(';', '\n'))
|
||||
fmt = args.format or ('hex' if tty else 'raw')
|
||||
|
||||
Reference in new issue
Block a user