add some changes from whiterussian to head
SVN-Revision: 1455
This commit is contained in:
parent
6e6a045393
commit
0be45c47c0
7 changed files with 38 additions and 23 deletions
|
@ -1,7 +1,7 @@
|
||||||
menu "kismet - an 802.11 layer2 wireless network detector, sniffer, and intrusion detection system"
|
menu "kismet - an 802.11 layer2 wireless network detector, sniffer, and intrusion detection system"
|
||||||
|
|
||||||
config BR2_PACKAGE_KISMET
|
config BR2_PACKAGE_KISMET
|
||||||
bool
|
tristate
|
||||||
default n
|
default n
|
||||||
depends BR2_PACKAGE_KISMET_CLIENT || BR2_PACKAGE_KISMET_DRONE || BR2_PACKAGE_KISMET_SERVER
|
depends BR2_PACKAGE_KISMET_CLIENT || BR2_PACKAGE_KISMET_DRONE || BR2_PACKAGE_KISMET_SERVER
|
||||||
|
|
||||||
|
|
|
@ -16,6 +16,7 @@ PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
|
||||||
|
|
||||||
include $(TOPDIR)/package/rules.mk
|
include $(TOPDIR)/package/rules.mk
|
||||||
|
|
||||||
|
$(eval $(call PKG_template,KISMET,kismet,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
||||||
$(eval $(call PKG_template,KISMET_CLIENT,kismet-client,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
$(eval $(call PKG_template,KISMET_CLIENT,kismet-client,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
||||||
$(eval $(call PKG_template,KISMET_DRONE,kismet-drone,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
$(eval $(call PKG_template,KISMET_DRONE,kismet-drone,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
||||||
$(eval $(call PKG_template,KISMET_SERVER,kismet-server,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
$(eval $(call PKG_template,KISMET_SERVER,kismet-server,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
||||||
|
@ -59,6 +60,11 @@ $(PKG_BUILD_DIR)/.built:
|
||||||
CPPFLAGS="-I$(STAGING_DIR)/include -I$(STAGING_DIR)/usr/include -I$(LINUX_DIR)/include"
|
CPPFLAGS="-I$(STAGING_DIR)/include -I$(STAGING_DIR)/usr/include -I$(LINUX_DIR)/include"
|
||||||
touch $@
|
touch $@
|
||||||
|
|
||||||
|
$(IPKG_KISMET):
|
||||||
|
install -d -m0755 $(IDIR_KISMET)/usr/bin/
|
||||||
|
cp -fpR $(PKG_BUILD_DIR)/scripts/kismet $(IDIR_KISMET)/usr/bin/
|
||||||
|
$(IPKG_BUILD) $(IDIR_KISMET) $(PACKAGE_DIR)
|
||||||
|
|
||||||
$(IPKG_KISMET_CLIENT):
|
$(IPKG_KISMET_CLIENT):
|
||||||
install -d -m0755 $(IDIR_KISMET_CLIENT)/etc/kismet/
|
install -d -m0755 $(IDIR_KISMET_CLIENT)/etc/kismet/
|
||||||
install -m0644 ./files/ap_manuf $(IDIR_KISMET_CLIENT)/etc/kismet/
|
install -m0644 ./files/ap_manuf $(IDIR_KISMET_CLIENT)/etc/kismet/
|
||||||
|
|
11
openwrt/package/kismet/ipkg/kismet.control
Normal file
11
openwrt/package/kismet/ipkg/kismet.control
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
Package: kismet
|
||||||
|
Priority: optional
|
||||||
|
Section: net
|
||||||
|
Maintainer: Felix Fietkau <nbd@vd-s.ath.cx>
|
||||||
|
Source: buildroot internal
|
||||||
|
Depends: kismet-client, kismet-server
|
||||||
|
Description: kismet
|
||||||
|
Kismet is an 802.11 layer2 wireless network detector,
|
||||||
|
sniffer, and intrusion detection system. Kismet will work with any
|
||||||
|
wireless card which supports raw monitoring (rfmon) mode, and can
|
||||||
|
sniff 802.11b, 802.11a, and 802.11g traffic.
|
|
@ -14,16 +14,14 @@ touch /var/log/lastlog
|
||||||
|
|
||||||
# set up the vlan*ports variables for the asus wl-500g deluxe
|
# set up the vlan*ports variables for the asus wl-500g deluxe
|
||||||
# if they don't already exist
|
# if they don't already exist
|
||||||
[ "$(nvram get boardtype)" = "bcm95365r" ] && \
|
[ "$(nvram get boardtype)" = "bcm95365r" \
|
||||||
[ "$(nvram get boardnum)" = "45" ] && {
|
-a "$(nvram get boardnum)" = "45" \
|
||||||
[ -z "$(nvram get vlan0ports)" ] && \
|
-a -z "$(nvram get vlan0ports)$(nvram get vlan1ports)" ] && {
|
||||||
[ -z "$(nvram get vlan1ports)" ] && {
|
|
||||||
nvram set vlan0ports="1 2 3 4 5*"
|
nvram set vlan0ports="1 2 3 4 5*"
|
||||||
nvram set vlan1ports="0 5"
|
nvram set vlan1ports="0 5"
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
cat /etc/modules /etc/modules.d/*|sed 's/^[^#]/insmod &/' 2>&-|ash
|
sed 's/^[^#]/insmod &/' /etc/modules /etc/modules.d/* 2>&-|ash
|
||||||
|
|
||||||
ifconfig lo 127.0.0.1 up
|
ifconfig lo 127.0.0.1 up
|
||||||
ifconfig eth0 promisc
|
ifconfig eth0 promisc
|
||||||
|
|
|
@ -26,7 +26,7 @@ iptables -t nat -N postrouting_rule
|
||||||
iptables -P INPUT DROP
|
iptables -P INPUT DROP
|
||||||
iptables -A INPUT -m state --state INVALID -j DROP
|
iptables -A INPUT -m state --state INVALID -j DROP
|
||||||
iptables -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
|
iptables -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
|
||||||
iptables -A INPUT -p tcp --syn --tcp-option \! 2 -j DROP
|
iptables -A INPUT -p tcp --tcp-flags SYN SYN --tcp-option \! 2 -j DROP
|
||||||
|
|
||||||
#
|
#
|
||||||
# insert accept rule or to jump to new accept-check table here
|
# insert accept rule or to jump to new accept-check table here
|
||||||
|
|
|
@ -20,8 +20,8 @@ remap () {
|
||||||
}
|
}
|
||||||
|
|
||||||
# hacks for wrt54g 1.x hardware
|
# hacks for wrt54g 1.x hardware
|
||||||
[ "$(nvram get boardnum)" = "42" ] && \
|
[ "$(nvram get boardnum)" = "42" \
|
||||||
[ "$(nvram get boardtype)" = "bcm94710dev" ] && {
|
-a "$(nvram get boardtype)" = "bcm94710dev" ] && {
|
||||||
debug "### wrt54g 1.x hack ###"
|
debug "### wrt54g 1.x hack ###"
|
||||||
NVRAM_vlan1hwname="et0"
|
NVRAM_vlan1hwname="et0"
|
||||||
NVRAM_vlan2hwname="et0"
|
NVRAM_vlan2hwname="et0"
|
||||||
|
@ -31,8 +31,8 @@ remap () {
|
||||||
}
|
}
|
||||||
|
|
||||||
# hacks for asus wl-500g deluxe
|
# hacks for asus wl-500g deluxe
|
||||||
[ "$(nvram get boardtype)" = "bcm95365r" ] && \
|
[ "$(nvram get boardtype)" = "bcm95365r" \
|
||||||
[ "$(nvram get boardnum)" = "45" ] && {
|
-a "$(nvram get boardnum)" = "45" ] && {
|
||||||
debug "### wl-500g deluxe hacks ###"
|
debug "### wl-500g deluxe hacks ###"
|
||||||
NVRAM_vlan0hwname="et0"
|
NVRAM_vlan0hwname="et0"
|
||||||
NVRAM_vlan1hwname="et0"
|
NVRAM_vlan1hwname="et0"
|
||||||
|
@ -49,25 +49,25 @@ remap () {
|
||||||
}
|
}
|
||||||
|
|
||||||
# hacks for wap54g hardware
|
# hacks for wap54g hardware
|
||||||
[ "$(nvram get boardnum)" = "2" ] || \
|
[ "$(nvram get boardnum)" = "2" \
|
||||||
[ "$(nvram get boardnum)" = "1024" ] && {
|
-o "$(nvram get boardnum)" = "1024" ] && {
|
||||||
debug "### wap54g hack ###"
|
debug "### wap54g hack ###"
|
||||||
NVRAM_wan_ifname="none"
|
NVRAM_wan_ifname="none"
|
||||||
FAILSAFE_ifnames="eth0 eth1"
|
FAILSAFE_ifnames="eth0 eth1"
|
||||||
}
|
}
|
||||||
|
|
||||||
# hacks for buffalo wla2-g54l
|
# hacks for buffalo wla2-g54l
|
||||||
[ "$(nvram get boardnum)" = "00" ] && \
|
[ "$(nvram get boardnum)" = "00" \
|
||||||
[ "$(nvram get product_name)" = "Product_name" ] || \
|
-a "$(nvram get product_name)" = "Product_name" \
|
||||||
[ "$(nvram get product_name)" = "WLA2-G54L" ] && {
|
-o "$(nvram get product_name)" = "WLA2-G54L" ] && {
|
||||||
debug "### wla2-g54l hacks ###"
|
debug "### wla2-g54l hacks ###"
|
||||||
NVRAM_wan_ifname="none"
|
NVRAM_wan_ifname="none"
|
||||||
NVRAM_lan_ifnames="vlan0"
|
NVRAM_lan_ifnames="vlan0"
|
||||||
}
|
}
|
||||||
|
|
||||||
# hack for asus wl-500g hardware
|
# hack for asus wl-500g hardware
|
||||||
[ "$(nvram get boardnum)" = "asusX" ] && \
|
[ "$(nvram get boardnum)" = "asusX" \
|
||||||
[ "$(nvram get boardtype)" = "bcm94710dev" ] && {
|
-a "$(nvram get boardtype)" = "bcm94710dev" ] && {
|
||||||
FAILSAFE_ifnames="eth0 eth2"
|
FAILSAFE_ifnames="eth0 eth2"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@ squashfs-clean:
|
||||||
|
|
||||||
$(KDIR)/root.squashfs:
|
$(KDIR)/root.squashfs:
|
||||||
@mkdir -p $(KDIR)/root/jffs
|
@mkdir -p $(KDIR)/root/jffs
|
||||||
$(STAGING_DIR)/bin/mksquashfs-lzma $(KDIR)/root $@ -noappend -root-owned -le
|
$(STAGING_DIR)/bin/mksquashfs-lzma $(KDIR)/root $@ -nopad -noappend -root-owned -le
|
||||||
|
|
||||||
squashfs-install: $(KDIR)/root.squashfs
|
squashfs-install: $(KDIR)/root.squashfs
|
||||||
$(MAKE) -C $(BOARD) install KERNEL="$(KERNEL)" FS="squashfs"
|
$(MAKE) -C $(BOARD) install KERNEL="$(KERNEL)" FS="squashfs"
|
||||||
|
|
Loading…
Reference in a new issue