You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1.4 KiB

  1. # Copyright (C) 2017-2018 Yousong Zhou
  2. #
  3. # This is free software, licensed under the GNU General Public License v2.
  4. # See /LICENSE for more information.
  5. #
  6. include $(TOPDIR)/rules.mk
  7. PKG_NAME:=pixiewps
  8. PKG_VERSION:=1.4.2
  9. PKG_RELEASE:=2
  10. PKG_MAINTAINER:=Yousong Zhou <yszhou4tech@gmail.com>
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=https://github.com/wiire-a/pixiewps/releases/download/v$(PKG_VERSION)
  13. PKG_HASH:=c4dc0569e476ebdbd85992da2d1ff799db97ed0040da9dc44e13d08a97a9de1e
  14. PKG_LICENSE:=GPL-3.0
  15. PKG_LICENSE_FILES:=LICENSE.md
  16. include $(INCLUDE_DIR)/package.mk
  17. define Package/pixiewps
  18. SECTION:=net
  19. CATEGORY:=Network
  20. SUBMENU:=Wireless
  21. TITLE:=An offline WPS bruteforce utility
  22. URL:=https://github.com/wiire-a/pixiewps
  23. DEPENDS:=+libpthread
  24. endef
  25. define Package/pixiewps/description
  26. Pixiewps is a tool written in C used to bruteforce offline the WPS PIN
  27. exploiting the low or non-existing entropy of some Access Points, the so-called
  28. "pixie-dust attack" discovered by Dominique Bongard in summer 2014. It is
  29. meant for educational purposes only.
  30. endef
  31. # override flags by pixiewps' own Makefile
  32. MAKE_FLAGS += \
  33. CFLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS)" \
  34. CPPFLAGS="$(TARGET_CPPFLAGS) $(EXTRA_CPPFLAGS)" \
  35. LDFLAGS="$(TARGET_LDFLAGS) $(EXTRA_LDFLAGS)" \
  36. define Package/pixiewps/install
  37. $(INSTALL_DIR) $(1)/usr/bin
  38. $(INSTALL_BIN) $(PKG_BUILD_DIR)/pixiewps $(1)/usr/bin/
  39. endef
  40. $(eval $(call BuildPackage,pixiewps))