Register a Scapy command

This commit is contained in:
Guillaume Valadon 2017-01-19 09:18:54 +01:00
parent e4ed84e06e
commit 89837a1d3f
1 changed files with 1 additions and 0 deletions

View File

@ -492,6 +492,7 @@ def get_toDS():
# os.system("iwconfig %s mode monitor" % iffrom) # os.system("iwconfig %s mode monitor" % iffrom)
# #
@conf.commands.register
def airpwn(iffrom, ifto, replace, pattern="", ignorepattern=""): def airpwn(iffrom, ifto, replace, pattern="", ignorepattern=""):
"""Before using this, initialize "iffrom" and "ifto" interfaces: """Before using this, initialize "iffrom" and "ifto" interfaces:
iwconfig iffrom mode monitor iwconfig iffrom mode monitor