Setting a InternetDevice in Monitor Mode

---

https://thesmashy.medium.com/raspberry-pi-zero-w-wifi-hacking-gadget-63e3fa1c3c8d
#^^ just installed the kali kernel, reboot and put it into monitor mode
iw phy phy0 info

sudo iw phy phy0 interface add mon0 type monitor
sudo ifconfig mon0 up
#in /etc/rc.local to startup mon0 at the beginnning

curl -s https://packagecloud.io/install/repositories/aircrack-ng/release/script.deb.sh | sudo bash
sudo apt-get install aircrack-ng -y
#^^ to install aircrack
sudo aireplay-ng –test mon0

####################################
https://www.cellstream.com/reference-reading/tipsandtricks/410-3-ways-to-put-your-wi-fi-interface-in-monitor-mode-in-linux
^^
sudo iw dev
sudo ip link set wlan0 down
sudo iw wlan0 set monitor none
sudo ip link set wlan0 up
https://stackoverflow.com/questions/30747186/airmon-ng-change-wlan0-to-wlan0mon-but-dont-restore
^^
iw dev wlan0mon del
iw phy phy0 interface add wlan0 type managed
sudo iwconfig wlan0
service network-manager restart
for rasp zero:
https://linuxthor.github.io/projects/pi-zero-w-monitor-mode/
https://github.com/seemoo-lab/nexmon#build-patches-for-bcm43430a1-on-the-rpi3zero-w-or-bcm434355c0-on-the-rpi3rpi4-using-raspbianraspberry-pi-os-recommended

sudo apt install raspberrypi-kernel-headers git libgmp3-dev gawk qpdf bison flex make texinfo
git clone https://github.com/seemoo-lab/nexmon
cd nexmon
cd buildtools/mpfr-3.1.4;autoreconf -f -i;./configure;make;sudo make install;sudo ln -s /usr/local/lib/libmpfr.so /usr/lib/arm-linux-gnueabihf/libmpfr.so.4;
cd ../..;
cd buildtools/isl-0.10;./configure;make;sudo make install;sudo ln -s /usr/local/lib/libisl.so /usr/lib/arm-linux-gnueabihf/libisl.so.10;
cd ../..;
source setup_env.sh
make
cd patches/bcm43430a1/7_45_41_46/nexmon/
make
make backup-firmware
sudo make install-firmware
cd ../../../..
cd utilities/nexutil/
make && sudo make install

############
https://lemariva.com/blog/2019/09/raspberry-pi-4b-preempt-rt-kernel-419y-performance-test
git clone https://github.com/ZerBea/hcxdumptool

cd /usr/lib/arm-linux-gnueabihf
ln -s ./libmpfr.so.6.0.2 ./libmpfr.so.4 && ln -s ./libisl.so.19.1.0 ./libisl.so.10
^^doesnt work, so put a stretch over buster in /etc/apt/sources.list
but need a downgrade to 4.9 for kernel etc…
apt install linux-image-4.9.0-6-rpi -y
https://pimylifeup.com/raspberry-pi-nexmon/
so we need to compile a new kernel:

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>