Skip to content

Commit d680d27

Browse files
committed
Add -H to scapy.1
1 parent 75e07e3 commit d680d27

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

doc/scapy.1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ Options for Scapy are:
4141
\fB\-h\fR
4242
display usage
4343
.TP
44+
\fB\-H\fR
45+
header-less mode, also reduces verbosity.
46+
.TP
4447
\fB\-d\fR
4548
increase log verbosity. Can be used many times.
4649
.TP

doc/scapy/usage.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Starting Scapy
88
Scapy's interactive shell is run in a terminal session. Root privileges are needed to
99
send the packets, so we're using ``sudo`` here::
1010
11-
$ sudo ./scapy
11+
$ sudo scapy -H
1212
Welcome to Scapy (2.4.0)
1313
>>>
1414

scapy/main.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def _read_config_file(cf, _globals=globals(), _locals=locals(),
9696
Manual loading:
9797
>>> _read_config_file("./config.py"))
9898
>>> conf.verb
99-
42
99+
2
100100
101101
"""
102102
log_loading.debug("Loading config file [%s]", cf)
@@ -520,7 +520,8 @@ def interact(mydict=None, argv=None, mybanner=None, loglevel=logging.INFO):
520520
_usage()
521521
elif opt == "-H":
522522
conf.fancy_prompt = False
523-
conf.verb = 30
523+
conf.verb = 1
524+
conf.logLevel = logging.WARNING
524525
elif opt == "-s":
525526
session_name = param
526527
elif opt == "-c":

0 commit comments

Comments
 (0)