Coder Social home page Coder Social logo

Can't run on OpenWRT about reaver-wps-fork-t6x HOT 24 CLOSED

t6x avatar t6x commented on August 16, 2024
Can't run on OpenWRT

from reaver-wps-fork-t6x.

Comments (24)

alex-chan avatar alex-chan commented on August 16, 2024

Update : there is a slight difference between the patch and the forked one.
Update2: after apply the patch it still showing Segmentation fault

from reaver-wps-fork-t6x.

d8tahead avatar d8tahead commented on August 16, 2024

Hi Alex-Chan, I have this running on my openwrt based router, can you tell me a little but more about the compilation steps you took? And also, what hardware are you using / trying to put it on?

from reaver-wps-fork-t6x.

 avatar commented on August 16, 2024

@d8tahead can you make package and publish it ?

from reaver-wps-fork-t6x.

d8tahead avatar d8tahead commented on August 16, 2024

Yes I can, and there is one stipulation. It's tested / working on ar71xx
mips B.E., openwrt AA
On Jul 10, 2015 1:28 PM, "NetForHack" [email protected] wrote:

@d8tahead https://github.com/d8tahead can you make package and publish
it ?


Reply to this email directly or view it on GitHub
#26 (comment)
.

from reaver-wps-fork-t6x.

 avatar commented on August 16, 2024

@d8tahead can you build for Barier Breaker release ? Hopes it`s cound run on tp-link mr3020

from reaver-wps-fork-t6x.

d8tahead avatar d8tahead commented on August 16, 2024

https://github.com/t6x/reaver-wps-fork-t6x/tree/Big_endian/bin/ar71xx/ipk

from reaver-wps-fork-t6x.

d8tahead avatar d8tahead commented on August 16, 2024

i have not personally tested it on Barrier Breaker, but from last i heard, reaver is not working on it.
I can not confirm this issue though. i've provided the precompiled ipk, please let me know it it works for you.
i will have to further investigate the issue. maybe if someone would want to compile it with use against valgrind and, run, and send the output logs here from where and why it segfaults

from reaver-wps-fork-t6x.

ZeroChaos- avatar ZeroChaos- commented on August 16, 2024

It may be more useful to provide the makefile you used instead. if it passes quality control it can be included in openwrt proper.

from reaver-wps-fork-t6x.

d8tahead avatar d8tahead commented on August 16, 2024

@ZeroChaos- the makefile is included

from reaver-wps-fork-t6x.

d8tahead avatar d8tahead commented on August 16, 2024

@ZeroChaos- and has been included, as here https://github.com/t6x/reaver-wps-fork-t6x/blob/Big_endian/Makefile

it is to be placed in feeds/packages/net/reaver, and someone had stated that i should be the maintainer for the openwrt based reaver fork source in the official openwrt repos , and i am fine with that.

from reaver-wps-fork-t6x.

 avatar commented on August 16, 2024

so test, debug if needed and pull reqest to openwrt packages repo

@d8tahead i can try to run it, but is there no wps ap in my area

from reaver-wps-fork-t6x.

 avatar commented on August 16, 2024

@d8tahead on wr1043nd BB i`ve got error "reaver: can't load library 'libpcap.so.1.1' but libpcap installed

from reaver-wps-fork-t6x.

d8tahead avatar d8tahead commented on August 16, 2024

@netforhack you need an older version of libpcap, there are known issues with newer libpcap and reaver.

this could be the problem that BB presents to reaver?

from reaver-wps-fork-t6x.

d8tahead avatar d8tahead commented on August 16, 2024

@ZeroChaos- If you would like to submit any of this onward to the openwrt repo, feel free. also pixiewps could be added too

from reaver-wps-fork-t6x.

 avatar commented on August 16, 2024

@d8tahead reaver from repo works fine, i will try on other device downgraded to AA

from reaver-wps-fork-t6x.

d8tahead avatar d8tahead commented on August 16, 2024

i will look at the sources / patches for BB and see what is different for the libs

from reaver-wps-fork-t6x.

alex-chan avatar alex-chan commented on August 16, 2024

My router is Mercury MAC1200R, the chip is AR9344, However OpenWRT use AR71xx catalog. So I downloaded http://downloads.openwrt.org/snapshots/trunk/ar71xx/ (build7.10) to flash my router.

And downloaded the relative SDK to compile this reaver( master branch)

My Makefile for OpenWRT is :


include $(TOPDIR)/rules.mk

PKG_NAME:=reaver
PKG_RELEASE:=1.5.2czz

PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)

include $(INCLUDE_DIR)/package.mk

define Package/reaver
    SECTION:=packages
    CATEGORY:=Utilities
    TITLE:=reaver -- A wireless attack tool
    DEPENDS:=+libpcap +libsqlite3
    #DESCRIPTION:=\
    #If you can't figure out what this program does, \\
    #you're probably brain-dead and need immediate \\
    #medical attention.
endef

define Package/reaver/description
    A wireless attack tool. recompiled by sunset 2015/07
endef

define Build/Prepare
    mkdir -p $(PKG_BUILD_DIR)
    $(CP) ./src/\* $(PKG_BUILD_DIR)/
endef

define Package/reaver/install
    $(INSTALL_DIR) $(1)/bin
    $(INSTALL_BIN) $(PKG_BUILD_DIR)/reaver $(1)/bin/
endef

$(eval $(call BuildPackage,reaver))

from reaver-wps-fork-t6x.

d8tahead avatar d8tahead commented on August 16, 2024

@alex-chan does the ipk here work for you? https://github.com/t6x/reaver-wps-fork-t6x/tree/Big_endian/bin/ar71xx/ipk

Or if you would like to manually have a go at compiling, place this makefile in /feeds/packages/net/reaver ( preferably an empty reaver directory with no patches )
https://github.com/t6x/reaver-wps-fork-t6x/blob/Big_endian/Makefile

from reaver-wps-fork-t6x.

d8tahead avatar d8tahead commented on August 16, 2024

@alex-chan Also, You need to grab the Big_endian branch instead of the master. This is because we work on the branches seperate from each other, to avoid a mess of patch files, And feature conflict. as too much has changed from the original author of the big endian patch work ( credits to him / her for their amazing work, but name slips my mind )
And is constantly changing in the layout that custom patching becomes tedious.

This branch pre includes the patches for , big endian, less wash output, and saving from within the current working directory.

I understand to some this may seem not the way to go, but it's just what we decided on.

If you or anyone else has suggestions, changes, additions, makefiles, patches or improvements etc, please feel free to contribute. We want this to be a community improved project as well.

Thank you all for the reports, I am try I to get down to the barrier breaker issues, but I do not have a box capable of running it without core functionality being broken. But I suspect it's an incompatible libpcap version in BB. If anyone can downgrade their libpcap and test and report back, I'd appreciate it to see what need a fixing and where.
thank you all again.

from reaver-wps-fork-t6x.

alex-chan avatar alex-chan commented on August 16, 2024

