Skip to content

Commit b2a75df

Browse files
committed
Add headerless mode
1 parent 69eb8d8 commit b2a75df

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

scapy/main.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,9 @@ def _validate_local(x):
110110
def _usage():
111111
print(
112112
"Usage: scapy.py [-s sessionfile] [-c new_startup_file] "
113-
"[-p new_prestart_file] [-C] [-P]\n"
113+
"[-p new_prestart_file] [-C] [-P] [-H]\n"
114+
"Args:\n"
115+
"\t-H: header-less start\n"
114116
"\t-C: do not read startup file\n"
115117
"\t-P: do not read pre-startup file\n"
116118
)
@@ -485,10 +487,13 @@ def interact(mydict=None, argv=None, mybanner=None, loglevel=logging.INFO):
485487
argv = sys.argv
486488

487489
try:
488-
opts = getopt.getopt(argv[1:], "hs:Cc:Pp:d")
490+
opts = getopt.getopt(argv[1:], "hs:Cc:Pp:d:H")
489491
for opt, parm in opts[0]:
490492
if opt == "-h":
491493
_usage()
494+
elif opt == "-H":
495+
conf.fancy_prompt = False
496+
conf.verb = 30
492497
elif opt == "-s":
493498
session_name = parm
494499
elif opt == "-c":

0 commit comments

Comments
 (0)