Kismet: Kismet master, but properly this time

pull/5/merge
Marc Egerton 2020-07-24 15:01:05 +01:00
parent dae9a1fdbc
commit 04059db9ec
No known key found for this signature in database
GPG Key ID: A11F9CA36DF845E0
4 changed files with 194 additions and 0 deletions

79
network/Makefile Normal file
View File

@ -0,0 +1,79 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=kismet-hak5
PKG_VERSION:=2020-03-R1
PKG_RELEASE:=1
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/kismetwireless/kismet.git
PKG_SOURCE_VERSION:=925cf90e0112a0bfc926e21e0fae4503ae3b7a78
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
include $(INCLUDE_DIR)/package.mk
PKG_USE_MIPS16:=0
HOST_BUILD_DEPENDS:=protobuf/host
define Package/kismet-hak5
SECTION:=net
CATEGORY:=Network
TITLE:=Kismet (Hak5)
URL:=https://www.kismetwireless.net/
DEPENDS:=+libpthread +libpcap +libpcre +libmicrohttpd +libnl +libcap +libstdcpp +libncurses +libsqlite3 +zlib +protobuf-lite +libprotobuf-c +libdw
SUBMENU:=wireless
endef
define Package/kismet-hak5/description
Kismet wireless capture and IDS
Latest web UI based Kismet
Linux Wi-Fi and Bluetooth capture tools
endef
define Build/Configure
$(call Build/Configure/Default,--with-linux-headers=$(LINUX_DIR))
endef
CONFIGURE_ARGS += \
--sysconfdir=/etc/kismet \
--bindir=/usr/bin \
--disable-python-tools \
--with-protoc=$(STAGING_DIR_HOSTPKG)/bin/protoc \
--enable-protobuflite
# Override libs to force lpthread because we don't detect it properly on openwrt
CONFIGURE_VARS += \
CXXFLAGS="$$$$CXXFLAGS" \
LIBS="-lm -lpthread"
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) \
LD="$(TARGET_CXX)" \
all
endef
define Package/kismet-hak5/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/kismet $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/kismet_cap_pcapfile $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/capture_linux_wifi/kismet_cap_linux_wifi $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/capture_linux_bluetooth/kismet_cap_linux_bluetooth $(1)/usr/bin/
$(INSTALL_DIR) $(1)/etc/kismet/
$(INSTALL_CONF) ./files/kismet_package.conf $(1)/etc/kismet
$(INSTALL_CONF) $(PKG_BUILD_DIR)/conf/kismet.conf $(1)/etc/kismet
$(INSTALL_CONF) $(PKG_BUILD_DIR)/conf/kismet_80211.conf $(1)/etc/kismet
$(INSTALL_CONF) $(PKG_BUILD_DIR)/conf/kismet_alerts.conf $(1)/etc/kismet
$(INSTALL_CONF) $(PKG_BUILD_DIR)/conf/kismet_filter.conf $(1)/etc/kismet
$(INSTALL_CONF) $(PKG_BUILD_DIR)/conf/kismet_httpd.conf $(1)/etc/kismet
$(INSTALL_CONF) $(PKG_BUILD_DIR)/conf/kismet_logging.conf $(1)/etc/kismet
$(INSTALL_CONF) $(PKG_BUILD_DIR)/conf/kismet_memory.conf $(1)/etc/kismet
$(INSTALL_CONF) $(PKG_BUILD_DIR)/conf/kismet_storage.conf $(1)/etc/kismet
$(INSTALL_CONF) $(PKG_BUILD_DIR)/conf/kismet_uav.conf $(1)/etc/kismet
$(INSTALL_CONF) $(PKG_BUILD_DIR)/conf/kismet_manuf.txt $(1)/etc/kismet
cp -Rv $(PKG_BUILD_DIR)/http_data $(1)/etc/kismet/
endef
$(eval $(call BuildPackage,kismet-hak5))

View File

@ -0,0 +1,18 @@
# Insecure defaults for tetra; before making it a proper module
# we should integrate with the tetra ui
httpd_username=kismet
httpd_password=kismet
httpd_home=/etc/kismet/http_data
# Save memory on Tetra
keep_location_cloud_history=false
keep_datasource_signal_history=false
packet_dedup_size=512
packet_backlog_warning=512
packet_backlog_limit=1024
tcp_buffer_kb=64
ipc_buffer_kb=64

