mirror of
https://github.com/autistic-symposium/sec-pentesting-toolkit.git
synced 2025-05-03 07:14:54 -04:00
some simple examples with scapy
This commit is contained in:
parent
a1bbf061c1
commit
ffb92e0614
5 changed files with 72 additions and 15 deletions
15
Network_and_802.11/scapy/route.py
Normal file
15
Network_and_802.11/scapy/route.py
Normal file
|
@ -0,0 +1,15 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
__author__ = "bt3"
|
||||
|
||||
from scapy.all import *
|
||||
|
||||
print conf.route
|
||||
|
||||
conf.route.add(host='192.168.118.2', gw='192.168.1.114')
|
||||
|
||||
print conf.route
|
||||
|
||||
conf.route.resync()
|
||||
|
||||
print conf.route
|
Loading…
Add table
Add a link
Reference in a new issue