From 27a21c977cafd6c5270ec30483c127f16bb94ee9 Mon Sep 17 00:00:00 2001 From: CommandBlock6417 Date: Mon, 6 Apr 2020 19:22:26 +0300 Subject: [PATCH] Replaced shell with zip because Github. Changed bluebomb.md to reflect Github's problem --- _pages/en_US/bluebomb.md | 6 +- assets/files/bluebomb-helper.sh | 170 ------------------------------- assets/files/bluebomb-helper.zip | Bin 0 -> 2859 bytes 3 files changed, 4 insertions(+), 172 deletions(-) delete mode 100644 assets/files/bluebomb-helper.sh create mode 100644 assets/files/bluebomb-helper.zip diff --git a/_pages/en_US/bluebomb.md b/_pages/en_US/bluebomb.md index 832fb149a..72e7a2a65 100644 --- a/_pages/en_US/bluebomb.md +++ b/_pages/en_US/bluebomb.md @@ -40,9 +40,11 @@ This exploit will not work on a Wii U's vWii. Please follow [this guide instead] ![SystemMenuVersion](/images/Wii/SystemMenuVersion.png) 1. Start the Linux Operating System. If you do not have it installed on your computer, you can temporarily install and boot it from a flash drive (not the one used for the HackMii installer) You can follow [this guide](https://ubuntu.com/tutorials/tutorial-create-a-usb-stick-on-windows#1-overview) to create the bootable USB drive. Note that it will not make any permanent changes to your computer unless you select the installation option. As an ISO, provide the ISO linked in Section I that fits your configuration. -1. Open the Linux Terminal by pressing `Ctrl + Shift + T` or by opening it from the app menu and run these commands +1. Open the Linux Terminal by pressing `Ctrl + Shift + T` or by opening it from the app menu and run these commands: ``` -wget https://github.com/RiiConnect24/Wii-Guide/tree/master/assets/files/bluebomb-helper.sh +wget https://github.com/RiiConnect24/Wii-Guide/tree/master/assets/files/bluebomb-helper.zip +unzip bluebomb-helper.zip +rm bluebomb-helper.zip chmod a+x bluebomb-helper.sh ./bluebomb-helper.sh ``` diff --git a/assets/files/bluebomb-helper.sh b/assets/files/bluebomb-helper.sh deleted file mode 100644 index ea8ffe7ff..000000000 --- a/assets/files/bluebomb-helper.sh +++ /dev/null @@ -1,170 +0,0 @@ -#!/bin/bash - -version="v0.0.1" -helpmsg="Need further help? You can either join the Wii Mini Hacking Discord server (recommended) at https://discord.gg/6ryxnkS, the RiiConnect24 Discord server at https://discord.gg/b4Y7jfD or you can send an e-mail to support@riiconnect24.net and we'll try to assist. " - -# clear and greet -printf "Hello $USER, and welcome to the BlueBomb helper script.\n\nThis script will automatically check you have an environment capable of utilizing BlueBomb, download required files, and automate things as much as possible to make it easier for you, the end user, to perform the BlueBomb exploit on your Wii or Wii Mini console.\n\n" | fold -s -w $(tput cols) - -#set variable $sudo if the user is not root, so sudo is only used if absolutely needed -[[ $USER != "root" ]] && sudo0="sudo" - -# error handling -error() { - clear - printf "An error has occurred.\n\n* Task: $task\n* Command: $BASH_COMMAND\n* Line: $1\n* Exit code: $2\n\n" | fold -s -w $(tput cols) - - case "$task" in - "Checking prerequisites - Internet connection" ) printf "NOTE: Please ensure that your PC has an active internet connection.\n\n" | fold -s -w $(tput cols) - esac - - printf "$helpmsg\n" | fold -s -w $(tput cols) - exit -} - -trap 'error $LINENO $?' ERR -set -o pipefail -set -o errtrace - -# receive parameters given on command line -while [[ "$1" =~ ^- && ! "$1" == "--" ]]; do case $1 in - -v | --version ) printf "BlueBomb helper script\nVersion: $version\n" && exit ;; - -r | --region ) shift; regionIn=$1 ;; - -t | --console ) shift; consoleIn=$1 ;; - -s | --sysmenu ) shift; sysmenuIn=$1 ;; - -h | --help ) printf "\nUsage: $0 [options...]\n - * -v --version\t\t\tDisplays the current version of the script. - * -r --region \t\tAllows you to select a region without needing to interact with the script. - * -t --console \tAllows you to select a console type without needing to interact with the script. - * -s --sysmenu \tAllows you to select a system menu version without needing to interact with the script. - * -h --help\t\t\t\tDisplays this help message.\n\n$helpmsg\n" | fold -s -w $(tput cols) - exit - ;; -esac; shift; done -if [[ "$1" == '--' ]]; then shift; fi - -# check prerequisites - -task="Checking prerequisites - Dependencies" -## detect non-linux kernel users. itoddlers btfo. -[[ -z "$(uname -s | grep 'Linux')" ]] && printf "\n\nThis script does not work on systems that don't use the Linux kernel.\n\n" && exit - -## detect architecture -if [[ -n "$(uname -m | grep 'arm*\|aarch*')" ]]; then - arch="arm" -elif [[ -n "$(uname -m | grep 'x86_64')" ]]; then - arch="x64" -elif [[ -n "$(uname -m | grep 'i686')" ]]; then - arch="x86" -else - printf "Unable to use your architecture ($(uname -m)).\n$helpmsg\n" - exit -fi -printf "* Detected architecture: $arch\n\n" - -## detect package manager -[[ -z "$(command -v apt)" ]] && pm="apt" -[[ -z "$(command -v emerge)" ]] && pm="portage" -[[ -z "$(command -v pacman)" ]] && pm="pacman" -[[ -z "$(command -v zypper)" ]] && pm="zyp" -[[ -z "$(command -v dnf)" ]] && pm="dnf" - -dependencies=("unzip" "bluetoothctl" "wget") - -for i in "${dependencies[@]}"; do - if [[ -z "$(command -v ${dependencies[i]})" ]]; then case "$pm" in - "apt" ) $sudo0 apt -y install ${dependencies[i]} ;; - "portage" ) $sudo0 emerge -aqv ${dependencies[i]} ;; - "pacman" ) $sudo0 pacman -S ${dependencies[i]} ;; - "zyp" ) $sudo0 zypper install ${dependencies[i]} ;; - "dnf" ) $sudo0 dnf install ${dependencies[i]};; - * ) printf "${dependencies[i]} is not installed. Please install it using your preferred package manager.\n\n$helpmsg\n" ;; - esac fi -done - -## detect init system -if [[ -e "$(command -v systemctl)" ]]; then - init="systemd" -elif [[ -e "$(command -v openrc)" ]]; then - init="openrc" -else - printf "Unable to detect your init system.\n$helpmsg\n" - exit -fi -printf "* Detected init system: $init\n\n" - -download() { - [ -e bluebomb ] && printf "BlueBomb exists. Not downloading.\n" && cd bluebomb && return - task="Checking Prerequisites - Internet connection" - printf "* Checking internet connection... " - ping -c 3 github.com > /dev/null - printf "Success!\n\n* Downloading BlueBomb... " - task="Download and extract BlueBomb" - ## download zip from github - mkdir -p bluebomb && cd bluebomb - wget -q --secure-protocol=TLSv1_2 "https://github.com/Fullmetal5/bluebomb/releases/download/1.5/bluebomb1..zip" -O bluebomb.zip - printf "Success!\n\n* Unpacking BlueBomb... " - unzip -q bluebomb.zip - rm bluebomb.zip - printf "Success!\n\n" -} - -findinfos() { - clear - task="Get console information from user" - if [[ -z $consoleIn ]]; then - printf "What is the console type?\n\nOPTIONS:\n\t[1]: Wii\n\t[2]: Wii Mini\n\nPlease type your selection and then press ENTER: " | fold -s -w $(tput cols) - read -r consoleIn - fi - case "$consoleIn" in - "1" | "Wii" ) arg1="WII_SM" ;; - "2" | "Wii Mini" ) arg1="MINI_SM_" ;; - * ) printf "Invalid selection.\n"; unset consoleIn findinfos ;; - esac - if [[ $arg1 == "MINI_SM_" ]]; then - if [[ -z $regionIn ]]; then - clear - printf "What is the region of your Wii Mini console?\n\nOPTIONS:\n\t[1]: USA\n\t[2]: PAL\n\nPlease type your selection and then press ENTER: " | fold -s -w $(tput cols) - read -r regionIn - fi - case "$regionIn" in - "1" | "NTSC" ) arg2="NTSC" ;; - "2" | "PAL" ) arg2="PAL" ;; - * ) printf "Invalid selection.\n"; unset regionIn; findinfos ;; - esac - else - if [[ -z $sysmenuIn ]]; then - clear - printf "What is the system menu version of your Wii Console?\n\nIf you're not sure where to find this, follow the following instructions:\nFrom the Wii Menu, launch Wii Options (round button in the bottom left), and then launch Wii Settings. On the first page of the Wii Settings at the upper right corner, you should see 'Ver X.YZ'. Where 'X' and 'Y' are numbers, and 'Z' is a letter. An example is '4.3E'.\n\nPlease enter the system menu version and then press ENTER: " - read -r sysmenuIn - fi - if [[ ! ${#sysmenuIn} == 4 ]]; then printf "Invalid selection.\n" && unset sysmenuIn && findinfos; - fi - sysmenuVersions=("2_0E" "2_0J" "2_0U" "2_1E" "2_2E" "2_2J" "2_2U" "3_0E" "3_0J" "3_0U" "3_1E" "3_1J" "3_1U" "3_2E" "3_2J" "3_2U" "3_3E" "3_3J" "3_3U" "3_4E" "3_4J" "3_4U" "3_5K" "4_0E" "4_0J" "4_0U" "4_1E" "4_1J" "4_1K" "4_1U" "4_2E" "4_2J" "4_2K" "4_2U" "4_3E" "4_3J" "4_3K" "4_3U") - arg2=${sysmenuIn//[.]/_} - arg2=${arg2//[e]/E} - arg2=${arg2//[j]/J} - arg2=${arg2//[k]/K} - arg2=${arg2//[u]/U} - if [[ ! "${sysmenuVersions[@]}" =~ "${arg2}" ]]; then printf "Invalid version.\n" && unset sysmenuIn && findinfos; fi - fi -} - -execute() { - clear - task="Stop Bluetooth Service" - printf "* Stopping the Bluetooth service... " - case "$init" in - "systemd" ) $sudo0 systemctl disable --now bluetooth.service ;; - "openrc" ) $sudo0 rc-service bluetooth stop ;; - esac - printf "Success! (hopefully)\n\n" - task="Execute BlueBomb" - printf "* Executing BlueBomb...\n" - printf "$sudo0 ./bluebomb-$arch ./stage0/$arg1$arg2.bin stage1.bin\n" - $sudo0 ./bluebomb-$arch ./stage0/$arg1$arg2.bin stage1.bin -} - -download -findinfos -execute diff --git a/assets/files/bluebomb-helper.zip b/assets/files/bluebomb-helper.zip new file mode 100644 index 0000000000000000000000000000000000000000..2fd453221d15e3beccdbe7170e9dd83c3f062fdf GIT binary patch literal 2859 zcmZ{mcRbXOAICrT?#Mn)LWz@X85tSLkxjTWj+2$_l{kBpkz_mb$lfPp-Qnw-?GSO| z5+d0nQonlq{`@_D?|+`}$LsZe|Nk_GQBiYH0RTN%F`R=E9vLj%Ijgqr?}f0F|dZ8?)83TaARA8l*!r_i*}R}!D{3j6nH`x zq3L59re_PCP!bVzmslywUQkAw>28JEb-S_zPlMn3F1i|Ir>UkW&pMN=gFae1jYNrL zl%~u$jl?^OPiHd}%@i&RJ?Qfjc7WdsPY9ttrP)!67Z&h29X;|2k&9AR&toLR;&{o$KJnsvJeONrT(+*fxV%4*!$(@3k!fQ!@B=zhKy zOyL(B$ICEiF3hHCs?`wgq{&K{3h8;;k@=F|_(2?X3rBr)Mpp_Ua#p}s@=hQ77r2hq z znFF8hAvpT$KvB;O+6AHe==-C{@Jm{>Y_O6d*7Bw7K@r{Jmy(TFI@*}uQm*NzQ!}eE=m3Za@T;=M7)^W!Krl`MHbL6I zZ}1DY5&Uigtuw?0wyW$KzdwOc00!ro%1Sc${)A8iVL&^q~Tt~pc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