mirror of https://github.com/secdev/scapy.git
Register a Scapy command
This commit is contained in:
parent
e4ed84e06e
commit
89837a1d3f
|
@ -492,6 +492,7 @@ def get_toDS():
|
|||
# os.system("iwconfig %s mode monitor" % iffrom)
|
||||
#
|
||||
|
||||
@conf.commands.register
|
||||
def airpwn(iffrom, ifto, replace, pattern="", ignorepattern=""):
|
||||
"""Before using this, initialize "iffrom" and "ifto" interfaces:
|
||||
iwconfig iffrom mode monitor
|
||||
|
|
Loading…
Reference in New Issue