1*4882a593SmuzhiyunSUMMARY = "Network scanning and manipulation tool" 2*4882a593SmuzhiyunDESCRIPTION = "Scapy is a powerful interactive packet manipulation program. \ 3*4882a593SmuzhiyunIt is able to forge or decode packets of a wide number of protocols, send \ 4*4882a593Smuzhiyunthem on the wire, capture them, match requests and replies, and much more. \ 5*4882a593SmuzhiyunIt can easily handle most classical tasks like scanning, tracerouting, probing, \ 6*4882a593Smuzhiyununit tests, attacks or network discovery (it can replace hping, 85% of nmap, \ 7*4882a593Smuzhiyunarpspoof, arp-sk, arping, tcpdump, tethereal, p0f, etc.). It also performs very \ 8*4882a593Smuzhiyunwell at a lot of other specific tasks that most other tools can't handle, like \ 9*4882a593Smuzhiyunsending invalid frames, injecting your own 802.11 frames, combining technics \ 10*4882a593Smuzhiyun(VLAN hopping+ARP cache poisoning, VOIP decoding on WEP encrypted channel, ...), etc." 11*4882a593SmuzhiyunSECTION = "security" 12*4882a593SmuzhiyunLICENSE = "GPL-2.0-only" 13*4882a593Smuzhiyun 14*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://LICENSE;md5=b234ee4d69f5fce4486a80fdaf4a4263" 15*4882a593Smuzhiyun 16*4882a593Smuzhiyun# If you want ptest support, use the git repo 17*4882a593Smuzhiyun# UTscapy does not exist in the pypi pkg 18*4882a593Smuzhiyun# 19*4882a593SmuzhiyunSRCREV = "32cd7eb0f620d9adf171c48d55514e8326a538d7" 20*4882a593SmuzhiyunSRC_URI = "git://github.com/secdev/scapy.git;branch=master;protocol=https \ 21*4882a593Smuzhiyun file://run-ptest" 22*4882a593Smuzhiyun 23*4882a593SmuzhiyunS = "${WORKDIR}/git" 24*4882a593Smuzhiyun 25*4882a593SmuzhiyunUPSTREAM_CHECK_COMMITS = "1" 26*4882a593Smuzhiyun 27*4882a593Smuzhiyuninherit setuptools3 ptest 28*4882a593Smuzhiyun 29*4882a593Smuzhiyundo_install:append() { 30*4882a593Smuzhiyun mv ${D}${bindir}/scapy ${D}${bindir}/scapy3 31*4882a593Smuzhiyun mv ${D}${bindir}/UTscapy ${D}${bindir}/UTscapy3 32*4882a593Smuzhiyun} 33*4882a593Smuzhiyun 34*4882a593Smuzhiyundo_install_ptest() { 35*4882a593Smuzhiyun install -m 0644 ${S}/test/regression.uts ${D}${PTEST_PATH} 36*4882a593Smuzhiyun sed -i 's,@PTEST_PATH@,${PTEST_PATH},' ${D}${PTEST_PATH}/run-ptest 37*4882a593Smuzhiyun} 38*4882a593Smuzhiyun 39*4882a593SmuzhiyunRDEPENDS:${PN} = "tcpdump ${PYTHON_PN}-compression ${PYTHON_PN}-cryptography ${PYTHON_PN}-netclient \ 40*4882a593Smuzhiyun ${PYTHON_PN}-netserver ${PYTHON_PN}-pydoc ${PYTHON_PN}-pkgutil ${PYTHON_PN}-shell \ 41*4882a593Smuzhiyun ${PYTHON_PN}-threading ${PYTHON_PN}-numbers" 42