@d8tahead

  1. First I useopkg install <the-ipkg-you-build>, It doesn't work.

    root@OpenWrt:# ls -al /usr/bin | grep reaver
    -rwxr-xr-x 1 root root 347272 Jun 12 22:18 reaver
    root@OpenWrt:
    # /usr/bin/reaver
    -ash: /usr/bin/reaver: not found
    Seems like it's not the right SDK compiled for my OpenWRT

  2. Then I use the Makefile https://raw.githubusercontent.com/t6x/reaver-wps-fork-t6x/Big_endian/Makefile . which download live code from github. But It still fails: undefined u_char in libwps.h . It said .

  3. At last I downloaded the BigEndian brach myself and solve the undefined problem.
    modify the Makefile to use local copy to build. It shows errors:


mips-openwrt-linux-musl-gcc -DCONF_DIR='"/etc/reaver"' -DREAVER_DATABASE='"/etc/reaver/reaver.db"' -Wall -Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -mips16 -minterlink-mips16 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/sunset/Projects/Router/SDK/OpenWrt-SDK-ar71xx-generic_gcc-4.8-linaro_musl-1.1.10.Linux-x86_64/staging_dir/target-mips_34kc_musl-1.1.10/usr/include -I/home/sunset/Projects/Router/SDK/OpenWrt-SDK-ar71xx-generic_gcc-4.8-linaro_musl-1.1.10.Linux-x86_64/staging_dir/target-mips_34kc_musl-1.1.10/include -I/home/sunset/Projects/Router/SDK/OpenWrt-SDK-ar71xx-generic_gcc-4.8-linaro_musl-1.1.10.Linux-x86_64/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/usr/include -I/home/sunset/Projects/Router/SDK/OpenWrt-SDK-ar71xx-generic_gcc-4.8-linaro_musl-1.1.10.Linux-x86_64/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/include/fortify -I/home/sunset/Projects/Router/SDK/OpenWrt-SDK-ar71xx-generic_gcc-4.8-linaro_musl-1.1.10.Linux-x86_64/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/include  builder.c -c
{standard input}: Assembler messages:
{standard input}:92: Error: unrecognized opcode `wsbh $2,$2'
{standard input}:103: Error: unrecognized opcode `wsbh $3,$17'
{standard input}:278: Error: unrecognized opcode `wsbh $2,$2'
make[4]: *** [builder.o] Error 1

I still work on how to overcome it.

from reaver-wps-fork-t6x.

chron0 avatar chron0 commented on August 16, 2024

Same issue on current trunk/CC(RC) configured for a Gl.Inet (ar71xx)

Placed the Makefile

  1 #
  2 # Copyright (C) 2012 OpenWrt.org
  3 #
  4 # This is free software, licensed under the GNU General Public License v2.
  5 # See /LICENSE for more information.
  6 #
  7 
  8 include $(TOPDIR)/rules.mk
  9 
 10 PKG_NAME:=reaver-wps-fork-t6x
 11 PKG_REV:=Big_endian
 12 PKG_VERSION:=$(PKG_REV)
 13 PKG_RELEASE:=1
 14 
 15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 16 PKG_SOURCE_URL:=https://github.com/t6x/reaver-wps-fork-t6x.git
 17 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
 18 PKG_SOURCE_VERSION:=$(PKG_REV)
 19 PKG_SOURCE_PROTO:=git
 20 
 21 include $(INCLUDE_DIR)/package.mk
 22 
 23 define Package/reaver
 24   SECTION:=net
 25   CATEGORY:=Network
 26   SUBMENU:=wireless
 27   TITLE:=Efficient online and offline brute force attack against Wifi Protected Setup
 28   URL:=https://github.com/t6x/reaver-wps-fork-t6x
 29   DEPENDS:=+libpcap +libsqlite3
 30 endef
 31 
 32 define Package/reaver/description
 33   Reaver targets the external registrar functionality mandated by the WiFi
 34   Protected Setup specification.
 35   Access points will provide authenticated registrars with their current
 36   wireless configuration (including the WPA PSK), and also accept a new
 37   configuration from the registrar.
 38   New implementations consist of the PixieDust attack and many more.
 39 endef
 40 
 41 CONFIGURE_PATH:=src
 42 
 43 MAKE_PATH:=src
 44 
 45 TARGET_CFLAGS+=$(TARGET_CPPFLAGS)
 46 
 47 define Package/reaver/install
 48     $(INSTALL_DIR) $(1)/usr/bin
 49     $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/{reaver,wash} $(1)/usr/bin/
 50     $(INSTALL_DIR) $(1)/etc/reaver
 51     $(INSTALL_DATA) $(PKG_BUILD_DIR)/src/reaver.db $(1)/etc/reaver/
 52 endef
 53 
 54 $(eval $(call BuildPackage,reaver))

in feeds/packages/net/reaver and ran

# scripts/feeds install pixiewps
# scripts/feeds install reaver

Then enabled reaver via make menuconfig

make[3]: Entering directory '/home/chrono/src/openwrt/feeds/packages/net/reaver'
. /home/chrono/src/openwrt/include/shell.sh; gzip -dc /home/chrono/src/openwrt/dl/reaver-wps-fork-t6x-Big_endian.tar.gz | tar -C /home/chrono/src/openwrt/build_dir/target-mips_34kc_musl-1.1.10/reaver-wps-fork-t6x-Big_endian/.. -xf - 
touch /home/chrono/src/openwrt/build_dir/target-mips_34kc_musl-1.1.10/reaver-wps-fork-t6x-Big_endian/.prepared_35c811cbcd4b3f815f5d2ba1e945fcc1
rm -f /home/chrono/src/openwrt/staging_dir/target-mips_34kc_musl-1.1.10/stamp/.reaver-wps-fork-t6x_installed
(cd /home/chrono/src/openwrt/build_dir/target-mips_34kc_musl-1.1.10/reaver-wps-fork-t6x-Big_endian/src/; if [ -x ./configure ]; then find /home/chrono/src/openwrt/build_dir/target-mips_34kc_musl-1.1.10/reaver-wps-fork-t6x-Big_endian/ -name config.guess | xargs -r chmod u+w; find /home/chrono/src/openwrt/build_dir/target-mips_34kc_musl-1.1.10/reaver-wps-fork-t6x-Big_endian/ -name config.guess | xargs -r -n1 cp --remove-destination /home/chrono/src/openwrt/scripts/config.guess; find /home/chrono/src/openwrt/build_dir/target-mips_34kc_musl-1.1.10/reaver-wps-fork-t6x-Big_endian/ -name config.sub | xargs -r chmod u+w; find /home/chrono/src/openwrt/build_dir/target-mips_34kc_musl-1.1.10/reaver-wps-fork-t6x-Big_endian/ -name config.sub | xargs -r -n1 cp --remove-destination /home/chrono/src/openwrt/scripts/config.sub; AR="mips-openwrt-linux-musl-gcc-ar" AS="mips-openwrt-linux-musl-gcc -c -Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/chrono/src/openwrt/staging_dir/target-mips_34kc_musl-1.1.10/usr/include -I/home/chrono/src/openwrt/staging_dir/target-mips_34kc_musl-1.1.10/include -I/home/chrono/src/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/usr/include -I/home/chrono/src/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/include/fortify -I/home/chrono/src/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/include" LD=mips-openwrt-linux-musl-ld NM="mips-openwrt-linux-musl-gcc-nm" CC="mips-openwrt-linux-musl-gcc" GCC="mips-openwrt-linux-musl-gcc" CXX="mips-openwrt-linux-musl-g++" RANLIB="mips-openwrt-linux-musl-gcc-ranlib" STRIP=mips-openwrt-linux-musl-strip OBJCOPY=mips-openwrt-linux-musl-objcopy OBJDUMP=mips-openwrt-linux-musl-objdump SIZE=mips-openwrt-linux-musl-size CFLAGS="-Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -mips16 -minterlink-mips16 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/chrono/src/openwrt/staging_dir/target-mips_34kc_musl-1.1.10/usr/include -I/home/chrono/src/openwrt/staging_dir/target-mips_34kc_musl-1.1.10/include -I/home/chrono/src/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/usr/include -I/home/chrono/src/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/include/fortify -I/home/chrono/src/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/include " CXXFLAGS="-Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -mips16 -minterlink-mips16 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/chrono/src/openwrt/staging_dir/target-mips_34kc_musl-1.1.10/usr/include -I/home/chrono/src/openwrt/staging_dir/target-mips_34kc_musl-1.1.10/include -I/home/chrono/src/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/usr/include -I/home/chrono/src/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/include/fortify -I/home/chrono/src/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/include " CPPFLAGS="-I/home/chrono/src/openwrt/staging_dir/target-mips_34kc_musl-1.1.10/usr/include -I/home/chrono/src/openwrt/staging_dir/target-mips_34kc_musl-1.1.10/include -I/home/chrono/src/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/usr/include -I/home/chrono/src/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/include/fortify -I/home/chrono/src/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/include " LDFLAGS="-L/home/chrono/src/openwrt/staging_dir/target-mips_34kc_musl-1.1.10/usr/lib -L/home/chrono/src/openwrt/staging_dir/target-mips_34kc_musl-1.1.10/lib -L/home/chrono/src/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/usr/lib -L/home/chrono/src/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/lib -znow -zrelro "   ./configure --target=mips-openwrt-linux --host=mips-openwrt-linux --build=x86_64-pc-linux-gnu --program-prefix="" --program-suffix="" --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib --sysconfdir=/etc --datadir=/usr/share --localstatedir=/var --mandir=/usr/man --infodir=/usr/info --disable-nls  --disable-ipv6 ; fi; )
configure: WARNING: unrecognized options: --disable-nls, --disable-ipv6
configure: loading site script /home/chrono/src/openwrt/include/site/mips
checking for mips-openwrt-linux-gcc... mips-openwrt-linux-musl-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether mips-openwrt-linux-musl-gcc accepts -g... yes
checking for mips-openwrt-linux-musl-gcc option to accept ISO C89... none needed
checking for pcap_open_live in -lpcap... yes
checking for sqlite3_open in -lsqlite3... yes
checking how to run the C preprocessor... mips-openwrt-linux-musl-gcc -E
checking for grep that handles long lines and -e... /home/chrono/src/openwrt/staging_dir/host/bin/grep
checking for egrep... /home/chrono/src/openwrt/staging_dir/host/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for stdlib.h... (cached) yes
checking for stdint.h... (cached) yes
checking for string.h... (cached) yes
checking pcap.h usability... yes
checking pcap.h presence... yes
checking for pcap.h... yes
checking sqlite3.h usability... yes
checking sqlite3.h presence... yes
checking for sqlite3.h... yes
configure: creating ./config.status
config.status: creating Makefile
configure: WARNING: unrecognized options: --disable-nls, --disable-ipv6
rm -f /home/chrono/src/openwrt/build_dir/target-mips_34kc_musl-1.1.10/reaver-wps-fork-t6x-Big_endian/.configured_*
touch /home/chrono/src/openwrt/build_dir/target-mips_34kc_musl-1.1.10/reaver-wps-fork-t6x-Big_endian/.configured_yyynyy
CFLAGS="-Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -mips16 -minterlink-mips16 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/chrono/src/openwrt/staging_dir/target-mips_34kc_musl-1.1.10/usr/include -I/home/chrono/src/openwrt/staging_dir/target-mips_34kc_musl-1.1.10/include -I/home/chrono/src/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/usr/include -I/home/chrono/src/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/include/fortify -I/home/chrono/src/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/include  -I/home/chrono/src/openwrt/staging_dir/target-mips_34kc_musl-1.1.10/usr/include -I/home/chrono/src/openwrt/staging_dir/target-mips_34kc_musl-1.1.10/include -I/home/chrono/src/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/usr/include -I/home/chrono/src/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/include/fortify -I/home/chrono/src/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/include " CXXFLAGS="-Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -mips16 -minterlink-mips16 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/chrono/src/openwrt/staging_dir/target-mips_34kc_musl-1.1.10/usr/include -I/home/chrono/src/openwrt/staging_dir/target-mips_34kc_musl-1.1.10/include -I/home/chrono/src/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/usr/include -I/home/chrono/src/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/include/fortify -I/home/chrono/src/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/include  -I/home/chrono/src/openwrt/staging_dir/target-mips_34kc_musl-1.1.10/usr/include -I/home/chrono/src/openwrt/staging_dir/target-mips_34kc_musl-1.1.10/include -I/home/chrono/src/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/usr/include -I/home/chrono/src/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/include/fortify -I/home/chrono/src/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/include " LDFLAGS="-L/home/chrono/src/openwrt/staging_dir/target-mips_34kc_musl-1.1.10/usr/lib -L/home/chrono/src/openwrt/staging_dir/target-mips_34kc_musl-1.1.10/lib -L/home/chrono/src/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/usr/lib -L/home/chrono/src/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/lib -znow -zrelro " make -j1 -C /home/chrono/src/openwrt/build_dir/target-mips_34kc_musl-1.1.10/reaver-wps-fork-t6x-Big_endian/src AR="mips-openwrt-linux-musl-gcc-ar" AS="mips-openwrt-linux-musl-gcc -c -Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/chrono/src/openwrt/staging_dir/target-mips_34kc_musl-1.1.10/usr/include -I/home/chrono/src/openwrt/staging_dir/target-mips_34kc_musl-1.1.10/include -I/home/chrono/src/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/usr/include -I/home/chrono/src/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/include/fortify -I/home/chrono/src/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/include" LD=mips-openwrt-linux-musl-ld NM="mips-openwrt-linux-musl-gcc-nm" CC="mips-openwrt-linux-musl-gcc" GCC="mips-openwrt-linux-musl-gcc" CXX="mips-openwrt-linux-musl-g++" RANLIB="mips-openwrt-linux-musl-gcc-ranlib" STRIP=mips-openwrt-linux-musl-strip OBJCOPY=mips-openwrt-linux-musl-objcopy OBJDUMP=mips-openwrt-linux-musl-objdump SIZE=mips-openwrt-linux-musl-size CROSS="mips-openwrt-linux-musl-" ARCH="mips" ;
make[4]: Entering directory '/home/chrono/src/openwrt/build_dir/target-mips_34kc_musl-1.1.10/reaver-wps-fork-t6x-Big_endian/src'
(cd utils && make)
make[5]: Entering directory '/home/chrono/src/openwrt/build_dir/target-mips_34kc_musl-1.1.10/reaver-wps-fork-t6x-Big_endian/src/utils'
  CC  base64.c
common.c: In function 'pingen_zhaochunsheng':
common.c:597:5: warning: passing argument 1 of 'snprintf' makes pointer from integer without a cast [enabled by default]
     snprintf(pin, pin_len, "%08d", (default_pin * 10) + wps_checksum(default_pin));
     ^
In file included from /home/chrono/src/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/include/fortify/stdio.h:19:0,
                 from includes.h:26,
                 from common.c:15:
/home/chrono/src/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/include/stdio.h:105:5: note: expected 'char *' but argument is of type 'int'
 int snprintf(char *__restrict, size_t, const char *__restrict, ...);
     ^
common.c: In function 'pingen_zyxel':
common.c:614:5: warning: implicit declaration of function 'wps_pin_checksum' [-Wimplicit-function-declaration]
     return (pin * 10) + wps_pin_checksum(pin);
     ^
  CC  common.c
  CC  ip_addr.c
  CC  radiotap.c
  CC  trace.c
  CC  uuid.c
  CC  wpa_debug.c
  CC  wpabuf.c
  CC  os_unix.c
  CC  eloop.c
mips-openwrt-linux-musl-gcc-ar crT libutils.a base64.o common.o ip_addr.o radiotap.o trace.o uuid.o wpa_debug.o wpabuf.o os_unix.o eloop.o
make[5]: Leaving directory '/home/chrono/src/openwrt/build_dir/target-mips_34kc_musl-1.1.10/reaver-wps-fork-t6x-Big_endian/src/utils'
(cd tls && make)
make[5]: Entering directory '/home/chrono/src/openwrt/build_dir/target-mips_34kc_musl-1.1.10/reaver-wps-fork-t6x-Big_endian/src/tls'
  CC  asn1.c
In file included from bignum.c:21:0:
libtommath.c: In function 'mp_exptmod':
libtommath.c:580:9: warning: variable 'dr' set but not used [-Wunused-but-set-variable]
     int dr;
         ^
  CC  bignum.c
  CC  pkcs1.c
  CC  pkcs5.c
  CC  pkcs8.c
  CC  rsa.c
  CC  tlsv1_client.c
  CC  tlsv1_client_read.c
  CC  tlsv1_client_write.c
  CC  tlsv1_common.c
  CC  tlsv1_cred.c
  CC  tlsv1_record.c
  CC  tlsv1_server.c
tlsv1_server_read.c: In function 'tls_process_client_key_exchange_rsa':
tlsv1_server_read.c:474:9: warning: variable 'encr_len' set but not used [-Wunused-but-set-variable]
     u16 encr_len;
         ^
  CC  tlsv1_server_read.c
  CC  tlsv1_server_write.c
  CC  x509v3.c
mips-openwrt-linux-musl-gcc-ar crT libtls.a asn1.o bignum.o pkcs1.o pkcs5.o pkcs8.o rsa.o tlsv1_client.o tlsv1_client_read.o tlsv1_client_write.o tlsv1_common.o tlsv1_cred.o tlsv1_record.o tlsv1_server.o tlsv1_server_read.o tlsv1_server_write.o x509v3.o
make[5]: Leaving directory '/home/chrono/src/openwrt/build_dir/target-mips_34kc_musl-1.1.10/reaver-wps-fork-t6x-Big_endian/src/tls'
(cd crypto && make)
make[5]: Entering directory '/home/chrono/src/openwrt/build_dir/target-mips_34kc_musl-1.1.10/reaver-wps-fork-t6x-Big_endian/src/crypto'
  CC  aes-cbc.c
  CC  aes-ctr.c
  CC  aes-eax.c
  CC  aes-encblock.c
  CC  aes-internal.c
  CC  aes-internal-dec.c
  CC  aes-internal-enc.c
  CC  aes-omac1.c
  CC  aes-unwrap.c
  CC  aes-wrap.c
  CC  des-internal.c
  CC  dh_group5.c
  CC  dh_groups.c
  CC  md4-internal.c
  CC  md5.c
In file included from ../utils/common.h:18:0,
                 from md5-internal.c:17:
md5-internal.c: In function 'MD5Final':
md5-internal.c:191:29: warning: argument to 'sizeof' in 'memset' call is the same expression as the destination; did you mean to dereference it? [-Wsizeof-pointer-memaccess]
     os_memset(ctx, 0, sizeof(ctx)); /* In case it's sensitive */
                             ^
../utils/os.h:413:41: note: in definition of macro 'os_memset'
 #define os_memset(s, c, n) memset(s, c, n)
                                         ^
  CC  md5-internal.c
  CC  md5-non-fips.c
  CC  milenage.c
  CC  ms_funcs.c
  CC  rc4.c
  CC  sha1.c
  CC  sha1-internal.c
  CC  sha1-pbkdf2.c
  CC  sha1-tlsprf.c
  CC  sha1-tprf.c
  CC  sha256.c
  CC  sha256-internal.c
  CC  crypto_internal.c
  CC  crypto_internal-cipher.c
  CC  crypto_internal-modexp.c
  CC  crypto_internal-rsa.c
  CC  tls_internal.c
  CC  fips_prf_internal.c
mips-openwrt-linux-musl-gcc-ar crT libcrypto.a aes-cbc.o aes-ctr.o aes-eax.o aes-encblock.o aes-internal.o aes-internal-dec.o aes-internal-enc.o aes-omac1.o aes-unwrap.o aes-wrap.o des-internal.o dh_group5.o dh_groups.o md4-internal.o md5.o md5-internal.o md5-non-fips.o milenage.o ms_funcs.o rc4.o sha1.o sha1-internal.o sha1-pbkdf2.o sha1-tlsprf.o sha1-tprf.o sha256.o sha256-internal.o crypto_internal.o crypto_internal-cipher.o crypto_internal-modexp.o crypto_internal-rsa.o tls_internal.o fips_prf_internal.o
make[5]: Leaving directory '/home/chrono/src/openwrt/build_dir/target-mips_34kc_musl-1.1.10/reaver-wps-fork-t6x-Big_endian/src/crypto'
(cd wps && make)
make[5]: Entering directory '/home/chrono/src/openwrt/build_dir/target-mips_34kc_musl-1.1.10/reaver-wps-fork-t6x-Big_endian/src/wps'
mips-openwrt-linux-musl-gcc -DCONF_DIR='"/etc/reaver"' -DREAVER_DATABASE='"/etc/reaver/reaver.db"' -Wall -Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -mips16 -minterlink-mips16 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/chrono/src/openwrt/staging_dir/target-mips_34kc_musl-1.1.10/usr/include -I/home/chrono/src/openwrt/staging_dir/target-mips_34kc_musl-1.1.10/include -I/home/chrono/src/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/usr/include -I/home/chrono/src/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/include/fortify -I/home/chrono/src/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/include  -I../utils -I ../ wps_attr_build.c -c
wps_attr_build.c: In function 'wps_build_public_key':
wps_attr_build.c:84:21: warning: zero-length gnu_printf format string [-Wformat-zero-length]
                     printf("");
                     ^
mips-openwrt-linux-musl-gcc -DCONF_DIR='"/etc/reaver"' -DREAVER_DATABASE='"/etc/reaver/reaver.db"' -Wall -Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -mips16 -minterlink-mips16 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/chrono/src/openwrt/staging_dir/target-mips_34kc_musl-1.1.10/usr/include -I/home/chrono/src/openwrt/staging_dir/target-mips_34kc_musl-1.1.10/include -I/home/chrono/src/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/usr/include -I/home/chrono/src/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/include/fortify -I/home/chrono/src/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/include  -I../utils -I ../ wps_attr_parse.c -c
mips-openwrt-linux-musl-gcc -DCONF_DIR='"/etc/reaver"' -DREAVER_DATABASE='"/etc/reaver/reaver.db"' -Wall -Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -mips16 -minterlink-mips16 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/chrono/src/openwrt/staging_dir/target-mips_34kc_musl-1.1.10/usr/include -I/home/chrono/src/openwrt/staging_dir/target-mips_34kc_musl-1.1.10/include -I/home/chrono/src/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/usr/include -I/home/chrono/src/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/include/fortify -I/home/chrono/src/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/include  -I../utils -I ../ wps_attr_process.c -c
mips-openwrt-linux-musl-gcc -DCONF_DIR='"/etc/reaver"' -DREAVER_DATABASE='"/etc/reaver/reaver.db"' -Wall -Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -mips16 -minterlink-mips16 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/chrono/src/openwrt/staging_dir/target-mips_34kc_musl-1.1.10/usr/include -I/home/chrono/src/openwrt/staging_dir/target-mips_34kc_musl-1.1.10/include -I/home/chrono/src/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/usr/include -I/home/chrono/src/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/include/fortify -I/home/chrono/src/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/include  -I../utils -I ../ wps.c -c
mips-openwrt-linux-musl-gcc -DCONF_DIR='"/etc/reaver"' -DREAVER_DATABASE='"/etc/reaver/reaver.db"' -Wall -Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -mips16 -minterlink-mips16 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/chrono/src/openwrt/staging_dir/target-mips_34kc_musl-1.1.10/usr/include -I/home/chrono/src/openwrt/staging_dir/target-mips_34kc_musl-1.1.10/include -I/home/chrono/src/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/usr/include -I/home/chrono/src/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/include/fortify -I/home/chrono/src/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/include  -I../utils -I ../ wps_common.c -c
wps_common.c: In function 'wps_derive_keys':
wps_common.c:149:17: warning: zero-length gnu_printf format string [-Wformat-zero-length]
                 printf("");
                 ^
mips-openwrt-linux-musl-gcc -DCONF_DIR='"/etc/reaver"' -DREAVER_DATABASE='"/etc/reaver/reaver.db"' -Wall -Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -mips16 -minterlink-mips16 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/chrono/src/openwrt/staging_dir/target-mips_34kc_musl-1.1.10/usr/include -I/home/chrono/src/openwrt/staging_dir/target-mips_34kc_musl-1.1.10/include -I/home/chrono/src/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/usr/include -I/home/chrono/src/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/include/fortify -I/home/chrono/src/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/include  -I../utils -I ../ wps_dev_attr.c -c
wps_dev_attr.c: In function 'wps_process_manufacturer':
wps_dev_attr.c:200:26: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
             printf("%c", (char *) str[pixiecnt]);
                          ^
wps_dev_attr.c:200:13: warning: format '%c' expects argument of type 'int', but argument 2 has type 'char *' [-Wformat=]
             printf("%c", (char *) str[pixiecnt]);
             ^
wps_dev_attr.c: In function 'wps_process_model_name':
wps_dev_attr.c:241:26: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
             printf("%c", (char *) str[pixiecnt]);
                          ^
wps_dev_attr.c:241:13: warning: format '%c' expects argument of type 'int', but argument 2 has type 'char *' [-Wformat=]
             printf("%c", (char *) str[pixiecnt]);
             ^
wps_dev_attr.c: In function 'wps_process_model_number':
wps_dev_attr.c:280:26: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
             printf("%c", (char *) str[pixiecnt]);
                          ^
wps_dev_attr.c:280:13: warning: format '%c' expects argument of type 'int', but argument 2 has type 'char *' [-Wformat=]
             printf("%c", (char *) str[pixiecnt]);
             ^
wps_dev_attr.c: In function 'wps_process_serial_number':
wps_dev_attr.c:319:26: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
             printf("%c", (char *) str[pixiecnt]);
                          ^
wps_dev_attr.c:319:13: warning: format '%c' expects argument of type 'int', but argument 2 has type 'char *' [-Wformat=]
             printf("%c", (char *) str[pixiecnt]);
             ^
wps_dev_attr.c:344:3: warning: implicit declaration of function 'mac2str' [-Wimplicit-function-declaration]
   printf("[Pin Gen] Pin Generated : %08d\n",pingen_belkin(mac2str(get_bssid(),'\0'), str, str_len, 0));
   ^
wps_dev_attr.c:344:3: warning: passing argument 1 of 'pingen_belkin' makes pointer from integer without a cast [enabled by default]
In file included from ../wps.h:40:0,
                 from ../defs.h:46,
                 from ../globule.h:37,
                 from wps_dev_attr.c:15:
../utils/common.h:447:5: note: expected 'char *' but argument is of type 'int'
 int pingen_belkin(char *mac, char *serial, int len_serial, int add); 
     ^
wps_dev_attr.c:344:3: warning: passing argument 2 of 'pingen_belkin' discards 'const' qualifier from pointer target type [enabled by default]
   printf("[Pin Gen] Pin Generated : %08d\n",pingen_belkin(mac2str(get_bssid(),'\0'), str, str_len, 0));
   ^
In file included from ../wps.h:40:0,
                 from ../defs.h:46,
                 from ../globule.h:37,
                 from wps_dev_attr.c:15:
../utils/common.h:447:5: note: expected 'char *' but argument is of type 'const u8 *'
 int pingen_belkin(char *mac, char *serial, int len_serial, int add); 
     ^
wps_dev_attr.c:345:3: warning: passing argument 1 of 'pingen_belkin' makes pointer from integer without a cast [enabled by default]
   printf("[Pin Gen] Pin Generated (+1): %08d\n",pingen_belkin(mac2str(get_bssid(),'\0'), str, str_len, 1));
   ^
In file included from ../wps.h:40:0,
                 from ../defs.h:46,
                 from ../globule.h:37,
                 from wps_dev_attr.c:15:
../utils/common.h:447:5: note: expected 'char *' but argument is of type 'int'
 int pingen_belkin(char *mac, char *serial, int len_serial, int add); 
     ^
wps_dev_attr.c:345:3: warning: passing argument 2 of 'pingen_belkin' discards 'const' qualifier from pointer target type [enabled by default]
   printf("[Pin Gen] Pin Generated (+1): %08d\n",pingen_belkin(mac2str(get_bssid(),'\0'), str, str_len, 1));
   ^
In file included from ../wps.h:40:0,
                 from ../defs.h:46,
                 from ../globule.h:37,
                 from wps_dev_attr.c:15:
../utils/common.h:447:5: note: expected 'char *' but argument is of type 'const u8 *'
 int pingen_belkin(char *mac, char *serial, int len_serial, int add); 
     ^
wps_dev_attr.c:346:3: warning: passing argument 1 of 'pingen_belkin' makes pointer from integer without a cast [enabled by default]
   printf("[Pin Gen] Pin Generated (-1): %08d\n\n",pingen_belkin(mac2str(get_bssid(),'\0'), str, str_len, -1));
   ^
In file included from ../wps.h:40:0,
                 from ../defs.h:46,
                 from ../globule.h:37,
                 from wps_dev_attr.c:15:
../utils/common.h:447:5: note: expected 'char *' but argument is of type 'int'
 int pingen_belkin(char *mac, char *serial, int len_serial, int add); 
     ^
wps_dev_attr.c:346:3: warning: passing argument 2 of 'pingen_belkin' discards 'const' qualifier from pointer target type [enabled by default]
   printf("[Pin Gen] Pin Generated (-1): %08d\n\n",pingen_belkin(mac2str(get_bssid(),'\0'), str, str_len, -1));
   ^
In file included from ../wps.h:40:0,
                 from ../defs.h:46,
                 from ../globule.h:37,
                 from wps_dev_attr.c:15:
../utils/common.h:447:5: note: expected 'char *' but argument is of type 'const u8 *'
 int pingen_belkin(char *mac, char *serial, int len_serial, int add); 
     ^
wps_dev_attr.c:355:3: warning: passing argument 1 of 'pingen_dlink' makes pointer from integer without a cast [enabled by default]
   printf("[Pin Gen] Pin Generated : %08d\n",pingen_dlink(mac2str(get_bssid(),'\0'), 0));
   ^
In file included from ../wps.h:40:0,
                 from ../defs.h:46,
                 from ../globule.h:37,
                 from wps_dev_attr.c:15:
../utils/common.h:448:5: note: expected 'char *' but argument is of type 'int'
 int pingen_dlink(char *mac, int add);        
     ^
wps_dev_attr.c:356:3: warning: passing argument 1 of 'pingen_dlink' makes pointer from integer without a cast [enabled by default]
   printf("[Pin Gen] Pin Generated (+1): %08d\n",pingen_dlink(mac2str(get_bssid(),'\0'), 1));
   ^
In file included from ../wps.h:40:0,
                 from ../defs.h:46,
                 from ../globule.h:37,
                 from wps_dev_attr.c:15:
../utils/common.h:448:5: note: expected 'char *' but argument is of type 'int'
 int pingen_dlink(char *mac, int add);        
     ^
wps_dev_attr.c:357:3: warning: passing argument 1 of 'pingen_dlink' makes pointer from integer without a cast [enabled by default]
   printf("[Pin Gen] Pin Generated (-1): %08d\n\n",pingen_dlink(mac2str(get_bssid(),'\0'), -1));
   ^
In file included from ../wps.h:40:0,
                 from ../defs.h:46,
                 from ../globule.h:37,
                 from wps_dev_attr.c:15:
../utils/common.h:448:5: note: expected 'char *' but argument is of type 'int'
 int pingen_dlink(char *mac, int add);        
     ^
wps_dev_attr.c:364:3: warning: implicit declaration of function 'pingen_zyxel' [-Wimplicit-function-declaration]
   printf("[Pin Gen] Pin Generated : %08d\n",pingen_zyxel(mac2str(get_bssid(),'\0'), 0));
   ^
mips-openwrt-linux-musl-gcc -DCONF_DIR='"/etc/reaver"' -DREAVER_DATABASE='"/etc/reaver/reaver.db"' -Wall -Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -mips16 -minterlink-mips16 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/chrono/src/openwrt/staging_dir/target-mips_34kc_musl-1.1.10/usr/include -I/home/chrono/src/openwrt/staging_dir/target-mips_34kc_musl-1.1.10/include -I/home/chrono/src/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/usr/include -I/home/chrono/src/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/include/fortify -I/home/chrono/src/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/include  -I../utils -I ../ wps_enrollee.c -c
mips-openwrt-linux-musl-gcc -DCONF_DIR='"/etc/reaver"' -DREAVER_DATABASE='"/etc/reaver/reaver.db"' -Wall -Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -mips16 -minterlink-mips16 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/chrono/src/openwrt/staging_dir/target-mips_34kc_musl-1.1.10/usr/include -I/home/chrono/src/openwrt/staging_dir/target-mips_34kc_musl-1.1.10/include -I/home/chrono/src/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/usr/include -I/home/chrono/src/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/include/fortify -I/home/chrono/src/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/include  -I../utils -I ../ wps_registrar.c -c
wps_registrar.c: In function 'wps_build_m2':
wps_registrar.c:1412:17: warning: zero-length gnu_printf format string [-Wformat-zero-length]
                 printf("");
                 ^
wps_registrar.c: In function 'wps_process_enrollee_nonce':
wps_registrar.c:1745:17: warning: zero-length gnu_printf format string [-Wformat-zero-length]
                 printf("");
                 ^
wps_registrar.c: In function 'wps_process_e_hash1':
wps_registrar.c:1831:17: warning: zero-length gnu_printf format string [-Wformat-zero-length]
                 printf("");
                 ^
wps_registrar.c: In function 'wps_process_e_hash2':
wps_registrar.c:1877:17: warning: zero-length gnu_printf format string [-Wformat-zero-length]
                 printf("");
                 ^
wps_registrar.c:1925:2: warning: pointer targets in passing argument 2 of 'strncpy' differ in signedness [-Wpointer-sign]
  strncpy(p_bssid, mac2str(get_bssid(),':'), 17);
  ^
In file included from /home/chrono/src/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/include/fortify/string.h:19:0,
                 from ../defs.h:41,
                 from ../globule.h:37,
                 from wps_registrar.c:14:
/home/chrono/src/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/include/string.h:32:7: note: expected 'const char *' but argument is of type 'unsigned char *'
 char *strncpy (char *__restrict, const char *__restrict, size_t);
       ^
wps_registrar.c:2149:13: warning: pointer targets in passing argument 2 of 'strcat' differ in signedness [-Wpointer-sign]
             strcat(cmd_reaver_test_aux,mac2str(get_bssid(),':'));
             ^
In file included from /home/chrono/src/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/include/fortify/string.h:19:0,
                 from ../defs.h:41,
                 from ../globule.h:37,
                 from wps_registrar.c:14:
/home/chrono/src/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/include/string.h:34:7: note: expected 'const char *' but argument is of type 'unsigned char *'
 char *strcat (char *__restrict, const char *__restrict);
       ^
wps_registrar.c: In function 'wps_process_pubkey':
wps_registrar.c:2360:17: warning: zero-length gnu_printf format string [-Wformat-zero-length]
                 printf("");
                 ^
wps_registrar.c: In function 'wps_process_ap_settings_r':
wps_registrar.c:2791:9: warning: pointer targets in passing argument 1 of 'strdup' differ in signedness [-Wpointer-sign]
         wps->key = strdup(wps->cred.key);
         ^
In file included from /home/chrono/src/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/include/fortify/string.h:19:0,
                 from ../defs.h:41,
                 from ../globule.h:37,
                 from wps_registrar.c:14:
/home/chrono/src/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/include/string.h:68:7: note: expected 'const char *' but argument is of type 'u8 *'
 char *strdup (const char *);
       ^
wps_registrar.c:2795:9: warning: pointer targets in passing argument 1 of 'strdup' differ in signedness [-Wpointer-sign]
         wps->essid = strdup(wps->cred.ssid);
         ^
In file included from /home/chrono/src/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/include/fortify/string.h:19:0,
                 from ../defs.h:41,
                 from ../globule.h:37,
                 from wps_registrar.c:14:
/home/chrono/src/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/include/string.h:68:7: note: expected 'const char *' but argument is of type 'u8 *'
 char *strdup (const char *);
       ^
wps_registrar.c: At top level:
wps_registrar.c:257:13: warning: 'wps_registrar_remove_pbc_session' defined but not used [-Wunused-function]
 static void wps_registrar_remove_pbc_session(struct wps_registrar *reg,
             ^
wps_registrar.c:759:13: warning: 'wps_registrar_pbc_completed' defined but not used [-Wunused-function]
 static void wps_registrar_pbc_completed(struct wps_registrar *reg)
             ^
wps_registrar.c:770:13: warning: 'wps_registrar_pin_completed' defined but not used [-Wunused-function]
 static void wps_registrar_pin_completed(struct wps_registrar *reg)
             ^
wps_registrar.c:862:12: warning: 'wps_cb_new_psk' defined but not used [-Wunused-function]
 static int wps_cb_new_psk(struct wps_registrar *reg, const u8 *mac_addr,
            ^
wps_registrar.c:888:13: warning: 'wps_cb_reg_success' defined but not used [-Wunused-function]
 static void wps_cb_reg_success(struct wps_registrar *reg, const u8 *mac_addr,
             ^
wps_registrar.c:1456:24: warning: 'wps_build_m2d' defined but not used [-Wunused-function]
 static struct wpabuf * wps_build_m2d(struct wps_data *wps)
                        ^
wps_registrar.c:2252:12: warning: 'wps_process_e_snonce2' defined but not used [-Wunused-function]
 static int wps_process_e_snonce2(struct wps_data *wps, const u8 *e_snonce2)
            ^
mips-openwrt-linux-musl-gcc -DCONF_DIR='"/etc/reaver"' -DREAVER_DATABASE='"/etc/reaver/reaver.db"' -Wall -Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -mips16 -minterlink-mips16 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/chrono/src/openwrt/staging_dir/target-mips_34kc_musl-1.1.10/usr/include -I/home/chrono/src/openwrt/staging_dir/target-mips_34kc_musl-1.1.10/include -I/home/chrono/src/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/usr/include -I/home/chrono/src/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/include/fortify -I/home/chrono/src/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/include  -I../utils -I ../ wps_ufd.c -c
make[5]: Leaving directory '/home/chrono/src/openwrt/build_dir/target-mips_34kc_musl-1.1.10/reaver-wps-fork-t6x-Big_endian/src/wps'
(cd lwe && make BUILD_STATIC=y libiw.a)
make[5]: Entering directory '/home/chrono/src/openwrt/build_dir/target-mips_34kc_musl-1.1.10/reaver-wps-fork-t6x-Big_endian/src/lwe'
cp wireless.21.h wireless.h
mips-openwrt-linux-musl-gcc -Os -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wpointer-arith -Wcast-qual -Winline -I. -MMD     -fPIC -c -o iwlib.so iwlib.c
cc1: note: someone does not honour COPTS correctly, passed 0 times
rm -f libiw.a
mips-openwrt-linux-musl-gcc-ar cru libiw.a iwlib.so
mips-openwrt-linux-musl-gcc-ranlib libiw.a
make[5]: Leaving directory '/home/chrono/src/openwrt/build_dir/target-mips_34kc_musl-1.1.10/reaver-wps-fork-t6x-Big_endian/src/lwe'
(cd libwps && make)
make[5]: Entering directory '/home/chrono/src/openwrt/build_dir/target-mips_34kc_musl-1.1.10/reaver-wps-fork-t6x-Big_endian/src/libwps'
mips-openwrt-linux-musl-gcc -Wall libwps.c -c
cc1: note: someone does not honour COPTS correctly, passed 0 times
In file included from libwps.c:14:0:
libwps.h:50:1: error: unknown type name 'u_char'
 int parse_wps_parameters(const u_char *packet, size_t len, struct libwps_data *wps);
 ^
libwps.h:129:1: error: unknown type name 'u_char'
 int parse_wps_tag(const u_char *tags, size_t len, struct libwps_data *wps);
 ^
libwps.h:130:1: error: unknown type name 'u_char'
 unsigned char *get_wps_data(const u_char *data, size_t len, size_t *tag_len);
 ^
libwps.h:131:1: error: unknown type name 'u_char'
 unsigned char *get_wps_data_element(const u_char *data, size_t len, uint16_t type, size_t *el_len);
 ^
libwps.h:132:1: error: unknown type name 'u_char'
 int libwps_has_rt_header(const u_char *packet, size_t len);
 ^
libwps.h:133:1: error: unknown type name 'u_char'
 const u_char *libwps_radio_header(const u_char *packet, size_t len);
 ^
libwps.h:133:1: error: unknown type name 'u_char'
libwps.c:26:1: error: unknown type name 'u_char'
 int parse_wps_parameters(const u_char *packet, size_t len, struct libwps_data *wps)
 ^
libwps.c: In function 'parse_wps_parameters':
libwps.c:28:5: error: unknown type name 'u_char'
     const u_char *data = NULL;
     ^
libwps.c:29:12: warning: variable 'data_len' set but not used [-Wunused-but-set-variable]
     size_t data_len = 0, offset = 0;
            ^
libwps.c: At top level:
libwps.c:55:1: error: unknown type name 'u_char'
 int parse_wps_tag(const u_char *tags, size_t len, struct libwps_data *wps)
 ^
libwps.c: In function 'parse_wps_tag':
libwps.c:89:13: warning: passing argument 1 of 'get_wps_data_element' from incompatible pointer type [enabled by default]
             el = get_wps_data_element(wps_ie_data, wps_data_len, elements[i], &el_len);
             ^
In file included from libwps.c:14:0:
libwps.h:131:16: note: expected 'const int *' but argument is of type 'unsigned char *'
 unsigned char *get_wps_data_element(const u_char *data, size_t len, uint16_t type, size_t *el_len);
                ^
libwps.c: At top level:
libwps.c:190:1: error: unknown type name 'u_char'
 unsigned char *get_wps_data(const u_char *data, size_t len, size_t *tag_len)
 ^
libwps.c:234:1: error: unknown type name 'u_char'
 unsigned char *get_wps_data_element(const u_char *data, size_t len, uint16_t type, size_t *el_len)
 ^
libwps.c:269:1: error: unknown type name 'u_char'
 int libwps_has_rt_header(const u_char *packet, size_t len)
 ^
libwps.c:291:1: error: unknown type name 'u_char'
 const u_char *libwps_radio_header(const u_char *packet, size_t len)
 ^
libwps.c:291:1: error: unknown type name 'u_char'
libwps.c: In function 'libwps_radio_header':
libwps.c:299:17: error: 'u_char' undeclared (first use in this function)
         return (u_char *) FAKE_RADIO_TAP_HEADER;
                 ^
libwps.c:299:17: note: each undeclared identifier is reported only once for each function it appears in
libwps.c:299:25: error: expected expression before ')' token
         return (u_char *) FAKE_RADIO_TAP_HEADER;
                         ^
libwps.c:302:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
Makefile:5: recipe for target 'libwps.o' failed
make[5]: *** [libwps.o] Error 1
make[5]: Leaving directory '/home/chrono/src/openwrt/build_dir/target-mips_34kc_musl-1.1.10/reaver-wps-fork-t6x-Big_endian/src/libwps'
Makefile:19: recipe for target 'libwps.o' failed
make[4]: *** [libwps.o] Error 2
make[4]: Leaving directory '/home/chrono/src/openwrt/build_dir/target-mips_34kc_musl-1.1.10/reaver-wps-fork-t6x-Big_endian/src'
Makefile:54: recipe for target '/home/chrono/src/openwrt/build_dir/target-mips_34kc_musl-1.1.10/reaver-wps-fork-t6x-Big_endian/.built' failed
make[3]: *** [/home/chrono/src/openwrt/build_dir/target-mips_34kc_musl-1.1.10/reaver-wps-fork-t6x-Big_endian/.built] Error 2
make[3]: Leaving directory '/home/chrono/src/openwrt/feeds/packages/net/reaver'
package/Makefile:191: recipe for target 'package/feeds/packages/reaver/compile' failed
make[2]: *** [package/feeds/packages/reaver/compile] Error 2
make[2]: Leaving directory '/home/chrono/src/openwrt'
package/Makefile:188: recipe for target '/home/chrono/src/openwrt/staging_dir/target-mips_34kc_musl-1.1.10/stamp/.package_compile' failed
make[1]: *** [/home/chrono/src/openwrt/staging_dir/target-mips_34kc_musl-1.1.10/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/chrono/src/openwrt'
/home/chrono/src/openwrt/include/toplevel.mk:181: recipe for target 'world' failed
make: *** [world] Error 2

I guess it's also the libpcap missmatch? It would be great if we could get a working Makefile/Patchset for openwrt feeds for trunk/CC, since it's the perfect platform to play with and deploy wireless related stuff on. Maybe this: http://stackoverflow.com/questions/15393905/c-pcap-library-unknown-types-error ?

from reaver-wps-fork-t6x.

0x2b3bfa0 avatar 0x2b3bfa0 commented on August 16, 2024

Why the latest version of libpcap is not working with reaver? Is there any fix for that? Can I downgrade the library?

I'm using this OpenWRT version (as the banner that appears when ssh'ing says):

OpenWrt Barrier Breaker 14.07 

from reaver-wps-fork-t6x.

psyborg55 avatar psyborg55 commented on August 16, 2024

was able to run it together with pixiewps, tried several APs some got locked and ralink ones turned off wps after about 10 tries. there were many segfaults even with libpcap 1.3

[  1423.197749] do_page_fault(): sending SIGSEGV to reaver for invalid read access from 00000004
[  1423.206432] epc = 0041acf0 in reaver[400000+49000]
[  1423.211373] ra  = 00407460 in reaver[400000+49000]
[  1423.216299] 
[  1438.806961] 
[  1438.806961] do_page_fault(): sending SIGSEGV to reaver for invalid write access to 00000000
[  1438.815616] epc = 777b62b0 in libc.so[7778e000+91000]
[  1438.820907] ra  = 7775a0f3 in libpcap.so.1.3.0[77756000+36000]
[  1438.826936] 
[  1446.398974] 
[  1446.398974] do_page_fault(): sending SIGSEGV to reaver for invalid write access to 00000008
[  1446.407571] epc = 77ae5e20 in libc.so[77abe000+91000]
[  1446.412787] ra  = 77ae6c8c in libc.so[77abe000+91000]
[  1446.417973] 
[  1451.210009] 
[  1451.210009] do_page_fault(): sending SIGSEGV to reaver for invalid write access to 00000008
[  1451.218613] epc = 77a2be20 in libc.so[77a04000+91000]
[  1451.223849] ra  = 77a2cc8c in libc.so[77a04000+91000]
[  1451.229013] 
[  1461.230711] 
[  1461.230711] do_page_fault(): sending SIGSEGV to reaver for invalid read access from 00000000
[  1461.239409] epc = 7708dadf in libpcap.so.1.3.0[7708a000+36000]
[  1461.245634] ra  = 7708e495 in libpcap.so.1.3.0[7708a000+36000]
[  1461.251644] 
[  1485.280480] 
[  1485.280480] do_page_fault(): sending SIGSEGV to reaver for invalid write access to 00000008
[  1485.289058] epc = 77ef5e20 in libc.so[77ece000+91000]
[  1485.294263] ra  = 77ef6c8c in libc.so[77ece000+91000]
[  1485.299427] 
[  1498.262818] 
[  1498.262818] do_page_fault(): sending SIGSEGV to reaver for invalid write access to 00000008
[  1498.271444] epc = 77493e20 in libc.so[7746c000+91000]
[  1498.276669] ra  = 77494c8c in libc.so[7746c000+91000]
[  1498.282367] 
[  1506.140389] 
[  1506.140389] do_page_fault(): sending SIGSEGV to reaver for invalid write access to 00000008
[  1506.148967] epc = 776a1e20 in libc.so[7767a000+91000]
[  1506.154152] ra  = 776a2120 in libc.so[7767a000+91000]
[  1506.159354] 
[  1612.802557] 
[  1612.802557] do_page_fault(): sending SIGSEGV to reaver for invalid write access to 00000008
[  1612.811182] epc = 774e9e20 in libc.so[774c2000+91000]
[  1612.816410] ra  = 774eac8c in libc.so[774c2000+91000]
[  1612.821600] 
[  1636.746282] 
[  1636.746282] do_page_fault(): sending SIGSEGV to reaver for invalid write access to 00000000
[  1636.754911] epc = 77ab42b0 in libc.so[77a8c000+91000]
[  1636.760099] ra  = 77a580f3 in libpcap.so.1.3.0[77a54000+36000]
[  1636.766107] 

from reaver-wps-fork-t6x.

rofl0r avatar rofl0r commented on August 16, 2024

this is probably fixed with release 1.6b.

from reaver-wps-fork-t6x.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.