Scapy is a powerful interactive packet manipulation program. It is able to forge
or decode packets of a wide number of protocols, send them on the wire, capture
them, match requests and replies, and much more.
It can easily handle most classical tasks like scanning, tracerouting, probing,
unit tests, attacks or network discovery (it can replace hping, 85% of nmap,
arpspoof, arp-sk, arping, tcpdump, tethereal, p0f, etc.).
It also performs very well at a lot of other specific tasks that most other
tools can't handle, like sending invalid frames, injecting your own 802.11
frames, combining technics (VLAN hopping+ARP cache poisoning, VOIP decoding on
WEP encrypted channel, ...), etc.
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above. NOTE: This is a Python port. Instead of py312-scapy listed in the above command, you can pick from the names under the Packages section.
===> The following configuration options are available for py312-scapy-2.8.0:
GRAPH=off: graph generation and visualization
IPYTHON=off: Use IPython (enhanced interactive shell)
MANUF=off: wireshark's MANUF MAC database
MATPLOT=off: Install python matplotlibs
NMAP=off: nmap OS signatures database
P0F_BASE=off: p0f OS signatures database
PYCRYPTO=off: Use py-crypto for WEP decoding
PYX=off: PostScript and PDF graphs drawing
SOX=off: Support for VoIP
===> Use 'make config' to modify these settings
net/scapy: Silence cryptography warnings
Apply Scapy commit caa005d ("Handle cryptography FFDH warnings") to
prevent cryptography warnings from causing test failures in our
infrastructure.
Once a new Scapy release is out, this patch will be included and this
commit should be reverted.
PR: 298387
net/scapy: Remove test file
- Scapy installs tests file in confliciting locations. Although there
has been a new test framework introduced in the HEAD it's still not
released. So for now the file is deleted as there is no test framework
in scapt itself.
PR: 271169
Reported by: dvl richard@highwayman.com
*: Replace USES=pycryptography* with USE_PYTHON=cryptography{,_build,_test}
- Introduce USE_PYTHON=cryptography{,_build,_test}
- Switch all 96 ports from USES=pycryptography to with
USE_PYTHON=cryptography{,_build,_test}
- Remove Mk/Uses/pycryptography.mk
PR: 273727
Approved by: tcberner (portmgr)
Exp-run by: antoine
framework: convert tree to use USES=pycryptography
A future commit will update to security/py-cryptography will introduce a
rust dependency.
PR: 254853
all: remove explicit versions in USES=python for "3.x+"
The logic in USES=python will automatically convert this to 3.8+ by
itself.
Adjust two ports that only had Python 3.7 mentioned but build fine
on Python 3.8 too.
finance/quickfix: mark BROKEN with PYTHON
libtool: compile: c++ -DHAVE_CONFIG_H -I. -I../.. -I -I. -I.. -I../.. -I../C++
-DLIBICONV_PLUG -DPYTHON_MAJOR_VERSION=3 -Wno-unused-variable
-Wno-maybe-uninitialized -O2 -pipe -DLIBICONV_PLUG -fstack-protector-strong
-fno-strict-aliasing -DLIBICONV_PLUG -Wall -ansi
-Wno-unused-command-line-argument -Wpointer-arith -Wwrite-strings
-Wno-overloaded-virtual -Wno-deprecated-declarations -Wno-deprecated -std=c++0x
-MT _quickfix_la-QuickfixPython.lo -MD -MP -MF
.deps/_quickfix_la-QuickfixPython.Tpo -c QuickfixPython.cpp -fPIC -DPIC -o
.libs/_quickfix_la-QuickfixPython.o
warning: unknown warning option '-Wno-maybe-uninitialized'; did you mean
'-Wno-uninitialized'? [-Wunknown-warning-option]
QuickfixPython.cpp:175:11: fatal error: 'Python.h' file not found
^~~~~~~~~~
1 warning and 1 error generated.
Reviewed by: portmgr, vishwin, yuri
Differential Revision: <https://reviews.freebsd.org/D40568>
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner)
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above )
framework: Add new USES 'magick' for graphics/ImageMagick*
A new USES has been added to depend on ImageMagick.
USES=magick
adds a LIB_DEPENDS on graphics/ImageMagick${IMAGEMAGICK_DEFAULT}.
If a specific version is required, use for example
USES=magick:6 resp. USES=magick:7
If only a build, run or test is required, use for example
USES=magick:build resp. USES=magick:6,build,test
(Only the first 15 lines of the commit message are shown above )
math/py-matplotlib: chase minimum Python version in dependent ports
Since the previous update changed USES=python from 3.6+ to 3.7+, all
dependent ports must have USES=python:3.7+ as well, otherwise it breaks
the @py36 flavor.
PR: 255347
Reported by: sunpoet
net/scapy: Fix FreeBSD HEAD CI
- After introducing nexthop objects in base@r359823 FreeBSD CI is failing
as netstat header has changed from Use to Nhop#. This patch is a
temporary workaround while I will work on libxo implementation in
scapy.
- Remove some unchanged files in post-patch
Reported by: kp
Add a patch which fixes both the alignment on (32bit) platforms where
sizeof(long) == 4 and for i386 the offset on the bpf_hdr struct as time_t
still is 32bit.
PR: 239380
Approved by: bofh (maintainer)
Sponsored by: Netflix (bz)
Sponsored by: The FreeBSD Foundation (lwhsu)
inet/scapy: Update version 2.4.2=>2.4.3
- Use net/py-pypcap instead of net/py-pcap as dnet and py-pcap will be
deprecated in future scapy versions. One other reason is py-pcap is
failing with python3. [1]
- Change MASTER_SITE to PYPI for better availability [2]
- Update WWW [2]
PR: 239380 [1] 240493 [2]
Submitted by: lwhsu [1] [2]
net/scapy: Update version 2.4.2=>2.4.3
- Use net/py-pypcap instead of net/py-pcap as dnet and py-pcap will be
deprecated in future scapy versions. One other reason is py-pcap is
failing with python3. [1]
PR: 239380 [1]
Submitted by: lwhsu [1]
net/scapy: Update version 2.3.3=>2.4.2
- Update LICENSE_FILE
- Works for both Python 2 and 3 [1]
- Fix pkg-descr
- MAINTAINER reset due to nearly 3 years maintainer inactivity;
PR: 230110
Submitted by: kai bofh [1]
Approved by: vanhu (implicitly)
Update ImageMagick to 6.9.10.14 [1]
* Add PKGNAMESUFFIX and rename the directory. This was done to show
that IM6 is not the "main" version. But still fully supported by upstream.
* Convert a number of options to optionhelpers.
* Add option for ISO/IEC 23008-12:2017 HEIF suport
* Add comment to pkg-descr explaining IM6's "legacy" tag.
* Add comment to the patch-config_policy.xml file why it still needed.
Please note that IM7 is not a drop in replacement due to library API and
command arguments changes. And as a result ports need to decide for themself
which version to use.
Chase these changes in all the ports that using IM6.
PR: 225102 (based on, only the version update) [1]
Submitted by: Pascal Christen <pascal.christen@hostpoint.ch>
Convert Python ports to FLAVORS.
Ports using USE_PYTHON=distutils are now flavored. They will
automatically get flavors (py27, py34, py35, py36) depending on what
versions they support.
There is also a USE_PYTHON=flavors for ports that do not use distutils
but need FLAVORS to be set. A USE_PYTHON=noflavors can be set if
using distutils but flavors are not wanted.
A new USE_PYTHON=optsuffix that will add PYTHON_PKGNAMESUFFIX has been
added to cope with Python ports that did not have the Python
PKGNAMEPREFIX but are flavored.
USES=python now also exports a PY_FLAVOR variable that contains the
(Only the first 15 lines of the commit message are shown above )
- Switch graphics/py-PyX dependency to graphics/py-PyX12 which works with
python2
- While here, add LICENSE, NO_ARCH and pet portlint
PR: 201430
Submitted by: andrey@bsdnir.info
Approved by: maintainer timeout (vanhu, 7 weeks)