1 # Copyright (C) 2019 Diana Dragusin <diana.dragusin@nccgroup.com>
2 # Copyright (C) 2019 Etienne Champetier <champetier.etienne@gmail.com>
4 # This is free software, licensed under the GNU General Public License v3.
5 # See <http://www.gnu.org/licenses/> for more information.
7 include $(TOPDIR
)/rules.mk
13 PKG_SOURCE_URL
:=https
://github.com
/nccgroup
/phantap
14 PKG_MIRROR_HASH
:=3e2c884a9bc6e48e814a6fabfde4c945367f74e12253200a02f91004e98cdcb8
15 PKG_SOURCE_DATE
:=2022.10.30
16 PKG_SOURCE_VERSION
:=815c312c1843ef02d758b10f3d24ccaad96e1782
18 PKG_MAINTAINER
:=Diana Dragusin
<diana.dragusin@nccgroup.com
>, \
19 Etienne Champetier
<champetier.etienne@gmail.com
>
20 PKG_LICENSE
:=GPL-3.0
-only
22 include $(INCLUDE_DIR
)/package.mk
23 include $(INCLUDE_DIR
)/cmake.mk
25 CMAKE_SOURCE_SUBDIR
:=src
27 define Package
/phantap
/Default
30 URL
:=https
://github.com
/nccgroup
/phantap
33 define Package
/phantap
34 $(call Package
/phantap
/Default
)
37 DEPENDS
:=+libpcap
+libnl-tiny
+ip-full
+kmod-nft-bridge
+kmod-nft-netdev
40 define Package
/phantap
/conffiles
44 define Package
/phantap
/description
45 PhanTap or Phantom tap is a small set of scripts and C code that allow you to setup a
46 network tap that automatically impersonate a victim device
, allowing you to access
47 internet using the IP
& MAC of the victim.
50 define Package
/phantap
/install
51 $(INSTALL_DIR
) $(1)/etc
/config
52 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/files
/etc
/config
/phantap
$(1)/etc
/config
/
53 $(INSTALL_DIR
) $(1)/etc
/hotplug.d
/iface
54 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/files
/etc
/hotplug.d
/iface
/00-phantap
$(1)/etc
/hotplug.d
/iface
/
55 $(INSTALL_DIR
) $(1)/etc
/hotplug.d
/net
56 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/files
/etc
/hotplug.d
/net
/00-phantap
$(1)/etc
/hotplug.d
/net
/
57 $(INSTALL_DIR
) $(1)/etc
/init.d
58 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/files
/etc
/init.d
/phantap
$(1)/etc
/init.d
/
59 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/files
/etc
/init.d
/phantap-early
$(1)/etc
/init.d
/
60 $(INSTALL_DIR
) $(1)/usr
/sbin
61 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/phantap-learn
$(1)/usr
/sbin
/
64 $(eval
$(call BuildPackage
,phantap
))