日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 >

scapy 安装及简单测试

發布時間:2023/12/13 32 豆豆
生活随笔 收集整理的這篇文章主要介紹了 scapy 安装及简单测试 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

關于scapy

Scapy的是一個強大的交互式數據包處理程序(使用python編寫)。它能夠偽造或者解碼大量的網絡協議數據包,能夠發送、捕捉、匹配請求和回復包等等。它可以很容易地處理一些典型操作,比如端口掃描,tracerouting,探測,單元測試,攻擊或網絡發現(可替代hping,NMAP,arpspoof,ARP-SK,arping,tcpdump,tethereal,P0F等)。最重要的他還有很多更優秀的特性——發送無效數據幀、注入修改的802.11數據幀、在WEP上解碼加密通道(VOIP)、ARP緩存攻擊(VLAN)等,這也是其他工具無法處理完成的。

安裝:

sudo apt-get install scapy

測試:

安裝barefoot修改過的scapy(支持vxlan)

git clone git@github.com:Wasdns/scapy-vxlan.git

sudo python setup.py install

barefoot ReadMe

Barefoot modified scapy, which supports VXLAN. Waiting for VXLAN support to be added to the main scapy repo. This modified repo now also supports a ERSPAN-like header.To install: sudo python setup.py installTo check that the modifications work, open a scapy CLI (just type 'scapy' in a terminal) and type the following:Welcome to Scapy (2.2.0-dev) >>> load_contrib('vxlan') >>> Ether()/IP()/UDP()/VXLAN()/Ether()/IP()/TCP() <Ether type=0x800 |<IP frag=0 proto=udp |<UDP dport=4789 |<VXLAN |<Ether type=0x800 |<IP frag=0 proto=tcp |<TCP |>>>>>>> >>> load_contrib('erspan') >>> Ether()/IP()/GRE()/ERSPAN()/Ether()/IP()/TCP() <Ether type=0x800 |<IP frag=0 proto=gre |<GRE proto=0x22eb |<ERSPAN |<Ether type=0x800 |<IP frag=0 proto=tcp |<TCP |>>>>>>> >>>Note how the UDP dport and the GRE proto number are updated automatically.

測試結果

./run_scapy

參考:
Scapy基礎學習之一
Scapy介紹官方文檔翻譯
scapy-vxlan

2016/11/27

轉載于:https://www.cnblogs.com/qq952693358/p/6106438.html

總結

以上是生活随笔為你收集整理的scapy 安装及简单测试的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。