View File

@ -0,0 +1,79 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=kismet-master
PKG_VERSION:=master
PKG_RELEASE:=1
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/kismetwireless/kismet.git
PKG_SOURCE_VERSION:=96979509a4246c927f162d05bcadbce7f116f967
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
include $(INCLUDE_DIR)/package.mk
PKG_USE_MIPS16:=0
HOST_BUILD_DEPENDS:=protobuf/host
define Package/kismet-master
SECTION:=net
CATEGORY:=Network
TITLE:=Kismet (Master)
URL:=https://www.kismetwireless.net/
DEPENDS:=+libpthread +libpcap +libpcre +libmicrohttpd +libnl +libcap +libstdcpp +libncurses +libsqlite3 +zlib +protobuf-lite +libprotobuf-c +libdw
SUBMENU:=wireless
endef
define Package/kismet-master/description
Kismet wireless capture and IDS
Latest web UI based Kismet
Linux Wi-Fi and Bluetooth capture tools
endef
define Build/Configure
$(call Build/Configure/Default,--with-linux-headers=$(LINUX_DIR))
endef
CONFIGURE_ARGS += \
--sysconfdir=/etc/kismet \
--bindir=/usr/bin \
--disable-python-tools \
--with-protoc=$(STAGING_DIR_HOSTPKG)/bin/protoc \
--enable-protobuflite
# Override libs to force lpthread because we don't detect it properly on openwrt
CONFIGURE_VARS += \
CXXFLAGS="$$$$CXXFLAGS" \
LIBS="-lm -lpthread"
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) \
LD="$(TARGET_CXX)" \
all
endef
define Package/kismet-master/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/kismet $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/kismet_cap_pcapfile $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/capture_linux_wifi/kismet_cap_linux_wifi $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/capture_linux_bluetooth/kismet_cap_linux_bluetooth $(1)/usr/bin/
$(INSTALL_DIR) $(1)/etc/kismet/
$(INSTALL_CONF) ./files/kismet_package.conf $(1)/etc/kismet
$(INSTALL_CONF) $(PKG_BUILD_DIR)/conf/kismet.conf $(1)/etc/kismet
$(INSTALL_CONF) $(PKG_BUILD_DIR)/conf/kismet_80211.conf $(1)/etc/kismet
$(INSTALL_CONF) $(PKG_BUILD_DIR)/conf/kismet_alerts.conf $(1)/etc/kismet
$(INSTALL_CONF) $(PKG_BUILD_DIR)/conf/kismet_filter.conf $(1)/etc/kismet
$(INSTALL_CONF) $(PKG_BUILD_DIR)/conf/kismet_httpd.conf $(1)/etc/kismet
$(INSTALL_CONF) $(PKG_BUILD_DIR)/conf/kismet_logging.conf $(1)/etc/kismet
$(INSTALL_CONF) $(PKG_BUILD_DIR)/conf/kismet_memory.conf $(1)/etc/kismet
$(INSTALL_CONF) $(PKG_BUILD_DIR)/conf/kismet_storage.conf $(1)/etc/kismet
$(INSTALL_CONF) $(PKG_BUILD_DIR)/conf/kismet_uav.conf $(1)/etc/kismet
$(INSTALL_CONF) $(PKG_BUILD_DIR)/conf/kismet_manuf.txt $(1)/etc/kismet
cp -Rv $(PKG_BUILD_DIR)/http_data $(1)/etc/kismet/
endef
$(eval $(call BuildPackage,kismet-master))

View File

@ -0,0 +1,18 @@
# Insecure defaults for tetra; before making it a proper module
# we should integrate with the tetra ui
httpd_username=kismet
httpd_password=kismet
httpd_home=/etc/kismet/http_data
# Save memory on Tetra
keep_location_cloud_history=false
keep_datasource_signal_history=false
packet_dedup_size=512
packet_backlog_warning=512
packet_backlog_limit=1024
tcp_buffer_kb=64
ipc_buffer_kb=64