This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
sudo apt install -y build-essential git python3-dev libnl-genl-3-dev bison flex kmod linux-headers-$(uname -r) | |
sudo python3 -m pip install cmake ninja -U | |
mkdir -p ~/github && cd ~/github | |
# Install PF Ring | |
git clone https://github.com/ntop/PF_RING --depth=1 && cd PF_RING |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
KERNEL_VER=4.9.115 | |
RT_PATCH_VER=93 | |
CURRENT_KERNEL=`uname -r` | |
tar -xzvf linux-$KERNEL_VER.tar.gz | |
cd linux-$KERNEL_VER | |
gzip -cd ../patch-$KERNEL_VER-rt$RT_PATCH_VER.patch.gz | patch -p1 --verbose | |
cp /boot/config-$CURRENT_KERNEL .config # get config file from current kernel | |
make -j9 | |
sudo make modules_install -j9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget https://www.openssl.org/source/openssl-1.1.1.tar.gz | |
tar -xvzf openssl-1.1.1.tar.gz | |
cd openssl-1.1.1/ | |
./Configure linux-aarch64 --prefix=/usr/local/ssl --openssldir=/usr/local/ssl shared zlib | |
make -j$(($(nproc)+1)) | |
sudo make install | |
sudo echo 'LD_LIBRARY_PATH=/usr/local/ssl/lib:${LD_LIBRARY_PATH}' >> /etc/environment | |
rm openssl-1.1.1.tar.gz | |
sudo rm openssl-1.1.1 -r |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "esp_wpa2.h" | |
#include "esp_wifi.h" | |
#include "esp_wpa2.h" | |
#include <WiFi.h> | |
#define EXAMPLE_EAP_METHOD 1 | |
#define EXAMPLE_EAP_ID "matheus_garbelini" | |
#define EXAMPLE_EAP_USERNAME "matheus_garbelini" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <ESP8266WiFi.h> | |
extern "C" { | |
#include "user_interface.h" | |
#include "wpa2_enterprise.h" | |
#include "c_types.h" | |
} | |
// SSID to connect to | |
char ssid[] = "TEST_KRA"; |