wifidogAs a wifi authentication plug-in, the analysis of source code in online materials can be said to be countless.
In terms of compilation, it prefers OpenWtr firmware. For me who use padavan firmware, if I want to use WiFi, I have to find my own way and use cross compilation to complete the task of compiling WiFi.
Although there is a version compiled by H.A. on the Internet, there are too many firmware plug-ins compiled by H.A. for me, so the padavan I have been using is a pure version compiled by myself without any plug-ins
- Ubuntu 16.04 LTS
- padavan tool chain
First, padavan tool chain is ready
After installing the dependencies required to compile padavan, execute the following two commands in sequence
sudo apt update
sudo apt install unzip libtool-bin curl cmake gperf gawk flex bison nano fakeroot cpio git python-docutils gettext automake autopoint texinfo build-essential help2man pkg-config zlib1g-dev libgmp3-dev libmpc-dev libmpfr-dev libncurses5-dev libltdl-dev wget module-init-tools
Then use git to download padavan source code
git clone --depth=1 https://gitee.com/hanwckf/rt-n56u.git /opt/rt-n56u
Compile the tool chain and execute three commands in sequence. It takes some time
cd /opt/rt-n56u/toolchain-mipsel ./clean_toolchain ./build_toolchain
If you have better scientific Internet access, you can also download the precompiled tool chain using scripts without compiling the tool chain yourself (after all, it takes a long time)
Using git to clone source code
git clone https://github.com/wifidog/wifidog-gateway wifidog
Start compiling and execute the following commands in sequence
cd wifidog ./autogen.sh ./configure CC=/opt/rt-n56u/toolchain-mipsel/toolchain-3.4.x/bin/mipsel-linux-uclibc-gcc CXX=/opt/rt-n56u/toolchain-mipsel/toolchain-3.4.x/bin/mipsel-linux-uclibc-g++ LD=/opt/rt-n56u/toolchain-mipsel/toolchain-3.4.x/bin/mipsel-linux-uclibc-ld RANLIB=/opt/rt-n56u/toolchain-mipsel/toolchain-3.4.x/bin/mipsel-linux-uclibc-ranlib AR=/opt/rt-n56u/toolchain-mipsel/toolchain-3.4.x/bin/mipsel-linux-uclibc-ar --build=x86_64-pc-linux-gnu --host=mipsel-unknown-linux-gnu --target=mipsel-unknown-linux-gnu --prefix=/home/wifidog_install/ make sudo make install
After a while, the compiled output file is displayed in /home/wifi_ In the install/ directory, the executable file is in the bin directory.
I put WiFi into the firmware by unpacking the firmware (because I won't directly pack it into the firmware, I will learn it next time)
After swiping into the router, you can run the authentication service by executing WiFi through ssh