scapy函数 IP() 使用说明

悟透的杂货铺 / 2024-09-19 / 原文

前言全局说明

scapy函数 IP() 使用说明


一、说明

环境:

Ubuntu 18.04.6 LTS (Linux qt-vm 5.4.0-150-generic #167~18.04.1-Ubuntu SMP Wed May 24 00:51:42 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux)
python3 Python 3.6.9 (default, Mar 10 2023, 16:46:00)  [GCC 8.4.0] on linux
pip3 install  scapy==2.4.5

二、IP() 作用

2.1 指定IP地址

IP(dst="192.168.153.150")

2.2 指定网址域名

IP(dst="www.slashdot.org")

2.3 指定多个网址域名

IP(dst=["yahoo.com","slashdot.org"])

2.4 混合IP、网址域名

IP(dst=["192.168.1.1","yahoo.com","slashdot.org"])

三、

3.1

文件名:


3.2

文件名:



四、

4.1

文件名:


4.2

文件名:




免责声明:本号所涉及内容仅供安全研究与教学使用,如出现其他风险,后果自负。




参考、来源:
https://wizardforcel.gitbooks.io/scapy-docs/content/3.html