Skip to content
Snippets Groups Projects
Commit 89837a1d authored by Guillaume Valadon's avatar Guillaume Valadon
Browse files

Register a Scapy command

parent e4ed84e0
No related branches found
No related tags found
No related merge requests found
...@@ -492,6 +492,7 @@ def get_toDS(): ...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment